Skip to main content

Create an action

Creates a new approval action.

Request Body
nrn string REQUIRED

The NRN of the resource (including children resources) where the action will apply

entity string REQUIRED

The entity to which this action applies. Example: deployment

action string REQUIRED

The action to which this action applies. Example: deployment:create

dimensions object

The set of dimension/values to which this action applies.

on_policy_success string REQUIRED

Possible values: [approve, manual]

The action to be taken on policy success.

on_policy_fail string REQUIRED

Possible values: [manual, deny]

The action to be taken on policy failure.

Responses
200

The operation was successful

Schema OPTIONAL
id integer

A system-wide unique ID representing the action

nrn string

The NRN of the resource (including children resources) where the action will apply

entity string

The entity to which this action applies. Example: deployment

action string

The action to which this action applies. Example: deployment:create

dimensions object OPTIONAL

The set of dimension/values to which this action applies.

on_policy_success string

Possible values: [approve, manual]

The action to be taken on policy success.

on_policy_fail string

Possible values: [manual, deny]

The action to be taken on policy failure.