All Products
Search
Document Center

Application Real-Time Monitoring Service:UntagResources

Last Updated:Nov 05, 2024

Removes tags from ARMS resources.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
arms:UntagResourcesupdate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
TagKeyarrayNo

The tag keys. You can specify a maximum of 20 tag keys.

stringNo

The tag key.

Key1
ResourceIdarrayYes

The resource IDs. You can specify a maximum of 50 resource IDs.

stringYes

The instance ID.

c7c13c449eea64fe89870ac658de864b4
ResourceTypestringYes

The type of the ARMS resources for which you want to modify tags. Valid values:

  • WEB: Browser Monitoring
  • APPLICATION: Application Monitoring
  • PROMETHEUS: Managed Service for Prometheus
  • SYNTHETICTASK: Synthetic Monitoring
  • ALERTRULE: Application Monitoring alert rule
  • PROMETHEUSALERTRULE: Managed Service for Prometheus alert rule
  • XTRACEAPP: Managed Service for OpenTelemetry
PROMETHEUS
AllbooleanNo

Specifies whether to delete all tags. This parameter takes effect only when the TagKey.N parameter is not specified. Valid values:

  • true
  • false

Default value: false.

False
Tagsarray<object>No

The list of tags.

objectNo
KeystringNo

The key of the tag.

TestKey
ValuestringNo

The value of the tag.

TestValue

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Id of the request

FC183B5E-C9AD-5E9E-937F-*******
Datastring

The returned struct.

success

Examples

Sample success responses

JSONformat

{
  "RequestId": "FC183B5E-C9AD-5E9E-937F-*******",
  "Data": "success"
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionKeyOperatoruser is no permission for operating param tagKey.-
400DuplicateTagKeyParam tagKey is duplicate.-
400NoPermissionUSERuser no permission-
400ResourceIdAndTagIsNullresourceId or tag param must have one-
400TagISNullparam tag must be not null.-
400ScopeDisAgreementParam scope is different from before.-
400ParameterNextTokenIllegalparam nextToken is invalid.-
400TagNumOUTthe number of tag is out .-
400ResourceTypeIllegalThe ResourceType parameter is invalid.The specified ResourceType parameter is invalid.
400ResourceIdIsNullparam resourceId must be not null.-
400InvalidParameterTagKeyThe specified TagKey is invalid.The specified TagKey parameter is invalid.
400InvalidParameterTagValueThe specified TagValue is invalid.The specified TagValue parameter is invalid.
400TagKeyIsIllegalThe specified TagKey is invalid.The specified TagKey parameter is invalid.
400TagValueIsIllegalThe specified TagValue is invalid.The specified TagValue parameter is invalid.
400ResourceIDOUTThe 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 timeSummary of changesOperation
2023-06-25The Error code has changed. The request parameters of the API has changedView Change Details
2023-05-12The Error code has changed. The response structure of the API has changedView Change Details
2023-03-10The Error code has changedView Change Details
2022-03-25The Error code has changedView Change Details