Skip to main content

Get action

get
/api/pvlt/1.0/ctl/actions/{action}

Gets an action.

The role performing this operation must have:

  • The CapActionReader capability.
  • At least one allowing policy and no denying policies for the read operation for the action provided in the call.

See identity and access management for more information about how capabilities are used to control access to operations and policies are used to control access to data.

Request

Path parameters

  • action - string required*

    The name of an action.

Query parameters

  • custom_audit - string

    Custom audit information to be included in the audit log.

Possible responses

The request is successful.

object required*

An action definition.

  • name - string required*

    The name of the action.

  • description - string

    A description of the action.

  • function - string required*

    The bundle and function name formatted as <bundle-name>.<function-name>.

  • role - string required*

    The IAM role for the action. The role determine the operations or data available to the action. For example, a role can allow an action to read the email address from any object but deny it from reading credit card numbers.

  • is_builtin - boolean

    Whether this action is built-in or user-defined. Sending a value for this field is ignored.

  • creation_time - string

    The time when the action was created.

  • modification_time - string

    The time when the action was last modified.

Example
{
"name": "string",
"description": "string",
"function": "bundle1.function1",
"role": "string"
}

Try the API

Authorization

Path parameters

Query parameters

Navigate to the docs of your local Vault installation to try the API directly from there.

Code examples

Example