NAT网关 NAT-创建公网NAT网关:示例

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

示例

  • 请求示例
    POST https://{Endpoint}/v2.0/nat_gateways{    "nat_gateway": {        "name": "nat_001",        "description": "my nat gateway 01",        "router_id": "d84f345c-80a1-4fa2-a39c-d0d397c3f09a",        "internal_network_id": "89d66639-aacb-4929-969d-07080b0f9fd9",        "spec": "1"    }}
  • 响应示例
    {    "nat_gateway": {          "router_id": "d84f345c-80a1-4fa2-a39c-d0d397c3f09a",          "status": "PENDING_CREATE",          "description": "my nat gateway 01",          "admin_state_up": true,          "tenant_id": "27e25061336f4af590faeabeb7fcd9a3",          "created_at": "2017-11-18 07:34:32.203044",          "spec": "1",          "internal_network_id": "89d66639-aacb-4929-969d-07080b0f9fd9",          "id": "a78fb3eb-1654-4710-8742-3fc49d5f04f8",         "name": "nat_001"     }}
support.huaweicloud.com/api-natgateway/nat_api_0061.html