All Products
Search
Document Center

:GetEnrolledAccount

Last Updated:Apr 29, 2024

Queries the details about an account that is enrolled in the account factory.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
governance:GetEnrolledAccountRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AccountUidlongYes

The account ID.

19534534552****
RegionIdstringNo

The region ID.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The information about the account.

RequestIdstring

The request ID.

768F908D-A66A-5A5D-816C-20C93CBBFEE3
AccountUidlong

The account ID.

12868156179*****
DisplayNamestring

The display name of the account.

test-account
MasterAccountUidlong

The ID of the master account to which the account belongs.

19534534552*****
FolderIdstring

The ID of the parent folder.

fd-5ESoku****
PayerAccountUidlong

The ID of the billing account.

19534534552*****
Inputsobject

The input parameters that are used when you enrolled the account.

AccountNamePrefixstring

The prefix for the account name of the member.

test-account
DisplayNamestring

The display name of the account.

test-account
FolderIdstring

The ID of the parent folder.

fd-5ESoku****
PayerAccountUidlong

The ID of the billing account.

19534534552*****
AccountUidlong

The account ID.

12868156179*****
BaselineItemsobject []

An array that contains baseline items.

Namestring

The name of the baseline item.

ACS-BP_ACCOUNT_FACTORY_VPC
Versionstring

The version of the baseline item.

1.0
Configstring

The configurations of the baseline item.

{\"Contacts\":[{\"Name\":\"governance\",\"Email\":\"wibud****@gmail.com\",\"Mobile\":\"1234\",\"Position\":\"Other\"}]}
Skipboolean

Indicates whether to skip the baseline item.

false
Progressobject []

The progress of applying the account baseline to the account.

Namestring

The name of the baseline item.

ACS-BP_ACCOUNT_FACTORY_VPC
Statusstring

The status of applying the account baseline to the account. Valid values:

  • Pending: The account is waiting to be created.
  • Running: The account baseline is being applied to the account.
  • Finished: The account baseline is applied to the account.
  • Failed: The account baseline failed to be applied to the account.
Running
CreateTimestring

The time at which the account was created.

2021-11-01T02:38:27Z
UpdateTimestring

The time when the information about the account was updated.

2021-11-01T02:38:27Z
Statusstring

The creation status of the account. Valid values:

  • Pending: The account is waiting to be created.
  • Running: The account is being created.
  • Finished: The account is created.
  • Failed: The account failed to be created.
  • Scheduling: The account is being scheduled.
  • ScheduleFailed: The account failed to be scheduled.
Finished
ErrorInfoobject

The error message returned.

Codestring

The error code returned.

CompliancePackExists
Messagestring

The error message returned.

The compliance pack already exists.
Recommendstring

The suggestions that are used to resolve the issue.

https://next.api.aliyun.com/troubleshoot?q=CompliancePackExists\\u0026product=Config
RequestIdstring

The request ID.

6D5EAA86-2D41-5CB7-8DA7-B60093ACAA4E
Initializedboolean

Indicates whether the account was initialized.

true
BaselineIdstring

The ID of the baseline that was applied to the account.

afb-bp1adadfadsf***

Examples

Sample success responses

JSONformat

{
  "RequestId": "768F908D-A66A-5A5D-816C-20C93CBBFEE3",
  "AccountUid": 0,
  "DisplayName": "test-account",
  "MasterAccountUid": 0,
  "FolderId": "fd-5ESoku****",
  "PayerAccountUid": 0,
  "Inputs": {
    "AccountNamePrefix": "test-account",
    "DisplayName": "test-account",
    "FolderId": "fd-5ESoku****",
    "PayerAccountUid": 0,
    "AccountUid": 0,
    "BaselineItems": [
      {
        "Name": "ACS-BP_ACCOUNT_FACTORY_VPC",
        "Version": "1.0",
        "Config": "{\\\"Contacts\\\":[{\\\"Name\\\":\\\"governance\\\",\\\"Email\\\":\\\"wibud****@gmail.com\\\",\\\"Mobile\\\":\\\"1234\\\",\\\"Position\\\":\\\"Other\\\"}]}",
        "Skip": false
      }
    ]
  },
  "Progress": [
    {
      "Name": "ACS-BP_ACCOUNT_FACTORY_VPC",
      "Status": "Running"
    }
  ],
  "CreateTime": "2021-11-01T02:38:27Z",
  "UpdateTime": "2021-11-01T02:38:27Z",
  "Status": "Finished",
  "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"
  },
  "Initialized": true,
  "BaselineId": "afb-bp1adadfadsf***"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter %s is not valid.The specified parameter %s is invalid.
404InvalidUser.NotFoundThe specified user does not exist.The user does not exist.
404InvalidBlueprint.NotFoundThe specified blueprint does not exist.The specified blueprint does not exist.
404InvalidEnterpriseRealName.NotFoundThe 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.
500InternalErrorA system error occurred.A system error occurred.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-12The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 404
Output ParametersThe response structure of the API has changed.