Manage the VLAN in Equinix Metal. You can use id or vxlan to lookup the resource. If you want to create new resource, you must provide metro.
- name: Create new VLAN
hosts: localhost
tasks:
- equinix.cloud.metal_vlan:
description: "This is my new VLAN."
metro: "se"
vxlan: 1234
project_id: "778h50f7-75b6-4271-bc64-632b80f87de2"
Field | Type | Required | Description |
---|---|---|---|
id |
str |
Optional | UUID of vlan |
project_id |
str |
Optional | ID of parent project |
description |
str |
Optional | Description of the VLAN |
metro |
str |
Optional | Metro in which to create the VLAN |
vxlan |
int |
Optional | VLAN ID, must be unique in metro |
{
"changed": false,
"description": "This is my new VLAN.",
"id": "7624f0f7-75b6-4271-bc64-632b80f87de2",
"metro": "se",
"project_id": "778h50f7-75b6-4271-bc64-632b80f87de2",
"vxlan": 1234
}