Lists all secret versions for a secret.

GET {{baseUrl}}/secrets/:secretId/versions?limit=<integer>&page=<string>&sortBy=VERSION_NUMBER&sortOrder=DESC

Lists all secret versions for the specified secret.

Request Params

KeyDatatypeRequiredDescription
limitstringThe maximum number of items to return in a paginated "List" call.
pagestringThe value of the opc-next-page response header
from the previous "List" call.
sortBystringThe field to sort by. Only one sort order may be provided. Time created is default ordered as descending. Display name is default ordered as ascending.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

HEADERS

KeyDatatypeRequiredDescription
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.
Acceptstring

RESPONSES

status: OK

[{&quot;secretId&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeCreated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;versionNumber&quot;:&quot;\u003clong\u003e&quot;,&quot;contentType&quot;:&quot;BASE64&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;stages&quot;:[&quot;PENDING&quot;,&quot;CURRENT&quot;],&quot;timeOfDeletion&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeOfExpiry&quot;:&quot;\u003cdateTime\u003e&quot;},{&quot;secretId&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeCreated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;versionNumber&quot;:&quot;\u003clong\u003e&quot;,&quot;contentType&quot;:&quot;BASE64&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;stages&quot;:[&quot;DEPRECATED&quot;,&quot;LATEST&quot;],&quot;timeOfDeletion&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeOfExpiry&quot;:&quot;\u003cdateTime\u003e&quot;}]