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