Get the collection of audit entries
get/audit/entries
Returns a collection of audit entries. The default sort is timestamp:ascending:primary. Requires administrative privileges.
1{2 "value": {3 "links": [4 {5 "method": "GET",6 "rel": "self",7 "href": "/clinicalRepository/audit/entries?filter=and(or(eq(userId,'sastest1'),eq(userId,'sastest2')),ge(timestamp,2023-09-19T11:30:00.000Z))&sortBy=timestamp:descending:primary,timestamp:ascending:secondary&start=0&limit=100",8 "uri": "/clinicalRepository/audit/entries?filter=and(or(eq(userId,'sastest1'),eq(userId,'sastest2')),ge(timestamp,2023-09-19T11:30:00.000Z))&sortBy=timestamp:descending:primary,timestamp:ascending:secondary&start=0&limit=100",9 "type": "application/vnd.sas.collection",10 "itemType": "application/vnd.sas.clinical.audit.summary.entry+json"11 },12 {13 "method": "GET",14 "rel": "collection",15 "href": "/clinicalRepository/audit/entries",16 "uri": "/clinicalRepository/audit/entries",17 "type": "application/vnd.sas.collection",18 "itemType": "application/vnd.sas.clinical.audit.summary.entry+json"19 }20 ],21 "name": "entries",22 "accept": "application/vnd.sas.clinical.audit.summary.entry+json",23 "start": 0,24 "count": 6,25 "items": [26 {27 "version": 1,28 "id": "c8859454-9bb7-4bb3-aa3a-1b87b1a17ada",29 "typeId": "auditEntry",30 "timestamp": "2023-09-20T03:30:59.741000Z",31 "userId": "sastest1",32 "action": "created",33 "sourcePrimaryType": "CONTEXT",34 "sourceTypeId": "businessunit",35 "sourceId": "eecfdac1-268c-477b-abc7-55e53cbbff0f",36 "sourceName": "topContext_BU",37 "sourceLocation": "/",38 "mode": "ADMIN",39 "userDisplayName": "SAS Test User 1 (sastest1)",40 "actionDisplayName": "Created"41 },42 {43 "version": 1,44 "id": "49987776-69b8-453d-930a-e24c774f96a5",45 "typeId": "auditEntry",46 "timestamp": "2023-09-20T03:28:41.654000Z",47 "userId": "sastest2",48 "action": "enabledVersioning",49 "sourcePrimaryType": "FILE",50 "sourceTypeId": "sasprogram",51 "sourceId": "6de9a72b-37ab-4fa2-a11c-6ba2531dd205",52 "sourceName": "newFileMinor Versioned.sas",53 "sourceLocation": "/RemoteRepositoryControllerTest-1695165452890/RemoteRepoUpDownloadControllerTest-1695165452890",54 "mode": "USER",55 "userDisplayName": "SAS Test User 2 (sastest2)",56 "actionDisplayName": "Versioning enabled"57 },58 {59 "version": 1,60 "id": "b2dd0cc1-e1c2-4279-9a1e-c7a37aaed703",61 "typeId": "auditEntry",62 "timestamp": "2023-09-20T03:28:41.552000Z",63 "userId": "sastest2",64 "action": "ownerChanged",65 "sourcePrimaryType": "FILE",66 "sourceTypeId": "sasprogram",67 "sourceId": "6de9a72b-37ab-4fa2-a11c-6ba2531dd205",68 "sourceName": "newFileMinor Versioned.sas",69 "sourceLocation": "/RemoteRepositoryControllerTest-1695165452890/RemoteRepoUpDownloadControllerTest-1695165452890",70 "mode": "USER",71 "userDisplayName": "SAS Test User 2 (sastest2)",72 "actionDisplayName": "Owner changed"73 },74 {75 "version": 1,76 "id": "41eb621f-59cb-4539-ae6e-17cf520e8301",77 "typeId": "auditEntry",78 "timestamp": "2023-09-20T03:28:41.520000Z",79 "userId": "sastest1",80 "action": "aclCreated",81 "sourcePrimaryType": "FILE",82 "sourceTypeId": "sasprogram",83 "sourceId": "6de9a72b-37ab-4fa2-a11c-6ba2531dd205",84 "sourceName": "newFileMinor Versioned.sas",85 "sourceLocation": "/RemoteRepositoryControllerTest-1695165452890/RemoteRepoUpDownloadControllerTest-1695165452890",86 "mode": "USER",87 "userDisplayName": "SAS Test User 2 (sastest2)",88 "actionDisplayName": "Permissions created"89 },90 {91 "version": 1,92 "id": "70b836f3-d493-4f6a-9b3f-dce3a90d7ddb",93 "typeId": "auditEntry",94 "timestamp": "2023-09-20T03:28:41.098000Z",95 "userId": "sastest2",96 "action": "associated",97 "sourcePrimaryType": "FILE",98 "sourceTypeId": "sasprogram",99 "sourceId": "6de9a72b-37ab-4fa2-a11c-6ba2531dd205",100 "sourceName": "newFileMinor Versioned.sas",101 "sourceLocation": "/RemoteRepositoryControllerTest-1695165452890/RemoteRepoUpDownloadControllerTest-1695165452890",102 "mode": "USER",103 "userDisplayName": "SAS Test User 2 (sastest2)",104 "actionDisplayName": "Associated"105 },106 {107 "version": 1,108 "id": "16a485ff-7848-4170-885d-a3bf06aafb4c",109 "typeId": "auditEntry",110 "timestamp": "2023-09-20T03:28:41.098000Z",111 "userId": "sastest2",112 "action": "created",113 "sourcePrimaryType": "FILE",114 "sourceTypeId": "sasprogram",115 "sourceId": "6de9a72b-37ab-4fa2-a11c-6ba2531dd205",116 "sourceName": "newFileMinor Versioned.sas",117 "sourceLocation": "/RemoteRepositoryControllerTest-1695165452890/RemoteRepoUpDownloadControllerTest-1695165452890",118 "mode": "USER",119 "userDisplayName": "SAS Test User 2 (sastest2)",120 "actionDisplayName": "Created"121 }122 ],123 "limit": 100,124 "version": 2125 }126}
| Name | Type | Required | Description |
|---|---|---|---|
filter | string<filter-criteria> | false | Filter criteria for items. The following fields are not supported in filter criteria: typeId, actionDisplayName, and auditEntryDetails. See Filtering in REST APIs. |
limit | integer | false | The maximum number of items to return. Defaults to 10. The maximum cannot exceed 500. |
sortBy | string<sort-criteria> | false | Sorts the returned items. The following fields are not supported for sort: typeId, actionDisplayName, and auditEntryDetails. See Sorting in REST APIs. |
start | integer | false | 0-based offset of the first type to return. Defaults to 0. |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 200 | OK | OK | Schema |