Executing a Take Action

This example describes how to use the POST /system/actions/execute endpoint to execute a Take Action.

When using this endpoint:
  • You must specify the name of a defined Take Action using the name query parameter.
  • You must provide a request body that includes the destination property that lists the nodes (managed systems) where to execute the Take Action.
  • If variables are used in the Take Action, you can specify the variable and value pairs in the arguments property in the request body.
The format of the path is as follows:
https://host:port/api/v1/system/actions/execute?name=action_name
where action_name is the name of a defined Take Action.
The format of the request body is as follows:
{
  "destination": ["node_1","node_2"]
  "arguments":
    { 
      "variable_1":"value_1",
      "variable_2":"value_2"
    }
}
where:
  • node_n is one or more nodes (managed systems), listed in JSON array format, where to execute the Take Action
  • variable_n and value_n are the names and values for variables in the Take Action