调用ListDelegatedServicesForAccount查询指定成员被设置为哪些可信服务的委派管理员账号。

使用说明

本文将提供一个示例,查询成员138660628348****被设置为哪些可信服务的委派管理员账号。返回结果显示,该成员被设置为云防火墙的委派管理员账号。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ListDelegatedServicesForAccount

要执行的操作。取值:ListDelegatedServicesForAccount。

AccountId String 138660628348****

成员ID。

关于公共请求参数的详情,请参见公共参数

返回数据

名称 类型 示例值 描述
RequestId String D9C03B94-9396-4794-A74B-13DC437556A6

请求ID。

DelegatedServices Array of DelegatedService

可信服务列表。

说明 如果返回为空,则表示查询的成员不是委派管理员账号。
DelegatedService
DelegationEnabledTime String 1616652684164

设置为委派管理员账号的时间戳。

ServicePrincipal String cloudfw.aliyuncs.com

可信服务的标识。

Status String ENABLED

可信服务的启用状态。取值:

  • ENABLED:已启用。
  • DISABLED:未启用。

示例

请求示例

https://resourcemanager.aliyuncs.com/?Action=ListDelegatedServicesForAccount
&AccountId=138660628348****
&<公共请求参数>

正常返回示例

XML格式

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格式

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"
    } ]
  }
}

错误码

访问错误中心查看更多错误码。