Liongard actions & endpoints

Introduction

The Liongard Integration with Rewst delivers a robust set of actions and endpoints for interacting with Liongard. Below is a summary of each section, highlighting the diverse capabilities and opportunities provided through the Liongard Integration:

Actions

Access Key

List Access Keys

GET https://companyABC.app.liongard.com/api/v1/access-keys

Returns a List of Access Tokens created by user

Create Access Key

POST https://companyABC.app.liongard.com/api/v1/access-keys

Create an Access Token with the permission of user or with only 'Add Agent' permission

Delete Access Key

DELETE https://companyABC.app.liongard.com/api/v1/access-keys/{AccessKeyID}

Delete Access Token created by user

Agents

List Agents

GET https://companyABC.app.liongard.com/api/v1/agents

List all agents.

Delete Agent

DELETE https://companyABC.app.liongard.com/api/v1/agents/{AgentID}

Remove an agent

Get Agent by ID

GET https://companyABC.app.liongard.com/api/v1/agents/{AgentID}

Get a specific Agent.

Update Agent

PUT https://companyABC.app.liongard.com/api/v1/agents/{AgentID}

Edits a deployed liongard agent, cannot update On-Demand agents.

Flush Job Queue

POST https://companyABC.app.liongard.com/api/v1/agents/{AgentID}/flush

Empty an agent's job queue.

Alerts

List Alerts

GET https://companyABC.app.liongard.com/api/v1/tasks

Returns a list of alerts that have been raised.

Get Alert by ID

GET https://companyABC.app.liongard.com/api/v1/tasks/{TaskID}

Returns a single alert that has been raised.

Detections

List Detection Events

GET https://companyABC.app.liongard.com/api/v1/detections

Returns a list of all detection events.

Get Detections by ID

GET https://companyABC.app.liongard.com/api/v1/detections/{DetectionID}

Gets a specific detection.

Generic Request

Liongard API Request

GET https://companyABC.app.liongard.com/<url_path>

Generic action for making authenticated requests against the Liongard API

Groups

List Groups

GET https://companyABC.app.liongard.com/api/v1/groups

Returns a List of available Assignable groups for a user

Inspector

Get Inspector Templates

GET https://companyABC.app.liongard.com/api/v1/inspector/{InspectorId}/templates

Retrieve Inspector Config and SecureConfig Fields, using the Name key for launchpoint configuration, and distinguishing between SecureConfig and Config fields with Secure and Required keys.

Get Inspector Versions

GET https://companyABC.app.liongard.com/api/v1/inspector/{InspectorId}/versions

Get a list of Inspector Versions and their IDs, sorted by "desc" for easy access to the latest version based on the highest ID or "CreatedOn" field.

List Inspector Types

GET https://companyABC.app.liongard.com/api/v1/inspectors

Lists all avaialble Inspectors in Liongard

Launchpoints

Delete Launchpoints in Bulk

DELETE https://companyABC.app.liongard.com/api/v1/launchpoints

Remove all launchpoints.

List Launchpoints

GET https://companyABC.app.liongard.com/api/v1/launchpoints

Lists all launchpoints.

Create Launchpoint

POST https://companyABC.app.liongard.com/api/v1/launchpoints

Create a launchpoint. You will need to reference the inspector templates for ilding out the config and secure config objects for this launchpoint. Each Inspector has a different template that contains the necessary configuration fields.

Edit Launchpoints in Bulk

PUT https://companyABC.app.liongard.com/api/v1/launchpoints

Update many launchpoints to run on the same schedule.

Run Inspections in Bulk

POST https://companyABC.app.liongard.com/api/v1/launchpoints/run

Kick off many inspections.

Delete Launchpoint

DELETE https://companyABC.app.liongard.com/api/v1/launchpoints/{LaunchpointID}

Remove a single launchpoint.

Get Launchpoints by ID

GET https://companyABC.app.liongard.com/api/v1/launchpoints/{LaunchpointID}

Return a specific launchpoint by ID.

Update Launchpoint

PUT https://companyABC.app.liongard.com/api/v1/launchpoints/{LaunchpointID}

Edit a single inspector launchpoint, referencing inspector templates for configuring the launchpoint with specific configuration fields.

Run Inspection

GET https://companyABC.app.liongard.com/api/v1/launchpoints/{LaunchpointID}/run

Set a Launchpoint to run an inspection

Get Launchpoint Log

GET https://companyABC.app.liongard.com/api/v1/logs

Return the logs for a specific inspection.

System

List Systems

GET https://companyABC.app.liongard.com/api/v1/systems

List all systems.

Get System Detail View by ID

POST https://companyABC.app.liongard.com/api/v1/systems/{SystemID}/view

Returns the Raw data from the latest inspection for a system.

Timeline

List Timeline Entries

GET https://companyABC.app.liongard.com/api/v1/timeline

Fetch all timeline entries.

Get Timeline by ID

GET https://companyABC.app.liongard.com/api/v1/timeline/{TimelineID}

Fetch a specific timeline.

Get Timeline Detail

GET https://companyABC.app.liongard.com/api/v1/timeline/{TimelineID}/detail

Fetch the Raw timeline entry (including the entire dataprint).

Users

List Users

GET https://companyABC.app.liongard.com/api/v1/users

Returns a list of users in your Liongard Instance