# 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

  # Allow multiple callers at once.
  diagrid agent access grant my-agent --project my-project --callers order-api,payment-svc,inventory

  # 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 a single caller to grant access to (use '*' to set the default action)
      --callers strings   Comma-separated caller IDs to grant access to
      --action string     Action for the caller(s): 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](./access.md)	 - Manage which callers may invoke an Agent
