RESTful API: Dropping calls

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Drop call via tbconfig, first draft.)
 
(Add missing hostname in command)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
The following use case provide guidance for dropping multiple calls:
 
The following use case provide guidance for dropping multiple calls:
  
 +
== Usage Example ==
 
<code>
 
<code>
tbconfig --port <port> -u <username> -p <password> /call_traces/destroy_all -d  -q "parameter1=value1,parameter2=value2"
+
tbconfig -h <hostname> --port <port> -u <username> -p <password> -d  -q "parameter1=value1,parameter2=value2" /call_traces/destroy_all
 
</code>
 
</code>
  
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.
+
 
 +
* -d flag is used to send a HTTP DELETE request method
 +
* -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.   
 
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_A|Filter parameters reference guide]]
+
== Reference ==
 +
[[Filter_parameters_reference_guide_A|Filter parameters reference guide]]

Latest revision as of 15:37, 1 December 2017

The following use case provide guidance for dropping multiple calls:

Usage Example

tbconfig -h <hostname> --port <port> -u <username> -p <password> -d -q "parameter1=value1,parameter2=value2" /call_traces/destroy_all


  • -d flag is used to send a HTTP DELETE request method
  • -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.

Reference

Filter parameters reference guide

Personal tools