資來源目錄中的管理帳號或委派管理員帳號可以修改帳號組的名稱和描述,也可以添加或移除成員。
介面說明
本文將提供一個樣本,在帳號組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> |
否 |
帳號組內的成員列表。 說明
更新帳號組時,該參數可以為空白,為空白表示不更新成員列表。如果您需要更新成員列表,則 |
|
|
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. | 帳號組ID不存在或無許可權使用該帳號組。 |
| 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. | 服務不可用。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。