secret id/name
secret value
secret description
Optionalencoding: string
secret encoding (only generic is supported)
OptionaluseInPlaceholders: boolean
flag indicating if the secret can be used in placeholders
a promise that resolves to a secret
Create version of secret
secret id/name
secret value
a promise that resolves to a version object
Delete secret
secret id/name
a promise that resolves to a secret object
Delete version of secret
secret id/name
secret version
a promise that resolves to a version object
Disable a version of a secret
secret id/name
secret version
a promise that resolves to a status object
Enable a version of a secret
secret id/name
secret version
a promise that resolves to a status object
Export secret. The response can be saved to file as is.
secret id/name
OptionalincludeActiveValue: boolean
include active value of secret (default: false)
Optionaltarget: string
Host URL of target environment to encrypt secret value for
Promise resolving to a SecretsExportInterface object.
Export all secrets
OptionalincludeActiveValues: boolean
include active values of secrets (default: false)
Optionaltarget: string
Host URL of target environment to encrypt secret values for
Promise resolving to an SecretsExportInterface object.
Find the versions of a secret that pruneVersionsOfSecret would delete, without deleting anything
secret id/name
OptionalkeepLoaded: boolean
true to keep the currently loaded secret versions regardless of if they are active or not. Default: false
OptionalkeepDeactivated: boolean
true to keep the deactivated versions and only prune the active versions that aren't the latest version. Default: false
a promise that resolves to the version objects that would be pruned
Import secret by id
secret id/name
import data
OptionalincludeActiveValue: boolean
include active value of secret (default: false)
Optionalsource: string
Host URL of source environment where the secret was exported from
imported secret object, or null if no update was made
Import secrets
import data
OptionalincludeActiveValues: boolean
include active values of secrets (default: false)
Optionalsource: string
Host URL of source environment where the secrets were exported from
OptionalresultCallback: ResultCallback<SecretSkeleton>
Optional callback to process individual results. When given, the outcome of every secret is passed to it once, as it happens: a secret that was imported as the secret (a secret that needed no update as it is in the import data, without its value), a secret that could not be imported as an error that names the secret and carries the cause. Such a secret is not part of the result and does not stop the others, and the function does not throw for it. Without it, the failures are collected and thrown as one error after every secret was tried. Failing to resolve the values of the secrets (for example a value that cannot be decrypted) always throws, before any secret is imported.
array of imported secret objects
Prune versions of secret that are not the latest secret version
secret id/name
OptionalkeepLoaded: boolean
true to keep the currently loaded secret versions regardless of if they are active or not. Default: false
OptionalkeepDeactivated: boolean
true to keep the deactivated versions and only prune the active versions that aren't the latest version. Default: false
OptionalresultCallback: ResultCallback<VersionOfSecretSkeleton>
Optional callback to process individual results
a promise that reolves to the pruned version objects
Read secret
secret id/name
a promise that resolves to a secret
Read the value of a secret
secret id/name
Optionaltarget: string
Host URL of target environment to encrypt secret value for
Optionaldecrypt: boolean
retrieve secret value in the clear (default: false)
a promise that resolves to the value of the secret
Read the values of an array of secrets
secret id/name
Optionaltarget: string
Host URL of target environment to encrypt secret values for
Optionaldecrypt: boolean
retrieve secret values in the clear (default: false)
a promise that resolves to a map of secret ids and values
Read version of secret
secret id/name
secret version
a promise that resolves to a version object
Read versions of secret
secret id/name
a promise that resolves to an array of secret versions
Update secret
secret id/name
Optionaldescription: string
optional secret description; if provided, attempts to update the secret description
Optionalvalue: string
optional secret value; if provided, attempts to create a new version of the secret
imported secret object, or null if no update was made
Update secret description
secret id/name
secret description
a promise that resolves to the updated secret object if a change was made, otherwise returns null
Create secret