Adding a Tag to a Central Network
Function
This API is used to add a tag to a central network.
URI
POST /v3/{domain_id}/gcn/central-networks/{central_network_id}/tag
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
central_network_id |
Yes |
String |
Central network ID. |
|
domain_id |
Yes |
String |
Account ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
No |
String |
User token. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
tags |
Yes |
Array of Tag objects |
Included tags. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
key |
Yes |
String |
Tag key. The key can contain a maximum of 128 Unicode characters, including letters, digits, hyphens (-), and underscores (_). |
|
value |
No |
String |
Tag value. The value can contain a maximum of 255 Unicode characters, including letters, digits, hyphens (-), underscores (_), and periods (.). |
Response Parameters
Status code: 204
|
Parameter |
Type |
Description |
|---|---|---|
|
x-request-id |
String |
- |
Example Requests
Adding a tag to a central network
POST /v3/{domain_id}/gcn/central-networks/{central_network_id}/tag
{
"tags" : [ {
"key" : "key",
"value" : "value"
} ]
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
The tag has been added to the central network. |
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.