Announcing the release of v1.4.0 of Carbon Black Cloud Python SDK
Posted on July 26, 2022
What’s New?
We’re excited to announce the release of v1.4.0 of the Carbon Black Cloud Python SDK.
There are several new features in this release:
- Support for the new Policy APIs.
- Support for querying a single
Reportfrom aFeed. - Support for Alert notes.
Breaking Changes to Be Aware Of
The Policy object has been moved from cbc_sdk.endpoint_standard to cbc_sdk.platform, as it
now uses the new Policy Services API rather than the old APIs through Integration Services.
As a result of this, you must now use a custom API key with permissions under org.policies
to manage policies, rather than an older “API key.”
To enable time to update integration logic, the cbc_sdk.endpoint_standard Policy object may still
be imported from the old package, and supports operations that are backwards-compatible with the old one.
However, when developing a new integration, or updating an existing one, cbc_sdk.platform should be used
for importing the Policy object. There is a utility class PolicyBuilder that can make it easier to
create new policies, and as features are added to the Carbon Black Cloud, they will be added to this module.
Also, support for Python 3.6 has been officially dropped, since that version is now at end-of-life. Upgrade to the latest version of Python 3.7, or a newer version, if possible. Explicit testing support during builds has also been added for Python 3.9 and 3.10.
The Complete Changelog
Here’s a complete changelog for this release of the SDK which includes some less visible changes:
- Breaking Changes:
Policyobject has been moved fromcbc_sdk.endpoint_standardtocbc_sdk.platform, as it now uses the new Policy Services API rather than the old APIs through Integration Services.- N.B.: This change means that you must use a custom API key with permissions under
org.policiesto manage policies, rather than an older “API key.” - To enable time to update integration logic, the
cbc_sdk.endpoint_standard Policyobject may still be imported from the old package, and supports operations that are backwards-compatible with the old one. - When developing a new integration, or updating an existing one,
cbc_sdk.platformshould be used. There is a utility classPolicyBuilder, and as features are added to the Carbon Black Cloud, they will be added to this module.
- N.B.: This change means that you must use a custom API key with permissions under
- Official support for Python 3.6 has been dropped, since that version is now end-of-life. Added explicit testing support for Python versions 3.9 and 3.10. N.B.: End users should update their Python version to 3.7.x or greater.
- New Features:
- Added support for querying a single
Reportfrom aFeed. - Added support for alert notes (create, delete, get, refresh).
- Added support for querying a single
- Updates:
- Removed the (unused)
revokedproperty fromGrantobjects. - Increased the asynchronous query thread pool to 3 threads by default.
- Required version of
lxmlis now 4.9.1. - Added a user acceptance test script for Alerts.
- Removed the (unused)
- Bug Fixes:
- Added
max_rowsto USB device query, fixing pagination. - Fixed an off-by-one error in Alerts Search resulting un duplicate alerts showing up in results.
- Fixed an error in alert faceting operations due to sending excess input to the server.
- Added
- Documentation:
- Watchlists, Feeds, and Reports guide has been updated with additional clarification and examples.
- Updated description for some
Devicefields that are never populated. - Additional sensor states added to
Devicedocumentation. - Fixed the description of
BaseAlertSearchQuery.set_typesso that it mentions all valid alert types. - Threat intelligence example has been deprecated.
Where to find the Carbon Black Cloud SDK and information:
Have questions or feedback?
Open an issue in the GitHub Repository or check out other ways to contact us.