Skip to main content

modems

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

Overview​

Namemodems
TypeResource
Idovh.xdsl.modems

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
brand_namestring (wire: brandName)
acs_backendstringACS backend used by the modem (beta, dev, stable) (wire: acsBackend)
acs_versionstringVersion of ACS API used (wire: acsVersion)
capabilitiesobjectDescribe the capabilities of the Modem
dmz_ipstring (ipv4)IP Address of the DMZ (To modify or delete the DMZ IP on the modem, a re-configuration of your modem has to be made, your configuration will be maintained, but you will lose your connection a few minutes) (example: 192.0.2.0) (wire: dmzIP)
easy_firewall_levelstringLevel of the FireWall on the modem (BlockAll, Disabled, Normal) (wire: easyFirewallLevel)
ipv_6_supportbooleanWhether or not the modem supports IPv6 (wire: ipv6Support)
is_bridgedbooleanWhether or not the modem is in bridge mode. To pass from bridge mode to routed mode, a reset is necessary. If the modem is managedByOvh, the bridge state will be kept after a reset (wire: isBridged)
last_cwmp_request_datestring (date-time)Last time the modem made a CWMP request to the Auto Configuration Server (wire: lastCwmpRequestDate)
mac_addressstring (wire: macAddress)
managed_by_ovhbooleanWhether or not the user can configure his modem via OVH Interface (will lock telnet and local HTTP configuration page) (wire: managedByOvh)
modelstring
mtu_sizeintegerSize of the Maximum Transmission Unit on the modem's interfaces (1432, 1456, 1492) (wire: mtuSize)
serial_numberstring (wire: serialNumber)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the modem brand, model, serial and MAC address, its bridge and DMZ settings, MTU, firewall level, IPv6 support, ACS backend and capabilities.
updateupdateservice_nameChanges the settings that can be modified: management by OVHcloud, bridge mode, DMZ IP, MTU size and ACS backend.
rebootexecserviceNameReboots the modem of the access, now or at the given date. Returns the task that performs the change.
reconfigure_voipexecserviceNamePushes the VoIP line configuration again to the modem of the access.
refresh_connected_devicesexecserviceNameReads again from the modem of the access the devices connected to it. Returns the task that performs the change.
resetexecserviceNameResets the modem of the access to its default configuration, and optionally the configuration stored by OVHcloud. Returns the task that performs the change.
reset_port_mapping_configexecserviceNameRemoves every port mapping rule of the modem of the access.
retrieve_infoexecserviceNameReads the general information of the modem of the access. Returns an asynchronous task holding the modem information.

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"}})
serviceNamestringService name
service_namestringService name (wire: serviceName)

SELECT examples​

Returns the modem brand, model, serial and MAC address, its bridge and DMZ settings, MTU, firewall level, IPv6 support, ACS backend and capabilities.

SELECT
brand_name,
acs_backend,
acs_version,
capabilities,
dmz_ip,
easy_firewall_level,
ipv_6_support,
is_bridged,
last_cwmp_request_date,
mac_address,
managed_by_ovh,
model,
mtu_size,
serial_number
FROM ovh.xdsl.modems
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Changes the settings that can be modified: management by OVHcloud, bridge mode, DMZ IP, MTU size and ACS backend.

UPDATE ovh.xdsl.modems
SET
acs_backend = '{{ acs_backend }}',
dmz_ip = '{{ dmz_ip }}',
is_bridged = {{ is_bridged }},
managed_by_ovh = {{ managed_by_ovh }},
mtu_size = {{ mtu_size }}
WHERE
service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Reboots the modem of the access, now or at the given date. Returns the task that performs the change.

EXEC ovh.xdsl.modems.reboot
@serviceName='{{ serviceName }}' --required
@@json=
'{
"todoDate": "{{ todoDate }}"
}'
;