Skip to main content

partition_template_usages

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

Overview​

Namepartition_template_usages
TypeResource
Idovh.dedicated_nasha.partition_template_usages

Fields​

The following fields are returned by SELECT queries:

A structure describing the template usage result

NameDatatypeDescription
namestringThe name of the template
descriptionstringThe description of the template.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectpartition_name, service_nameGet all the template usages options applicable to this partition.

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"}})
partition_namestringthe given name of partition (wire: partitionName)
service_namestringThe internal name of your storage (wire: serviceName)

SELECT examples​

Get all the template usages options applicable to this partition.

SELECT
name,
description
FROM ovh.dedicated_nasha.partition_template_usages
WHERE partition_name = '{{ partition_name }}' -- required
AND service_name = '{{ service_name }}' -- required
;