Lacework provides preconfigure API calls and an environment template for use with Postman.
Download the Collection and Environment
Download the Collection and the Environment files to your file system from the following links:
Import the Collection into Postman
- Start the Postman application.
Browse and select the collection file that was downloaded previously. Under collections, LaceworkAPI is displayed.
Import and Configure the Environment
In this section, you import the Lacework environment.
- To Manage Environments, click the gear in the upper right corner.
- Click Import and browse for the environment file that was previously downloaded.
An environment named Lacework displays.
- Click Lacework to edit the environment.
- Update the values in the INITIAL VALUE column to reflect your environment as described in the list below.
|Variable Name||Used by APIs||Description|
|AccountName||Required for all API calls using manual input||Specify the name of the account that was provisioned for you in Lacework, for example, if log into Lacework using the joe.lacework.net URL, the AccountName is joe.|
|AccountID||Compliance Report JSON and Compliance Report PDF using manual input||Specify the numeric ID of your AWS account. This option is used when pulling compliance reports for an AWS account.|
|SecretAccessKey||Required for all API Calls using manual input||Specify the secret key generated when you create an API key in the Lacework Access Key interface|
|AccessKeyID||Required for all API Calls using manual input||Specify the Access Key ID listed under Access Keys in your Lacework account.|
|AuthToken||Required for all but Request Session Token. Must be run prior to other API calls and uses automatic input.||Specify the token received by running the Request Session Token API call.|
|AgentToken||Get Agent Token Data and Update Agent Token using manual input||Specify the token used by agents to communicate with your account. These can be found by using the List Agent Tokens API call or in the AGENTS tab in the Lacework Console.|
|TokenEnable||Create Agent Token & Update Agent Token using manual input||Enable or disable the selected agent token.|
|EventID||Query a single event using manual input||Specify the Lacework generated Event ID.|
|StartDateTime||Get Events for Date Range using manual input||Specify a start date and time using the format: yyyy-MM-dd'T'HH:mm:ssZ, for example: 2019-04-13T16:00:00Z. This is used by Event API to set the timeframe.|
|EndDateTime||Get Events for Date Range using manual input||Specify an end date and time using the format: yyyy-MM-dd'T'HH:mm:ssZ, for example: 2019-04-13T16:00:00Z. This is used by Event API to set the timeframe.|
|INTG_GUID||Integrations using manual input||This is an ID found in the Get Integrations API. This is used by Enable/Disable Integration API to enable or disable the Integration.|