Queries the details about an account that is enrolled in the account factory.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
governance:GetEnrolledAccount | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AccountUid | long | Yes | The account ID. | 19534534552**** |
RegionId | string | No | The region ID. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"AccountUid": 0,
"BaselineId": "afb-bp1adadfadsf***",
"BaselineItems": [
{
"Config": "{\\\"Notifications\\\":[{\\\"GroupKey\\\":\\\"account_msg\\\",\\\"Contacts\\\":[{\\\"Name\\\":\\\"aa\\\"}],\\\"PmsgStatus\\\":1,\\\"EmailStatus\\\":1,\\\"SmsStatus\\\":1}]}",
"Name": "ACS-BP_ACCOUNT_FACTORY_VPC",
"Skip": false,
"Version": "1.0"
}
],
"CreateTime": "2021-11-01T02:38:27Z",
"DisplayName": "test-account",
"ErrorInfo": {
"Code": "CompliancePackExists",
"Message": "The compliance pack already exists.\n",
"Recommend": "https://next.api.aliyun.com/troubleshoot?q=CompliancePackExists\\\\u0026product=Config\n",
"RequestId": "6D5EAA86-2D41-5CB7-8DA7-B60093ACAA4E"
},
"FolderId": "fd-5ESoku****",
"Initialized": true,
"Inputs": {
"AccountNamePrefix": "test-account",
"AccountUid": 0,
"BaselineItems": [
{
"Config": "{\\\"Contacts\\\":[{\\\"Name\\\":\\\"governance\\\",\\\"Email\\\":\\\"wibud****@gmail.com\\\",\\\"Mobile\\\":\\\"1234\\\",\\\"Position\\\":\\\"Other\\\"}]}",
"Name": "ACS-BP_ACCOUNT_FACTORY_VPC",
"Skip": false,
"Version": "1.0"
}
],
"DisplayName": "test-account",
"FolderId": "fd-5ESoku****",
"PayerAccountUid": 0,
"Tag": [
{
"Key": "product",
"Value": "governance"
}
]
},
"MasterAccountUid": 0,
"PayerAccountUid": 0,
"Progress": [
{
"Name": "ACS-BP_ACCOUNT_FACTORY_VPC",
"Status": "Running"
}
],
"RequestId": "768F908D-A66A-5A5D-816C-20C93CBBFEE3",
"Status": "Finished",
"UpdateTime": "2021-11-01T02:38:27Z"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter | The specified parameter %s is not valid. | The specified parameter %s is invalid. |
404 | InvalidUser.NotFound | The specified user does not exist. | The user does not exist. |
404 | InvalidBlueprint.NotFound | The specified blueprint does not exist. | The specified blueprint does not exist. |
404 | InvalidEnterpriseRealName.NotFound | The specified account has not passed enterprise real name verification. Please complete the verification for the account first. | The specified account has not passed enterprise real-name verification. Please complete the verification for the account first. |
500 | InternalError | A system error occurred. | A system error occurred. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-03-12 | The Error code has changed. The response structure of the API has changed | View Change Details |