Skip to main content

region_storage_multipart_uploads

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

Overview​

Nameregion_storage_multipart_uploads
TypeResource
Idovh.cloud_storage.region_storage_multipart_uploads

Fields​

The following fields are returned by SELECT queries:

StorageMultipartUpload

NameDatatypeDescription
idstringMultipart upload ID
created_atstring (date-time)Initiation date of the multipart upload (wire: createdAt)
keystringObject key
storage_classstringStorage class of the object (DEEP_ARCHIVE, GLACIER_IR, HIGH_PERF, STANDARD, STANDARD_IA) (wire: storageClass)

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, key<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,
created_at,
key,
storage_class
FROM ovh.cloud_storage.region_storage_multipart_uploads
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_multipart_uploads (
key,
storage_class,
name,
region_name,
service_name
)
SELECT
'{{ key }}' /* required */,
'{{ storage_class }}',
'{{ name }}',
'{{ region_name }}',
'{{ service_name }}'
RETURNING
id,
created_at,
key,
storage_class
;