netapp_share_access_paths
Creates, updates, deletes, gets or lists a netapp_share_access_paths resource.
Overview​
| Name | netapp_share_access_paths |
| Type | Resource |
| Id | ovh.storage.netapp_share_access_paths |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Access path ID |
path | string | Access path, in the form IP:/junction-path |
preferred | boolean | Is this the preferred access path? |
A share access path
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Access path ID |
path | string | Access path, in the form IP:/junction-path |
preferred | boolean | Is this the preferred access path? |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | access_path_id, service_name, share_id | Returns the path used to mount the share. The preferred path goes through the storage node that hosts the share. | |
list | select | service_name, share_id | Returns 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.
| Name | Datatype | Description |
|---|---|---|
access_path_id | string (uuid) | Access path ID (wire: accessPathId) |
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"}}) |
service_name | string (uuid) | Service name (wire: serviceName) |
share_id | string (uuid) | Share ID (wire: shareId) |
SELECT examples​
- get
- list
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
;
Returns 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.
SELECT
id,
path,
preferred
FROM ovh.storage.netapp_share_access_paths
WHERE service_name = '{{ service_name }}' -- required
AND share_id = '{{ share_id }}' -- required
;