Skip to main content

nashas

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

Overview​

Namenashas
TypeResource
Idovh.dedicated_nasha.nashas

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
custom_namestringThe name you give to the nas (wire: customName)
service_namestringThe storage service name (wire: serviceName)
can_create_partitionbooleanTrue, if partition creation is allowed on this nas HA (wire: canCreatePartition)
datacenterstringarea of nas
disk_typestringthe disk type of the nasHa (hdd, nvme, ssd) (wire: diskType)
iamobjectIAM resource metadata
ipstring (ipv4)Access ip of nas (example: 192.0.2.0)
monitoredbooleanSend an email to customer if any issue is detected
zpool_capacityintegerpercentage of nas space used in % (wire: zpoolCapacity)
zpool_sizeintegerthe size of the nas (wire: zpoolSize)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet this object properties
listselectiam_tags, x_pagination_modeList available services
updateupdateservice_nameAlter this object properties
change_contactexecserviceNameChange service contacts. Starts a procedure to change the admin, tech or billing contact of the service.
confirm_terminationexecserviceName, tokenConfirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given.
terminateexecserviceNameRequest service termination. Starts the termination of the service. The admin contact receives a token by email, to confirm with the confirmTermination call.

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"}})
serviceNamestringThe internal name of your storage
service_namestringThe internal name of your storage (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​

Get this object properties

SELECT
custom_name,
service_name,
can_create_partition,
datacenter,
disk_type,
iam,
ip,
monitored,
zpool_capacity,
zpool_size
FROM ovh.dedicated_nasha.nashas
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Alter this object properties

UPDATE ovh.dedicated_nasha.nashas
SET
custom_name = '{{ custom_name }}',
monitored = {{ monitored }}
WHERE
service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change service contacts. Starts a procedure to change the admin, tech or billing contact of the service.

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