Skip to content

Latest commit

 

History

History
64 lines (36 loc) · 1.46 KB

metal_vlan.md

File metadata and controls

64 lines (36 loc) · 1.46 KB

metal_vlan

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.

Examples

- 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"

Parameters

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

Return Values

Sample Response for metal_vlan

{
  "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
}