versions
Creates, updates, deletes, gets or lists a versions resource.
Overview​
| Name | versions |
| Type | Resource |
| Id | oci.vault.versions |
Fields​
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
cancel_secret_version_deletion | exec | secretId, secretVersionNumber, region | if-match, opc-request-id | Cancels the scheduled deletion of a secret version. |
schedule_secret_version_deletion | exec | secretId, secretVersionNumber, region | if-match, opc-request-id | Schedules the deletion of the specified secret version. This deletes it after the specified retention period ends. You can only<br />delete a secret version if the secret version rotation state is marked as DEPRECATED.<br /> |
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 |
|---|---|---|
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
secretId | string | The OCID of the secret. |
secretVersionNumber | integer (int64) | The version number of the secret. |
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
opc-request-id | string | Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. |
Lifecycle Methods​
- cancel_secret_version_deletion
- schedule_secret_version_deletion
Cancels the scheduled deletion of a secret version.
EXEC oci.vault.versions.cancel_secret_version_deletion
@secretId='{{ secretId }}' --required,
@secretVersionNumber='{{ secretVersionNumber }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}'
;
Schedules the deletion of the specified secret version. This deletes it after the specified retention period ends. You can only<br />delete a secret version if the secret version rotation state is marked as DEPRECATED.<br />
EXEC oci.vault.versions.schedule_secret_version_deletion
@secretId='{{ secretId }}' --required,
@secretVersionNumber='{{ secretVersionNumber }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}'
@@json=
'{
"timeOfDeletion": "{{ timeOfDeletion }}"
}'
;