Toolpack:Add Edit lawful interception Restful API: Difference between revisions
(Created page with "{{DISPLAYTITLE:Add/Edit Lawful Intercept file with RestFul API}} You can use the Add/Edit Lawful Intercept file in your system with RestFul API using JSON format. The JSON fo...") |
|||
| Line 30: | Line 30: | ||
If the import is successful you will see the following information in the Postman Tool | If the import is successful you will see the following information in the Postman Tool | ||
[[Image: | [[Image:LI_Post_Response.png|800px| ]] | ||
==Updating a Lawful Intercept File== | ==Updating a Lawful Intercept File== | ||
Latest revision as of 06:18, 13 September 2022
You can use the Add/Edit Lawful Intercept file in your system with RestFul API using JSON format. The JSON format must be the following:
{
"***meta***": {
"version": "3.1.135",
"src_path": ""
},
"name": "lawful_intercept.csv",
"content": "liid,number,start,end\r\nJohn Smith,5550001,2012-10-24T00:00:00-05:00,2012-10-24T23:59:59-05:00\r\nJoe Dalton,14503333007,2012-01-01T00:00:00-05:00,2012-12-31T23:59:59-05:00"
}
- name: lawful intercept file name
- \r\n: new line. Each digit/digits you entered must start with the new line.
Adding a new Lawful Intercept File
You can add a new Lawful Intercept file with the POST command:
POST http://192.168.1.26:12358/configurations/test_config/file_dbs/File_DB/law_enforcement_targets/
ProSBC will create a new Lawful Intercept file from the name in the JSON file.
Example: We use the Postman tool in this example and the URL is:
http://192.168.1.26:12358/configurations/test_config/file_dbs/File_DB/law_enforcement_targets/
If the import is successful you will see the following information in the Postman Tool
Updating a Lawful Intercept File
You can update the existing Lawful Intercept file with the PUT command:
Example: We use the Postman tool in this example and the URL is http://192.168.1.26:12358/configurations/test_config/file_dbs/File_DB/law_enforcement_targets/lawful_intercept_1%2Ecsv
If the update is successful you will see the following information in the Postman Tool
You can get more information about how to use RestFul API and Postman Tool from the following link Northbound_interface:RESTful