Skip to main content

diagrid agent access test

Test whether a caller is allowed to invoke an Agent

Description

Test whether a caller is allowed to invoke an Agent.

The Agent's access policy is read from the control plane and evaluated locally: the caller's explicit rule wins, otherwise the policy's default action applies. No call is made to the Agent itself.

diagrid agent access test <agent> [flags]

Examples


# Check whether order-api may invoke my-agent.
diagrid agent access test my-agent --project my-project --caller order-api

Options

-p, --project string Name of existing project
--caller string ID of the caller to simulate
-o, --output string Output format, supported [table, yaml, json] (default "table")
-h, --help help for test

Options inherited from parent commands

--api-key string Diagrid Cloud API key

SEE ALSO