Skip to main content

diagrid workflow access-policy example

Print an example access-policy resource

Description

Print an example access-policy resource.

The example is a valid, minimal access-policy you can edit and apply with "diagrid apply -f <file>". It is read from the spec embedded in the CLI, so no project or login is needed. Use "diagrid access-policy schema" for the full field reference.

diagrid workflow access-policy example [flags]

Examples


# Print an example access-policy as YAML
diagrid access-policy example

# Bootstrap a new resource file from the example
diagrid access-policy example > access-policy.yaml

Options

-h, --help help for example
-o, --output string Output format, supported [yaml, json] (default "yaml")

Options inherited from parent commands

--api-key string Diagrid Cloud API key

SEE ALSO