Skip to main content

clusters

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

Overview​

Nameclusters
TypeResource
Idovh.dedicated_ceph.clusters

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
service_namestringID of cluster (wire: serviceName)
ceph_monsarrayList of CEPH monitor IPs (wire: cephMons)
ceph_versionstringUsed version of ceph (wire: cephVersion)
create_datestringCreation date (wire: createDate)
crush_tunablesstringTunables of cluster (ARGONAUT, BOBTAIL, DEFAULT, FIREFLY, HAMMER, JEWEL, LEGACY, OPTIMAL) (wire: crushTunables)
iamobjectIAM resource metadata
labelstringName of cluster
regionstringName of region where cluster is located
sizeintegerSize of cluster in TB
statestringState of cluster (ACTIVE, SUSPENDED)
statusstringStatus of cluster (CREATING, DELETED, DELETING, INSTALLED, TASK_IN_PROGRESS)
update_datestringLast update date (wire: updateDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the configuration and the current state of the cluster. The status is INSTALLED once all requested tasks are done.
listselectiam_tags, x_pagination_modeReturns the service names of the clusters, which are also their Ceph fsid.
updateupdateservice_name, crush_tunables, labelUpdates the label and the CRUSH tunables of the cluster.
change_contactexecserviceNameStarts the change of the admin, tech or billing contact and returns the request IDs.
confirm_terminationexecserviceName, tokenConfirms the termination with the token sent by email. The reason and comments are optional.
terminateexecserviceNameEmails a termination token to the admin contact, to use with Confirm termination.

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"}})
serviceNamestringService name
service_namestringService name (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
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​

Returns the configuration and the current state of the cluster. The status is INSTALLED once all requested tasks are done.

SELECT
service_name,
ceph_mons,
ceph_version,
create_date,
crush_tunables,
iam,
label,
region,
size,
state,
status,
update_date
FROM ovh.dedicated_ceph.clusters
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Updates the label and the CRUSH tunables of the cluster.

UPDATE ovh.dedicated_ceph.clusters
SET
crush_tunables = '{{ crush_tunables }}',
label = '{{ label }}'
WHERE
service_name = '{{ service_name }}' --required
AND crush_tunables = '{{ crush_tunables }}' --required
AND label = '{{ label }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Starts the change of the admin, tech or billing contact and returns the request IDs.

EXEC ovh.dedicated_ceph.clusters.change_contact
@serviceName='{{ serviceName }}' --required
@@json=
'{
"contactAdmin": "{{ contactAdmin }}",
"contactBilling": "{{ contactBilling }}",
"contactTech": "{{ contactTech }}"
}'
;