partition_options
Creates, updates, deletes, gets or lists a partition_options resource.
Overview​
| Name | partition_options |
| Type | Resource |
| Id | ovh.dedicated_nasha.partition_options |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
id | integer | ID |
template_name | string | the template name (Databases, Default, File Systems (big files), Virtual machines) (wire: templateName) |
atime | string | atime setting |
recordsize | string | ZFS recordsize |
sync | string | sync setting |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | partition_name, service_name | Get this object properties | |
create | insert | partition_name, service_name | Setup options |
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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_name | string | the given name of partition (wire: partitionName) |
service_name | string | The internal name of your storage (wire: serviceName) |
SELECT examples​
- get
Get this object properties
SELECT
id,
template_name,
atime,
recordsize,
sync
FROM ovh.dedicated_nasha.partition_options
WHERE partition_name = '{{ partition_name }}' -- required
AND service_name = '{{ service_name }}' -- required
;
INSERT examples​
- create
- Manifest
Setup options
INSERT INTO ovh.dedicated_nasha.partition_options (
atime,
recordsize,
sync,
template_name,
partition_name,
service_name
)
SELECT
'{{ atime }}',
'{{ recordsize }}',
'{{ sync }}',
'{{ template_name }}',
'{{ partition_name }}',
'{{ service_name }}'
RETURNING
task_id,
partition_name,
storage_name,
details,
done_date,
last_update,
operation,
status,
todo_date
;
# Description fields are for documentation purposes
- name: partition_options
props:
- name: partition_name
value: "{{ partition_name }}"
description: Required parameter for the partition_options resource.
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the partition_options resource.
- name: atime
value: "{{ atime }}"
description: |
atime setting
valid_values: ['off', 'on']
- name: recordsize
value: "{{ recordsize }}"
description: |
ZFS recordsize
valid_values: ['1048576', '131072', '16384', '32768', '4096', '65536', '8192']
- name: sync
value: "{{ sync }}"
description: |
sync setting
valid_values: ['always', 'disabled', 'standard']
- name: template_name
value: "{{ template_name }}"
description: |
The name of the usage template to apply for this partition.
valid_values: ['Databases', 'Default', 'File Systems (big files)', 'Virtual machines']