Skip to main content

voip_line_services

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

Overview​

Namevoip_line_services
TypeResource
Idovh.pack_xdsl.voip_line_services

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
billing_accountstring (wire: billingAccount)
domainstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain, pack_nameGet a VoIP line service of an xDSL pack. Returns the domain and the billing account of a VoIP line service activated with the pack.
listselectpack_namex_pagination_modeList the VoIP line services of an xDSL pack. Returns the domains of the VoIP line services activated with the pack.
createinsertpack_name, hardware_namesCreate a VoIP line service in an xDSL pack. Orders VoIP lines with the given hardware, shipped to a shipping address or a Mondial Relay point. 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"}})
domainstring
pack_namestringThe internal name of your pack (wire: packName)
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​

Get a VoIP line service of an xDSL pack. Returns the domain and the billing account of a VoIP line service activated with the pack.

SELECT
billing_account,
domain
FROM ovh.pack_xdsl.voip_line_services
WHERE domain = '{{ domain }}' -- required
AND pack_name = '{{ pack_name }}' -- required
;

INSERT examples​

Create a VoIP line service in an xDSL pack. Orders VoIP lines with the given hardware, shipped to a shipping address or a Mondial Relay point. Returns the order.

INSERT INTO ovh.pack_xdsl.voip_line_services (
hardware_names,
mondial_relay_id,
shipping_id,
pack_name
)
SELECT
'{{ hardware_names }}' /* required */,
'{{ mondial_relay_id }}',
'{{ shipping_id }}',
'{{ pack_name }}'
RETURNING
order_id,
need_payment,
order_url,
task_ids
;