Querying Tags of a Public NAT Gateway
Function
This API is used to query tags of a Public NAT gateway.
TMS uses this API to query all tags of a NAT gateway.
URI
GET /v2.0/{project_id}/nat_gateways/{nat_gateway_id}/tags
|
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 the response parameter.
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
key |
Yes |
String |
Specifies the tag key. It contains a maximum of 36 Unicode characters. It cannot be left blank, and cannot contain ASCII characters (0–31) or the following special characters: *<>\= |
|
value |
Yes |
String |
Specifies the tag value. The value can contain a maximum of 43 Unicode characters and can be an empty string. It cannot contain ASCII characters (0–31) or the following special characters: *<>\= |
Examples
- Example request
GET https://{VPC_endpoint}/v2.0/9ad601814ac94c80bf7bb9073ded66fc/nat_gateways/fe1a4cf0-27fe-4b97-a9b1-2c67c127f0e0/tags
- Example response
{ "tags": [ { "key": "key1", "value": "value1" }, { "key": "key2", "value": "value2" } ] }
Status Code
See Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.