Skip to main content

versions

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

Overview​

Nameversions
TypeResource
Idoci.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:

NameAccessible byRequired ParamsOptional ParamsDescription
cancel_secret_version_deletionexecsecretId, secretVersionNumber, regionif-match, opc-request-idCancels the scheduled deletion of a secret version.
schedule_secret_version_deletionexecsecretId, secretVersionNumber, regionif-match, opc-request-idSchedules 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.

NameDatatypeDescription
regionstringOCI 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)
secretIdstringThe OCID of the secret.
secretVersionNumberinteger (int64)The version number of the secret.
if-matchstringFor 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-idstringUnique 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​

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 }}'
;