NAT网关 NAT-查询公网NAT网关资源实例:请求示例

时间:2023-11-01 16:19:21

请求示例

  • 查询公网NAT网关资源实例,其中,操作标识为filter,进行分页查询,查询记录数为100条。

    POST  https://{VPC_endpoint}/v2.0/9ad601814ac94c80bf7bb9073ded66fc/nat_gateways/resource_instances/action{  "offset" : "100",  "limit" : "100",  "action" : "filter",  "matches" : [ {    "key" : "resource_name",    "value" : "nat_gateways"  } ],  "not_tags" : [ {    "key" : "key1",    "values" : [ "*value1", "value2" ]  } ],  "tags" : [ {    "key" : "key2",    "values" : [ "*value3", "value4" ]  } ],  "tags_any" : [ {    "key" : "key3",    "values" : [ "*value5", "value6" ]  } ],  "not_tags_any" : [ {    "key" : "key4",    "values" : [ "*value7", "value8" ]  } ]}
  • 查询公网NAT网关资源实例,其中,操作标识为count,按照条件将总条数返回。

    POST  https://{VPC_endpoint}/v2.0/9ad601814ac94c80bf7bb9073ded66fc/nat_gateways/resource_instances/action{  "action" : "count",  "matches" : [ {    "key" : "resource_name",    "value" : "nat_gateways"  } ],  "not_tags" : [ {    "key" : "key1",    "values" : [ "*value1", "value2" ]  } ],  "tags" : [ {    "key" : "key2",    "values" : [ "*value3", "value4" ]  } ],  "tags_any" : [ {    "key" : "key3",    "values" : [ "*value5", "value6" ]  } ],  "not_tags_any" : [ {    "key" : "key4",    "values" : [ "*value7", "value8" ]  } ]}
support.huaweicloud.com/api-natgateway/ListNatsByTags.html