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
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
ls | read | List all API keys in the system. | ||
<api_key_name> | new, add, mk | write | Create a new API key for accessing S3 storage. | |
<api_key> | remove, del, rm | destructive | Delete an existing API key by ID. | |
<api_key> | show, get | read | Display detailed information about an API key. |
vh api-key list
vh api-key list [options]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-n | limit | Limit the number of vaults displayed. | ||
-p | page | Specify the page number when using --limit for pagination. | ||
field | Sort by this field. | |||
asc or desc | Sort direction: asc or desc. | |||
text | Only show entries matching this text. | |||
-j | flag | Output 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.
| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
accessKey | Yes | Access key for the S3 provider. | |||
secret | Yes | Secret key for the S3 provider. | |||
provider | Yes | S3 provider (provider options: [aws | cloudflare-r2 | wasabi | backblaze-b2 | digitalocean | minio | ceph | storj | other ]). | |||
--url | endpoint | Yes | Custom endpoint URL for the S3 provider (currently required for all providers). | ||
region | auto | No | Region for the S3 provider. |
vh api-key delete
vh api-key delete <api_key>vh api-key info
vh api-key info <api_key>