Retrieve Audit Records
get
/ic/api/integration/v1/monitoring/auditRecords
Retrieves audit records based on query.
Request
Supported Media Types
- application/json; charset=utf-8
Query Parameters
-
limit(optional): integer(int32)
Use with the offset parameter for paginating through the returned results. The limit is the maximum number of items to return at one time. For example, offset=3&limit=16 indicates to list error integration instances starting at the 4th item, and the list will contain 16 items.
-
offset(optional): integer(int32)
Use with the limit parameter for paginating through the returned results. Default is 0. The offset is the starting point from which to return records. For example, offset=3&limit=16 indicates to list connections starting at the 4th item, and the list will contain 16 items.
-
q(optional): string
Filter parameters.
- limit: Number of records to fetch. Default, 15 records are fetched.
- code: Integration identifier.
- version: Integration version.
- timewindow: 1h, 6h, 1d, 2d, 3d, RETENTIONPERIOD. Default value is 1h.
- type: '
' Exact or like match of resource type. Default, records of all types of resources are fetched. - distinct: '
' Boolean to indicate, fetch distinct records of a resource. Default, distinct is false. - Type values: ICS_AppInstance, ICS_DVM, ICS_ProjectV2, ICS_AgentDefinition, ICS_AgentInstance, ICS_Schedule, API_LIBRARY, ICS_PACKAGE.
Example:
{limit: '10', type:/ICS_AppInstance/, distinct: 'true'}
Response
Supported Media Types
- application/json; charset=utf-8
- application/vnd.oracle.resource+json;type=collection
200 Response
Successful operation
Nested Schema : monitoringauditrecord
Type:
Show Source
object
-
auditTrailMessage(optional):
string
-
jobId(optional):
string
-
links(optional):
array links
-
message(optional):
string
-
operationName(optional):
string
-
resourceCode(optional):
string
-
resourceName(optional):
string
-
resourceType(optional):
string
-
resourceVersion(optional):
string
-
status(optional):
string
-
timeStamp(optional):
string(date-time)
-
userName(optional):
string
404 Response
Not found
500 Response
Server error
Examples
The following examples show how to retrieve the audit records by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.
Example: Get all audit records
curl -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" https://integration.us.oraclecloud.com/ic/api/integration/v1/monitoring/auditRecords
Example: Get a filtered list of records
curl -G -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" --data-urlencode "q={limit: '20', type:/ICS_ProjectV2/, distinct: 'true'}" https://integration.us.oraclecloud.com/ic/api/integration/v1/monitoring/auditRecords