rpk ai egress-credential create
Create an Egress credential.
Choose the auth by setting flags from one group; the group you use selects it: static-key, api-key, basic. Setting flags from two groups is an error.
Examples
This section provides examples of how to use rpk ai egress-credential create.
rpk ai egress-credential create my-egress-credential \
--allowed-hosts ALLOWED_HOSTS \
--static-key.key-secret-ref MCP_API_KEY
Flags
| Value | Type | Description |
|---|---|---|
|
string |
Display name. |
|
string |
Description. |
|
stringArray |
Tags. (repeatable key=value; replaces the full map on update). |
|
string |
Secret store reference for the API key. (required in its group). |
|
string |
HTTP header name for the API key. Defaults to 'Authorization'. |
|
string |
Secret store reference for the API key. (required in its group). |
|
string |
Header name OR query-string parameter name to send the key under. (required in its group). |
|
string |
Whether to send the API key as an HTTP header or a query parameter. (one of: header, query). |
|
string |
Username for HTTP Basic authentication. (required in its group). |
|
string |
Secret store reference for the Basic Auth password (or API token used as a password). (required in its group). |
|
strings |
Required: 1 to 32 distinct entries, as EgressCredential.allowed_hosts describes, for example api.github.com or *.example.com. (repeatable; replaces the full list on update; required). |
|
string |
manifest to create from (YAML or JSON; "-" for stdin); flags override file values. |
|
bool |
print the request that would be sent (with the computed update mask) and exit without calling the server. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |