Skip to main content

otdfctl policy actions create

create - Create a Custom Action

Synopsis

otdfctl policy actions create [flags]

Description

Add a custom action to the platform Policy.

An Action name is normalized to lower case and may contain underscores (_) or hyphens (-) between other alphanumeric characters. Each name must be unique within a namespace.

For more information, see the actions subcommand.

Examples

Create a custom action named 'install_package':

otdfctl policy actions create --name install_package --namespace https://example.com

Options

-n, --name <name>
Name of the custom action (must be unique within a namespace) (required: true)
-s, --namespace <namespace>
Namespace ID or FQN (required: false)
-l, --label <label>
Optional metadata 'labels' in the format: key=value (required: false)

Aliases

c, add, new