secret id/name
secret value
a promise that resolves to a version object
since v2.0.0 use createVersionOfSecret instead
createVersionOfSecret(secretId: string, value: string): Promise<any>
Create secret
secret id/name
secret value
secret description
Optional
encoding: stringsecret encoding (only generic
is supported)
Optional
useInPlaceholders: booleanflag 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
Optional
includeActiveValue: booleaninclude active value of secret (default: false)
Optional
target: stringHost URL of target environment to encrypt secret value for
Promise resolving to a SecretsExportInterface object.
Export all secrets
Optional
includeActiveValues: booleaninclude active values of secrets (default: false)
Optional
target: stringHost URL of target environment to encrypt secret values for
Promise resolving to an SecretsExportInterface object.
Get secret
secret id/name
a promise that resolves to a secret
Get secret versions
secret id/name
a promise that resolves to an array of secret versions
since v2.0.0 use readVersionsOfSecret instead
readVersionsOfSecret(secretId: string): Promise<any>
Get all secrets
a promise that resolves to an array of secrets
Get version of secret
secret id/name
secret version
a promise that resolves to a version object
since v2.0.0 use readVersionOfSecret instead
readVersionOfSecret(secretId: string, version: string): Promise<any>
Import secret by id
secret id/name
import data
Optional
includeActiveValue: booleaninclude active value of secret (default: false)
Optional
source: stringHost URL of source environment where the secret was exported from
imported secret object
Import secrets
import data
Optional
includeActiveValues: booleaninclude active values of secrets (default: false)
Optional
source: stringHost URL of source environment where the secrets were exported from
array of imported secret objects
Create secret
secret id/name
secret value
secret description
Optional
encoding: stringsecret encoding (only generic
is supported)
Optional
useInPlaceholders: booleanflag indicating if the secret can be used in placeholders
a promise that resolves to a secret
since v2.0.0 use createSecret instead
createSecret(secretId: string, value: string, description: string, encoding?: string, useInPlaceholders?: boolean): Promise<any>
Read secret
secret id/name
a promise that resolves to a secret
Read the value of a secret
secret id/name
Optional
target: stringHost URL of target environment to encrypt secret value for
Optional
decrypt: booleanretrieve 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
Optional
target: stringHost URL of target environment to encrypt secret values for
Optional
decrypt: booleanretrieve secret values in the clear (default: false)
a promise that resolves to a map of secret ids and values
Read all secrets
a promise that resolves to an array of secrets
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
Set secret description
secret id/name
secret description
a promise that resolves to an empty string
since v2.0.0 use updateSecretDescription instead
updateSecretDescription(secretId: string, description: string): Promise<any>
Update the status of a version of a secret
secret id/name
secret version
status
a promise that resolves to a status object
since v2.0.0 use enableVersionOfSecret or disableVersionOfSecret instead
enableVersionOfSecret(secretId: string, version: string): Promise<any>
disableVersionOfSecret(secretId: string, version: string): Promise<any>
Create new secret version