Skip to main content

netapp_share_access_paths

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

Overview​

Namenetapp_share_access_paths
TypeResource
Idovh.storage.netapp_share_access_paths

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Access path ID
pathstringAccess path, in the form IP:/junction-path
preferredbooleanIs this the preferred access path?

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccess_path_id, service_name, share_idReturns the path used to mount the share. The preferred path goes through the storage node that hosts the share.
listselectservice_name, share_idReturns the paths used to mount the share, with the preferred one first. The list stays empty until the network status of the service is associated.

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
access_path_idstring (uuid)Access path ID (wire: accessPathId)
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"}})
service_namestring (uuid)Service name (wire: serviceName)
share_idstring (uuid)Share ID (wire: shareId)

SELECT examples​

Returns the path used to mount the share. The preferred path goes through the storage node that hosts the share.

SELECT
id,
path,
preferred
FROM ovh.storage.netapp_share_access_paths
WHERE access_path_id = '{{ access_path_id }}' -- required
AND service_name = '{{ service_name }}' -- required
AND share_id = '{{ share_id }}' -- required
;