Retrieve Audit Records
get
/ic/api/integration/v1/monitoring/auditRecords
Retrieves audit records based on query.
Request
Query Parameters
-
integrationInstance(required): string
This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.
-
limit: 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: 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: 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'}
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json; charset=utf-8
200 Response
Successful operation
Root Schema : MonitoringAuditResource
Type:
Show Source
object
-
items: array
items
List of Agent
-
total-results: string
Total Results
404 Response
Audit Records 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://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/auditRecords?integrationInstance=service-instance
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://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/auditRecords?integrationInstance=service-instance