Skip to main content

filers

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

Overview​

Namefilers
TypeResource
Idovh.dedicated_cloud.filers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringFiler name
filer_idintegerFiler Id (wire: filerId)
resource_namestringResource name (wire: resourceName)
active_nodestringFiler active node. (master, slave) (wire: activeNode)
billing_typestringBilling type of this filer (freeSpare, hourly, monthly, undefined) (wire: billingType)
connection_statestringFiler connexion state. (offline, online) (wire: connectionState)
full_profilestringHuman-Readable profile name (wire: fullProfile)
is_managed_by_ovhbooleanFiler accessibility (if true, customer cannot access it) (wire: isManagedByOvh)
masterstringFiler master node hostname.
profilestringCommercial profile name
sizeobjectFiler capacity
slavestringFiler slave node hostname.
space_freenumberAvailable space of this datastore, in GB (wire: spaceFree)
space_provisionnednumberProvisionned space of this datastore, in GB (wire: spaceProvisionned)
space_usednumberUsed Space of this filer, in GB (wire: spaceUsed)
statestringState of the filer (adding, delivered, error, removing, unknown)
vm_totalintegerNumber of virtual machine on the filer (wire: vmTotal)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfiler_id, service_nameGet a datastore. Returns the datastore: profile, size, used, free and provisioned space, state and number of virtual machines.
listselectservice_namex_pagination_modeList global datastores
convert_to_globalexecfilerId, serviceNameConvert a datastore to global. Converts the datastore to a global datastore, mounted on all datacenters of the service. Returns a task to track progress.
removeexecfilerId, serviceNameRemove a datastore

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"}})
filerIdintegerFiler Id
filer_idintegerFiler Id (wire: filerId)
serviceNamestringDomain of the service
service_namestringDomain of the service (wire: serviceName)
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​

Get a datastore. Returns the datastore: profile, size, used, free and provisioned space, state and number of virtual machines.

SELECT
name,
filer_id,
resource_name,
active_node,
billing_type,
connection_state,
full_profile,
is_managed_by_ovh,
master,
profile,
size,
slave,
space_free,
space_provisionned,
space_used,
state,
vm_total
FROM ovh.dedicated_cloud.filers
WHERE filer_id = '{{ filer_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Convert a datastore to global. Converts the datastore to a global datastore, mounted on all datacenters of the service. Returns a task to track progress.

EXEC ovh.dedicated_cloud.filers.convert_to_global
@filerId='{{ filerId }}' --required,
@serviceName='{{ serviceName }}' --required
;