DescribePortUsableVlan
DescribePortUsableVlan
1. API Description
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.
2. Input Parameters
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
dcId | No | String | Code of data center. To obtain code, you can call |
portId | No | String | Port ID. |
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. |
start | Integer | Start value of VLAN range. |
end | Integer | End value of VLAN range. |
inuseVlanList | Array of Integer | List of occupied VLANs. |
4. Code Example
Query available VLANs for a port.
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 |
---|---|---|
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. |
Last updated