region_storage_job_replications
Creates, updates, deletes, gets or lists a region_storage_job_replications resource.
Overview​
| Name | region_storage_job_replications |
| Type | Resource |
| Id | ovh.cloud_storage.region_storage_job_replications |
Fields​
The following fields are returned by SELECT queries:
- list
Replication storage job
| Name | Datatype | Description |
|---|---|---|
id | string | Job ID |
completed | integer | Number of successfully replicated objects |
creation_date | string (date-time) | Job creation date (wire: creationDate) |
failed | integer | Number of failed replicated objects |
status | string | Job replication status (Active, Completed, Created, Failed, Preparing) |
stuck | integer | Number of stuck replicated objects |
total | integer | Total number of objects to replicate |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | name, 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) | |
create | insert | name, 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.
| 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"}}) |
name | string | Name |
region_name | string | Region name (wire: regionName) |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
SELECT examples​
- list
<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​
- create
- Manifest
<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
;
# Description fields are for documentation purposes
- name: region_storage_job_replications
props:
- name: name
value: "{{ name }}"
description: Required parameter for the region_storage_job_replications resource.
- name: region_name
value: "{{ region_name }}"
description: Required parameter for the region_storage_job_replications resource.
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the region_storage_job_replications resource.