DescribeDataCenterPortPrice

DescribeDataCenterPortPrice

1. 接口描述

本接口用于查询数据中心下可购买的端口类型及其对应的价格。

2. 请求参数

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

3. 响应结果

4. 代码示例

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

Request: {
    "dcId": "SIN1"
}

Response: {
    "requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
    "response": {
        "requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
        "portTypeSet": [{
            "portType":"1G",
            "dcId":"SIN1",
            "portDailyPrice":0.0,
            "portMonthlyPrice":0.0
        }, {
            "portType":"10G",
            "dcId":"SIN1",
            "portDailyPrice":0.0,
            "portMonthlyPrice":0.0
        }, , {
            "portType":"40G",
            "dcId":"SIN1",
            "portDailyPrice":0.0,
            "portMonthlyPrice":0.0
        }]
    }
}

5. 开发者工具

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

6. 错误码

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

最后更新于