You can call this operation to query the accounts of an instance by specifying the instance ID.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeAccounts |
The operation that you want to perform. Set the value to DescribeAccounts. |
ClusterId | String | Yes | cds-bp1b136jco79**** |
The ID of the instance to which the account belongs. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Accounts | Array |
The accounts that were queried. |
|
Account | |||
Name | String | test |
The name of the account. |
RequestId | String | 9BA1F8A4-12CC-4638-A7EC-D8FA2768D223 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeAccounts
&ClusterId=cds-bp1b136jco79****
&<Common request parameters>
Sample success responses
XML
format
<DescribeAccountsResponse>
<Accounts>
<Account>
<Name>test</Name>
</Account>
</Accounts>
<RequestId>9BA1F8A4-12CC-4638-A7EC-D8FA2768D223</RequestId>
</DescribeAccountsResponse>
JSON
format
{
"Accounts": {
"Account": [
{
"Name": "test"
}
]
},
"RequestId": "9BA1F8A4-12CC-4638-A7EC-D8FA2768D223"
}
Error codes
For a list of error codes, visit the API Error Center.