Configuring Network Request Run Book Actions

Download this manual as a PDF file

This section describes how to customize the network request run book actions included in the "Datacenter Automation Utilities" PowerPack.

The PowerPack also includes action types that are used by the automation action.

Network Request Run Book Actions

You can use the following run book action policies to perform specific actions as part of the run book automations in the "Datacenter Automation Utilities":

Customizing the HTTP Action Type Template

You can use the "HTTP Action Template" run book action to create run book actions that make HTTP requests, such as a GET or a POST, to a third-party system.

The most common use cases for a new run book action created by this template is to send data to Microsoft Teams and Slack webhook endpoints. However, GET and POST requests can be made to any endpoint based on the configuration of the run book action. There are multiple configuration options that can change the behavior of this request action.

To edit the "HTTP Action Template" run book action template:

  1. Go to the Action Policy Manager page (Registry > Run Book > Actions).
  2. Locate the "HTTP Action Template" automation action, and then click its wrench icon (). The Editing Action page appears.

An image of the Policy Editor page.

  1. In the Action Policy Editor page, supply a value in each field.

  1. In the Input Parameters field, you can change the values of the following parameters:

  1. Click Save As.

    When you use this run book action in a run book automation policy, add the "Datacenter Automation: Format JSON as simple HTML" run book after this new run book action to present the JSON response from the HTTP request in a human-readable HTML-based format.

Example: Using the HTTP Action Template to Send an HTTP Request

To send an HTTP request from Skylar One to Microsoft Teams, you must create a new run book action using the "HTTP Action Template" action and align an automation policy. After you have completed the steps below, your Microsoft Teams channel should populate with Skylar One event messages based on the configured criteria. You can also send authentication for the request through the URL instead of using a Skylar One credential.

To send an HTTP request to Microsoft Teams using the "HTTP Action Template" action:

  1. Create an incoming webhook in Microsoft Teams using the instructions here: https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook.
  2. Go to the Action Policy Manager page (Registry > Run Book > Actions), locate the "HTTP Action Template" action, and then click its wrench icon ().
  3. Enter values in the following fields:
  1. In the Input Parameters field, change the values of the following parameters:

  1. Click Save As.
  2. To create an automation policy for your newly created run book action, see Creating and Customizing Run Book Automation Policies. Be sure to add the new run book action to the Aligned Actions field.