Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The Data Services can be executed using EQL and Generic Extractor REST APIs.

This page shows examples on how to run Data Services extracts using the MC2 Swagger UI.

Running Data Services Extracts using Generic Extractor

One option to run EBS extracts is to use the Generic Extractor REST API. The Swagger for the Generic Extractor REST API can be retrieved from:


https://eagle-web-server/eagle/v2/generic/extract/api-doc

To execute a test REST request you can use the MC2 Swagger UI. Open the browser (Chrome) to point to the mc2/swagger-ui.html endpoint:


https://eagle-web-server/mc2/swagger-ui.html


In the dropdown on the right top corner select Generic Extractor:



Click on eaglegenericextractrestapi, then POST and Try It Out:



In the Example Value Model add:

Sample Generic Extractor POST Body
{
  "extractParameters": [
    {
      "name": "ebs:default:outputformat",
      "value": "EagleJSON"
    },

    {
      "name": "ebs:default:invalidatecache",
      "value": "Y"
    }
  ],
  "extracts": [
    {
      "name": "ebs:genericentity",
      "extractParameters": [
        {
          "name": "maxrows",
          "value": "5"
        }
      ]
    },
    {
      "name": "ebs:interfaces",
      "extractParameters": [
        {
          "name": "maxrows",
          "value": "10"
        }
      ]
    }
  ]

}


Then click Execute:



The result will be a ZIP file with two extracts:



When you download the zip, you will see two files there:



  • No labels