List cloud accounts
GET/account
Lists the main account and the subaccounts associated with the main account.
Request
Query Parameters
Possible values: >= 1
Default value: 10
The number of items displayed per page.
Possible values: >= 1
Default value: 1
The sequence number of the current page.
The list of the role IDs.
The list of statuses. Supported cloud account statuses include INACTIVE, ACTIVATED, and DISABLED. If specified, only the cloud accounts in any specified statuses will be returned. If not specified, all cloud accounts will be returned.
Header Parameters
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The response code.
data
object
The paginated list of accounts.
The sequence number of current page.
The number of items returned per page.
records
object[]
The records in the current page.
The creation timestamp of the account.
The domain name assigned to the main account.
The email used by the cloud account.
The ID of the cloud account.
Whether the cloud account is a main account.
The ID of the role to which the cloud account is assigned.
The ID of the main account.
Possible values: [INACTIVE
, ACTIVATED
, DISABLED
]
The cloud account status.
The number of pages in total.
The response message.
{
"code": 0,
"data": {
"pageNumber": 0,
"pageSize": 0,
"records": [
{
"createTimestamp": 1685510869834,
"domain": "string",
"email": "[email protected]",
"id": "account-100001",
"isRoot": true,
"roleId": "role-100001",
"rootAccountId": "rootAccount-100002",
"status": "INACTIVE"
}
],
"total": 0
},
"msg": "string"
}