DescribeCidrBlockIps

1. API Description

This API is used to query the IPs of a CIDR block.

2. Input Parameters

The following request parameter list only provides API request parameters.

3. Output Parameters

4. Code Example

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

Request:
{
  "cidrBlockId": "aCidrBlockId"
}

Response:
{
  "requestId": "T91F2EF61-762D-4401-A18B-3D626386C4CC",
  "response": {
    "requestId": "T91F2EF61-762D-4401-A18B-3D626386C4CC",
    "cidrBlockIps": [
      {
        "cidrBlockId": "aCidrBlockId",
        "cidrBlockType": "IPV6",
        "ip": "2602:ffe4:1:11::1",
        "instanceId": "bindedInstanceId",
        "status": "BINDED"
      }
    ]
  }
}

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 Codes

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

Last updated