Skip to main content

netapps

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

Overview​

Namenetapps
TypeResource
Idovh.storage.netapps

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Service ID
namestringService name
created_atstring (date-time)Service creation date (wire: createdAt)
iamobjectIAM resource metadata
performance_levelstringService performance level (premium) (wire: performanceLevel)
productstringProduct name
quotaintegerService quota in GiB
regionstringService region (ca-east-bhs, eu-west-gra, eu-west-lim, eu-west-rbx, eu-west-sbg, us-east-vin)
statusstringService status (creating, deleted, deleting, reopening, running, suspended, suspending, updating)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the service, including its region, performance level, quota and status.
listselectiam_tagsList Enterprise File Storage services
updateupdateservice_name, nameUpdates the service name, the only property that can be changed. The change applies immediately, whatever the service status.
change_contactexecserviceNameStarts the change of the admin, tech or billing contact and returns the request IDs.
confirm_terminationexecserviceName, tokenConfirms the termination with the emailed token and records your reason.
terminateexecserviceNameEmails a termination token to the admin contact, to use with Confirm service termination.

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"}})
serviceNamestring (uuid)Service name
service_namestring (uuid)Service name (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)

SELECT examples​

Returns the service, including its region, performance level, quota and status.

SELECT
id,
name,
created_at,
iam,
performance_level,
product,
quota,
region,
status
FROM ovh.storage.netapps
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Updates the service name, the only property that can be changed. The change applies immediately, whatever the service status.

UPDATE ovh.storage.netapps
SET
name = '{{ name }}'
WHERE
service_name = '{{ service_name }}' --required
AND name = '{{ name }}' --required
RETURNING
id,
name,
created_at,
performance_level,
product,
quota,
region,
status;

Lifecycle Methods​

EXEC variables use wire (API) names.

Starts the change of the admin, tech or billing contact and returns the request IDs.

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