Queries the trusted services for which a member is specified as a delegated administrator account.

Usage notes

This topic provides an example on how to call the API operation to query the trusted services for which the member 138660628348**** is specified as a delegated administrator account. The response shows that the member is specified as a delegated administrator account of Cloud Firewall.

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 ListDelegatedServicesForAccount

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

AccountId String Yes 138660628348****

The ID of the member.

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

Response parameters

Parameter Type Example Description
RequestId String D9C03B94-9396-4794-A74B-13DC437556A6

The ID of the request.

DelegatedServices Array of DelegatedService

The trusted services.

Note If the value of this parameter is empty, the member is not specified as a delegated administrator account.
DelegatedService
DelegationEnabledTime String 1616652684164

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

ServicePrincipal String cloudfw.aliyuncs.com

The identification of the trusted service.

Status String ENABLED

The status of the trusted service. Valid values:

  • ENABLED: enabled
  • DISABLED: disabled

Examples

Sample requests

https://resourcemanager.aliyuncs.com/?Action=ListDelegatedServicesForAccount
&AccountId=138660628348****
&<Common request parameters>

Sample success responses

XML format

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

<ListDelegatedServicesForAccountResponse>
    <RequestId>D9C03B94-9396-4794-A74B-13DC437556A6</RequestId>
    <DelegatedServices>
        <DelegatedService>
            <Status>ENABLED</Status>
            <DelegationEnabledTime>1616652684164</DelegationEnabledTime>
            <ServicePrincipal>cloudfw.aliyuncs.com</ServicePrincipal>
        </DelegatedService>
    </DelegatedServices>
</ListDelegatedServicesForAccountResponse>

JSON format

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

{
  "RequestId" : "D9C03B94-9396-4794-A74B-13DC437556A6",
  "DelegatedServices" : {
    "DelegatedService" : [ {
      "Status" : "ENABLED",
      "DelegationEnabledTime" : "1616652684164",
      "ServicePrincipal" : "cloudfw.aliyuncs.com"
    } ]
  }
}

Error codes

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