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 globally unique as actions are not namespaced.

For more information, see the actions subcommand.

Examples

Create a custom action named 'install_package':

otdfctl policy actions create --name install_package

Options

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

Aliases

c, add, new