DescribePortUsableVlan
DescribePortUsableVlan
Last updated
DescribePortUsableVlan
Last updated
This API is used to query available VLANs for the port.
Note
At least one of the following parameters needs to be passed in: Port or data center.
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Parameter Name | Type | Description |
---|---|---|
Query available VLANs for a port.
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 |
---|---|---|
dcId
No
String
Code of data center.
To obtain code, you can call DescribeDataCenters
, and find dcId
in the response.
portId
No
String
Port ID.
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
start
Integer
Start value of VLAN range.
end
Integer
End value of VLAN range.
inuseVlanList
Array of Integer
List of occupied VLANs.
7112
SELF_SERVICE_PORT_VLAN_PORT_AND_DC_NEED_AT_LEAST_ONE
At least one port or one data center needs to be passed in.