create_device_vap
Creates a wireless VAP (SSID) in a managed device DB with security and VLAN settings; assign it to a FortiAP profile to broadcast the SSID.
Instructions
Create a wireless VAP (SSID) in a device's device DB.
The VAP becomes broadcastable once added to a FortiAP profile (assign_vap_to_wtp_profile).
Args:
device: Managed device name
name: VAP object name
ssid: SSID to broadcast
security: Security mode, a FortiOS wireless-controller vap
security enum value; default "wpa2-only-personal". Supported here:
the personal modes ("wpa-personal", "wpa-only-personal",
"wpa2-only-personal"), the SAE modes ("wpa3-sae",
"wpa3-sae-transition"), "owe" and "open". Enterprise and WEP modes
are refused, since neither a radius/user-group nor a WEP key is set
by this tool.
passphrase: Credential, 8-63 characters, required by the personal and
SAE modes. It is sent as passphrase for the personal modes and
as sae-password for SAE; transition mode carries both, since it
runs a WPA2 leg alongside SAE.
vlanid: VLAN id to map wireless clients into
vdom: VDOM the VAP lives in (default "root")
Returns: Creation result with any echoed passphrase stripped
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| ssid | Yes | ||
| vdom | No | root | |
| device | Yes | ||
| vlanid | No | ||
| security | No | wpa2-only-personal | |
| passphrase | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||