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

TagResources - 為云資源創(chuàng)建并綁定標(biāo)簽

更新時(shí)間:

為指定的多個(gè)云產(chǎn)品的多個(gè)云資源統(tǒng)一創(chuàng)建并綁定標(biāo)簽。

接口說(shuō)明

標(biāo)簽是云資源的標(biāo)識(shí),可以幫助您從不同維度對(duì)具有相同特征的云資源進(jìn)行分類(lèi)、搜索和聚合,讓資源管理變得更加輕松。更多信息,請(qǐng)參見(jiàn)標(biāo)簽概述

支持標(biāo)簽的云服務(wù),請(qǐng)參見(jiàn)支持標(biāo)簽的云服務(wù)。

調(diào)試

您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。

授權(quán)信息

下表是API對(duì)應(yīng)的授權(quán)信息,可以在RAM權(quán)限策略語(yǔ)句的Action元素中使用,用來(lái)給RAM用戶(hù)或RAM角色授予調(diào)用此API的權(quán)限。具體說(shuō)明如下:

  • 操作:是指具體的權(quán)限點(diǎn)。
  • 訪(fǎng)問(wèn)級(jí)別:是指每個(gè)操作的訪(fǎng)問(wèn)級(jí)別,取值為寫(xiě)入(Write)、讀?。≧ead)或列出(List)。
  • 資源類(lèi)型:是指操作中支持授權(quán)的資源類(lèi)型。具體說(shuō)明如下:
    • 對(duì)于必選的資源類(lèi)型,用背景高亮的方式表示。
    • 對(duì)于不支持資源級(jí)授權(quán)的操作,用全部資源表示。
  • 條件關(guān)鍵字:是指云產(chǎn)品自身定義的條件關(guān)鍵字。
  • 關(guān)聯(lián)操作:是指成功執(zhí)行操作所需要的其他權(quán)限。操作者必須同時(shí)具備關(guān)聯(lián)操作的權(quán)限,操作才能成功。
