Queries delegated administrator accounts.

This topic provides an example on how to call the API operation to query all delegated administrator accounts in a resource directory. The response shows that two delegated administrator accounts for Cloud Firewall exist in the resource directory.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListDelegatedAdministrators

The operation that you want to perform. Set the value to ListDelegatedAdministrators.

ServicePrincipal String No cloudfw.aliyuncs.com

The identifier of the trusted service.

For more information, see the Trusted service identifier column in Supported trusted services.

PageNumber Long No 1

The number of the page to return.

Pages start from page 1. Default value: 1.

PageSize Long No 10

The number of entries to return on each page.

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

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String 009C3A02-7D4B-416C-9CE7-548C91508F1E

The ID of the request.

TotalCount Long 2

The total number of entries returned.

PageSize Long 10

The number of entries returned per page.

PageNumber Long 1

The page number of the returned page.

Accounts Array of Account

The information of the delegated administrator accounts.

Account
AccountId String 138660628348****

The ID of the member.

DisplayName String abc

The display name of the member.

JoinMethod String created

The way in which the member joins the resource directory. Valid values:

  • invited: The member is invited to join the resource directory.
  • created: The member is directly created in the resource directory.
ServicePrincipal String cloudfw.aliyuncs.com

The identifier of the trusted service.

DelegationEnabledTime String 1616652684164

The time when the member was specified as a delegated administrator account.

Examples

Sample requests

https://resourcemanager.aliyuncs.com/?Action=ListDelegatedAdministrators
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8" ?>
<ListDelegatedAdministratorsResponse>
	<RequestId>009C3A02-7D4B-416C-9CE7-548C91508F1E</RequestId>
	<TotalCount>2</TotalCount>
	<PageSize>10</PageSize>
	<PageNumber>1</PageNumber>
	<Accounts>
		<Account>
			<DelegationEnabledTime>1616652684164</DelegationEnabledTime>
			<JoinMethod>created</JoinMethod>
			<AccountId>138660628348****</AccountId>
			<ServicePrincipal>cloudfw.aliyuncs.com</ServicePrincipal>
			<DisplayName>abc</DisplayName>
		</Account>
		<Account>
			<DelegationEnabledTime>1616489836069</DelegationEnabledTime>
			<JoinMethod>invited</JoinMethod>
			<AccountId>177242285274****</AccountId>
			<ServicePrincipal>cloudfw.aliyuncs.com</ServicePrincipal>
			<DisplayName>test</DisplayName>
		</Account>
	</Accounts>
</ListDelegatedAdministratorsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "009C3A02-7D4B-416C-9CE7-548C91508F1E",
  "TotalCount" : 2,
  "PageSize" : 10,
  "PageNumber" : 1,
  "Accounts" : {
    "Account" : [ {
      "DelegationEnabledTime" : "1616652684164",
      "JoinMethod" : "created",
      "AccountId" : "138660628348****",
      "ServicePrincipal" : "cloudfw.aliyuncs.com",
      "DisplayName" : "abc"
    }, {
      "DelegationEnabledTime" : "1616489836069",
      "JoinMethod" : "invited",
      "AccountId" : "177242285274****",
      "ServicePrincipal" : "cloudfw.aliyuncs.com",
      "DisplayName" : "test"
    } ]
  }
}

Error codes

For a list of error codes, visit the API Error Center.