資源目錄中的管理帳號或委派管理員帳號可以修改帳號組的名稱和描述,也可以新增或移除成員。
介面說明
本文將提供一個範例,在帳號組ca-dacf86d8314e00eb****中新增一個成員,成員 ID 為173808452267****,成員名稱為Tony,成員歸屬為ResourceDirectory。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:UpdateAggregator |
update |
*Aggregator
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| AggregatorId |
string |
是 |
帳號組 ID。 關於如何獲取帳號組 ID,請參見 ListAggregators 。 |
ca-dacf86d8314e00eb**** |
| AggregatorName |
string |
否 |
帳號組名稱。 關於如何獲取帳號組名稱,請參見 ListAggregators 。 |
Test_Group |
| FolderId |
string |
否 |
FolderId,支援半形逗號分隔的多值輸入。 |
fd-brHdgv****,fd-brHdgk**** |
| Description |
string |
否 |
帳號組描述。 關於如何獲取帳號組描述,請參見 ListAggregators 。 |
測試組 |
| AggregatorAccounts |
array<object> |
否 |
帳號組內的成員清單,具體傳參要求隨帳號組類型(AggregatorType)不同而不同:
|
|
|
object |
否 |
帳號組成員資訊。 |
||
| AccountId |
integer |
否 |
成員 ID。 關於如何獲取成員 ID,請參見 ListAccounts 。 說明
如果您需要更新成員清單,則 |
173808452267**** |
| AccountName |
string |
否 |
成員名稱。 關於如何獲取成員名稱,請參見 ListAccounts 。 說明
如果您需要更新成員清單,則 |
Tony |
| AccountType |
string |
否 |
成員歸屬。僅支援 ResourceDirectory(資源目錄)。 說明
如果您需要更新成員清單,則 |
ResourceDirectory |
| ClientToken |
string |
否 |
保證請求冪等性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元,且不能超過 64 個字元。 |
1594295238-f9361358-5843-4294-8d30-b5183fac**** |
Tag
deprecated
|
array<object> |
否 |
資源的標籤。該入參已棄用,請忽略,傳入不會生效。 最多支援綁定 20 個標籤。 |
|
|
object |
否 |
資源的標籤。 最多支援綁定 20 個標籤。 |
||
| Key |
string |
否 |
執行個體的標籤鍵。N 的取值範圍:1~20。一旦輸入該值,則不允許為空字串。 最多支援 64 個字元,不能以 |
key-1 |
| Value |
string |
否 |
資源的標籤值。N 的取值範圍:1~20。一旦傳入該值,可以為空字串。最多支援 128 個字元,不能以 |
value-1 |
關於公用請求參數的詳情,請參見公用參數。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| RequestId |
string |
請求 ID。 |
8195B664-9565-4685-89AC-8B5F04B44B92 |
| AggregatorId |
string |
帳號組 ID。 |
ca-dacf86d8314e00eb**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "8195B664-9565-4685-89AC-8B5F04B44B92",
"AggregatorId": "ca-dacf86d8314e00eb****"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Invalid.AggregatorAccounts.Empty | You must specify AggregatorAccounts. | |
| 400 | AggregatorAccountExceedMaxCount | The maximum number of aggregator account is exceeded. | |
| 400 | AggregatorAccountListDuplicated | The aggregator account list is duplicated. | |
| 400 | AggregatorAccountListItemDuplicated | The aggregator account list item is duplicated. | |
| 400 | AggregatorAlreadyPending | The aggregator has a pending operation and cannot be updated. | |
| 400 | AggregatorNameDuplicated | The aggregator name is duplicated. | |
| 400 | DefaultAggregatorDeleteNotSupport | The default aggregator cannot be deleted. | |
| 400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | |
| 400 | Invalid.AccountType.Value | The specified AccountType is invalid. | |
| 400 | Invalid.AggregatorAccounts.Value | The specified AggregatorAccounts is invalid. | |
| 403 | AggregatorMemberNoPermission | The aggregator member is not authorized to perform the operation. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。