Fetch List of Analytics ES
GET/fetchControlListES
This method fetches a list of Analytic Controls in Elastic and support the usage of GET and POST methods.
It is recommended to use the POST method.
Optional params:
searchcriteria: analytics params to search. Example: {"analyticsid": "9","risk": "Medium","category": "Usage","status": "Active","analyticsname":"testESQuery","owner":"awsadmin","usergroup":"MTSTrade_Approver_BusinessOwner","tags":"Tagname","description":"desc","recommendations":"comm"},
max, offset
loggedinuser
Note: Security is based on owner, delegate, ROLE_ADMIN, SAV_ROLE's analytics ES category.
The Authorization must have Bearer followed by Token.
Request
Path Parameters
- application/json
 
Body
Responses
- 200
 
Fetch List of Analytics ES / GET - Fetchlist / Post-FetchControlListES
Response Headers
Access-Control-Allow-Credentials
string
Access-Control-Allow-Origin
string
Cache-Control
string
Connection
string
Date
string
Expires
string
Pragma
string
Referrer-Policy
string
Set-Cookie
string
Strict-Transport-Security
string
Transfer-Encoding
string
X-Content-Type-Options
string
X-Frame-Options
string
X-XSS-Protection
string
- application/json
 
- Schema
 - Example (from schema)
 - Fetch List of Analytics ES
 - GET - Fetchlist
 - Post-FetchControlListES
 
Schema
Array [
]
result
object[]
{
  "displaycount": "1",
  "errorcode": "0",
  "msg": "Success",
  "result": [
    {
      "allowedAction": "1:Accept,2:Revoke,3:Further Review",
      "analyticsEsIndex": "testapi1",
      "analyticsEsIndexType": "analytics",
      "analyticsName": "testESQuery1",
      "analyticsid": "8",
      "analyticstype": "ESQUERY",
      "baseCount": "1",
      "category": "Usage",
      "createDate": "2019-07-31 23:23:57",
      "description": "desc",
      "emailTemplate": "Actionable Email",
      "enableArchival": "true",
      "noOfHistoryToKeep": "2",
      "recommendations": "recommend",
      "risk": "Medium",
      "securityContext": "User",
      "status": "Active",
      "subcategory": "SubCat1",
      "tags": "TagName,TagName2"
    }
  ],
  "totalcount": "1"
}
{
  "displaycount": "1",
  "errorcode": "0",
  "msg": "Success",
  "result": [
    {
      "allowedAction": "1:Accept,2:Revoke,3:Further Review",
      "analyticsEsIndex": "testapi1",
      "analyticsEsIndexType": "analytics",
      "analyticsName": "testESQuery1",
      "analyticsid": "8",
      "analyticstype": "ESQUERY",
      "baseCount": "1",
      "category": "Usage",
      "createDate": "2019-07-31 23:23:57",
      "description": "desc",
      "emailTemplate": "Actionable Email",
      "enableArchival": "true",
      "noOfHistoryToKeep": "2",
      "recommendations": "recommend",
      "risk": "Medium",
      "securityContext": "User",
      "status": "Active",
      "subcategory": "SubCat1",
      "tags": "TagName,TagName2"
    }
  ],
  "totalcount": "1"
}
{
  "displaycount": "1",
  "errorcode": "0",
  "msg": "Success",
  "result": [
    {
      "actionJson": "{\"sendEmail\":\"false\",\"saveToDBElastic\":{\"version\":\"v2\",\"checked\":\"true\"},\"saveToFile\":\"false\"}",
      "allowedAction": "1:Accept,2:Revoke,3:Further Review",
      "analyticsName": "sqllv2sw",
      "analyticsid": "1707",
      "analyticstype": "SQL",
      "category": "Information Refresh",
      "createDate": "2023-02-13 07:07:04",
      "description": "crf",
      "enableArchival": "false",
      "noOfHistoryToKeep": "6",
      "risk": "Medium",
      "securityContext": "None",
      "status": "Active"
    }
  ],
  "totalcount": "1"
}
{
  "displaycount": "1",
  "errorcode": "0",
  "msg": "Success",
  "result": [
    {
      "actionJson": "{\"sendEmail\":\"false\",\"saveToDBElastic\":{\"version\":\"v2\",\"checked\":\"true\"},\"saveToFile\":\"false\"}",
      "allowedAction": "1:Accept,2:Revoke,3:Further Review",
      "analyticsName": "sqllv2sw",
      "analyticsid": "1707",
      "analyticstype": "SQL",
      "category": "Information Refresh",
      "createDate": "2023-02-13 07:07:04",
      "description": "crf",
      "enableArchival": "false",
      "noOfHistoryToKeep": "6",
      "risk": "Medium",
      "securityContext": "None",
      "status": "Active"
    }
  ],
  "totalcount": "1"
}