InquiryCreatePrivateConnectPrice

1. API Description

This API is used to query the price of creating a Layer 2 private connect.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter NameRequiredTypeDescription

endpointA

Yes

One access point (A) of the private connect.

endpointZ

Yes

The other access point (Z) of the private connect.

bandwidthMbps

No

Integer

Maximum bandwidth cap of the private connect. Default value: 1

Unit: Mbps

3. Output Parameters

Parameter NameTypeDescription

requestId

String

The unique request ID, which is returned for each request. RequestId is required for locating a problem.

privateConnectPrice

Price of a Layer 2 private connect.

4. Code Example

Query the price of a Layer 2 private connect with ports in the connection. The bandwidth is 1 Mbps by default.

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

Request:
{
    "endpointA": {
        "portId": "your-port-Id"
    }
    "endpointZ": {
        "portId": "your-port-Id-2"
    }
}

Response:
{   
  "requestId": "TDB181167-C39F-4C3E-8E88-B8FDE755FDC0",
  "response": {
    "requestId":"TDB181167-C39F-4C3E-8E88-B8FDE755FDC0",
    "privateConnectPrice":        {
            "unitPrice":1.65,
            "originalPrice":null,
            "discountPrice":null,
            "discount":100,
            "stepPrices":null,
            "discountUnitPrice":1.65,
            "chargeUnit":"DAY"
        }
  }
}

5. Developer Resources

Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.

6. Error Code

No error codes related to the API business logic. For other error codes, see Common Error Codes.​

Last updated