Gets a secret bundle.

GET {{baseUrl}}/secretbundles/:secretId?versionNumber=0&secretVersionName=<string>&stage=PENDING

Gets a secret bundle that matches either the specified stage, secretVersionName, or versionNumber parameter. If none of these parameters are provided, the bundle for the secret version marked as CURRENT will be returned.

Request Params

KeyDatatypeRequiredDescription
versionNumbernumberThe version number of the secret.
secretVersionNamestringThe name of the secret. (This might be referred to as the name of the secret version. Names are unique across the different versions of a secret.)
stagestringThe rotation state of the secret version.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique identifier for the request.
Acceptstring

RESPONSES

status: OK

{&quot;secretId&quot;:&quot;\u003cstring\u003e&quot;,&quot;versionNumber&quot;:&quot;\u003clong\u003e&quot;,&quot;metadata&quot;:{&quot;anim3&quot;:{}},&quot;secretBundleContent&quot;:{&quot;contentType&quot;:&quot;BASE64&quot;},&quot;stages&quot;:[&quot;CURRENT&quot;,&quot;DEPRECATED&quot;],&quot;timeCreated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeOfDeletion&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeOfExpiry&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;versionName&quot;:&quot;\u003cstring\u003e&quot;}