Skip to main content
Skip table of contents

Cloudaware REST API

This guide explains how to set up access to the Cloudaware REST API and invoke API methods using HTTP requests.

Use case: Create incidents in Cloudaware when a specific instance is overutilized.

Prerequisites

  1. Create a Google Cloud Project (for this purpose, a free trial account in Google Cloud will work).

  2. Contact support@cloudaware.com to provide the email address associated with your Google Cloud Project.

Create an API Key

Once access is granted, generate an API key. The key is required to authenticate requests to the Cloudaware API. 

  1. Log in to the Google Console. Navigate to APIs & ServicesLibrary.

  2. Filter APIs by Private:

  3. Locate and select external.endpoints.cloudaware-vm.cloud.goog Enable.

  4. Go back to APIs & Services. Select Credentials → click +CREATE CREDENTIALS → API Key.

  5. Copy the API Key to the clipboard.

Configure Incident Webhook in Cloudaware

  1. Log in to Cloudaware → Admin.

    Cloudaware REST API - configure Incident Webhook - admin.png

  2. Find CloudAware Incident Webhook in Other integrations. Click +ADD.

    Cloudaware REST API - configure Incident Webhook - admin - add integration.png

  3. Set a name* for this integration. 

    Cloudaware REST API - configure Incident Webhook - integration details.png

    *This name appears in the ‘Incident Source Provider’ field on the CloudAware Incident object. Use it to distinguish between incidents from different providers or accounts.

  4. Replace {API_KEY} in the URL with your actual API Key (see step 5 above). Use this updated URL to send HTTP requests.

    Cloudaware REST API - configure Incident Webhook - integration URL.png

Set up a request in APIs Explorer

The Google APIs Explorer is a tool to explore and test APIs. Set the request details to create a test incident in Cloudaware.

  1. Open the Google APIs Explorer.

  2. Click the gear icon → select Set API key / OAuth 2.0 Client ID. 

    Cloudaware REST API - set up a request in APIs Explorer - select Set API key OAuth 2.0 Client ID.png

  3. Select Custom credentials and paste your API key. Click Save.

    Cloudaware REST API - set up a request in APIs Explorer - paste API key in Custom credentials.png

  4. Navigate to Services External API → external.incidents.create.

    Cloudaware REST API - set up a request in APIs Explorer - select External API for incidents.png

  5. Enter the required parameters. Use the help icons (?) next to each field to get tips and field descriptions.

  1. Choose Authorize and execute or Execute without OAuth, depending on your API method.

  2. Verify that a new incident appears in the Cloudaware CMDB.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.