Skip to main content

datacenter_backup_can_optimize_proxies

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

Overview​

Namedatacenter_backup_can_optimize_proxies
TypeResource
Idovh.dedicated_cloud.datacenter_backup_can_optimize_proxies

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
messagestringBrief information about recommendation (hasMoreBackupJobs, hasMoreProxies, hasSufficientProxies, noBackupJobs)
number_of_proxies_deployedintegerNumber of proxies deployed in the Datacenter (wire: numberOfProxiesDeployed)
number_of_proxies_impactintegerNumber of proxies get impacted by recommendation (wire: numberOfProxiesImpact)
recommendationstringAction recommended for the optimization (add, optimized, remove)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdatacenter_id, service_nameGet 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.

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"}})
datacenter_idintegerId of the Datacenter (wire: datacenterId)
service_namestringDomain of the service (wire: serviceName)

SELECT examples​

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
;