Skip to main content

modem_wifis

Creates, updates, deletes, gets or lists a modem_wifis resource.

Overview​

Namemodem_wifis
TypeResource
Idovh.xdsl.modem_wifis

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_idintegerID of the ongoing todo (NULL if none) (wire: taskId)
wifi_namestringName of the Wifi (wire: wifiName)
band_steeringbooleanIndicate if frequencies 2.4GHz and 5GHz are agregated (wire: bandSteering)
channelintegerChoice of a channel (When chosen, channelMode is set to Manual)
channel_modestringHow the WiFi channel is selected (Auto, Manual) (wire: channelMode)
enabledbooleanWifi state
frequencystringFrequency (2.4GHz | 5GHz) (2.4GHz, 5GHz)
guestbooleanIndicate if it is normal access wifi or guest wifi
security_keystringWiFi security key (wire: securityKey)
security_typestringType of WLAN security protection (None, WEP, WPA, WPA2, WPA2andWPA3, WPA3, WPAandWPA2) (wire: securityType)
ssidstringService Set Identifier of the WLAN interface (wire: SSID)
ssid_advertisement_enabledbooleanHide or show the Wifi (wire: SSIDAdvertisementEnabled)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_name, wifi_nameReturns the SSID, state, visibility, frequency, channel, security type and key of a WiFi network, and whether it is a guest network.
listselectservice_namex_pagination_modeReturns the names of the WiFi networks of the modem of the access.
updateupdateservice_name, wifi_nameChanges the SSID, state, visibility, channel, channel mode, security type or security key of a WiFi network.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
service_namestringService name (wire: serviceName)
wifi_namestringWifi name (wire: wifiName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns the SSID, state, visibility, frequency, channel, security type and key of a WiFi network, and whether it is a guest network.

SELECT
task_id,
wifi_name,
band_steering,
channel,
channel_mode,
enabled,
frequency,
guest,
security_key,
security_type,
ssid,
ssid_advertisement_enabled
FROM ovh.xdsl.modem_wifis
WHERE service_name = '{{ service_name }}' -- required
AND wifi_name = '{{ wifi_name }}' -- required
;

UPDATE examples​

Changes the SSID, state, visibility, channel, channel mode, security type or security key of a WiFi network.

UPDATE ovh.xdsl.modem_wifis
SET
ssid = '{{ ssid }}',
ssid_advertisement_enabled = {{ ssid_advertisement_enabled }},
channel = {{ channel }},
channel_mode = '{{ channel_mode }}',
enabled = {{ enabled }},
security_key = '{{ security_key }}',
security_type = '{{ security_type }}'
WHERE
service_name = '{{ service_name }}' --required
AND wifi_name = '{{ wifi_name }}' --required;