Creating a User Tag
Function
This API is used to create user tags.
URI
POST /v1/{project_id}/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
project_id |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. Obtain a user token by calling IAM's "Obtaining a User Token" API. X-Subject-Token in the response header is the desired user token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
description |
No |
String |
description |
name |
Yes |
String |
name |
type |
Yes |
String |
Explanation Tag type, which can be user tag or user group tag. Constraints N/A Value range The enumerated values are:
Default value N/A |
default_value_type |
Yes |
String |
Default tag value type. The default value is NULL.
|
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
{Custom key} |
Map<String,String> |
Example Request
Create a user tag.
POST https://{endpoint}/v1/{project_id}/tags { "name": "Test 20241127", "description": "Added for test", "type" : "user", "default_value_type" : "ENUM", "default_value": ["Test"] }
Example Response
None
Status Codes
Status Code |
Description |
---|---|
200 |
The user tag is successfully created. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot