RESTful API: Dropping calls
From TBwiki
(Difference between revisions)
Lucas Joyal (Talk | contribs) (Drop call via tbconfig, first draft.) |
Lucas Joyal (Talk | contribs) (Change order of arguments to have the URL at the end (cleaner)) |
||
Line 2: | Line 2: | ||
<code> | <code> | ||
− | tbconfig --port <port> -u <username> -p <password> | + | tbconfig --port <port> -u <username> -p <password> -d -q "parameter1=value1,parameter2=value2" /call_traces/destroy_all |
</code> | </code> | ||
Revision as of 12:58, 28 November 2017
The following use case provide guidance for dropping multiple calls:
tbconfig --port <port> -u <username> -p <password> -d -q "parameter1=value1,parameter2=value2" /call_traces/destroy_all
The -d flag is used to send a HTTP DELETE request method and the -q is used to append the argument in the HTTP request.
Be careful when sending this command, as a too broad request will drop all active calls.
For a list of parameters that can be used, consult: Filter parameters reference guide