Querying VPN Tags in a Specified Project

Function

This API is used to query all tags of a VPN in a specified project.

URI

GET /v2.0/{project_id}/ipsec-site-connections/tags

In the URI, project_id indicates the project ID.

Request

None

Response

Table 1 describes the response parameter.

Table 1 Response parameter

Parameter

Type

Description

tags

List<tag>

Specifies the list of tags.

Table 2 Description of field tag

Name

Type

Description

key

String

Specifies the tag key.

The key

  • Cannot be left blank.
  • Can contain a maximum of 36 characters.
  • Can contain only the following character types:
    • Uppercase letters
    • Lowercase letters
    • Digits
    • Hyphens (-) and underscores (_)

values

List<String>

Specifies the list of tag values.

The value

  • Can contain a maximum of 43 characters.
  • Can contain only the following character types:
    • Uppercase letters
    • Lowercase letters
    • Digits
    • Hyphens (-) and underscores (_)

Example

Returned Values

For details, see Common Returned Values.