Querying NAT Gateway Tags

Function

This API is used to query tags of a specified NAT gateway.

TMS uses this API to query all tags of a specified NAT gateway.

URI

GET /v2.0/{project_id}/nat_gateways/{nat_gateway_id}/tags

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

nat_gateway_id

Yes

String

Specifies the NAT gateway ID.

Request

None

Response

Table 2 lists response parameters.

Table 2 Response parameters

Parameter

Mandatory

Type

Description

tags

Yes

Array

Specifies tags.

Table 3 Parameter description of field tags

Parameter

Mandatory

Type

Description

key

Yes

String

Specifies the tag key. It contains a maximum of 36 Unicode characters. It cannot be left empty or contain ASCII characters (0-31) and the following special characters: *<>\=

value

Yes

String

Specifies the key value. The value can contain a maximum of 43 Unicode characters and can be an empty string. It cannot contain non-printable ASCII characters (0–31) or the following special characters: *<>\=

Examples

Status Code

See Status Codes.