Removes a tag from an instance. If the tag is not associated with another instance, the tag is deleted.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceType | string | Yes | The resource type. Set the value to INSTANCE. | INSTANCE |
ResourceId | array | Yes | The IDs of instances. | |
string | Yes | The IDs of the instances from which you want to remove tags. You can specify multiple instance IDs to remove tags from the instances. You can call the GetLindormInstanceList operation to query the instance IDs. | ld-bp17j28j2y7pm**** | |
TagKey | array | No | The list of keys of the tags that you want to remove. | |
string | No | The key of the tag that you want to remove. Note
You can specify multiple TagKeys to remove tags from multiple instances. For example, you can set the value of the first TagKey to the key of the tag you want to remove from the instance with a resource ID, and set the value of the second TagKey to the key of the tag you want to remove from the instance with another resource ID.
| test | |
All | boolean | No | Specifies whether to remove all tags from the instance. Valid values:
Note
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "8CACBBCE-7519-545C-8695-86D4F09CED7E"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | Lindorm.Errorcode.ParameterInvaild | The parameter is invalid. |
400 | Lindorm.Errorcode.InvalidParameter.TagKey | The Tag.N.Key parameter is invalid. |
400 | Lindorm.Errorcode.Tags.ExceedLimitation | The maximum number of Tags is exceeded. |
400 | Lindorm.Errorcode.Duplicate.TagKey | The Tag.N.Key contains duplicate keys. |
400 | Lindorm.Errorcode.InvalidTagKey.Malformed | The Tag.N.Key parameter is invalid. |
400 | Lindorm.Errorcode.ParameterInvaild.TagKeysOrDeleteAll | The TagKeys or DeleteAll parameter is invalid. |
400 | Lindorm.Errorcode.InvalidResourceId.NotFound | The specified ResourceIds are not found in our records. |
400 | Lindorm.Errorcode.NumberExceed.ResourceIds | The ResourceIds parameter's number is exceed. |
403 | Lindorm.Errorcode.OperationDenied | You are not authorized to operate on the specified resource. |
403 | Lindorm.Errorcode.ServiceLinkedRoleNoPermission | No permission to create service linked role. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|