Skip to main content

secret_bundle_versions

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

Overview​

Namesecret_bundle_versions
TypeResource
Idoci.secrets.secret_bundle_versions

Fields​

The following fields are returned by SELECT queries:

The properties of the secret bundle. (Secret bundle version summary objects do not include the actual contents of the secret.)<br />

NameDatatypeDescription
secretIdstringThe OCID of the secret.
stagesarrayA list of possible rotation states for the secret bundle.
timeCreatedstring (date-time)The time when the secret bundle was created.
timeOfDeletionstring (date-time)An optional property indicating when to delete the secret version, expressed in [RFC 3339](https:​//tools.ietf.org/html/rfc3339) timestamp format. Example: 2019-04-03T21:10:29.600Z
timeOfExpirystring (date-time)An optional property indicating when the secret version will expire, expressed in [RFC 3339](https:​//tools.ietf.org/html/rfc3339) timestamp format. Example: 2019-04-03T21:10:29.600Z
versionNamestringThe version name of the secret bundle, as provided when the secret was created or last rotated.
versionNumberinteger (int64)The version number of the secret.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsecretId, regionopc-request-id, limit, page, sortBy, sortOrderLists all secret bundle versions for the specified secret.

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.
limitintegerThe maximum number of items to return in a paginated "List" call. For information about pagination, see [List Pagination](../../../#API/Concepts/usingapi.htm#List_Pagination).
opc-request-idstringUnique identifier for the request.
pagestringThe value of the opc-next-page response header from the previous "List" call. For information about pagination, see [List Pagination](../../../#API/Concepts/usingapi.htm#List_Pagination).
sortBystringThe field to sort by. You can specify only one sort order. The default order for VERSION_NUMBER is descending.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

SELECT examples​

Lists all secret bundle versions for the specified secret.

SELECT
secretId,
stages,
timeCreated,
timeOfDeletion,
timeOfExpiry,
versionName,
versionNumber
FROM oci.secrets.secret_bundle_versions
WHERE secretId = '{{ secretId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
;