create_device_wtp
Register a managed FortiAP in a device's device DB by serial number and WTP profile, so the AP mapping exists before install and profile-only wireless setups survive install_device_settings.
Instructions
Register a managed FortiAP in a device's device DB.
This is the wireless-controller.wtp table: the mapping from a physical AP's serial number to the profile it runs. A wtp-profile that exists in the device DB but is not referenced by any wtp entry is pruned by FortiManager on install, so registering the AP here is required before a profile-only setup survives install_device_settings.
Args: device: Managed device name wtp_id: FortiAP serial number (the wtp-id / table mkey) wtp_profile: FortiAP (WTP) profile name to assign name: Friendly display name admin: Authorization state: "discovered" (awaiting authorization), "enable" (authorized) or "disable"; default "discovered" location: Free-text location string comment: Free-text comment vdom: VDOM to register the AP in (default "root")
Returns: Creation result
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| vdom | No | root | |
| admin | No | discovered | |
| device | Yes | ||
| wtp_id | Yes | ||
| comment | No | ||
| location | No | ||
| wtp_profile | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||