All Products
Search
Document Center

Managed Service for Prometheus:UntagResources

Last Updated:Sep 19, 2024

Removes tags from ARMS resources.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

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