A CarbonBlack API library written in PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src/CBApi
tests
.gitignore
.travis.yml
README.md
composer.json
phpunit.xml

README.md

CarbonBlack PHP API

Build Status

Requires

  • PHP >= 5.5

Composer

composer require javabudd/cb-api

Usage

$api = new \CBApi\Api('https://localhost', 'XXXXXXXXXXXXXXXXXXXXXXXXXX');

/** Get */
$api->get()->processSearch('process_name:svchost.exe -path:c:\\windows\\');

/** Put */
$api->put()->modifyWatchlist(1, 'newWatchlist');

/** Post */
$api->post()->addWatchList(
    [
        'basicQueryValidation' => true,
        'type'                 => 'events',
        'searchQuery'          => 'q=test1=1&test2=2',
        'cbUrlVer'             => 'cb.urlver=1',
        'name'                 => 'test',
        'readOnly'             => false
    ]
);

/** Delete */
$api->delete()->deleteWatchlist(1);