Skip to main content

account_migrate_destination_email_addresses

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

Overview​

Nameaccount_migrate_destination_email_addresses
TypeResource
Idovh.email_domain.account_migrate_destination_email_addresses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
destination_email_addressstringDestination account name (wire: destinationEmailAddress)
quotaintegerAccount maximum size

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_name, destination_email_address, destination_service_name, domainGet a destination email account. Returns the email address and maximum size of the destination account. (Beta version)
listselectaccount_name, destination_service_name, domainquota, x_pagination_modeList destination email accounts. Returns the email addresses of the destination service the email account can be migrated to. Filter them by minimum size with quota. (Beta version)
migrateexecaccountName, destinationEmailAddress, destinationServiceName, domain, passwordMigrate an email account. Migrates the email account to the destination account and returns the task. password is the new password used for the migration. (Beta version)

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
accountNamestringName of account
account_namestringName of account (wire: accountName)
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"}})
destinationEmailAddressstringDestination account name
destinationServiceNamestringService name allowed as migration destination
destination_email_addressstringDestination account name (wire: destinationEmailAddress)
destination_service_namestringService name allowed as migration destination (wire: destinationServiceName)
domainstringName of your domain name
quotaintegerAccount maximum size
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 a destination email account. Returns the email address and maximum size of the destination account. (Beta version)

SELECT
destination_email_address,
quota
FROM ovh.email_domain.account_migrate_destination_email_addresses
WHERE account_name = '{{ account_name }}' -- required
AND destination_email_address = '{{ destination_email_address }}' -- required
AND destination_service_name = '{{ destination_service_name }}' -- required
AND domain = '{{ domain }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Migrate an email account. Migrates the email account to the destination account and returns the task. password is the new password used for the migration. (Beta version)

EXEC ovh.email_domain.account_migrate_destination_email_addresses.migrate
@accountName='{{ accountName }}' --required,
@destinationEmailAddress='{{ destinationEmailAddress }}' --required,
@destinationServiceName='{{ destinationServiceName }}' --required,
@domain='{{ domain }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;