1
0
forked from docs/doc-exports
doc-exports/docs/vpn/api-ref/vpn_api_1021.html
Hongwei, King Wang 32c06a10a2 vpn_api
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: Hongwei, King Wang <king.wanghongwei@huawei.com>
Co-committed-by: Hongwei, King Wang <king.wanghongwei@huawei.com>
2024-08-15 14:18:28 +00:00

11 KiB

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

  • Example request
    GET /v2.0/{project_id}/ipsec-site-connections/tags
  • Example response
    {
        "tags": [
            {
                "key": "key1",
                "values": [
                    "value1",
                    "value2"
                ]
            },
            {
                "key": "key2",
                "values": [
                    "value1",
                    "value2"
                ]
            }
        ]
    }

Returned Values

For details, see Common Returned Values.