Skip to main content

modem_comfort_exchanges

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

Overview​

Namemodem_comfort_exchanges
TypeResource
Idovh.xdsl.modem_comfort_exchanges

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
can_exchangebooleanTo know if you can exchange your modem (wire: canExchange)
new_modelstringModel of the new modem (wire: newModel)
priceobjectPrice with it's currency and textual representation
price_with_taxobjectPrice with it's currency and textual representation (wire: priceWithTax)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns whether the modem of the access can be exchanged for the latest model, the new model and the price with and without tax.
createinsertservice_nameOrders the replacement of the modem of the access by the latest model. Fees apply. Returns the order.

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)

SELECT examples​

Returns whether the modem of the access can be exchanged for the latest model, the new model and the price with and without tax.

SELECT
can_exchange,
new_model,
price,
price_with_tax
FROM ovh.xdsl.modem_comfort_exchanges
WHERE service_name = '{{ service_name }}' -- required
;

INSERT examples​

Orders the replacement of the modem of the access by the latest model. Fees apply. Returns the order.

INSERT INTO ovh.xdsl.modem_comfort_exchanges (
contact_shipping,
service_name
)
SELECT
'{{ contact_shipping }}',
'{{ service_name }}'
RETURNING
order_id,
contracts,
details,
prices,
url
;