Skip to main content

netapp_networks

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

Overview​

Namenetapp_networks
TypeResource
Idovh.storage.netapp_networks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Network ID
statusstringNetwork status (associated, associating, dissociating, to_configure)
v_rack_services_urnstringvRack Services URN the network is attached to (wire: vRackServicesURN)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectnetwork_id, service_nameReturns the network status and the URN of the vRack Services it is attached to. The status moves to associated only after an endpoint is created on the vRack Services, and share access paths are returned only in that status.
listselectservice_namedetailReturns the networks of the service, with only their IDs unless detail is true. A service on the public network has no network, so the list is empty.

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"}})
network_idstring (uuid)Network ID (wire: networkId)
service_namestring (uuid)Service name (wire: serviceName)
detailbooleanGet detailed information about each network

SELECT examples​

Returns the network status and the URN of the vRack Services it is attached to. The status moves to associated only after an endpoint is created on the vRack Services, and share access paths are returned only in that status.

SELECT
id,
status,
v_rack_services_urn
FROM ovh.storage.netapp_networks
WHERE network_id = '{{ network_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;