Deletes instance labels from ARMS resources.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TagKey |
array |
No |
The list of tag keys to delete. You can specify up to 20 tag keys. If you leave this parameter empty, you can use the All parameter to delete all tags. |
|
|
string |
No |
The tag key. |
Key1 |
|
| ResourceId |
array |
Yes |
The PID or instance ID of the application. You can specify up to 50 IDs. |
|
|
string |
No |
The instance ID. |
c7c13c449eea64fe89870ac658d****** |
|
| ResourceType |
string |
Yes |
The type of the ARMS resource whose tags you want to modify. Valid values:
|
APPLICATION |
| All |
boolean |
No |
Specifies whether to delete all tags. This parameter takes effect only when TagKey.N is empty. Valid values:
|
false |
| Tags |
array<object> |
No |
The tag key-value pairs. This parameter is required when you do not specify the ResourceIds parameter. Description:
Tag keys and values are case-sensitive. If you specify multiple tags, multiple tags are created and bound to the specified resources at the same time. A tag key on a resource can correspond to only one tag value. If you add a tag with an existing tag key, the tag value is updated to the new value. A tag key cannot start with |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. This parameter is required and cannot be an empty string. The value can be up to 128 characters in length, and cannot start with |
TestTag |
| Value |
string |
No |
The tag value of the instance. If you specify this parameter, it can be an empty string. The value can be up to 128 characters in length, and cannot start with |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
FC183B5E-C9AD-5E9E-937F-******* |
| Data |
string |
Indicates whether the tags are deleted. |
success |
Examples
Success response
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. | The tag cannot be empty. |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.