Removes tags from ARMS resources.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
arms:UntagResources | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TagKey | array | No | The tag keys. You can specify a maximum of 20 tag keys. | |
string | No | The tag key. | Key1 | |
ResourceId | array | Yes | The resource IDs. You can specify a maximum of 50 resource IDs. | |
string | Yes | The instance ID. | c7c13c449eea64fe89870ac658de864b4 | |
ResourceType | string | Yes | The type of the ARMS resources for which you want to modify tags. Valid values:
| PROMETHEUS |
All | boolean | No | Specifies whether to delete all tags. This parameter takes effect only when the TagKey.N parameter is not specified. Valid values:
Default value: false. | False |
Tags | array<object> | No | The list of tags. | |
object | No | |||
Key | string | No | The key of the tag. | TestKey |
Value | string | No | The value of the tag. | TestValue |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "FC183B5E-C9AD-5E9E-937F-*******",
"Data": "success"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermissionKeyOperator | user is no permission for operating param tagKey. | - |
400 | DuplicateTagKey | Param tagKey is duplicate. | - |
400 | NoPermissionUSER | user no permission | - |
400 | ResourceIdAndTagIsNull | resourceId or tag param must have one | - |
400 | TagISNull | param tag must be not null. | - |
400 | ScopeDisAgreement | Param scope is different from before. | - |
400 | ParameterNextTokenIllegal | param nextToken is invalid. | - |
400 | TagNumOUT | the number of tag is out . | - |
400 | ResourceTypeIllegal | The ResourceType parameter is invalid. | The specified ResourceType parameter is invalid. |
400 | ResourceIdIsNull | param resourceId must be not null. | - |
400 | InvalidParameterTagKey | The specified TagKey is invalid. | The specified TagKey parameter is invalid. |
400 | InvalidParameterTagValue | The specified TagValue is invalid. | The specified TagValue parameter is invalid. |
400 | TagKeyIsIllegal | The specified TagKey is invalid. | The specified TagKey parameter is invalid. |
400 | TagValueIsIllegal | The specified TagValue is invalid. | The specified TagValue parameter is invalid. |
400 | ResourceIDOUT | The specified resourceId number is out of range. | The number of resource IDs exceeds the upper limit. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-06-25 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-05-12 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-03-10 | The Error code has changed | View Change Details |
2022-03-25 | The Error code has changed | View Change Details |