Documentation is now available for the Fall 2020 Update release!

Create on-demand batch export

This endpoint is used to create an on-demand batch export template.

Leave Feedback

URL

POST https://{api-url}api.opsramp.com/api/v2/exports/tenants/{tenantId}/create

Sample URLs

https://api.opsramp.com/api/v2/exports/tenants/msp_3/create

Parameters

All parameters are mandatory.

FieldDefault ValueDescription
nameStringName of the batch export template.
typeStringDefines the batch type to export. Supported values: Inventory, Alerts, Tickets, Metrics.
recurringtypeStringDefines the recurring type of batch export. Supported values: Daily, Weekly, Monthly.
integrationIdStringIntegration ID.
scheduleTypeStringDefines the schedule type. Example: ON-DEMAND.

Status code

200 OK

Sample request

{
  "name" : "API Test Inventory",
  "scheduleType" : "ON-DEMAND",
  "recurringType" : "Daily",
  "integrationId" : "INTG-b0975fb4-e54e-4a80-a65f-883bf1109aa1",
  "type" : "Inventory"
}

Sample response

Export template created for client_9 with id : schexp-4154945d-9efb-4cdc-bffc-ed9237168662,
Export template created for client_12 with id : schexp-445f0e02-8cb2-4225-94c0-6e2f5ac1f360,
Export template already exists for client_4