oz0 tenant credential bind
Bind a secret or a connection's token to a host (--host and --header, --basic-user or --query), or a secret to an argument (--function and --argument)
For: Operators and developers looking up a command.
Bind a secret or a connection's token to a host (--host and --header, --basic-user or --query), or a secret to an argument (--function and --argument)
Usage
oz0 tenant credential bind <tenant> <SECRET> | bind <tenant> --connection <NAME> [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--argument | string | an argument binding: the argument's JSON pointer, such as /env/API_KEY | |
--basic-user | string | Basic authentication as this user, with the secret as the password | |
--connection | string | bind this connection's per-call token instead of a secret: sealed to the node for each call | |
--format | string | {secret} | the header's value, with {secret} where the value goes |
--function | string | an argument binding: the <tool>.<function> whose argument takes {{secret:NAME}} | |
--header | string | the header the secret goes in, such as Authorization | |
--host | string | the host the secret goes to: a name, or *.domain for one label more; never an address | |
--json | bool | print JSON instead of a table | |
--method | stringArray | a method the secret goes on (repeatable; default: every method) | |
--path-prefix | string | the only path, and the paths below it, the secret goes on (a * matches within one segment) | |
--port | int32 | 443 | the host's port |
--query | string | a query parameter the secret goes in (only where the API wants one: logs keep URLs) | |
--shape | string | what the placeholder looks like, such as ghp_{36}, for a tool that checks a token's format |
Inherited flags
| Flag | Type | Default | Description |
|---|---|---|---|
--context | string | $OZ0_CONTEXT or <config dir>/orchestrator-zero/context.json | CLI context file written by server init |
--log-level | string | info | log level: debug, info, warn or error |
See all oz0 commands and the global flags.