Skip to main content

directories_cities

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

Overview​

Namedirectories_cities
TypeResource
Idovh.telephony.directories_cities

Fields​

The following fields are returned by SELECT queries:

Represents a city

NameDatatypeDescription
namestringThe name of the city
administration_codestringThe identifier of the city (wire: administrationCode)
zip_codestringThe zip code of the city (wire: zipCode)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcountry, zip_codeGet city informations from a zip code

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"}})
countrystringThe country of the city
zip_codestringThe zip code of the city (wire: zipCode)

SELECT examples​

Get city informations from a zip code

SELECT
name,
administration_code,
zip_code
FROM ovh.telephony.directories_cities
WHERE country = '{{ country }}' -- required
AND zip_code = '{{ zip_code }}' -- required
;