調(diào)用ListDelegatedServicesForAccount查詢指定成員被設(shè)置為哪些可信服務(wù)的委派管理員賬號。

使用說明

本文將提供一個示例,查詢成員138660628348****被設(shè)置為哪些可信服務(wù)的委派管理員賬號。返回結(jié)果顯示,該成員被設(shè)置為云防火墻的委派管理員賬號。

調(diào)試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

請求參數(shù)

名稱 類型 是否必選 示例值 描述
Action String ListDelegatedServicesForAccount

要執(zhí)行的操作。取值:ListDelegatedServicesForAccount。

AccountId String 138660628348****

成員ID。

關(guān)于公共請求參數(shù)的詳情,請參見公共參數(shù)

返回數(shù)據(jù)

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

請求ID。

DelegatedServices Array of DelegatedService

可信服務(wù)列表。

說明 如果返回為空,則表示查詢的成員不是委派管理員賬號。
DelegatedService
DelegationEnabledTime String 1616652684164

設(shè)置為委派管理員賬號的時間戳。

ServicePrincipal String cloudfw.aliyuncs.com

可信服務(wù)的標(biāo)識。

Status String ENABLED

可信服務(wù)的啟用狀態(tài)。取值:

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

示例

請求示例

https://resourcemanager.aliyuncs.com/?Action=ListDelegatedServicesForAccount
&AccountId=138660628348****
&<公共請求參數(shù)>

正常返回示例

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

錯誤碼

訪問錯誤中心查看更多錯誤碼。