ListCloudAccounts
Queries the information about one or more cloud accounts by using paging.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:ListCloudAccounts |
list |
*CloudAccount
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| NextToken |
string |
No |
The token that specifies the starting position of the next page.
|
NTxxxxxexample |
| MaxResults |
integer |
No |
The maximum number of entries per page.
|
20 |
| Filter |
array<object> |
No |
The filter conditions. |
|
|
object |
No |
The filter conditions. |
||
| Name |
string |
No |
The name of the filter field. Valid values:
Valid values:
|
CloudAccountId |
| Value |
array |
No |
The list of values for the filter field. |
|
|
string |
No |
The value of the filter field. |
ca_01kmegjc11qa1txxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| TotalCount |
integer |
The total number of entries. |
100 |
| NextToken |
string |
The token returned for the next query. |
NTxxxexample |
| MaxResults |
integer |
The number of entries per page in paging. |
20 |
| CloudAccounts |
array<object> |
The list of cloud accounts. |
|
|
array<object> |
The details of the cloud account. |
||
| InstanceId |
string |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| CloudAccountId |
string |
The ID of the cloud account. |
ca_01kmegjc11qa1txxxxx |
| CloudAccountName |
string |
The name of the cloud account. |
cloud_accout_xxxx |
| CloudAccountVendorType |
string |
The type of the cloud account. Valid values:
|
alibaba_cloud |
| CloudAccountExternalId |
string |
The external unique identifier of the cloud account. |
1234567 |
| CloudAccountProviderName |
string |
The name of the identity provider. |
idaas-eiam-oidc-provider |
| CloudAccountHealth |
string |
The health status of the cloud account. Valid values:
Valid values:
|
healthy |
| Description |
string |
The description of the cloud account. |
cloud_accout_description |
| CreateTime |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1649830225000 |
| UpdateTime |
integer |
The last update time. The value is a UNIX timestamp in milliseconds. |
1649830227000 |
| CloudAccountHealthCheckResult |
object |
The health check result of the cloud account. |
|
| LastCheckTime |
integer |
The time of the last health check. The value is a UNIX timestamp in milliseconds. |
1649830226000 |
| Result |
string |
The health check result of the cloud account. Valid values:
Valid values:
|
success |
| ErrorReason |
object |
The error cause. This field is returned only when the health check status is unhealthy. |
|
| ErrorCode |
string |
The error code. |
AuthenticationFail.NoPermission |
| ErrorMessage |
string |
The error message. |
There is no permission. |
| CloudAccountSite |
string |
The site of the cloud account. Valid values:
|
china_mainland |
| PrivilegeHostingState |
string |
The hosting status of the cloud account. Default value: hosting_unmanaged. Valid values:
|
hosting_unmanaged |
| PrivilegeStatus |
string |
The status of the privilege switch. Valid values:
|
enabled |
| PrivilegeApplicationIds |
array |
The list of IDs of the associated privilege applications. |
|
|
string |
The ID of the associated privilege application. |
app_mkv7rgt4d7i4u7zqtzev2mxxxx |
|
| PrivilegeHostingError |
object |
The cause of the privilege hosting or removal failure. |
|
| ErrorCode |
string |
The error code of the failure. |
Error |
| ErrorMessage |
string |
The error message of the failure. |
test message |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"TotalCount": 100,
"NextToken": "NTxxxexample",
"MaxResults": 20,
"CloudAccounts": [
{
"InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"CloudAccountId": "ca_01kmegjc11qa1txxxxx",
"CloudAccountName": "cloud_accout_xxxx",
"CloudAccountVendorType": "alibaba_cloud",
"CloudAccountExternalId": "1234567",
"CloudAccountProviderName": "idaas-eiam-oidc-provider",
"CloudAccountHealth": "healthy",
"Description": "cloud_accout_description",
"CreateTime": 1649830225000,
"UpdateTime": 1649830227000,
"CloudAccountHealthCheckResult": {
"LastCheckTime": 1649830226000,
"Result": "success",
"ErrorReason": {
"ErrorCode": "AuthenticationFail.NoPermission",
"ErrorMessage": "There is no permission."
}
},
"CloudAccountSite": "china_mainland",
"PrivilegeHostingState": "hosting_unmanaged",
"PrivilegeStatus": "enabled",
"PrivilegeApplicationIds": [
"app_mkv7rgt4d7i4u7zqtzev2mxxxx"
],
"PrivilegeHostingError": {
"ErrorCode": "Error",
"ErrorMessage": "test message"
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.