This URL adds a adds a cross account for a Controller.
Resource URL
POST /controller/account/<accound id>/crossaccount
Request Parameters
URL Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| accound id | ID allocated by the Manager for the cloud account associated with the Controller | number | Yes |
Payload Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| name | Cross account name | string | Yes |
| crossAccountId | Tenant ID of the cross account | string | Yes |
Response Parameters
Following fields are returned in the response.
| Field Name | Description | Data Type |
|---|---|---|
| success | Indicates if the cross account addition is successful.
Value is set to true if the addition is successful. Value is set to false if the addition is not successful. |
string |
| msg | Message if cross account addition is successful | string |
| errMsg | Error message if the cross account addition is not successful | string |
| domainName | Domain in which the cross account is added | string |
| data | Name of the cross account that was added | string |
Example
Request
POST https://%3CNSM_IP%3E/intruvert/webservice/api/v1/cloud/controller/account/7/crossaccount
Payload
{
"name":"Finance-compartment-1",
"crossAccountId":"ocid1.user.oc1.jik"
}
Response
{
"success": true,
"msg": "Success",
"errMsg": null,
"domainName": null,
"data": "Finance-compartment-1"
}