Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Netbox support #10

Open
mweinelt opened this issue Aug 13, 2018 · 1 comment
Open

Add Netbox support #10

mweinelt opened this issue Aug 13, 2018 · 1 comment
Labels
new-module Ideas for a new module

Comments

@mweinelt
Copy link
Contributor

Documentation:
https://netbox.readthedocs.io/en/latest/additional-features/webhooks/

Probably need to decide on important fields to identify an object per object type.

Waiting for the the docker container to support webhooks (needs Redis and django-rq) until we can get started capturing events:

@fleaz fleaz added the enhancement New feature or request label Aug 13, 2018
@fleaz
Copy link
Owner

fleaz commented Aug 21, 2018

Example webhook from Netbox:

Body:
{"event": "updated", "timestamp": "2018-08-21 20:58:04.682320", "model": "device", "data": {"id": 11, "name": "elsa.darmstadt.freifunk.net", "display_name": "elsa.darmstadt.freifunk.net", "device_type": {"id": 7, "url": "/api/dcim/device-types/7/", "manufacturer": {"id": 3, "url": "/api/dcim/manufacturers/3/", "name": "Dell", "slug": "dell"}, "model": "PowerEdge SC1435", "slug": "poweredge-sc1435"}, "device_role": {"id": 3, "url": "/api/dcim/device-roles/3/", "name": "Server", "slug": "server"}, "tenant": {"id": 2, "url": "/api/tenancy/tenants/2/", "name": "NOC", "slug": "noc"}, "platform": null, "serial": "8HR5Z3J", "asset_tag": "44454C4C-4800-1052-8035-B8C04F5A334A", "site": {"id": 1, "url": "/api/dcim/sites/1/", "name": "S2|02 C303", "slug": "s202-c303"}, "rack": {"id": 1, "url": "/api/dcim/racks/1/", "name": "1: FFDA / D120", "display_name": "1: FFDA / D120 (1)"}, "position": 37, "face": {"value": 0, "label": "Front"}, "parent_device": null, "status": {"value": 1, "label": "Active"}, "primary_ip": {"id": 19, "url": "/api/ipam/ip-addresses/19/", "family": 6, "address": "2001:67c:2ed8::4:1/64"}, "primary_ip4": {"id": 18, "url": "/api/ipam/ip-addresses/18/", "family": 4, "address": "82.195.73.4/26"}, "primary_ip6": {"id": 19, "url": "/api/ipam/ip-addresses/19/", "family": 6, "address": "2001:67c:2ed8::4:1/64"}, "cluster": null, "virtual_chassis": null, "vc_position": null, "vc_priority": null, "comments": "VGA Ports defekt, Ger\u00e4t bootet aber noch und serial funktioniert.", "tags": [], "custom_fields": {}, "created": "2017-04-09", "last_updated": "2018-08-21T20:58:04.483195Z"}}
Header:
	Accept-Encoding: [identity]
	Content-Type: [application/json]
	Content-Length: [1609]
	X-Hook-Signature: [c1818cdc320d25eb637758fa98dc4dadf1073aa6a2798b3eac3b5e71f8db13c40175e087fa7e8ed30372254858b6fc83aa591d2a54959b6db309003dfc512b79]
------------------------------

@fleaz fleaz added the new-module Ideas for a new module label Nov 3, 2018
@fleaz fleaz removed the enhancement New feature or request label Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-module Ideas for a new module
Projects
None yet
Development

No branches or pull requests

2 participants