Traffic Sources Devices

List Devices

get

Returns an array of devices.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

List of Devices Requested, or an array containing the new/updated Device after a Create or Update operation.

application/json
get
/api/v1/devices

Create Device

post

Creates a device from the data that's been supplied. Do not provide an id. IDs are auto generated

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired

The name of the device. Eg. router1.site.company.com

Example: router1.example.com
ipsstring · cidr[]Required

An array of IPs that this device sends flows from.

Example: ["1.1.1.1","22.33.44.55"]
samplerateinteger · int32 · min: 1 · max: 65535Required

The samplerate of flows this device will send.

Example: 10
payloadbooleanOptional

Whether to store payload sample or not. SFLOW only. Default to false if not set.

Example: false
tagsstring[]Optional

An array of strings to tag every flow from this device with.

Example: ["edge"]
sitestringOptional

The site identifier for this device.

Example: us-east-1
Responses
post
/api/v1/device

Fetch Device

get

Fetches a specific device from the ID supplied in the path.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The ID of the device to be returned.

Responses
200

List of Devices Requested, or an array containing the new/updated Device after a Create or Update operation.

application/json
get
/api/v1/device/{id}

Update Device

put

Update a device given the provided object. This does not do a diff. You must send the complete object.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The ID of the device to be updated

Body
namestringRequired

The name of the device. Eg. router1.site.company.com

Example: router1.example.com
ipsstring · cidr[]Required

An array of IPs that this device sends flows from.

Example: ["1.1.1.1","22.33.44.55"]
samplerateinteger · int32 · min: 1 · max: 65535Required

The samplerate of flows this device will send.

Example: 10
payloadbooleanOptional

Whether to store payload sample or not. SFLOW only. Default to false if not set.

Example: false
tagsstring[]Optional

An array of strings to tag every flow from this device with.

Example: ["edge"]
sitestringOptional

The site identifier for this device.

Example: us-east-1
Responses
200

List of Devices Requested, or an array containing the new/updated Device after a Create or Update operation.

application/json
put
/api/v1/device/{id}

Delete Device

delete

Deletes a device

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The ID of the device to be deleted

Responses
delete
/api/v1/device/{id}

No content

List Device Statuses

get

Returns an array of device status objects.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

List of Device States.

application/json
get
/api/v1/devices/status

Fetch Device Status

get

Fetches a specific device from the ID supplied in the path.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The ID of the device to be returned.

Responses
200

List of Device States.

application/json
get
/api/v1/device/status/{id}

List BGP Neighbors

get

Returns an array of BGP Neighbors.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

List of BGP Neighbors

application/json
get
/api/v1/bgp/neighbors

List BGP Neighbors for a Device

get

Returns an array of BGP Neighbors for a Device.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deviceidstringRequired

The ID of the device to retrieve BGP Neighbors for.

Responses
200

List of BGP Neighbors

application/json
get
/api/v1/bgp/neighbors/devices/{deviceid}

Create BGP Neighbor

post

Create a new BGP Neighbor.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
objectOptional

BGP Neighbor Create or Update Config

Responses
post
/api/v1/bgp/neighbor

Get BGP Neighbor

get

Returns the details of a specific BGP Neighbor.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
neighboridstringRequired

The ID of the BGP Neighbor to retrieve.

Responses
200

List of BGP Neighbors

application/json
get
/api/v1/bgp/neighbor/{neighborid}

Update BGP Neighbor

put

Updates the details of a specific BGP Neighbor.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
neighboridstringRequired

The ID of the BGP Neighbor to update.

Body
objectOptional

BGP Neighbor Create or Update Config

Responses
200

List of BGP Neighbors

application/json
put
/api/v1/bgp/neighbor/{neighborid}

Delete BGP Neighbor

delete

Deletes a specific BGP Neighbor.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
neighboridstringRequired

The ID of the BGP Neighbor to delete.

Responses
delete
/api/v1/bgp/neighbor/{neighborid}

No content

Enable BGP Neighbor

put

Enable a specific BGP Neighbor.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
neighboridstringRequired

The ID of the BGP Neighbor to enable.

Responses
200

List of BGP Neighbors

application/json
put
/api/v1/bgp/neighbor/{neighborid}/enable

Disable BGP Neighbor

put

Disable a specific BGP Neighbor.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
neighboridstringRequired

The ID of the BGP Neighbor to disable.

Responses
200

List of BGP Neighbors

application/json
put
/api/v1/bgp/neighbor/{neighborid}/disable

Last updated