Initiate an audit log export

post

/api/rest/2.0/data/auditLog/reportExport

Creates a request for an audit log export that matches the criteria specified by the request body.

Request

Supported Media Types
Body ()
Audit log export request
Root Schema : AuditLogReportRequest
Type: object
Title: AuditLogReportRequest
Show Source
  • The event action to filter for the audit log. Possible values include: all, create, modify, delete, archive and unarchive. For campaigns, possible values also include: activated, deactivated, pause, and scheduleForActivation. If not specified, defaults to all.
  • The asset type for the Audit log. Required if auditReportType is set to assets. Possible values include: forms, programs, campaigns, emails, and landingPages. Specify multiple asset types by comma separating values.
  • Specifies the Audit Report Type to generate. Possible values include: assets (asset history), securityGroup (security group history), userProfile (user profile history), userLogin (user login history), dataExport (export history), and dataUpload (upload history).
  • The end date and time (10 digit integer Unix time). This property is required.
  • File format to be exported. Possible values include: delimitedFile or Excel2007.
  • Email address for export notification. This property is required.
  • The start date and time (10 digit integer Unix time). This property is required.
  • For dataUpload and dataExport audit reports, you can filter on the status. Possible values include: completed, in progress, queued, waiting, failed, and inactive.
  • This property is not used.
  • The user name to filter on.
Back to Top

Response

Supported Media Types

201 Response

Request for the audit log has been registered. An email containing a link to the exported data will be sent to the email address for export notification

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

The following examples demonstrate how to create a request for an audit log using an HTTP request and cURL. For more information on requests, see API requests.

HTTP Request Example

Initiate an audit log export for campaign assets for all actions:


POST /api/REST/2.0/data/auditlog/reportExport
Content-Type: application/json 
			

Request body:


{
  "auditReportType": "assets",
  "startDate": "1546837200",
  "endDate": "1547528400",
  "notificationEmail": "API.User@oracle.com",
  "fileFormat": "delimitedFile",
  "assetTypes": "campaigns",
  "actionName": "all"
}
			

Response:


201 Created
			

cURL Example

Here is the same example in cURL given an instance with the name APITest, username API.User, and POD of 3.


curl --user "APITest\API.User" --header "Content-Type: application/json" --request POST --data '{"auditReportType":"assets","startDate":"1483729793","endDate":"1546780193","notificationEmail":"API.User@oracle.com","fileFormat":"delimitedFile","assetTypes":"campaigns","actionName":"all"}' https://secure.p03.eloqua.com/api/rest/2.0/data/auditlog/reportExport
			

HTTP Request Example

Initiate an audit log export for forms and landing pages for all actions:


POST /api/REST/2.0/data/auditlog/reportExport
Content-Type: application/json 
			

Request body:


{
  "auditReportType": "assets",
  "startDate": "1546837200",
  "endDate": "1547528400",
  "notificationEmail": "API.User@oracle.com",
  "fileFormat": "Excel2007",
  "assetTypes": "forms, landingPages",
  "actionName": "all"
}
			

Response:


201 Created
			

cURL Example

Here is the same example in cURL given an instance with the name APITest, username API.User, and POD of 3.


curl --user "APITest\API.User" --header "Content-Type: application/json" --request POST --data '{"auditReportType":"assets","startDate":"1546837200","endDate":"1547528400","notificationEmail":"API.User@oracle.com","fileFormat":"Excel2007","assetTypes":"forms, landingPages","actionName":"all"}' https://secure.p03.eloqua.com/api/rest/2.0/data/auditlog/reportExport
			
Back to Top