Skip to main content

data_region_alias_auths

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

Overview​

Namedata_region_alias_auths
TypeResource
Idovh.cloud_ai.data_region_alias_auths

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
access_keystringAccess key to the datastore (wire: accessKey)
regionstringRegion of the datastore
s_3_urlstringS3â„¢ compatible URL of the datastore (wire: s3Url)
secret_keystring (password)Secret key to the datastore (wire: secretKey)
tokenstring (password)Swift (or S3â„¢ compatible) Auth token
urlstringSwift storage URL

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectalias, region, service_nameGet an AI datastore auth in a given region by its alias

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

SELECT examples​

Get an AI datastore auth in a given region by its alias

SELECT
access_key,
region,
s_3_url,
secret_key,
token,
url
FROM ovh.cloud_ai.data_region_alias_auths
WHERE alias = '{{ alias }}' -- required
AND region = '{{ region }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;