meraki_mx_vlan
Manage reviewed legacy Meraki settings on the controller
Collection: cisco.meraki
Full Name: cisco.meraki.meraki_mx_vlan
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage reviewed legacy Meraki settings on the controller
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| auth_key | str | yes | ||
| host | str | api.meraki.com | ||
| use_proxy | bool | false | ||
| use_https | bool | true | ||
| validate_certs | bool | true | ||
| output_format | str | snakecase | ||
| output_level | str | normal | ||
| timeout | int | 30 | ||
| org_name | str | |||
| org_id | str | |||
| rate_limit_retry_time | int | 165 | ||
| internal_error_retry_time | int | 60 | ||
| state | str | query | ||
| net_name | str | |||
| net_id | str | |||
| vlan_id | int | |||
| name | str | |||
| subnet | str | |||
| appliance_ip | str | |||
| fixed_ip_assignments | list | |||
| reserved_ip_range | list | |||
| vpn_nat_subnet | str | |||
| dns_nameservers | str | |||
| dhcp_handling | str | |||
| dhcp_relay_server_ips | list | |||
| dhcp_lease_time | str | |||
| dhcp_boot_options_enabled | bool | |||
| dhcp_boot_next_server | str | |||
| dhcp_boot_filename | str | |||
| dhcp_options | list |
Example
yaml
- name: Query VLANs (authored native example)
cisco.meraki.meraki_mx_vlan:
auth_key: example-api-key
org_id: example-org
net_id: example-network
state: query
- name: Configure a VLAN (authored native example)
cisco.meraki.meraki_mx_vlan:
auth_key: example-api-key
org_id: example-org
net_id: example-network
state: present
vlan_id: 10
name: office-vlan
subnet: 192.0.2.0/24
appliance_ip: 192.0.2.1
dhcp_handling: server
dns_nameservers: upstream_dns
- name: Remove a VLAN (authored native example)
cisco.meraki.meraki_mx_vlan:
auth_key: example-api-key
org_id: example-org
net_id: example-network
state: absent
vlan_id: 10