Skip to content
Vaulthalla LogoVaulthalla

vh api-key

Reference for vh api-key - the provider credentials S3, R2 and B2 vaults use.

vh api-key stores the provider credentials that S3-compatible vaults use: an access key, its secret, the provider and its endpoint. Aliases include vh aku and vh ak. Secrets are encrypted at rest and never printed back.

1vh api-key create r2-main \2  --access <access-key> \3  --secret <secret-key> \4  --provider cloudflare-r2 \5  --endpoint https://<account-id>.r2.cloudflarestorage.com

Backblaze B2 example (the endpoint is the account's S3 endpoint, and the region the one it names):

1vh api-key create b2-main \2  --access <keyID> \3  --secret <applicationKey> \4  --provider backblaze-b2 \5  --endpoint https://s3.us-west-004.backblazeb2.com \6  --region us-west-004

A credential can also administer its account's buckets: see vh upstream.

Commands

vh api-key
CommandArgumentsAliasesEffectSummary
lsreadList all API keys in the system.
<api_key_name>new, add, mkwriteCreate a new API key for accessing S3 storage.
<api_key>remove, del, rmdestructiveDelete an existing API key by ID.
<api_key>show, getreadDisplay detailed information about an API key.

vh api-key list

vh api-key list [options]
vh api-key list
OptionAliasesTypeDefaultSummary
-nlimitLimit the number of vaults displayed.
-ppageSpecify the page number when using --limit for pagination.
fieldSort by this field.
asc or descSort direction: asc or desc.
textOnly show entries matching this text.
-jflagOutput in JSON format.

vh api-key create

vh api-key create <api_key_name> --access <accessKey> --secret <secret> --provider <provider> --endpoint <endpoint> [--region <region>]

Supported provider values include aws, cloudflare-r2, wasabi, backblaze-b2, digitalocean, minio, ceph, storj, and other. The endpoint is required. A credential whose provider contradicts its endpoint (an AWS, Cloudflare R2 or Backblaze B2 endpoint saved under another provider) is refused.

vh api-key create
OptionAliasesTypeDefaultRequiredSummary
accessKeyYesAccess key for the S3 provider.
secretYesSecret key for the S3 provider.
providerYesS3 provider (provider options: [aws | cloudflare-r2 | wasabi | backblaze-b2 | digitalocean | minio | ceph | storj | other ]).
--urlendpointYesCustom endpoint URL for the S3 provider (currently required for all providers).
regionautoNoRegion for the S3 provider.

vh api-key delete

vh api-key delete <api_key>

vh api-key info

vh api-key info <api_key>