datacenter_backup_can_optimize_proxies
Creates, updates, deletes, gets or lists a datacenter_backup_can_optimize_proxies resource.
Overview​
| Name | datacenter_backup_can_optimize_proxies |
| Type | Resource |
| Id | ovh.dedicated_cloud.datacenter_backup_can_optimize_proxies |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
message | string | Brief information about recommendation (hasMoreBackupJobs, hasMoreProxies, hasSufficientProxies, noBackupJobs) |
number_of_proxies_deployed | integer | Number of proxies deployed in the Datacenter (wire: numberOfProxiesDeployed) |
number_of_proxies_impact | integer | Number of proxies get impacted by recommendation (wire: numberOfProxiesImpact) |
recommendation | string | Action recommended for the optimization (add, optimized, remove) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | datacenter_id, service_name | Get backup proxy recommendations. Returns a recommendation to add or remove backup proxies, with the number of proxies deployed and impacted. |
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"}}) |
datacenter_id | integer | Id of the Datacenter (wire: datacenterId) |
service_name | string | Domain of the service (wire: serviceName) |
SELECT examples​
- get
Get backup proxy recommendations. Returns a recommendation to add or remove backup proxies, with the number of proxies deployed and impacted.
SELECT
message,
number_of_proxies_deployed,
number_of_proxies_impact,
recommendation
FROM ovh.dedicated_cloud.datacenter_backup_can_optimize_proxies
WHERE datacenter_id = '{{ datacenter_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;