CB Response: How to Download a Sensor Package Via RestAPI Using Curl
search cancel

CB Response: How to Download a Sensor Package Via RestAPI Using Curl

book

Article ID: 288013

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

How to download a sensor package using Rest API and Curl.

Environment

  • Carbon Black Response Server: All Versions
  • Carbon Black Rest API

Resolution

Run this command with your a user API token that has access to the Sensor group
Linux:
curl -k -XGET -H "X-Auth-Token: <USER_API_TOKEN>" "https://<server>.my.carbonblack.io/api/v1/group/<groupid>/installer/linux" --output mylinuxsensor.tar.gz
Windows:
​​​​​​​curl -k -XGET -H "X-Auth-Token: <USER_API_TOKEN>" "https://<server>.my.carbonblack.io/api/v1/group/<groupid>/installer/windows" --output mywindowssensor.tar.gz
macOS:
curl -k -XGET -H "X-Auth-Token: <USER_API_TOKEN>" "https://<server>.my.carbonblack.io/api/v1/group/<groupid>/installer/osx" --output mymacosensor.tar.gz