diagrid agent access grant
Grant a caller access to invoke an Agent
diagrid agent access grant <agent> [flags]
Examples
# Allow order-api to invoke my-agent.
diagrid agent access grant my-agent --project my-project --caller order-api
# Set the default action to deny (lock the agent down; only granted callers get in).
diagrid agent access grant my-agent --project my-project --caller '*' --action deny
# Explicitly deny one caller while the default action is allow.
diagrid agent access grant my-agent --project my-project --caller bad-app --action deny
Options
-p, --project string Name of existing project
--caller string ID of the caller to grant access to (use '*' to set the default action)
--action string Action for the caller: allow or deny (default "allow")
-w, --wait Wait for long-running resource update to finish
-h, --help help for grant
Options inherited from parent commands
--api-key string Diagrid Cloud API key
SEE ALSO
- diagrid agent access - Manage which callers may invoke an Agent