Actions

Add/Edit Lawful Intercept file with RestFul API

Revision as of 06:18, 13 September 2022 by Serdar Civici (talk | contribs) (→‎Adding a new Lawful Intercept File)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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:

PUT http://192.168.1.26:12358/configurations/test_config/file_dbs/File_DB/law_enforcement_targets/lawful_intercept_1%2Ecsv

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