Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
anapolg edited this page Jun 29, 2018 · 1 revision

tng-sdk-traffic exposes a REST API in order to be used by any external application.

Initial path for the end-points in the current version: /api/trafficgen/v1

Action Method Endpoint Comment
Generate traffic generation object POST /trafficObject Creates a traffic generation object. Traffic params are sent in a JSON configuration file.
Retrieve a list of traffic generation objects GET /trafficObject Gives a list of the created traffic generation objects.
Retrieve a traffic generation object GET /trafficObject/{resource_uuid} Gives the configuration and status of an existing traffic generation object.
Removes traffic generation object DELETE /trafficObject/{resource_uuid} Removes and stops (if active) traffic generation object.
Creates a traffic flow in existing object POST /flows/{flow_uuid} Creates a specific traffic flow. Not configuration required.
Start/Stops an existing traffic flow in an existing object PUT /flows/{flow_uuid} Modify the status the traffic flow object.
Retrieve status of a traffic generation flow GET /flows/{flow_uuid} Gives the configuration and status of an existing traffic generation object.
Removes traffic generation flow DELETE /flows/{flow_uuid} It also stops the flow if it is active.
Clone this wiki locally