Aruba CX icon

Aruba CX

Interact with Aruba CX Switch REST API

VLANs → Create

AI-generated

Summary

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 }

Discussion