All Products
Search
Document Center

:GetEnrolledAccount

Last Updated:Jun 21, 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 management account of the resource directory to which the account belongs.

19534534552*****
FolderIdstring

The ID of the parent folder.

fd-5ESoku****
PayerAccountUidlong

The ID of the settlement account.

19534534552*****
Inputsobject

The input parameters that are used when the account was registered.

AccountNamePrefixstring

The prefix of the account name.

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 settlement account.

19534534552*****
AccountUidlong

The account ID.

12868156179*****
BaselineItemsobject []

The 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 baseline item is skipped. Valid values:

  • false
  • true
false
Progressobject []

The progress of the applying the baseline to the account.

Namestring

The name of the baseline item.

ACS-BP_ACCOUNT_FACTORY_VPC
Statusstring

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

  • Pending: The baseline is pending to be applied to the account.
  • Running: The baseline is being applied to the account.
  • Finished: : The baseline is applied to the account.
  • Failed: : The baseline fails to be applied to the account.
Running
CreateTimestring

The time when 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 status of the account. Valid values:

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

The error message.

Note This parameter is returned if the value of Status is Failed or ScheduleFailed.
Codestring

The error code.

CompliancePackExists
Messagestring

The error message.

The compliance pack already exists.
Recommendstring

The recommended solution.

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

The request ID.

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

Indicates whether the initialization is complete. Valid values:

  • false
  • true
true
BaselineIdstring

The ID of the baseline that is implemented.

afb-bp1adadfadsf***
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.

{\"Notifications\":[{\"GroupKey\":\"account_msg\",\"Contacts\":[{\"Name\":\"aa\"}],\"PmsgStatus\":1,\"EmailStatus\":1,\"SmsStatus\":1}]}
Skipboolean

Indicates whether baseline item is skipped. Valid values:

  • false
  • true
false

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***",
  "BaselineItems": [
    {
      "Name": "ACS-BP_ACCOUNT_FACTORY_VPC",
      "Version": "1.0",
      "Config": "{\\\"Notifications\\\":[{\\\"GroupKey\\\":\\\"account_msg\\\",\\\"Contacts\\\":[{\\\"Name\\\":\\\"aa\\\"}],\\\"PmsgStatus\\\":1,\\\"EmailStatus\\\":1,\\\"SmsStatus\\\":1}]}",
      "Skip": false
    }
  ]
}

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.