Skip to main content

region_storage_job_replications

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

Overview​

Nameregion_storage_job_replications
TypeResource
Idovh.cloud_storage.region_storage_job_replications

Fields​

The following fields are returned by SELECT queries:

Replication storage job

NameDatatypeDescription
idstringJob ID
completedintegerNumber of successfully replicated objects
creation_datestring (date-time)Job creation date (wire: creationDate)
failedintegerNumber of failed replicated objects
statusstringJob replication status (Active, Completed, Created, Failed, Preparing)
stuckintegerNumber of stuck replicated objects
totalintegerTotal number of objects to replicate

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectname, region_name, service_name<sup>*</sup> S3 is a trademark filed by Amazon Technologies,Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies,Inc. (Beta version)
createinsertname, region_name, service_name<sup>*</sup> S3 is a trademark filed by Amazon Technologies,Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies,Inc. (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"}})
namestringName
region_namestringRegion name (wire: regionName)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

<sup>*</sup> S3 is a trademark filed by Amazon Technologies,Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies,Inc. (Beta version)

SELECT
id,
completed,
creation_date,
failed,
status,
stuck,
total
FROM ovh.cloud_storage.region_storage_job_replications
WHERE name = '{{ name }}' -- required
AND region_name = '{{ region_name }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

<sup>*</sup> S3 is a trademark filed by Amazon Technologies,Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies,Inc. (Beta version)

INSERT INTO ovh.cloud_storage.region_storage_job_replications (
name,
region_name,
service_name
)
SELECT
'{{ name }}',
'{{ region_name }}',
'{{ service_name }}'
RETURNING
id,
completed,
creation_date,
failed,
status,
stuck,
total
;