DescribePorts
DescribePorts
Last updated
DescribePorts
Last updated
This API is used to query port list.
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Parameter Name | Type | Description |
---|---|---|
Query port list.
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
HTTP Status Code | Error Code | Description |
---|---|---|
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.
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.
dataSet
Array of PortInfo
Information on ports.
7105
SELF_SERVICE_PORT_NOT_FOUND
Port not found.