跳到主要内容

getAuditTrailMappers

AuditTrailProductArrayWrapper getAuditTrailMappers(productType, moduleType)

GET /api/2.0/security/audit/mappers

Get audit trail mappers

Returns the audit vocabulary as the tree it really is: every product, the modules inside it, and for each module the actions it can record together with the type of change and the entity each of them applies to. Pass productType to keep a single product and moduleType to keep a single module inside the products that remain; omit both to get the whole tree. The caller needs the portal-settings right of a DocSpace administrator; the audit option of the pricing plan is not required, and the call is read-only and safe to repeat. Each action carries messageAction, the name to send as the action filter of GET api/2.0/security/audit/events/filter, next to actionType and entity, the values its actionType and entryType filters accept - this is where a caller learns which action belongs to which module instead of guessing. A filter that matches nothing yields an empty list rather than an error. Use GET api/2.0/security/audit/types for the flat lists of the same names.

Parameters​

NameInTypeDescriptionNotes
productTypequeryProductTypeThe product to keep, spelled as GET api/2.0/security/audit/types lists it under productTypes. Omitting it keeps every product; a value no product matches yields an empty list rather than an error.[optional] [example: Documents] [enum: 2, 3, 7, 8]
moduleTypequeryLocationTypeThe module to keep inside the products that survive productType, spelled as GET api/2.0/security/audit/types lists it under moduleTypes. Omitting it keeps every module of those products.[optional] [example: Files] [enum: 0, 1, 2, 3, 27, 29, 30, 31]

Responses​

Status codeDescriptionTypeResponse headers
200The products with their modules and the actions each module can recordAuditTrailProductArrayWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403The caller does not have the portal-settings right of a DocSpace administrator--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

AuditTrailProductArrayWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json