/
getExportRules

getExportRules

Retrieves all export rules documents.

http get /ctreplay/:domain?/getExportRules

Path variables:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

domain

NO

STRING

Unique domain identifier

Authorization: BEARER

Response:

Type: JSON

Name

Type

Description

Name

Type

Description

result

BOOLEAN

If true, the service response was performed correctly

error

NULL / STRING

Contains the error description if an error has occurred in the request

documents

OBJECT

list of export rules objects

Example:

Request:

http://<hostname>:<port>/ctreplay/default/getExportRules

Response:

{ "result": true, "documents": [ { "destination": { "type": "fs", "path": "C:UsersGabriele.VerdeDesktopExportDestination", "server": "", "port": "", "username": "", "password": "" }, "_id": "5f4e175a3a239d29a425b7b8", "__v": 0, "enable": false, "user": "admin", "action": "export", "blockSize": 100, "fileNamePattern": "callId", "format": "archive", "query": "{\"partner\": \"DEFAULT\"}", "schedule": "0 0 1 * * *", "maxNumber": 500, "name": "Esportazione notturna", "exportWithTags": false, }, { "destination": { "type": "fs", "path": "C:UsersGabriele.VerdeDesktopExportDestination", "server": "", "port": "", "username": "", "password": "" }, "_id": "5f589459b5a094e754fc2fe1", "__v": 0, "enable": true, "user": "admin", "action": "export", "blockSize": 100, "fileNamePattern": "callId", "format": "archive", "query": "{\"macroactivity\": \"MAC_ENERGIA_OUT\"}", "schedule": "0 * * * * *", "maxNumber": 500, "name": "Esportazione ogni secondo 0", "exportWithTags": false, }, { "destination": { "type": "fs", "path": "C:UsersGabriele.VerdeDesktopExportDestination", "server": "", "port": "", "username": "", "password": "" }, "_id": "5f58946ab5a094e754fc2fe2", "__v": 0, "enable": true, "user": "admin", "action": "export", "blockSize": 100, "fileNamePattern": "callId", "format": "archive", "query": "{\"partner\": \"DEFAULT\"}", "schedule": "30 * * * * *", "maxNumber": 500, "name": "Esportazione ogni secondo 30", "exportWithTags": false, } ], "error": null }