InquiryPriceCreateNatGateway

1. 接口描述

本接口用于查询创建NAT网关的价格。

2. 请求参数

以下请求参数列表仅列出了接口中需要的请求参数

参数名称
必选
类型
描述

regionId

String

区域节点ID。

3. 响应结果

参数名称
类型
描述

requestId

String

唯一请求 ID。

每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

natGatewayPrice

NAT网关的价格。

cuPrice

NAT网关CU的价格。

4. 代码示例

POST /api/v2/zec HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: InquiryPriceCreateNatGateway
<Common Request Params>

Request:
{
  "regionId" : "sample"
}

Response:
{
  "requestId": "TC1748D3E-452D-4F74-8485-7AA73718E453",
  "response": {
    "requestId": "TC1748D3E-452D-4F74-8485-7AA73718E453",
    "natGatewayPrice": {
        "unitPrice": null,
        "originalPrice": null,
        "discountPrice": null,
        "discount": 100,
        "stepPrices": [
          {
            "unitPrice": 1,
            "stepStart": 0,
            "discountUnitPrice": 1,
            "stepEnd": null
          }
        ],
        "excessUnitPrice": null,
        "excessAmountUnit": null,
        "discountUnitPrice": null,
        "chargeUnit": "HOUR",
        "amountUnit": null,
        "excessDiscountUnitPrice": null
      },
      "cuPrice": {
        "unitPrice": null,
        "originalPrice": null,
        "discountPrice": null,
        "discount": 100,
        "stepPrices": [
          {
            "unitPrice": 1,
            "stepStart": 0,
            "discountUnitPrice": 1,
            "stepEnd": null
          }
        ],
        "excessUnitPrice": null,
        "excessAmountUnit": null,
        "discountUnitPrice": null,
        "chargeUnit": "HOUR",
        "amountUnit": null,
        "excessDiscountUnitPrice": null
      }
  }
}

5. 开发者工具

Zenlayer Cloud API 2.0 提供了配套的开发工具集(SDK),未来会陆续支持更多开发语言,方便快速接入和使用Zenlayer的产品和服务。

6. 错误码

下面包含业务逻辑中遇到的错误码,其他错误码见公共错误码

最后更新于