Skip to content

Commit 04cd412

Browse files
authored
Merge pull request #183 from carbonblack/cbapi-1.6-develop
CBAPI 1.6 - Devices v6, Alerts v6
2 parents 945649d + 5f54583 commit 04cd412

File tree

127 files changed

+5745
-1257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+5745
-1257
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ target/
6868
# Eclipse/PyDev
6969
/.project
7070
/.pydevproject
71+
/.settings
7172

7273
# Credential files
7374
.carbonblack/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python bindings for Carbon Black REST API
22

3-
**Latest Version: 1.5.6**
3+
**Latest Version: 1.6.0**
44

55
These are the new Python bindings for the Carbon Black Enterprise Response and Enterprise Protection REST APIs.
66
To learn more about the REST APIs, visit the Carbon Black Developer Network Website at https://developer.carbonblack.com.

docs/changelog.rst

100644100755
+38
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
CbAPI Changelog
22
===============
3+
.. top-of-changelog (DO NOT REMOVE THIS COMMENT)
4+
5+
CbAPI 1.6.0 - Released December 3, 2019
6+
---------------------------------------
7+
8+
Updates
9+
10+
* New Carbon Black Cloud API Support
11+
* Support for Devices v6:
12+
* List and search for devices
13+
* Export device information to CSV
14+
* Device control actions: quarantine, bypass, background scan, deregister/delete, update
15+
* Support for Alerts v6:
16+
* Search for and retrieve alerts
17+
* Update alert status (dismiss alerts)
18+
19+
Examples
20+
21+
* Devices v6:
22+
* psc/device_control.py
23+
* psc/download_device_list.py
24+
* psc/list_devices.py
25+
* Alerts v6:
26+
* psc/alert_search_suggestions.py
27+
* psc/bulk_update_alerts.py
28+
* psc/bulk_update_cbanalytics_alerts.py
29+
* psc/bulk_update_threat_alerts.py
30+
* psc/bulk_update_vmware_alerts.py
31+
* psc/bulk_update_watchlist_alerts.py
32+
* psc/list_alert_facets.py
33+
* psc/list_alerts.py
34+
* psc/list_cbanalytics_alert_facets.py
35+
* psc/list_cbanalytics_alerts.py
36+
* psc/list_vmware_alert_facets.py
37+
* psc/list_vmware_alerts.py
38+
* psc/list_watchlist_alert_facets.py
39+
* psc/list_watchlist_alerts.py
40+
341
CbAPI 1.5.6 - Released November 19, 2019
442
----------------------------------------
543

docs/conf.py

100644100755
+48-47
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
1414

15-
import sys
16-
import os
15+
# import sys (imports not needed)
16+
# import os
1717

1818
# If extensions (or modules to document with autodoc) are in another directory,
1919
# add these directories to sys.path here. If the directory is relative to the
2020
# documentation root, use os.path.abspath to make it absolute, like shown here.
21-
#sys.path.insert(0, os.path.abspath('.'))
21+
# sys.path.insert(0, os.path.abspath('.'))
2222

2323
# -- General configuration ------------------------------------------------
2424

2525
# If your documentation needs a minimal Sphinx version, state it here.
26-
#needs_sphinx = '1.0'
26+
# needs_sphinx = '1.0'
2727

2828
# Add any Sphinx extension module names here, as strings. They can be
2929
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -44,7 +44,7 @@
4444
source_suffix = '.rst'
4545

4646
# The encoding of source files.
47-
#source_encoding = 'utf-8-sig'
47+
# source_encoding = 'utf-8-sig'
4848

4949
# The master toctree document.
5050
master_doc = 'index'
@@ -59,9 +59,9 @@
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = u'1.5'
62+
version = u'1.6'
6363
# The full version, including alpha/beta/rc tags.
64-
release = u'1.5.6'
64+
release = u'1.6.0'
6565

6666
# The language for content autogenerated by Sphinx. Refer to documentation
6767
# for a list of supported languages.
@@ -72,9 +72,9 @@
7272

7373
# There are two options for replacing |today|: either, you set today to some
7474
# non-false value, then it is used:
75-
#today = ''
75+
# today = ''
7676
# Else, today_fmt is used as the format for a strftime call.
77-
#today_fmt = '%B %d, %Y'
77+
# today_fmt = '%B %d, %Y'
7878