操作訪(fǎng)問(wèn)級(jí)別資源類(lèi)型條件關(guān)鍵字關(guān)聯(lián)操作
tag:TagResourcesWrite
  • 全部資源
    acs:oss:oss-{#regionId}:{#accountId}:{#BucketName}
    無(wú)
  • *:TagResources
  • vod:TagVodResources
  • dcdn:TagDcdnResources
  • ecs:AddTags
  • rds:AddTagsToResource
  • slb:AddTags
  • oss:PutBucketTagging
  • live:TagLiveResources

請(qǐng)求參數(shù)

名稱(chēng)類(lèi)型必填描述示例值
RegionIdstring

地域 ID。取值:

cn-hangzhou
Tagsstring

標(biāo)簽鍵和標(biāo)簽值。鍵值對(duì)取值范圍:1~10。

如果指定多個(gè)標(biāo)簽,則會(huì)為指定資源同時(shí)創(chuàng)建并綁定該多個(gè)標(biāo)簽。

約束如下:

  • 標(biāo)簽鍵長(zhǎng)度范圍:1~128 個(gè)字符。
  • 標(biāo)簽值長(zhǎng)度范圍:1~128 個(gè)字符。
  • 區(qū)分大小寫(xiě)。
  • 同一個(gè)資源上的同一個(gè)標(biāo)簽鍵只能對(duì)應(yīng)一個(gè)標(biāo)簽值。如果您嘗試添加已有標(biāo)簽鍵,則對(duì)應(yīng)的標(biāo)簽值會(huì)更新為新值。
{"k1":"v1","k2":"v2"}
ResourceARNarray

資源 ARN(Aliyun Resource Name)。

string

資源 ARN(Aliyun Resource Name)。

N 的取值范圍:1~50。

資源 ARN 的格式:arn:acs:${ProductCode}:${Region}:${Account}:${ResourceType}/${ResourceId}。各字段含義如下:

  • ProductCode:云服務(wù) code。從 ListSupportResourceTypes 返回參數(shù)中獲取。
  • Region:資源所屬的地域 ID。支持使用星號(hào)(*)表示當(dāng)前地域。
  • Account:資源所屬的阿里云賬號(hào)(主賬號(hào))ID。支持使用星號(hào)(*)表示當(dāng)前登錄的阿里云賬號(hào)(主賬號(hào))。
  • ResourceType:資源類(lèi)型。從 ListSupportResourceTypes 返回參數(shù)中獲取。
  • ResourceId:資源 ID。
說(shuō)明 ResourceARN 支持傳遞資源組、操作審計(jì)和資源管理的ProductCodeResourceType。
arn:acs:vpc:cn-hangzhou:123456789****:vpc/vpc-bp19dd90tkt6tz7wu****

關(guān)于公共請(qǐng)求參數(shù)的詳情,請(qǐng)參見(jiàn)公共參數(shù)。

返回參數(shù)

名稱(chēng)類(lèi)型描述示例值
object

返回參數(shù)。

RequestIdstring

請(qǐng)求 ID。

72086426-9F8C-4A60-852B-864048FD1199
FailedResourcesarray<object>

失敗資源信息。

說(shuō)明
  • 創(chuàng)建并綁定標(biāo)簽成功時(shí),返回的FailedResources為空。
  • 創(chuàng)建并綁定標(biāo)簽失敗或部分失敗時(shí),返回的FailedResources會(huì)顯示失敗資源的詳細(xì)信息。
  • object

    失敗資源信息。

    ResourceARNstring

    失敗資源 ARN。

    arn:acs:vpc:cn-hangzhou:123456789****:vpc/vpc-bp19dd90tkt6tz7wu****
    Resultobject

    錯(cuò)誤結(jié)果。

    Codestring

    錯(cuò)誤碼。

    InvalidResourceId.NotFound
    Messagestring

    錯(cuò)誤信息。

    The specified ResourceIds are not found in our records.

    示例

    正常返回示例

    JSON格式

    {
      "RequestId": "72086426-9F8C-4A60-852B-864048FD1199",
      "FailedResources": {
        "FailedResource": [
          {
            "ResourceARN": "arn:acs:vpc:cn-hangzhou:123456789****:vpc/vpc-bp19dd90tkt6tz7wu****",
            "Result": {
              "Code": "InvalidResourceId.NotFound",
              "Message": "The specified ResourceIds are not found in our records."
            }
          }
        ]
      }
    }

    錯(cuò)誤碼

    HTTP status code錯(cuò)誤碼錯(cuò)誤信息描述
    400InvalidResourceARN.RegionThe Region specified in the ResourceARN parameter does not match the RegionId parameter, specifically: %s.ResourceARN中的Region與參數(shù)RegionId不匹配,它們分別是:%s
    400InvalidResourceARN.AccountThe Account specified in the ResourceARN parameter does not match the actual account, specifically: %s.ResourceARN中的Account與實(shí)際用戶(hù)不吻合,分別是:%s
    400InvalidResourceARN.FormatErrorThe format of parameter ResourceARN: %s is not valid, for the correct format, you can refer to the Recommend.ResourceARN的格式不符合規(guī)范,正確的格式請(qǐng)參考錯(cuò)誤診斷。
    400InvalidParameter.ResourceTypeThe parameter resource type: %s in ResourceARN is not valid or not support.在ResourceARN中的ResourceType:%s 不合法或不被支持。
    400InvalidParameter.ServiceCodeThe parameter service code: %s in ResourceARN is not valid or not support.ResourceARN中的ServiceCode:%s 不合法或未被支持。
    400InvalidParameter.TagKeyThe TagKey parameter is invalid. The following TagKeys are invalid: %s.參數(shù)中存在不合法的標(biāo)簽鍵,不合法的標(biāo)簽鍵如下:%s
    400InvalidParameter.TagValueThe TagValue parameter is invalid. The following TagValues are invalid: %s.參數(shù)中包含不合法的標(biāo)簽值,不合法的標(biāo)簽值如下:%s
    400InvalidParameter.TagsThe Tags parameter cannot be empty, and JSON parsing should adhere to the format of a Map.參數(shù)Tags不能為空,JSON解析需符合Map的格式,比如 {"key":"value"}
    403Duplicate.TagKeyThe Tag.N.Key contains duplicate keys.參數(shù)包含重復(fù)標(biāo)簽鍵。
    403InvalidParameter.CategoryThe specified Category is invalid. Valid values are Custom and System.標(biāo)簽類(lèi)型非法,合法值為Custom,System。
    403MissingParameter.CreatebyYou must specify Createby.操作者參數(shù)不可為空。
    403MissingParameter.ResourceIdsYou must specify ResourceIds.資源列表參數(shù)不可為空。
    403NoPermission.OperatorThe user is not authorized to operate on the specified resource.該用戶(hù)沒(méi)有權(quán)限操作。
    403NoPermissionKey.CategorySome keys cannot be modified because the user does not have permission.某些key的標(biāo)簽類(lèi)型沒(méi)有操作權(quán)限。
    403NoPermissionKey.OperatorYou are not authorized to operate the tag key.該用戶(hù)沒(méi)有操作此標(biāo)簽鍵權(quán)限。
    403NumberExceed.ResourceIdsThe maximum number of ResourceIds is exceeded.資源列表參數(shù)數(shù)量超限。
    403NumberExceed.TagsThe maximum number of Tags is exceeded.標(biāo)簽參數(shù)數(shù)量超限。
    403QuotaExceed.TagsPerResourceThe maximum number of tags for each resource is exceeded.每個(gè)資源上的標(biāo)簽數(shù)量有限制,目前有資源已經(jīng)超限。
    404Missing.TagKeyTag.N.Value has been specified and you must specify Tag.N.Key.一對(duì)鍵值對(duì),對(duì)應(yīng)的TagValue缺失相同N的TagKey。
    404MissingParameter.AliUidYou must specify AliUid.缺失用戶(hù)UID參數(shù)。
    404MissingParameter.BidYou must specify Bid.bid參數(shù)不可為空。
    404MissingParameter.TagKeyYou must specify TagKey.標(biāo)簽鍵參數(shù)不可為空。

    訪(fǎng)問(wèn)錯(cuò)誤中心查看更多錯(cuò)誤碼。

    變更歷史

    變更時(shí)間變更內(nèi)容概要操作
    2024-02-27OpenAPI 錯(cuò)誤碼發(fā)生變更查看變更詳情