All Products
Search
Document Center

Cloud Governance Center:ListEnrolledAccounts

Last Updated:Dec 26, 2024

Queries a list of accounts that are enrolled in the account factory.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:ListEnrolledAccountslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NextTokenstringNo

The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results.

You do not need to specify this parameter for the first request.

AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****
MaxResultsintegerNo

The maximum number of entries per page.

Valid values: 1 to 100. Default value: 10.

10
RegionIdstringNo

The region ID.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The created accounts.

EnrolledAccountsarray<object>

The enrolled accounts.

EnrolledAccountsobject

The account.

AccountUidlong

The account ID.

19534534552*****
BaselineIdstring

The ID of the baseline that is implemented.

afb-bp1durvn3lgqe28v****
CreateTimestring

The creation time.

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

The display name of the account.

TestAccount
FolderIdstring

The ID of the parent folder.

fd-5ESoku****
PayerAccountUidlong

The ID of the settlement account.

13161210500*****
Statusstring

The creation status. 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.
Running
UpdateTimestring

The update time.

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

The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results.

AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****
RequestIdstring

The request ID.

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

Examples

Sample success responses

JSONformat

{
  "EnrolledAccounts": [
    {
      "AccountUid": 0,
      "BaselineId": "afb-bp1durvn3lgqe28v****",
      "CreateTime": "2021-11-01T02:38:27Z",
      "DisplayName": "TestAccount",
      "FolderId": "fd-5ESoku****",
      "PayerAccountUid": 0,
      "Status": "Running",
      "UpdateTime": "2021-11-01T02:38:27Z"
    }
  ],
  "NextToken": "AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****",
  "RequestId": "768F908D-A66A-5A5D-816C-20C93CBBFEE3"
}

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