DescribePorts
1. API Description
This API (DescribePorts) is used to get Ports
2. Input Parameters
The following request parameter list only provides API request parameters.
pageSize
No
Integer
Number of items per page. Value range: 1-1000.
Value range: [1, 1000]
pageNum
No
Integer
Page number, starting from 1.
Value range: [1, +)
Default value: 1
portIds
No
Array of String
List of port IDs. Maximum length: 100.
portName
No
String
Port name, up to 255 characters. Supports fuzzy matching, case-insensitive.
cityName
No
String
City name, up to 64 characters. Supports fuzzy matching, case-insensitive.
resourceGroupId
No
String
Resource group ID.
If not specified, ports in all resource groups visible to the user are returned.
tagKeys
No
Array of String
Search by tag keys.
Up to 20 tag keys.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request.
RequestId is required for locating a problem.
totalCount
Integer
Total number of records matching the criteria.
4. Code Example
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.
HTTP Status Code
Error Code
Description
Last updated