-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
111 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _protection_api: | ||
|
||
Carbon Black Protection REST API | ||
================================ | ||
|
||
This page documents the public interfaces exposed by cbapi when communicating with a Carbon Black Enterprise | ||
Protection server. | ||
|
||
Main Interface | ||
-------------- | ||
|
||
To use cbapi with Carbon Black Protection, you will be using the CbEnterpriseProtectionAPI. | ||
The CbEnterpriseProtectionAPI object then exposes two main methods to select data on the Carbon Black server: | ||
|
||
.. autoclass:: cbapi.protection.rest_api.CbEnterpriseProtectionAPI | ||
:members: | ||
:inherited-members: | ||
|
||
.. :automethod:: select | ||
.. :automethod:: create | ||
Queries | ||
------- | ||
|
||
.. autoclass:: cbapi.protection.rest_api.Query | ||
:members: | ||
|
||
|
||
Models | ||
------ | ||
|
||
.. autoclass:: cbapi.protection.models.Computer | ||
:members: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. _exceptions: | ||
|
||
Exceptions | ||
========== | ||
|
||
If an error occurs, the API attempts to roll the error into an appropriate Exception class. | ||
|
||
Exception Classes | ||
----------------- | ||
|
||
.. autoexception:: cbapi.errors.ApiError | ||
.. autoexception:: cbapi.errors.CredentialError | ||
.. autoexception:: cbapi.errors.ServerError | ||
.. autoexception:: cbapi.errors.ObjectNotFoundError | ||
.. autoexception:: cbapi.errors.MoreThanOneResultError | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters