Vaults#
Do not construct this object directly, instead access the
vaults
property of an ngrok.Client
object.
- class ngrok.services.VaultsClient(client)[source]#
Vaults is an api service for securely storing and managing sensitive data such as secrets, credentials, and tokens.
- create(name='', metadata='', description='')[source]#
Create a new Vault
- Parameters:
name (
str
) – Name of vaultmetadata (
str
) – Arbitrary user-defined metadata for this Vaultdescription (
str
) – description of Vault
https://ngrok.com/docs/api#api-vaults-create
- Return type:
- get(id)[source]#
Get a Vault by ID
- Parameters:
id (
str
) – a resource identifier
https://ngrok.com/docs/api#api-vaults-get
- Return type:
- list(before_id=None, limit=None)[source]#
List all Vaults owned by account
- Parameters:
before_id (
str
) –limit (
str
) –
https://ngrok.com/docs/api#api-vaults-list
- Return type:
- update(id, name=None, metadata=None, description=None)[source]#
Update an existing Vault by ID
- Parameters:
id (
str
) – identifier for Vaultname (
str
) – Name of vaultmetadata (
str
) – Arbitrary user-defined metadata for this Vaultdescription (
str
) – description of Vault
https://ngrok.com/docs/api#api-vaults-update
- Return type: