Skip to main content

reference_storage_objects

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

Overview​

Namereference_storage_objects
TypeResource
Idovh.public_cloud.reference_storage_objects

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
bucket_optionsobjectAllowed values for the bucket creation options (wire: bucketOptions)
storage_classesarrayObject storage classes and their billing constraints (wire: storageClasses)
validationobjectInput validation constraints applied to object storage resources

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject_idReturns the storage classes with their minimum billed retention, the values accepted at bucket creation, and the allowed durations for restoring an archived object. Region capabilities, such as replication support, are returned by each region in /reference/region.

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"}})
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

Returns the storage classes with their minimum billed retention, the values accepted at bucket creation, and the allowed durations for restoring an archived object. Region capabilities, such as replication support, are returned by each region in /reference/region.

SELECT
bucket_options,
storage_classes,
validation
FROM ovh.public_cloud.reference_storage_objects
WHERE project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;