Get info about a Linode VLAN.
Field | Type | Required | Description |
---|---|---|---|
api_token |
str |
Required | The Linode account personal access token. It is necessary to run the module. It can be exposed by the environment variable LINODE_API_TOKEN instead. See details in Usage. |
- name: Get info about a VLAN by label
linode.cloud.vlan_info:
api_version: v4beta
label: example-vlan
Field | Type | Required | Description |
---|---|---|---|
id |
int |
Optional | The ID of the VLAN to resolve. (Conflicts With: label ) |
label |
str |
Optional | The label of the VLAN to resolve. (Conflicts With: id ) |
-
vlan
- The returned VLAN.- Sample Response:
{ "created": "2020-01-01T00:01:01", "label": "vlan-example", "linodes": [ 111, 222 ], "region": "ap-west" }
- See the Linode API response documentation for a list of returned fields
- Sample Response: