Skip to main content

email_pro_services

Creates, updates, deletes, gets or lists an email_pro_services resource.

Overview​

Nameemail_pro_services
TypeResource
Idovh.pack_xdsl.email_pro_services

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectpack_nameList the Email Pro services of an xDSL pack. Returns the domains of the Email Pro services activated with the pack.
createinsertpack_name, email, passwordCreate an Email Pro service in an xDSL pack. Activates an Email Pro account from an email address and a password. Returns the task that performs it.

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"}})
pack_namestringThe internal name of your pack (wire: packName)

SELECT examples​

List the Email Pro services of an xDSL pack. Returns the domains of the Email Pro services activated with the pack.

SELECT
value
FROM ovh.pack_xdsl.email_pro_services
WHERE pack_name = '{{ pack_name }}' -- required
;

INSERT examples​

Create an Email Pro service in an xDSL pack. Activates an Email Pro account from an email address and a password. Returns the task that performs it.

INSERT INTO ovh.pack_xdsl.email_pro_services (
email,
password,
pack_name
)
SELECT
'{{ email }}' /* required */,
'{{ password }}' /* required */,
'{{ pack_name }}'
RETURNING
id,
function,
status,
update_date
;