Creates a tag option.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicecatalog:CreateTagOption |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Key |
string |
Yes |
The key of the tag option. The key can be up to 128 characters in length. It cannot start with |
k1 |
| Value |
string |
Yes |
The value of the tag option. The value can be up to 128 characters in length. It cannot start with |
v1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| TagOptionDetail |
object |
An array that consists of the details of the tag option. |
|
| Active |
boolean |
Indicates whether the tag option is enabled. Valid values:
|
true |
| TagOptionId |
string |
The ID of the tag option. |
tag-bp1r3mxq3t**** |
| Key |
string |
The key of the tag option. The key must be 1 to 128 characters in length. It cannot start with |
k1 |
| Value |
string |
The value of the tag option. The value must be 1 to 128 characters in length. It cannot start with |
v1 |
| Owner |
string |
The ID of the Alibaba Cloud account to which the tag option belongs. |
133413081827**** |
| RequestId |
string |
The ID of the request. |
A48A5F12-6098-54A1-A389-6834AF27**** |
Examples
Success response
JSON format
{
"TagOptionDetail": {
"Active": true,
"TagOptionId": "tag-bp1r3mxq3t****",
"Key": "k1",
"Value": "v1",
"Owner": "133413081827****\n"
},
"RequestId": "A48A5F12-6098-54A1-A389-6834AF27****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | A system error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.