GetCloudAccount
Queries the resource information of a cloud account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:GetCloudAccount |
get |
*CloudAccount
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| CloudAccountId |
string |
Yes |
The cloud account ID. |
ca_01kmegjc11qa1txxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| CloudAccount |
object |
The cloud account details. |
|
| InstanceId |
string |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| CloudAccountId |
string |
The cloud account ID. |
ca_01kmegjc11qa1txxxxx |
| CloudAccountName |
string |
The cloud account name. |
cloud_accout_xxxx |
| CloudAccountVendorType |
string |
The cloud account type. Valid values:
Valid values:
|
alibaba_cloud |
| CloudAccountExternalId |
string |
The external unique identifier of the cloud account. |
1234567 |
| CloudAccountProviderName |
string |
The identity provider name. |
idaas-eiam-oidc-provider |
| CloudAccountHealth |
string |
The cloud account health status. Valid values:
Valid values:
|
healthy |
| CloudAccountHealthCheckResult |
object |
The cloud account health check result. |
|
| LastCheckTime |
integer |
The last check time in UNIX timestamp format. Unit: milliseconds. |
1649830226000 |
| Result |
string |
The cloud account health check result. Valid values:
Valid values:
|
success |
| ErrorReason |
object |
The error reason. This field returns a value when the health check status is unhealthy. |
|
| ErrorCode |
string |
The error code. |
AuthenticationFail.NoPermission |
| ErrorMessage |
string |
The error message. |
There is no permission. |
| PrivilegeHostingState |
string |
The cloud account hosting state. Default value: hosting_unmanaged. Valid values:
|
hosting_unmanaged |
| PrivilegeStatus |
string |
The privilege status. Valid values:
|
enabled |
| PrivilegeApplicationIds |
array |
The list of associated privilege application IDs. |
|
|
string |
The list of associated privilege application IDs. |
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 failure message. |
test message |
| Description |
string |
The cloud account description. |
cloud_accout_description |
| CloudAccountProviderConfig |
object |
The identity provider configuration information. |
|
| AuthorizationServerId |
string |
The authorization server ID. |
iauths_system |
| Issuer |
string |
The issuer. |
https://xxxxx.aliyunidaas.com/api/v2/iauths_system/oauth2 |
| Audience |
string |
The audience identifier. |
urn:cloud:idaas:sts:xxx:xxx |
| OidcJwksEndpoint |
string |
The public key endpoint for signature verification. |
https://xxxxx.aliyunidaas.com/api/v2/iauths_system/oauth2/jwks |
| CreateTime |
integer |
The creation time in UNIX timestamp format. Unit: milliseconds. |
1649830225000 |
| UpdateTime |
integer |
The last update time in UNIX timestamp format. Unit: milliseconds. |
1649830227000 |
| CloudAccountSite |
string |
The cloud account site. Valid values:
|
china_mainland |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"CloudAccount": {
"InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"CloudAccountId": "ca_01kmegjc11qa1txxxxx",
"CloudAccountName": "cloud_accout_xxxx",
"CloudAccountVendorType": "alibaba_cloud",
"CloudAccountExternalId": "1234567",
"CloudAccountProviderName": "idaas-eiam-oidc-provider",
"CloudAccountHealth": "healthy",
"CloudAccountHealthCheckResult": {
"LastCheckTime": 1649830226000,
"Result": "success",
"ErrorReason": {
"ErrorCode": "AuthenticationFail.NoPermission",
"ErrorMessage": "There is no permission."
}
},
"PrivilegeHostingState": "hosting_unmanaged",
"PrivilegeStatus": "enabled",
"PrivilegeApplicationIds": [
"app_mkv7rgt4d7i4u7zqtzev2mxxxx"
],
"PrivilegeHostingError": {
"ErrorCode": "Error",
"ErrorMessage": "test message"
},
"Description": "cloud_accout_description",
"CloudAccountProviderConfig": {
"AuthorizationServerId": "iauths_system",
"Issuer": "https://xxxxx.aliyunidaas.com/api/v2/iauths_system/oauth2",
"Audience": "urn:cloud:idaas:sts:xxx:xxx",
"OidcJwksEndpoint": "https://xxxxx.aliyunidaas.com/api/v2/iauths_system/oauth2/jwks"
},
"CreateTime": 1649830225000,
"UpdateTime": 1649830227000,
"CloudAccountSite": "china_mainland"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.