为指定的多个云产品的多个云资源统一解绑标签。
接口说明
使用说明
解绑后,如果该标签没有绑定其他任何资源,系统会在24小时内自动将其删除。
本文将提供一个示例,在cn-hangzhou
地域,为VPC实例vpc-bp19dd90tkt6tz7wu****
解绑标签键为k1
的标签。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
tag:UntagResources | Write |
|
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 资源所属的地域ID。 | cn-hangzhou |
ResourceARN | array | 是 | 资源ARN(Aliyun Resource Name)。支持的资源类型和ARN示例,请参见支持标签API的资源类型。 N的取值范围:1~50。 例如:ResourceARN.1 = arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}。 说明ARN支持传递资源组、操作审计和资源管理的Service和ResourceType。 | |
string | 否 | 资源ARN(Aliyun Resource Name)。支持的资源类型和ARN示例,请参见支持标签API的资源类型。 N的取值范围:1~50。 例如:ResourceARN.1 = arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}。 说明ARN支持传递资源组、操作审计和资源管理的Service和ResourceType。 | arn:acs:vpc:cn-hangzhou:123456789****:vpc/vpc-bp19dd90tkt6tz7wu**** | |
TagKey | array | 是 | 标签键。 N的取值范围:1~10。 | |
string | 否 | 标签键。 N的取值范围:1~10。 | k1 |
关于公共请求参数的详情,请参见公共参数。
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "43D12436-B10F-4469-8136-FD1C5D2B2083",
"FailedResources": {
"FailedResource": [
{
"ResourceARN": "arn:acs:ecs:cn-hangzhou:123456789****:instance/i-xxxxxxxxxx1",
"Result": {
"Code": "InvalidResourceId.NotFound",
"Message": "The specified ResourceIds are not found in our records."
}
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter.ServiceCode | The ServiceCode parameter of ResourceIdARN is invalid. | ResourceIdARN的产品服务名参数非法。 |
403 | Duplicate.TagKey | The Tag.N.Key contains duplicate keys. | 参数包含重复标签键。 |
403 | InvalidParameter.Category | The specified Category is invalid. Valid values are Custom and System. | 标签类型非法,合法值为Custom,System。 |
403 | MissingParameter.Createby | You must specify Createby. | 操作者参数不可为空。 |
403 | MissingParameter.ResourceIds | You must specify ResourceIds. | 资源列表参数不可为空。 |
403 | NoPermission.Operator | The user is not authorized to operate on the specified resource. | 该用户没有权限操作。 |
403 | NoPermission.SystemTag | The user does not have permission to operate the system tag. | 该用户没有权限操作此系统标签。 |
403 | NoPermissionKey.Category | Some keys cannot be modified because the user does not have permission. | 某些key的标签类型没有操作权限。 |
403 | NoPermissionKey.Operator | You are not authorized to operate the tag key. | 该用户没有操作此标签键权限。 |
403 | NumberExceed.ResourceIds | The maximum number of ResourceIds is exceeded. | 资源列表参数数量超限。 |
403 | NumberExceed.Tags | The maximum number of Tags is exceeded. | 标签参数数量超限。 |
403 | QuotaExceed.TagsPerResource | The maximum number of tags for each resource is exceeded. | 每个资源上的标签数量有限制,目前有资源已经超限。 |
403 | Invalid.ResourceIdARN | The parameter ResourceIdARN is invalid. | ResourceIdARN参数非法。 |
403 | Missing.ServiceCode | You must specify ServiceCode. | 该账号没有对应的服务code。 |
403 | InvalidParameter.ResourceType | The ResourceType parameter is invalid. | 资源类型参数非法。 |
403 | InvalidParameter.TagKey | The Tag.N.Key parameter is invalid. | 标签键参数非法。 |
403 | InvalidParameter.TagValue | The Tag.N.Value parameter is invalid. | 标签值参数非法。 |
404 | Missing.TagKey | Tag.N.Value has been specified and you must specify Tag.N.Key. | 一对键值对,对应的TagValue缺失相同N的TagKey。 |
404 | MissingParameter.AliUid | You must specify AliUid. | 缺失用户UID参数。 |
404 | MissingParameter.Bid | You must specify Bid. | bid参数不可为空。 |
404 | MissingParameter.TagKey | You must specify TagKey. | 标签键参数不可为空。 |
访问错误中心查看更多错误码。