Client
thehive4py.client
TheHiveApi(url, apikey=None, username=None, password=None, organisation=None, verify=True, max_retries=DEFAULT_RETRY)
Create a client of TheHive API.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
str
|
TheHive's url. |
required |
apikey
|
Optional[str]
|
TheHive's apikey. It's required if |
None
|
username
|
Optional[str]
|
TheHive's username. It's required if |
None
|
password
|
Optional[str]
|
TheHive's password. It's required if |
None
|
organisation
|
Optional[str]
|
TheHive organisation to use in the session. |
None
|
verify
|
VerifyValue
|
Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use. |
True
|
max_retries
|
RetryValue
|
Either |
DEFAULT_RETRY
|
Source code in thehive4py/client.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|