Skip to content

Commit fa249bc

Browse files
committed
add docs for url & token to CbResponseAPI constructor
1 parent af2f771 commit fa249bc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/cbapi/response/rest_api.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ def get_api_token(base_url, username, password, **kwargs):
4141
raise ApiError(message="Error retrieving auth_token: {0:s}".format(r.content))
4242

4343

44-
class CbEnterpriseResponseAPI(BaseAPI):
44+
class CbResponseAPI(BaseAPI):
4545
"""The main entry point into the Carbon Black Enterprise Response API.
4646
Note that calling this will automatically connect to the Carbon Black server in order to verify
4747
connectivity and get the server version.
4848
4949
:param str profile: (optional) Use the credentials in the named profile when connecting to the Carbon Black server. Uses the
5050
profile named 'default' when not specified.
51+
:param str url: (optional, discouraged) Instead of using a credential profile, pass URL and API token to the constructor.
52+
:param str token: (optional, discouraged) API token
53+
:param bool ssl_verify: (optional, discouraged) Enable or disable SSL certificate verification
5154
5255
Usage::
5356
@@ -174,9 +177,9 @@ def _request_lr_session(self, sensor_id):
174177
def _close_lr_session(self, sensor_id):
175178
return self.live_response.close_session(sensor_id)
176179

177-
class CbResponseAPI(CbEnterpriseResponseAPI):
180+
class CbEnterpriseResponseAPI(CbResponseAPI):
178181
"""
179-
Short-hand naming for the Cb Response API.
182+
Backwards compatibility for previous scripts
180183
"""
181184
pass
182185

0 commit comments

Comments
 (0)