getVlanIds


SoftLayer_Resource_Metadata::getVlanIds

A list of VLAN ids for a network component

Description

The getVlanIds method returns a list of VLAN IDs for the network component matching the provided MAC address associated with the resource. For each return, the native VLAN will appear first, followed by any trunked VLANs associated with the network component.

Parameters

Name Type Description
macAddress string The MAC address to obtain the VLAN ids for

Required Headers

Optional Headers

  • None

Return Values

  • int[]

Error Handling

  • Thrown when a network component is not found for the provided MAC address
  • Thrown when VLANs are not found for the network component
  • Thrown when the MAC address provided is invalid
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Resource_Metadata/{SoftLayer_Resource_MetadataID}/getVlanIds'