Skip to main content

diagrid app access grant

Grant a caller access to invoke an App

diagrid app access grant <app> [flags]

Examples


# Allow order-api to invoke my-app.
diagrid app access grant my-app --project my-project --caller order-api

# Set the default action to deny (lock the app down; only granted callers get in).
diagrid app access grant my-app --project my-project --caller '*' --action deny

# Explicitly deny one caller while the default action is allow.
diagrid app access grant my-app --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