Help Center/ Cloud Connect/ API Reference/ API/ Central Networks/ Adding a Tag to a Central Network
Updated on 2025-07-29 GMT+08:00

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

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

central_network_id

Yes

String

Central network ID.

domain_id

Yes

String

Account ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

No

String

User token.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

tags

Yes

Array of Tag objects

Included tags.

Table 4 Tag

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

Table 5 Response header parameters

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.