netapp_share_replication_services_compatibilities
Creates, updates, deletes, gets or lists a netapp_share_replication_services_compatibilities resource.
Overview​
| Name | netapp_share_replication_services_compatibilities |
| Type | Resource |
| Id | ovh.storage.netapp_share_replication_services_compatibilities |
Fields​
The following fields are returned by SELECT queries:
- list
Result of checking if a service can be a share replication destination
| Name | Datatype | Description |
|---|---|---|
compatible | boolean | Whether service can be used as destination |
reason | string | Indicates why service can't be used as destination if applicable |
service | object | Summarized properties of the checked service |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | service_name | compatible_only | 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) |
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 |
|---|---|---|
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) |
compatible_only | boolean | If set to true, only services compatible as share replication destinations for the given source are returned (wire: compatibleOnly) |
SELECT examples​
- list
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 }}'
;