DescribeDatacenters
DescribeDatacenters
1. API Description
This API is used to query data centers available.
2. Input Parameters
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
dcIds | No | Array of String | Codes of data centers, consisting of IATA airport codes and numbers. |
isPortAvailable | No | Boolean | Filter data centers in which whether port creation is supported or not.
By default, data centers in which port creation is not supported are filtered. |
3. Output Parameters
Parameter Name | Type | Description |
---|---|---|
requestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
dcSet | Array of DatacenterInfo | The list of data centers available. |
4. Code Example
Query data center information by the dcId
SIN1
.
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