Skip to main content

fax_settings

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

Overview​

Namefax_settings
TypeResource
Idovh.telephony.fax_settings

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
from_namestring (wire: fromName)
call_numberstring (wire: callNumber)
country_codestring (wire: countryCode)
fax_max_callintegerNumber of tries when sending a fax (1, 2, 3, 4, 5, 6, 7, 8, 9) (wire: faxMaxCall)
fax_qualitystringAvailable quality for fax documents (best, high, normal) (wire: faxQuality)
fax_tag_linestring (wire: faxTagLine)
from_emailstring (wire: fromEmail)
mail_formatstringFormat of the notification mail. "html" will include a preview image of the fax (html, text) (wire: mailFormat)
receiverstring
redirection_emailarray (wire: redirectionEmail)
reject_anonymousboolean (wire: rejectAnonymous)
senderstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_nameGet the settings. Returns the fax settings: sender, quality, number of sending tries, email delivery and rejection of anonymous faxes.
updateupdatebilling_account, service_nameUpdate the settings. Updates the fax settings: sender, receiver, quality, number of sending tries (1 to 9), tag line, email delivery and rejection of anonymous faxes.
change_passwordexecbillingAccount, serviceNameChange the password. Sets a new password for the fax account. Without a password, a random one is generated and returned.
send_faxexecbillingAccount, serviceName, pdfUrl, recipientsSend a fax. Sends a PDF document from a URL to one or more recipients, now or at a scheduled date. Returns the task that tracks the sending.

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"}})
billingAccountstringThe name of your billingAccount
billing_accountstringThe name of your billingAccount (wire: billingAccount)
serviceNamestring
service_namestring (wire: serviceName)

SELECT examples​

Get the settings. Returns the fax settings: sender, quality, number of sending tries, email delivery and rejection of anonymous faxes.

SELECT
from_name,
call_number,
country_code,
fax_max_call,
fax_quality,
fax_tag_line,
from_email,
mail_format,
receiver,
redirection_email,
reject_anonymous,
sender
FROM ovh.telephony.fax_settings
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update the settings. Updates the fax settings: sender, receiver, quality, number of sending tries (1 to 9), tag line, email delivery and rejection of anonymous faxes.

UPDATE ovh.telephony.fax_settings
SET
fax_max_call = {{ fax_max_call }},
fax_quality = '{{ fax_quality }}',
fax_tag_line = '{{ fax_tag_line }}',
from_email = '{{ from_email }}',
from_name = '{{ from_name }}',
mail_format = '{{ mail_format }}',
receiver = '{{ receiver }}',
redirection_email = '{{ redirection_email }}',
reject_anonymous = {{ reject_anonymous }},
sender = '{{ sender }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change the password. Sets a new password for the fax account. Without a password, a random one is generated and returned.

EXEC ovh.telephony.fax_settings.change_password
@billingAccount='{{ billingAccount }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;