欢迎登陆真网站,您的到来是我们的荣幸。 登陆 注册 忘记密码? ☆设为首页 △加入收藏
欢迎加入真幸福QQ群
电脑知识: 基础知识 网络技术 操作系统 办公软件 电脑维修 电脑安全 windows7 windows8 windows10 服务器教程 平板电脑 视频播放教程 网络应用 互联网 工具软件 浏览器教程 QQ技巧 输入法教程 影视制作 YY教程 wps教程 word教程 Excel教程 PowerPoint
云南西双版纳特产小花糯玉米真空包装


阿里云如何删除端口转发规则
阿里云如何修改端口转发规则
tp link光纤无线路由器怎么设置
阿里云如何查询端口转发规则列表
阿里云如何添加端口转发规则
阿里云地图默认城市
win7旗舰版电脑蓝屏,提示0x0000005A怎么办?
阿里云如何删除共享带宽包
阿里云如何修改共享带宽包-减少公网IP
阿里旺旺如何停用群
阿里云如何绑定标签
【 来源:网络 】【 点击:2 】 【 发布时间:2017_03_03 08:59:59 】

  绑定标签

  描述

  Tag 容许被创建在 ECS 的实例、磁盘、快照、镜像、安全组上。

  每个资源最多可以绑定 10 个 Tag。

  如果要绑定 Tag 的 Key 在指定的资源上已经存在,则覆盖 Value。

  Tag.n.Key 与 Tag.n.Value 必须一一匹配。

  请求参数

名称 类型 是否必须 描述
Action String 操作接口名,AddTags。
RegionId String 资源所属地域。
ResourceId String 要创建 Tag 的资源 ID。
ResourceType String 资源类型:
  • image
  • instance
  • snapshot
  • disk
  • securitygroup
所有值均为小写。
Tag.n.Key String 标签 key,n 从 1 开始,最大为 5。
最多支持 64 个字符
不支持 aliyun 开头
不支持 http:// 和 https:// 开头
不允许为空字符串。
Tag.n.Value String 标签 value,n 从 1 开始,最大为 5。
最多支持 128 个字符
不支持 aliyun 开头
不支持 http:// 和 https:// 开头
允许为空字符串。

  返回参数

名称 类型 描述
RequestId String 请求 ID

  错误码

错误代码 描述 Http状态码 语义
MissingParameter The input parameter "ResourceId" that is mandatory for processing this request is not supplied. 400 ResourceId 参数未指定
InvalidResourceId.NotFound The specified ResourceId is not found in our records 404 指定的 ResourceId 不存在
MissingParameter The input parameter "RegionId" that is mandatory for processing this request is not supplied. 400 RegionId 参数未指定
InvalidRegionId.NotFound The RegionId provided does not exist in our records. 404 指定的 RegionId 不存在
MissingParameter The input parameter "ResourceType" that is mandatory for processing this request is not supplied. 400 ResourceType 参数未指定
InvalidResourceType.NotFound The ResourceType provided does not exist in our records. 404 指定的 ResourceType 不存在
MissingParameter.TagKey The input parameter "Tag.n.Key" that is mandatory for processing this request is not supplied. 400 Tag.n.Key 参数未指定
InvalidTagKey.Malformed The specified Tag.n.Key is not valid 400 指定的 Tag.n.Key 不合法
MissingParameter.TagValue The input parameter "Tag.n.Value" that is mandatory for processing this request is not supplied. 400 Tag.n.Value 参数未指定
InvalidTagValue.Malformed The specified Tag.n.Value is not valid 400 指定的 Tag.n.Value 不合法
OperationDenied.QuotaExceed The quota of tags on resource is beyond permitted range 400 资源上的用户 Tag 已经超过 10 个
InvalidTag.Mismatch The specified Tag.n.Key and Tag.n.Value are not match 400 Tag.n.Key 和 Tag.n.Value 没有一一对应
InvalidTagCount The specified tags are beyond the permitted range 400 指定的 Tag 数超过了 5 个
InvalidResourceId.NotSupported The specified ResourceId does not support tagging 403 指定的资源 ID 不支持打 Tag

  示例

  请求示例

  https://ecs.aliyuncs.com/?Action=AddTags

  &ResourceId=s-946ntx4wr

  &ResourceType=snapshot

  &RegionId=cn-shenzhen

  &Tag.1.Key=test

  &Tag.1.Value=api

  &<公共请求参数>

  返回示例

阿里云如何绑定标签 三联

 

本网站由川南居提供技术支持,fkzxf版权所有 浙ICP备12031891号
淳安分站 淳安分站