Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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);

About

A CarbonBlack API library written in PHP

Resources

License

Releases

No releases published

Packages

No packages published

Languages