DescribePorts
DescribePorts
1. API Description
This API is used to query port list.
2. Input Parameters
The following request parameter list only provides API request parameters.
portIds
No
Array of String
Port ID list.
Up to 100 characters in length are allowed.
dcId
No
String
Code of data center.
To obtain code, you can call DescribeDataCenters
, and find dcId
in the response.
portName
No
String
Port name.
Up to 255 characters in length are allowed with fuzzy search supported and and not case-sensitive.
portRemarks
No
String
Note of port.
Up to 255 characters in length are allowed with fuzzy search supported and and not case-sensitive.
cityName
No
String
City name.
Up to 64 characters in length are allowed with fuzzy search supported and and not case-sensitive.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
totalCount
Integer
Number of ports meeting the filtering conditions.
4. Code Example
Query port list.
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
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
7105
SELF_SERVICE_PORT_NOT_FOUND
Port not found.
Last updated