data_region_alias_auths
Creates, updates, deletes, gets or lists a data_region_alias_auths resource.
Overview​
| Name | data_region_alias_auths |
| Type | Resource |
| Id | ovh.cloud_ai.data_region_alias_auths |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
access_key | string | Access key to the datastore (wire: accessKey) |
region | string | Region of the datastore |
s_3_url | string | S3â„¢ compatible URL of the datastore (wire: s3Url) |
secret_key | string (password) | Secret key to the datastore (wire: secretKey) |
token | string (password) | Swift (or S3â„¢ compatible) Auth token |
url | string | Swift storage URL |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | alias, region, service_name | Get 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.
| Name | Datatype | Description |
|---|---|---|
alias | string | Alias |
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"}}) |
region | string | Region |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
SELECT examples​
- get
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
;