7979
# List of patterns, relative to source directory, that match files and
8080
# directories to ignore when looking for source files.
@@ -83,27 +83,27 @@
8383

8484
# The reST default role (used for this markup: `text`) to use for all
8585
# documents.
86-
#default_role = None
86+
# default_role = None
8787

8888
# If true, '()' will be appended to :func: etc. cross-reference text.
89-
#add_function_parentheses = True
89+
# add_function_parentheses = True
9090

9191
# If true, the current module name will be prepended to all description
9292
# unit titles (such as .. function::).
93-
#add_module_names = True
93+
# add_module_names = True
9494

9595
# If true, sectionauthor and moduleauthor directives will be shown in the
9696
# output. They are ignored by default.
97-
#show_authors = False
97+
# show_authors = False
9898

9999
# The name of the Pygments (syntax highlighting) style to use.
100100
pygments_style = 'tango'
101101

102102
# A list of ignored prefixes for module index sorting.
103-
#modindex_common_prefix = []
103+
# modindex_common_prefix = []
104104

105105
# If true, keep warnings as "system message" paragraphs in the built documents.
106-
#keep_warnings = False
106+
# keep_warnings = False
107107

108108
# If true, `todo` and `todoList` produce output, else they produce nothing.
109109
todo_include_todos = True
@@ -124,14 +124,14 @@
124124
}
125125

126126
# Add any paths that contain custom themes here, relative to this directory.
127-
#html_theme_path = []
127+
# html_theme_path = []
128128

129129
# The name for this set of Sphinx documents.
130130
# "<project> v<release> documentation" by default.
131-
#html_title = u'cbapi v0.9.1'
131+
# html_title = u'cbapi v0.9.1'
132132

133133
# A shorter title for the navigation bar. Default is the same as html_title.
134-
#html_short_title = None
134+
# html_short_title = None
135135

136136
# The name of an image file (relative to this directory) to place at the top
137137
# of the sidebar.
@@ -140,7 +140,7 @@
140140
# The name of an image file (relative to this directory) to use as a favicon of
141141
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
142142
# pixels large.
143-
#html_favicon = None
143+
# html_favicon = None
144144

145145
# Add any paths that contain custom static files (such as style sheets) here,
146146
# relative to this directory. They are copied after the builtin static files,
@@ -150,64 +150,64 @@
150150
# Add any extra paths that contain custom files (such as robots.txt or
151151
# .htaccess) here, relative to this directory. These files are copied
152152
# directly to the root of the documentation.
153-
#html_extra_path = []
153+
# html_extra_path = []
154154

155155
# If not None, a 'Last updated on:' timestamp is inserted at every page
156156
# bottom, using the given strftime format.
157157
# The empty string is equivalent to '%b %d, %Y'.
158-
#html_last_updated_fmt = None
158+
# html_last_updated_fmt = None
159159

160160
# If true, SmartyPants will be used to convert quotes and dashes to
161161
# typographically correct entities.
162-
#html_use_smartypants = True
162+
# html_use_smartypants = True
163163

164164
# Custom sidebar templates, maps document names to template names.
165-
#html_sidebars = {}
165+
# html_sidebars = {}
166166

167167
# Additional templates that should be rendered to pages, maps page names to
168168
# template names.
169-
#html_additional_pages = {}
169+
# html_additional_pages = {}
170170

171171
# If false, no module index is generated.
172-
#html_domain_indices = True
172+
# html_domain_indices = True
173173

174174
# If false, no index is generated.
175-
#html_use_index = True
175+
# html_use_index = True
176176

177177
# If true, the index is split into individual pages for each letter.
178-
#html_split_index = False
178+
# html_split_index = False
179179

180180
# If true, links to the reST sources are added to the pages.
181-
#html_show_sourcelink = True
181+
# html_show_sourcelink = True
182182

183183
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
184-
#html_show_sphinx = True
184+
# html_show_sphinx = True
185185

186186
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
187-
#html_show_copyright = True
187+
# html_show_copyright = True
188188

