Skip to main content

directory_get_directory_service_codes

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

Overview​

Namedirectory_get_directory_service_codes
TypeResource
Idovh.freefax.directory_get_directory_service_codes

Fields​

The following fields are returned by SELECT queries:

Directory information

NameDatatypeDescription
ape_codestring (wire: apeCode)
ape_descriptionstring (wire: apeDescription)
directory_service_codeinteger (wire: directoryServiceCode)
directory_service_descriptionstring (wire: directoryServiceDescription)
notificationstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectape_code, service_nameGet directory service code from an APE code (principal activity of the firm 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
ape_codestring (wire: apeCode)
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_namestring (phone-number)Service name (wire: serviceName)

SELECT examples​

Get directory service code from an APE code (principal activity of the firm code)

SELECT
ape_code,
ape_description,
directory_service_code,
directory_service_description,
notification
FROM ovh.freefax.directory_get_directory_service_codes
WHERE ape_code = '{{ ape_code }}' -- required
AND service_name = '{{ service_name }}' -- required
;