Skip to main content

cephfs

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

Overview​

Namecephfs
TypeResource
Idovh.dedicated_ceph.cephfs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
fs_namestringFilesystem name (wire: fsName)
enabledbooleanFilesystem state

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfs_name, service_nameReturns a CephFS filesystem of the cluster.
listselectservice_nameReturns the CephFS filesystems of the cluster. The list is empty until a filesystem is enabled.
deletedeletefs_name, service_namePermanently deletes the filesystem and all its data. Only a disabled filesystem can be deleted.
disableexecfsName, serviceNameBlocks access to the filesystem and keeps its data. The filesystem can be enabled again later.
enableexecfsName, serviceNameEnables the filesystem, which becomes available within a few minutes. Only one filesystem can be enabled, and it must be named fs-default.

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"}})
fsNamestringFs name
fs_namestringFs name (wire: fsName)
serviceNamestringService name
service_namestringService name (wire: serviceName)

SELECT examples​

Returns a CephFS filesystem of the cluster.

SELECT
fs_name,
enabled
FROM ovh.dedicated_ceph.cephfs
WHERE fs_name = '{{ fs_name }}' -- required
AND service_name = '{{ service_name }}' -- required
;

DELETE examples​

Permanently deletes the filesystem and all its data. Only a disabled filesystem can be deleted.

DELETE FROM ovh.dedicated_ceph.cephfs
WHERE fs_name = '{{ fs_name }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Blocks access to the filesystem and keeps its data. The filesystem can be enabled again later.

EXEC ovh.dedicated_ceph.cephfs.disable
@fsName='{{ fsName }}' --required,
@serviceName='{{ serviceName }}' --required
;