189189
# If true, an OpenSearch description file will be output, and all pages will
190190
# contain a <link> tag referring to it. The value of this option must be the
191191
# base URL from which the finished HTML is served.
192-
#html_use_opensearch = ''
192+
# html_use_opensearch = ''
193193

194194
# This is the file name suffix for HTML files (e.g. ".xhtml").
195-
#html_file_suffix = None
195+
# html_file_suffix = None
196196

197197
# Language to be used for generating the HTML full-text search index.
198198
# Sphinx supports the following languages:
199199
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
200200
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
201-
#html_search_language = 'en'
201+
# html_search_language = 'en'
202202

203203
# A dictionary with options for the search language support, empty by default.
204204
# 'ja' uses this config value.
205205
# 'zh' user can custom change `jieba` dictionary path.
206-
#html_search_options = {'type': 'default'}
206+
# html_search_options = {'type': 'default'}
207207

208208
# The name of a javascript file (relative to the configuration directory) that
209209
# implements a search results scorer. If empty, the default will be used.
210-
#html_search_scorer = 'scorer.js'
210+
# html_search_scorer = 'scorer.js'
211211

212212
# Output file base name for HTML help builder.
213213
htmlhelp_basename = 'CarbonBlackAPI-PythonBindingsdoc'
@@ -222,23 +222,23 @@
222222

223223
# The name of an image file (relative to this directory) to place at the top of
224224
# the title page.
225-
#latex_logo = None
225+
# latex_logo = None
226226

227227
# For "manual" documents, if this is true, then toplevel headings are parts,
228228
# not chapters.
229-
#latex_use_parts = False
229+
# latex_use_parts = False
230230

231231
# If true, show page references after internal links.
232-
#latex_show_pagerefs = False
232+
# latex_show_pagerefs = False
233233

234234
# If true, show URL addresses after external links.
235-
#latex_show_urls = False
235+
# latex_show_urls = False
236236

237237
# Documents to append as an appendix to all manuals.
238-
#latex_appendices = []
238+
# latex_appendices = []
239239

240240
# If false, no module index is generated.
241-
#latex_domain_indices = True
241+
# latex_domain_indices = True
242242

243243

244244
# -- Options for manual page output ---------------------------------------
@@ -251,7 +251,7 @@
251251
]
252252

253253
# If true, show URL addresses after external links.
254-
#man_show_urls = False
254+
# man_show_urls = False
255255

256256

257257
# -- Options for Texinfo output -------------------------------------------
@@ -266,16 +266,16 @@
266266
]
267267

268268
# Documents to append as an appendix to all manuals.
269-
#texinfo_appendices = []
269+
# texinfo_appendices = []
270270

271271
# If false, no module index is generated.
272-
#texinfo_domain_indices = True
272+
# texinfo_domain_indices = True
273273

274274
# How to display URL addresses: 'footnote', 'no', or 'inline'.
275-
#texinfo_show_urls = 'footnote'
275+
# texinfo_show_urls = 'footnote'
276276

277277
# If true, do not generate a @detailmenu in the "Top" node's menu.
278-
#texinfo_no_detailmenu = False
278+
# texinfo_no_detailmenu = False
279279

280280
latex_elements = {
281281
# Additional stuff for the LaTeX preamble.
@@ -291,11 +291,12 @@
291291
# Latex figure (float) alignment
292292
# 'figure_align': 'htbp',
293293
'preamble': "".join((
294-
'\DeclareUnicodeCharacter{25A0}{=}', # Solid box
294+
'\\DeclareUnicodeCharacter{25A0}{=}', # Solid box
295295
)),
296296
}
297297

298298
autoclass_content = 'both'
299299

300+
300301
def setup(app):
301302
app.add_stylesheet('css/custom.css')

docs/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ documenting all of the methods available to you.
247247
protection-api
248248
defense-api
249249
threathunter-api
250+
psc-api
250251
livequery-api
251252
exceptions
252253

docs/livequery-examples.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CB LiveQuery API Examples
2-
========================
2+
=========================
33

44
Let's cover a few example functions that our LiveQuery Python bindings enable. To begin, we need to import the
55
relevant libraries::

0 commit comments

Comments
 (0)