All Products
Search
Document Center

Service Catalog:UpdateTagOption

Last Updated:Mar 03, 2024

Updates the 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-bp1u6mdf3d****
ValuestringNo

The value of the tag option.

The value can be up to 128 characters in length. It cannot start with acs: and cannot contain http:// or https://.

v1
ActivebooleanNo

Specifies whether to enable the tag option. Valid values:

  • true (default)
  • false
true

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 (default)
  • false
true
TagOptionIdstring

The ID of the tag option.

tag-bp1u6mdf3d****
Keystring

The key of the tag option.

The key must be 1 to 128 characters in length. It cannot contain http:// or https:// and cannot start with acs: or aliyun.

k1
Valuestring

The value of the tag option.

The value must be 1 to 128 characters in length. It cannot contain http:// or https:// and cannot start with acs: or aliyun.

v1
Ownerstring

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

133413081827****
RequestIdstring

The ID of the request.

0FEEF92D-4052-5202-87D0-3D8EC16F****

Examples

Sample success responses

JSONformat

{
  "TagOptionDetail": {
    "Active": true,
    "TagOptionId": "tag-bp1u6mdf3d****",
    "Key": "k1",
    "Value": "v1",
    "Owner": "133413081827****"
  },
  "RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F****"
}

Error codes

HTTP status codeError codeError message
500InternalErrorA system error occurred.

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