日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

TagResources - 給資源打標簽

給資源打標簽。當前支持實例 Instance 資源。

接口說明

單個實例最多可綁定 20 條標簽。綁定標簽前,阿里云會校驗資源已有標簽數量,超過限制值會返回報錯信息。

調試

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

授權信息

下表是API對應的授權信息,可以在RAM權限策略語句的Action元素中使用,用來給RAM用戶或RAM角色授予調用此API的權限。具體說明如下:

  • 操作:是指具體的權限點。
  • 訪問級別:是指每個操作的訪問級別,取值為寫入(Write)、讀?。≧ead)或列出(List)。
  • 資源類型:是指操作中支持授權的資源類型。具體說明如下:
    • 對于必選的資源類型,用背景高亮的方式表示。
    • 對于不支持資源級授權的操作,用全部資源表示。
  • 條件關鍵字:是指云產品自身定義的條件關鍵字。
  • 關聯操作:是指成功執行操作所需要的其他權限。操作者必須同時具備關聯操作的權限,操作才能成功。
操作訪問級別資源類型條件關鍵字關聯操作
cr:TagResources
  • Instance
    acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}

請求參數

名稱類型必填描述示例值
ResourceTypestring

資源類型。當前支持實例 Instance 資源。

Instance
ResourceIdarray

資源 ID。最多支持添加 20 個資源。

string

資源 ID。

cri-1lg7vtctpqdn****
RegionIdstring

地域 ID。

cn-hangzhou
Tagarray<object>

標簽列表。

object

標簽列表。

Keystring

資源的標簽鍵。最多支持輸入 20 個標簽鍵。如需傳入該值,則不能輸入空字符串。

一個標簽鍵最多支持 128 個字符,不能以 aliyun 和 acs:開頭,不能包含 http://或者 https://。

test-key
Valuestring

資源的標簽值。最多支持輸入 20 個標簽值。如需傳入該值,可以輸入空字符串。

最多支持 128 個字符,不能以 aliyun 和 acs:開頭,不能包含 http://或者 https://。

test-val

返回參數

名稱類型描述示例值
object

Schema of Response

RequestIdstring

請求 ID

E9A586D0-3977-5C28-A44D-55D3A9CD53CC

示例

正常返回示例

JSON格式

{
  "RequestId": "E9A586D0-3977-5C28-A44D-55D3A9CD53CC"
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400SystemErrorA system error occurred while processing your request系統異常。
400InvalidParameter.ResourceIdThe ResourceId parameter is invalid.-
400InvalidResourceId.NotFoundThe specified ResourceIds are not found in our records.-
400NumberExceed.ResourceIdsThe maximum number of ResourceIds is exceeded.-
400InvalidParameter.RegionIdThe RegionId parameter is invalid.-
400InvalidParameter.ResourceTypeThe ResourceType parameter is invalid.-
400MissingParameter.ResourceIdsYou must specify ResourceId.N.-
400MissingParameter.ResourceTypeYou must specify ResourceType.-
400MissingParameter.TagsYou must specify Tags.-
400MissingParameter.TagKeyYou must specify Tag.N.Key.-
400MissingParameter.TagValueYou must specify Tag.N.Value.-
400InvalidParameter.TagKeyThe Tag.N.Key parameter is invalid.-
400InvalidParameter.TagValueThe Tag.N.Value parameter is invalid.-
400NumberExceed.TagsThe maximum number of Tags is exceeded.-
400QuotaExceed.TagsPerResourceThe maximum number of tags for each resource is exceeded.-
400Duplicate.TagKeyThe Tag.N.Key contains duplicate keys.-
403NoPermissionThe operator is not permission for this operate-
500InvalidOperation.ConcurrentModificationThe resource is modified concurrently.-

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

變更歷史

變更時間變更內容概要操作
2024-04-01OpenAPI 錯誤碼發生變更查看變更詳情