Skip to main content

platform_slots

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

Overview​

Nameplatform_slots
TypeResource
Idovh.zimbra.platform_slots

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 slot (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)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectplatform_id, slot_idReturns the offer and billing status of the slot, and the email account using it. accountId and email are null while no account uses the slot.
listselectplatform_idx_pagination_cursor, x_pagination_size, account_id, billing_status, email, offer, usedReturns the account slots of the platform with their offer, billing status and linked email account. Filter them by accountId, email, offer, billingStatus or used.

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)
slot_idstring (uuid)Slot ID (wire: slotId)
account_idstringFilter by account identifier of the slots (wire: accountId)
billing_statusstringFilter by the billing status of the slots (wire: billingStatus)
emailstringFilter slot by an email
offerstringFilter by offer of the slots
usedbooleanFilter by the empty account id of the slots
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the offer and billing status of the slot, and the email account using it. accountId and email are null while no account uses the slot.

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