resource_secret_configs
Creates, updates, deletes, gets or lists a resource_secret_configs resource.
Overview​
| Name | resource_secret_configs |
| Type | Resource |
| Id | ovh.okms.resource_secret_configs |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
cas_required | boolean | If set to true, the Cas (Check And Set) parameter will be required and verified for each secret update (wire: casRequired) |
deactivate_version_after | string | Time duration before a version is deactivated. If 0s, default configuration (unlimited) is applied. (wire: deactivateVersionAfter) |
max_versions | integer | The number of versions to keep. If 0, default configuration (10) is applied. (wire: maxVersions) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | okms_id | Returns the service-level defaults applied to new secrets: casRequired, maxVersions and deactivateVersionAfter. | |
update | update | okms_id | Updates the service-level defaults applied to new secrets.<br />Existing secrets keep the metadata they were created with. |
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"}}) |
okms_id | string (uuid) | Okms ID (wire: okmsId) |
SELECT examples​
- get
Returns the service-level defaults applied to new secrets: casRequired, maxVersions and deactivateVersionAfter.
SELECT
cas_required,
deactivate_version_after,
max_versions
FROM ovh.okms.resource_secret_configs
WHERE okms_id = '{{ okms_id }}' -- required
;
UPDATE examples​
- update
Updates the service-level defaults applied to new secrets.<br />Existing secrets keep the metadata they were created with.
UPDATE ovh.okms.resource_secret_configs
SET
cas_required = {{ cas_required }},
deactivate_version_after = '{{ deactivate_version_after }}',
max_versions = {{ max_versions }}
WHERE
okms_id = '{{ okms_id }}' --required
RETURNING
cas_required,
deactivate_version_after,
max_versions;