調用RegisterDelegatedAdministrator將資源目錄的成員設置為可信服務的委派管理員賬號。
接口說明
設置完成后,委派管理員賬號將獲得訪問資源目錄組織信息的授權,從而具有了對組織成員和結構的可見性。委派管理員賬號在指定可信服務中將代表企業管理賬號執行服務相關管理操作。 使用限制:
- 只有部分可信服務支持委派管理員功能。更多信息,請參見支持的可信服務。
- 只有資源目錄的企業管理賬號及其下被授權的 RAM 用戶和 RAM 角色才能調用該 API。
- 可信服務允許添加的委派管理員賬號數量由各可信服務定義。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
當前API暫無授權信息透出。
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AccountId | string | 是 | 資源目錄中的成員 ID。 | 181761095690**** |
ServicePrincipal | string | 是 | 可信服務的標識。 具體信息,請參見支持的可信服務中的 | cloudfw.aliyuncs.com |
返回參數
示例
正常返回示例
JSON
格式
{
"RequestId": "0A45FC8F-54D2-4A65-8338-25E5DEBDA304"
}
錯誤碼
HTTP status code | 錯誤碼 | 錯誤信息 |
---|---|---|
409 | InvalidParameter.ServicePrincipal | The specified ServicePrincipal is invalid. |
409 | AccountAlreadyRegistered | The specified account is already a delegated administrator for this service. |
409 | DelegatedAccountNumberExceeded | The maximum number of delegated administrators for the service principal is exceeded. |
409 | CannotRegisterMasterAsDelegatedAdministrator | You attempted to register the enterprise management account as a delegated administrator for the service. You can designate only a member account as a delegated administrator. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|
暫無變更歷史