Traffic Sources Devices
List of Devices Requested, or an array containing the new/updated Device after a Create or Update operation.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/devices HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": 771387127,
"name": "router1.example.com",
"ips": [
"1.1.1.1",
"22.33.44.55"
],
"samplerate": 10,
"payload": false,
"tags": [
"edge"
],
"site": "us-east-1"
}
]
}The name of the device. Eg. router1.site.company.com
router1.example.comAn array of IPs that this device sends flows from.
["1.1.1.1","22.33.44.55"]The samplerate of flows this device will send.
10Whether to store payload sample or not. SFLOW only. Default to false if not set.
falseAn array of strings to tag every flow from this device with.
["edge"]The site identifier for this device.
us-east-1List of Devices Requested, or an array containing the new/updated Device after a Create or Update operation.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
POST /api/v1/device HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"name": "router1.example.com",
"ips": [
"1.1.1.1",
"22.33.44.55"
],
"samplerate": 10,
"payload": false,
"tags": [
"edge"
],
"site": "us-east-1"
}{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": 771387127,
"name": "router1.example.com",
"ips": [
"1.1.1.1",
"22.33.44.55"
],
"samplerate": 10,
"payload": false,
"tags": [
"edge"
],
"site": "us-east-1"
}
]
}The ID of the device to be returned.
List of Devices Requested, or an array containing the new/updated Device after a Create or Update operation.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/device/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": 771387127,
"name": "router1.example.com",
"ips": [
"1.1.1.1",
"22.33.44.55"
],
"samplerate": 10,
"payload": false,
"tags": [
"edge"
],
"site": "us-east-1"
}
]
}The ID of the device to be updated
The name of the device. Eg. router1.site.company.com
router1.example.comAn array of IPs that this device sends flows from.
["1.1.1.1","22.33.44.55"]The samplerate of flows this device will send.
10Whether to store payload sample or not. SFLOW only. Default to false if not set.
falseAn array of strings to tag every flow from this device with.
["edge"]The site identifier for this device.
us-east-1List of Devices Requested, or an array containing the new/updated Device after a Create or Update operation.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/device/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"name": "router1.example.com",
"ips": [
"1.1.1.1",
"22.33.44.55"
],
"samplerate": 10,
"payload": false,
"tags": [
"edge"
],
"site": "us-east-1"
}{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": 771387127,
"name": "router1.example.com",
"ips": [
"1.1.1.1",
"22.33.44.55"
],
"samplerate": 10,
"payload": false,
"tags": [
"edge"
],
"site": "us-east-1"
}
]
}The ID of the device to be deleted
An empty array
No content
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
DELETE /api/v1/device/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
List of Device States.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/devices/status HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": 114300552,
"name": "router1.site.company.com",
"flow": {
"lastseen": 1558367737,
"active": true
},
"bgp": {
"active": false
}
}
]
}The ID of the device to be returned.
List of Device States.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/device/status/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": 114300552,
"name": "router1.site.company.com",
"flow": {
"lastseen": 1558367737,
"active": true
},
"bgp": {
"active": false
}
}
]
}List of BGP Neighbors
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/bgp/neighbors HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "text",
"addresslocal": "text",
"addressremote": "text",
"admindown": true,
"advanced": true,
"asn": "text",
"authpassword": "text",
"description": "text",
"deviceid": "text",
"gracefulrestart": true,
"holdtime": 1,
"ipv4-flowspec": true,
"ipv4-unicast": true,
"ipv6-flowspec": true,
"ipv6-unicast": true,
"keepalive": 1,
"negotiated": {
"capabilities": [],
"holdtime": 1,
"keepalive": 1
},
"restarttime": 1,
"routes": {
"ipv4-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv4-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"total": {
"accepted": 1,
"advertised": 1,
"prefixrate": 1,
"prefixsessioncount": 1,
"prefixtotalcount": 1,
"received": 1
}
},
"state": "text",
"stats": {
"recv": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
},
"sent": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
}
},
"uptime": "text"
}
]
}The ID of the device to retrieve BGP Neighbors for.
List of BGP Neighbors
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/bgp/neighbors/devices/{deviceid} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "text",
"addresslocal": "text",
"addressremote": "text",
"admindown": true,
"advanced": true,
"asn": "text",
"authpassword": "text",
"description": "text",
"deviceid": "text",
"gracefulrestart": true,
"holdtime": 1,
"ipv4-flowspec": true,
"ipv4-unicast": true,
"ipv6-flowspec": true,
"ipv6-unicast": true,
"keepalive": 1,
"negotiated": {
"capabilities": [],
"holdtime": 1,
"keepalive": 1
},
"restarttime": 1,
"routes": {
"ipv4-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv4-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"total": {
"accepted": 1,
"advertised": 1,
"prefixrate": 1,
"prefixsessioncount": 1,
"prefixtotalcount": 1,
"received": 1
}
},
"state": "text",
"stats": {
"recv": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
},
"sent": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
}
},
"uptime": "text"
}
]
}BGP Neighbor Create or Update Config
List of BGP Neighbors
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
POST /api/v1/bgp/neighbor HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1019
{
"addresslocal": "text",
"addressremote": "text",
"admindown": true,
"advanced": true,
"asn": "text",
"authpassword": "text",
"description": "text",
"deviceid": "text",
"gracefulrestart": true,
"holdtime": 1,
"ipv4-flowspec": true,
"ipv4-unicast": true,
"ipv6-flowspec": true,
"ipv6-unicast": true,
"keepalive": 1,
"negotiated": {
"capabilities": [],
"holdtime": 1,
"keepalive": 1
},
"restarttime": 1,
"routes": {
"ipv4-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv4-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"total": {
"accepted": 1,
"advertised": 1,
"prefixrate": 1,
"prefixsessioncount": 1,
"prefixtotalcount": 1,
"received": 1
}
},
"state": "text",
"stats": {
"recv": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
},
"sent": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
}
},
"uptime": "text"
}{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "text",
"addresslocal": "text",
"addressremote": "text",
"admindown": true,
"advanced": true,
"asn": "text",
"authpassword": "text",
"description": "text",
"deviceid": "text",
"gracefulrestart": true,
"holdtime": 1,
"ipv4-flowspec": true,
"ipv4-unicast": true,
"ipv6-flowspec": true,
"ipv6-unicast": true,
"keepalive": 1,
"negotiated": {
"capabilities": [],
"holdtime": 1,
"keepalive": 1
},
"restarttime": 1,
"routes": {
"ipv4-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv4-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"total": {
"accepted": 1,
"advertised": 1,
"prefixrate": 1,
"prefixsessioncount": 1,
"prefixtotalcount": 1,
"received": 1
}
},
"state": "text",
"stats": {
"recv": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
},
"sent": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
}
},
"uptime": "text"
}
]
}The ID of the BGP Neighbor to retrieve.
List of BGP Neighbors
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/bgp/neighbor/{neighborid} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "text",
"addresslocal": "text",
"addressremote": "text",
"admindown": true,
"advanced": true,
"asn": "text",
"authpassword": "text",
"description": "text",
"deviceid": "text",
"gracefulrestart": true,
"holdtime": 1,
"ipv4-flowspec": true,
"ipv4-unicast": true,
"ipv6-flowspec": true,
"ipv6-unicast": true,
"keepalive": 1,
"negotiated": {
"capabilities": [],
"holdtime": 1,
"keepalive": 1
},
"restarttime": 1,
"routes": {
"ipv4-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv4-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"total": {
"accepted": 1,
"advertised": 1,
"prefixrate": 1,
"prefixsessioncount": 1,
"prefixtotalcount": 1,
"received": 1
}
},
"state": "text",
"stats": {
"recv": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
},
"sent": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
}
},
"uptime": "text"
}
]
}The ID of the BGP Neighbor to update.
BGP Neighbor Create or Update Config
List of BGP Neighbors
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/bgp/neighbor/{neighborid} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1019
{
"addresslocal": "text",
"addressremote": "text",
"admindown": true,
"advanced": true,
"asn": "text",
"authpassword": "text",
"description": "text",
"deviceid": "text",
"gracefulrestart": true,
"holdtime": 1,
"ipv4-flowspec": true,
"ipv4-unicast": true,
"ipv6-flowspec": true,
"ipv6-unicast": true,
"keepalive": 1,
"negotiated": {
"capabilities": [],
"holdtime": 1,
"keepalive": 1
},
"restarttime": 1,
"routes": {
"ipv4-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv4-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"total": {
"accepted": 1,
"advertised": 1,
"prefixrate": 1,
"prefixsessioncount": 1,
"prefixtotalcount": 1,
"received": 1
}
},
"state": "text",
"stats": {
"recv": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
},
"sent": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
}
},
"uptime": "text"
}{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "text",
"addresslocal": "text",
"addressremote": "text",
"admindown": true,
"advanced": true,
"asn": "text",
"authpassword": "text",
"description": "text",
"deviceid": "text",
"gracefulrestart": true,
"holdtime": 1,
"ipv4-flowspec": true,
"ipv4-unicast": true,
"ipv6-flowspec": true,
"ipv6-unicast": true,
"keepalive": 1,
"negotiated": {
"capabilities": [],
"holdtime": 1,
"keepalive": 1
},
"restarttime": 1,
"routes": {
"ipv4-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv4-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"total": {
"accepted": 1,
"advertised": 1,
"prefixrate": 1,
"prefixsessioncount": 1,
"prefixtotalcount": 1,
"received": 1
}
},
"state": "text",
"stats": {
"recv": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
},
"sent": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
}
},
"uptime": "text"
}
]
}The ID of the BGP Neighbor to delete.
Empty Response
No content
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
DELETE /api/v1/bgp/neighbor/{neighborid} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
The ID of the BGP Neighbor to enable.
List of BGP Neighbors
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/bgp/neighbor/{neighborid}/enable HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "text",
"addresslocal": "text",
"addressremote": "text",
"admindown": true,
"advanced": true,
"asn": "text",
"authpassword": "text",
"description": "text",
"deviceid": "text",
"gracefulrestart": true,
"holdtime": 1,
"ipv4-flowspec": true,
"ipv4-unicast": true,
"ipv6-flowspec": true,
"ipv6-unicast": true,
"keepalive": 1,
"negotiated": {
"capabilities": [],
"holdtime": 1,
"keepalive": 1
},
"restarttime": 1,
"routes": {
"ipv4-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv4-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"total": {
"accepted": 1,
"advertised": 1,
"prefixrate": 1,
"prefixsessioncount": 1,
"prefixtotalcount": 1,
"received": 1
}
},
"state": "text",
"stats": {
"recv": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
},
"sent": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
}
},
"uptime": "text"
}
]
}The ID of the BGP Neighbor to disable.
List of BGP Neighbors
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/bgp/neighbor/{neighborid}/disable HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "text",
"addresslocal": "text",
"addressremote": "text",
"admindown": true,
"advanced": true,
"asn": "text",
"authpassword": "text",
"description": "text",
"deviceid": "text",
"gracefulrestart": true,
"holdtime": 1,
"ipv4-flowspec": true,
"ipv4-unicast": true,
"ipv6-flowspec": true,
"ipv6-unicast": true,
"keepalive": 1,
"negotiated": {
"capabilities": [],
"holdtime": 1,
"keepalive": 1
},
"restarttime": 1,
"routes": {
"ipv4-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv4-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-flow": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"ipv6-unicast": {
"accepted": 1,
"advertised": 1,
"received": 1
},
"total": {
"accepted": 1,
"advertised": 1,
"prefixrate": 1,
"prefixsessioncount": 1,
"prefixtotalcount": 1,
"received": 1
}
},
"state": "text",
"stats": {
"recv": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
},
"sent": {
"discarded": 1,
"keepalives": 1,
"notifications": 1,
"opens": 1,
"routerefreshes": 1,
"updates": 1,
"withdrawprefix": 1,
"withdrawupdate": 1
}
},
"uptime": "text"
}
]
}Last updated