Skip to main content

telephony_number_geographics

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

Overview​

Nametelephony_number_geographics
TypeResource
Idovh.order.telephony_number_geographics

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
getselectbilling_account, city, country, display_universal_directory, legalform, offer, retractation, zoneape, email, firstname, name, organisation, phone, pool, siret, social_nomination, specific_number, street_name, street_number, zipGet prices and contracts information
createinsertbilling_account, city, country, display_universal_directory, legalform, offer, retractation, zoneCreate 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"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)
citystringContact city
countrystringNumber country
display_universal_directorybooleanPublish contact informations on universal directories (wire: displayUniversalDirectory)
legalformstringLegal form
offerstringNumber offer
retractationbooleanRetractation rights if set
zonestringZone
apestringCompany ape
emailstring
firstnamestringContact firstname
namestringContact name
organisationstringContact organisation
phonestringContact phone
poolintegerNumber of alias in case of pool
siretstringCompany siret
social_nominationstringCompany social nomination (wire: socialNomination)
specific_numberstring (phone-number)Preselected standard number (wire: specificNumber)
street_namestringStreet name (wire: streetName)
street_numberstringStreet number (wire: streetNumber)
zipstringContact zip

SELECT examples​

Get prices and contracts information

SELECT
order_id,
contracts,
details,
prices,
url
FROM ovh.order.telephony_number_geographics
WHERE billing_account = '{{ billing_account }}' -- required
AND city = '{{ city }}' -- required
AND country = '{{ country }}' -- required
AND display_universal_directory = '{{ display_universal_directory }}' -- required
AND legalform = '{{ legalform }}' -- required
AND offer = '{{ offer }}' -- required
AND retractation = '{{ retractation }}' -- required
AND zone = '{{ zone }}' -- required
AND ape = '{{ ape }}'
AND email = '{{ email }}'
AND firstname = '{{ firstname }}'
AND name = '{{ name }}'
AND organisation = '{{ organisation }}'
AND phone = '{{ phone }}'
AND pool = '{{ pool }}'
AND siret = '{{ siret }}'
AND social_nomination = '{{ social_nomination }}'
AND specific_number = '{{ specific_number }}'
AND street_name = '{{ street_name }}'
AND street_number = '{{ street_number }}'
AND zip = '{{ zip }}'
;

INSERT examples​

Create order

INSERT INTO ovh.order.telephony_number_geographics (
ape,
city,
country,
display_universal_directory,
email,
firstname,
legalform,
name,
offer,
organisation,
phone,
pool,
retractation,
siret,
social_nomination,
specific_number,
street_name,
street_number,
zip,
zone,
billing_account
)
SELECT
'{{ ape }}',
'{{ city }}' /* required */,
'{{ country }}' /* required */,
{{ display_universal_directory }} /* required */,
'{{ email }}',
'{{ firstname }}',
'{{ legalform }}' /* required */,
'{{ name }}',
'{{ offer }}' /* required */,
'{{ organisation }}',
'{{ phone }}',
{{ pool }},
{{ retractation }} /* required */,
'{{ siret }}',
'{{ social_nomination }}',
'{{ specific_number }}',
'{{ street_name }}',
'{{ street_number }}',
'{{ zip }}',
'{{ zone }}' /* required */,
'{{ billing_account }}'
RETURNING
order_id,
contracts,
details,
prices,
url
;