Manage vaults using 1Password SDKs Beta
The Vaults class provides methods for managing vaults in 1Password. The SDK can only get information about vaults that the authenticated user or service account has access to.
Requirements
To use this feature, you'll need to install the 1Password SDK from the beta branch:
- Go
- JavaScript
- Python
Get a vault overview
You can use Vaults.GetOverview to retrieve high-level metadata about a specific vault.
- Go
- JavaScript
- Python
The following example uses the vaultID variable to specify the unique identifier (ID) of the vault to fetch.
The following example uses the vaultId variable to specify the unique identifier (ID) of the vault to fetch.
The following example uses the vault_id variable to specify the unique identifier (ID) of the vault to fetch.
Get vault details
You can use Vaults.Get to retrieve the complete object for a specific vault.
- Go
- JavaScript
- Python
The following example gets the full details for the vault you fetched in the previous step.
The following example gets the full details for the vault you fetched in the previous step.
The following example gets the full details for the vault you fetched in the previous step.