Actions74
- ACLs Actions
- CLI Actions
- Configuration Actions
- DHCP Relay Actions
- Firmware Actions
- Interfaces Actions
- LLDP Neighbors Actions
- Logs Actions
- Mirror Sessions Actions
- Mirror Endpoints Actions
- Packet Captures Actions
- Port Access Cached Clients Actions
- Port Access Roles Actions
- SNMP Communities Actions
- System Actions
- Users Actions
- VLANs Actions
- VRFs Actions
VLANs → Create
AI-generatedSummary
Creates a VLAN on an Aruba CX switch via its REST API.
Inputs
- hostOverride — Optional hostname or IP address to override the credential's host (useful for looping over multiple switches).
- domain (required) — Domain of the Aruba CX API; only the value 'System' is available.
- vlanId (required) — VLAN ID to create (integer between 1 and 4094).
- vlanName — Optional name for the VLAN.
- additionalFields — Collection of optional VLAN attributes. When omitted, defaults are applied for each sub‑field as described below. When provided, any subset may be set; missing sub‑fields fall back to their defaults or empty values as defined in the node description.
Output shape
array of objects
The node returns the response from the Aruba CX API as an array containing a single JSON object representing the created VLAN (or an error object if continueOnFail is enabled).
Examples
Example 1: Create a VLAN with ID 10 named 'Guest' and set it as a voice VLAN.
hostOverride: '', domain: 'System', vlanId: 10, vlanName: 'Guest', additionalFields: { admin: 'up', type: 'static', voice: true }
Example 2: Create VLAN 200 without a name, using default admin state and type, but adding a description.
hostOverride: '192.168.1.5', domain: 'System', vlanId: 200, vlanName: '', additionalFields: { vlanDescription: 'Data VLAN for floor 2', admin: 'up', type: 'static', voice: false }