Skip to main content

netapp_share_replication_services_compatibilities

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

Overview​

Namenetapp_share_replication_services_compatibilities
TypeResource
Idovh.storage.netapp_share_replication_services_compatibilities

Fields​

The following fields are returned by SELECT queries:

Result of checking if a service can be a share replication destination

NameDatatypeDescription
compatiblebooleanWhether service can be used as destination
reasonstringIndicates why service can't be used as destination if applicable
serviceobjectSummarized properties of the checked service

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_namecompatible_onlyReturns, for each service on which you are allowed to accept share replications, whether it can be a destination for share replications from this service, and the reason when it cannot. A destination is compatible when it is in the same region as the source service, and when the source service uses a public network while the destination uses a vRack network. Set compatibleOnly to true to return only compatible destinations. (Beta version)

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"}})
service_namestring (uuid)Service name (wire: serviceName)
compatible_onlybooleanIf set to true, only services compatible as share replication destinations for the given source are returned (wire: compatibleOnly)

SELECT examples​

Returns, for each service on which you are allowed to accept share replications, whether it can be a destination for share replications from this service, and the reason when it cannot. A destination is compatible when it is in the same region as the source service, and when the source service uses a public network while the destination uses a vRack network. Set compatibleOnly to true to return only compatible destinations. (Beta version)

SELECT
compatible,
reason,
service
FROM ovh.storage.netapp_share_replication_services_compatibilities
WHERE service_name = '{{ service_name }}' -- required
AND compatible_only = '{{ compatible_only }}'
;