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
Key | Datatype | Required | Description |
---|---|---|---|
versionNumber | number | The version number of the secret. | |
secretVersionName | string | The 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.) | |
stage | string | The rotation state of the secret version. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Unique identifier for the request. | |
Accept | string |
RESPONSES
status: OK
{"secretId":"\u003cstring\u003e","versionNumber":"\u003clong\u003e","metadata":{"anim3":{}},"secretBundleContent":{"contentType":"BASE64"},"stages":["CURRENT","DEPRECATED"],"timeCreated":"\u003cdateTime\u003e","timeOfDeletion":"\u003cdateTime\u003e","timeOfExpiry":"\u003cdateTime\u003e","versionName":"\u003cstring\u003e"}