Skip to main content

open-falcon client

Project description

# open-falcon api python client
example usuage

```python
from openfalconclient.client import FalconClient
cli = FalconClient(endpoint="http://127.0.0.1:8080", user='admin', password='admin123')
# ex api/v1/user/users get
r = cli.user.users.list()

# /api/v1/user/name/xxxx get
r = cli.user.name['admin'].get()

# /api/v1/user/u/xxxx get
r = cli.user.u['1'].get()

# /api/v1/user/update put
data = {
"name": "test1",
"cnname": "est",
"email": "root123@cepave.com",
"im": "44955834958",
"phone": "99999999999",
"qq": "904394234239"
}
cli.user.update.update(data=data)

# /api/v1/admin/delete_user delete
params = {"user_id": 31}
cli.admin.delete_user.delete(params=params)

# /api/v1/template/7 delete
cli.template['7'].delete()

query = [{
"endpoint": "zwhtest.net",
"counter": "net.if.info/region=gd1"
}]
cli.graph.lastpoint.post(data=query)
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openfalconclient-0.0.3.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file openfalconclient-0.0.3.tar.gz.

File metadata

File hashes

Hashes for openfalconclient-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2dafa7f61844129c151d766624b856d1bf800a3116ee89b92405507d061d35e4
MD5 6ac49c3c4279c199228d3ac3216e83b6
BLAKE2b-256 fff55f160152c4bbbd76709d68206e8e6e2857411ba1b6ce0efd7169dc579f68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page