All Products
Search
Document Center

Service Catalog:GetTagOption

Last Updated:Mar 03, 2024

Queries the details of a tag option.

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
TagOptionIdstringYes

The ID of the tag option.

tag-bp1r3mxq3t****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

TagOptionDetailobject

The details of the tag option.

Activeboolean

Indicates whether the tag option is enabled. Valid values:

  • true
  • false
true
TagOptionIdstring

The ID of the tag option.

tag-bp15qmwz3r****
Keystring

The key of the tag option.

k1
Valuestring

The value of the tag option.

v1
Ownerstring

The ID of the Alibaba Cloud account to which the tag option belongs.

133413081827****
RequestIdstring

The ID of the request.

C1509725-055D-5C7B-9420-8B737DBD****

Examples

Sample success responses

JSONformat

{
  "TagOptionDetail": {
    "Active": true,
    "TagOptionId": "tag-bp15qmwz3r****",
    "Key": "k1",
    "Value": "v1",
    "Owner": "133413081827****"
  },
  "RequestId": "C1509725-055D-5C7B-9420-8B737DBD****"
}

Error codes

HTTP status codeError codeError message
500InternalErrorA system error occurred.

For a list of error codes, visit the Service error codes.