Skip to main content

platform_redirections

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

Overview​

Nameplatform_redirections
TypeResource
Idovh.zimbra.platform_redirections

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Resource identifier in UUID representation
checksumstringChecksum hash in MD5 representation
current_stateobjectObject representing Redirection (wire: currentState)
current_tasksarrayAn array containing tasks responses pending on resource extends AsyncResourceBase object (wire: currentTasks)
resource_statusstringCurrent resource status (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectObject representing Redirection Target Spec (wire: targetSpec)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectplatform_id, redirection_idReturns the source and destination email addresses of the redirection, with its domain and organization. (Beta version)
listselectplatform_idx_pagination_cursor, x_pagination_size, destination, domain_id, organization_id, sourceReturns the redirections of the platform with their current state. Filter them by source, destination, domainId or organizationId. (Beta version)
createinsertplatform_id, target_specCreates a redirection from a source email address to a destination email address. (Beta version)
deletedeleteplatform_id, redirection_idDeletes the redirection. (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
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"}})
platform_idstring (uuid)Platform ID (wire: platformId)
redirection_idstring (uuid)Redirection ID (wire: redirectionId)
destinationstringFilter by destination
domain_idstringFilter by domain id (wire: domainId)
organization_idstringFilter by organization id (wire: organizationId)
sourcestringFilter by source
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the source and destination email addresses of the redirection, with its domain and organization. (Beta version)

SELECT
id,
checksum,
current_state,
current_tasks,
resource_status,
target_spec
FROM ovh.zimbra.platform_redirections
WHERE platform_id = '{{ platform_id }}' -- required
AND redirection_id = '{{ redirection_id }}' -- required
;

INSERT examples​

Creates a redirection from a source email address to a destination email address. (Beta version)

INSERT INTO ovh.zimbra.platform_redirections (
target_spec,
platform_id
)
SELECT
'{{ target_spec }}' /* required */,
'{{ platform_id }}'
RETURNING
id,
checksum,
current_state,
current_tasks,
resource_status,
target_spec
;

DELETE examples​

Deletes the redirection. (Beta version)

DELETE FROM ovh.zimbra.platform_redirections
WHERE platform_id = '{{ platform_id }}' --required
AND redirection_id = '{{ redirection_id }}' --required
;