Skip to main content

platforms

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

Overview​

Nameplatforms
TypeResource
Idovh.zimbra.platforms

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 platform (wire: currentState)
current_tasksarrayAn array containing tasks responses pending on resource extends AsyncResourceBase object (wire: currentTasks)
iamobjectIAM resource metadata
resource_statusstringCurrent resource status (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectObject representing platform (wire: targetSpec)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectplatform_idReturns the name and description of the platform, its number of organizations, its storage quota per account and its account statistics per offer.
listselectx_pagination_cursor, x_pagination_size, iam_tags, project_idReturns the platforms of the account with their current state. Filter them by projectId.
updateupdateplatform_id, target_specUpdates the name or description of the platform. When set, checksum must match the current checksum of the platform, otherwise the update is rejected.
diagnostic_domainexecplatformId, domainsX-Pagination-Cursor, X-Pagination-SizeChecks the MX, SPF, DKIM and autodiscover DNS records of the domains listed in domains. Returns, for each domain, the status and errors of each test, the records found and the expected DNS configuration.
refresh_quota_usageexecplatformIdRecomputes the quota usage (quota.used and quotaRefreshedAt) of every email account of the platform. The refresh runs asynchronously.

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"}})
platformIdstring (uuid)Platform ID
platform_idstring (uuid)Platform ID (wire: platformId)
X-Pagination-CursorstringPagination cursor
X-Pagination-SizeintegerPagination size
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
project_idstring (uuid)Identifier of the project (wire: projectId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the name and description of the platform, its number of organizations, its storage quota per account and its account statistics per offer.

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

UPDATE examples​

Updates the name or description of the platform. When set, checksum must match the current checksum of the platform, otherwise the update is rejected.

UPDATE ovh.zimbra.platforms
SET
checksum = '{{ checksum }}',
target_spec = '{{ target_spec }}'
WHERE
platform_id = '{{ platform_id }}' --required
AND target_spec = '{{ target_spec }}' --required
RETURNING
id,
checksum,
current_state,
current_tasks,
resource_status,
target_spec;

Lifecycle Methods​

EXEC variables use wire (API) names.

Checks the MX, SPF, DKIM and autodiscover DNS records of the domains listed in domains. Returns, for each domain, the status and errors of each test, the records found and the expected DNS configuration.

EXEC ovh.zimbra.platforms.diagnostic_domain
@platformId='{{ platformId }}' --required,
@X-Pagination-Cursor='{{ X-Pagination-Cursor }}',
@X-Pagination-Size='{{ X-Pagination-Size }}'
@@json=
'{
"domains": "{{ domains }}"
}'
;