全部產品
Search
文件中心

Cloud Config:UpdateAggregator - 更新帳號組

更新時間:Oct 15, 2025

資來源目錄中的管理帳號或委派管理員帳號可以修改帳號組的名稱和描述,也可以添加或移除成員。

介面說明

本文將提供一個樣本,在帳號組ca-dacf86d8314e00eb****中添加一個成員,成員 ID 為173808452267****,成員名稱為Tony,成員歸屬為ResourceDirectory

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

config:UpdateAggregator

update

*Aggregator

acs:config:*:{#accountId}:aggregator/{#AggregatorId}

請求參數

名稱

類型

必填

描述

樣本值

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>

帳號組內的成員列表。

說明

更新帳號組時,該參數可以為空白,為空白表示不更新成員列表。如果您需要更新成員列表,則AccountIdAccountType必須同時設定。

object

AccountId

integer

成員 ID。

關於如何擷取成員 ID,請參見 ListAccounts

說明

如果您需要更新成員列表,則AccountIdAccountType必須同時設定。

173808452267****

AccountName

string

成員名稱。

關於如何擷取成員名稱,請參見 ListAccounts

說明

如果您需要更新成員列表,則AccountIdAccountType必須同時設定。

Tony

AccountType

string

成員歸屬。僅支援 ResourceDirectory(資來源目錄)。

說明

如果您需要更新成員列表,則AccountIdAccountType必須同時設定。

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 個字元,不能以aliyunacs:開頭,不能包含http://或者https://

key-1

Value

string

資源的標籤值。N 的取值範圍:1~20。一旦傳入該值,可以為空白字串。最多支援 128 個字元,不能以acs:開頭,不能包含http://或者https://

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. 服務不可用。

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

變更歷史

更多資訊,參考變更詳情