Skip to main content

freefaxes

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

Overview​

Namefreefaxes
TypeResource
Idovh.freefax.freefaxes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
from_namestringName of the sender of the email (wire: fromName)
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_linestringCustomised freefax header (wire: faxTagLine)
from_emailstringFROM email header (wire: fromEmail)
iamobjectIAM resource metadata
numberstring (phone-number)Phone number
redirection_emailarrayEmail address to redirect fax response. (wire: redirectionEmail)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet Freefax information
listselectiam_tags, x_pagination_modeList Freefax line accounts
updateupdateservice_nameEdit the Freefax properties
change_passwordexecserviceNameGenerates a new password for your fax account

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"}})
serviceNamestring (phone-number)Service name
service_namestring (phone-number)Service name (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get Freefax information

SELECT
from_name,
fax_max_call,
fax_quality,
fax_tag_line,
from_email,
iam,
number,
redirection_email
FROM ovh.freefax.freefaxes
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Edit the Freefax properties

UPDATE ovh.freefax.freefaxes
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 }}',
redirection_email = '{{ redirection_email }}'
WHERE
service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Generates a new password for your fax account

EXEC ovh.freefax.freefaxes.change_password
@serviceName='{{ serviceName }}' --required
;