Skip to main content

telephony_security_deposits

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

Overview​

Nametelephony_security_deposits
TypeResource
Idovh.order.telephony_security_deposits

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
order_idintegerIdentifier of the order (wire: orderId)
contractsarrayList of contracts related to the order
detailsarrayDetails of the order
pricesobjectPrices of the order including with and without taxes
urlstringURL to download the order

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectamount, billing_accountGet prices and contracts information
createinsertbilling_account, amountCreate 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
amountintegerThe amount, in euros, to credit to the current security deposit
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"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)

SELECT examples​

Get prices and contracts information

SELECT
order_id,
contracts,
details,
prices,
url
FROM ovh.order.telephony_security_deposits
WHERE amount = '{{ amount }}' -- required
AND billing_account = '{{ billing_account }}' -- required
;

INSERT examples​

Create order

INSERT INTO ovh.order.telephony_security_deposits (
amount,
billing_account
)
SELECT
{{ amount }} /* required */,
'{{ billing_account }}'
RETURNING
order_id,
contracts,
details,
prices,
url
;