Anypoint Platform Audit Log API

2.0.0

Overview

Statistics
7 Operations
0 Skills
Governance Category
Query audit log events, actions, and object types for organizations on the Anypoint Platform. Configure log retention settings.

Servers

  • https://anypoint.mulesoft.com/audit/{version}
  • https://{region}.anypoint.mulesoft.com/audit/{version}
  • https://{region}.platform.mulesoft.com/audit/{version}

Authentication & Security

  • bearerAuth http

    Bearer token authentication. Login endpoint: https://anypoint.mulesoft.com/accounts/api/login

  • clientAuth oauth2

    OAuth2 client credentials. Token endpoint: https://anypoint.mulesoft.com/accounts/api/v2/oauth2/token

Create Organizations By Id Query Mediatypeextension createOrganizationsByIdQueryMediatypeextension

POST

Try it out

Path Parameters
Query Parameters
Custom Query Parameters
Custom Headers
Request Body application/x-www-form-urlencoded
Searches for log entries. Query parameters are documented in the logQuery schema.
Entries returned will match the entries that were passed in, and are sorted in
ascending timestamp order (oldest to newest).

Path Parameters

id *: string
The id to identify the target resource.
mediaTypeExtension *: string
The mediaTypeExtension to identify the target resource.

Query Parameters

cursorPagination: boolean
doIncludeTotal: boolean
getVersionedObjectsInLogs: boolean

Request Body

json
startDate *: any
Starting time, expressed in Unix milliseconds or ISO 8601 date, e.g. '2011-10-10T14:48:00', inclusive of passed-in value.
endDate: any
Ending time, expressed in Unix milliseconds or ISO 8601 date, e.g. '2011-1-1', inclusive of passed-in value.
userIds: array
Limits results to only log entries belonging to the given users
objectIds: array
Limits results to only log entries containing at least one of the given object ids
parentIds: array
Limits results to only log entries whose objects are children of the given parent ids
platforms: array
Limits results to only log entries belonging to the platforms
objectTypes: array
Limits results to only log entries for objects of the given types
actions: array
Limits results to only log entries describing one of the given set of actions
limit: integer
offset: integer
failed: boolean
Limits results to only log entries with the given 'failed' status
ascending: boolean
startDate *: any
Starting time, expressed in Unix milliseconds or ISO 8601 date, e.g. '2011-10-10T14:48:00', inclusive of passed-in value.
endDate: any
Ending time, expressed in Unix milliseconds or ISO 8601 date, e.g. '2011-1-1', inclusive of passed-in value.
userIds: array
Limits results to only log entries belonging to the given users
objectIds: array
Limits results to only log entries containing at least one of the given object ids
parentIds: array
Limits results to only log entries whose objects are children of the given parent ids
platforms: array
Limits results to only log entries belonging to the platforms
objectTypes: array
Limits results to only log entries for objects of the given types
actions: array
Limits results to only log entries describing one of the given set of actions
limit: integer
offset: integer
failed: boolean
Limits results to only log entries with the given 'failed' status
ascending: boolean

Response

json
Successful operation.
data *: array
total: number
cursor: string
data *: array
total: number
cursor: string
Examples
application/json
{ "data": [ {} ], "total": 0.0, "cursor": "string" }
text/csv
{ "data": [ {} ], "total": 0.0, "cursor": "string" }

Get Organizations By Id Platforms getOrganizationsByIdPlatforms

GET

Try it out

Path Parameters
Custom Query Parameters
Custom Headers
Gets all platforms of an organization

Path Parameters

id *: string
The id to identify the target resource.

Response

json
Successful operation.
data *: array
total *: number
Total amount of platforms
Examples
application/json
{ "data": [ { "name": "api-platform", "label": "cloudhub" } ], "total": 2 }

Get Organizations By Id Objecttypes getOrganizationsByIdObjecttypes

GET

Try it out

Path Parameters
Custom Query Parameters
Custom Headers
Gets all objectTypes of an organization

Path Parameters

id *: string
The id to identify the target resource.

Response

json
Successful operation.
data *: array
total *: number
Total amount of objects types
Examples
application/json
{ "data": [ { "name": "api", "platforms": [ "api-platform", "cloudhub" ] }, { "name": "api version", "platforms": [ "api-platform" ] }, { "name": "contract", "platforms": [ "coreservices" ] }, { "name": "application", "platforms": [ "coreservices" ] } ], "total": 4 }

Get Organizations By Id Objects getOrganizationsByIdObjects

GET

Try it out

Path Parameters
Query Parameters
Custom Query Parameters
Custom Headers
Query objects by objectTypes, platforms and search text passed as parameters
example: |
/organizations/{id}/objects?objectType=XX&object_type=YY&search=test-application
/organizations/{id}/objects?platform=A-111&platform=B-222&search=test-application
/organizations/{id}/objects?platform=A-111&platform=B-222&object_type=YY

Path Parameters

id *: string
The id to identify the target resource.

Query Parameters

offset *: number
Pagination parameter to start returning object from this position of matches
objectType *: array
Object type name, supports multiple object types
objectId *: array
Object Id, supports multiple object ids
platform *: array
Platform name, supports multiple platforms
limit *: number
search *: string
The string to search for in object names

Response

json
Successful operation.
data *: array
total *: number
Total amount of objects that match the criteria
Examples
application/json
{ "data": [ { "objectId": "9898", "objectName": "Test API" }, { "objectId": "2342", "objectName": "v1.0" }, { "objectId": "5379", "objectName": "Test Application" } ], "total": 3 }

Get Organizations By Id Actions getOrganizationsByIdActions

GET

Try it out

Path Parameters
Custom Query Parameters
Custom Headers
Gets all actions and object types associated with them.

Path Parameters

id *: string
The id to identify the target resource.

Response

json
Successful operation.
data *: array
Actions Entry Array
total *: number
Total amount of actions
Examples
application/json
{ "data": [ { "name": "create", "objectTypes": [ "api", "api version" ] }, { "name": "start", "objectTypes": [ "application" ] }, { "name": "delete", "objectTypes": [ "page", "policy" ] }, { "name": "login", "objectTypes": [ "user" ] } ], "total": 3 }

Get Organizations By Id Retentionsettings getOrganizationsByIdRetentionsettings

GET

Try it out

Path Parameters
Custom Query Parameters
Custom Headers
Gets retention setting entries for an organization including the current retention period.

Path Parameters

id *: string
The id to identify the target resource.

Response

json
Successful operation.
data *: array
Retention Entry Array
Examples
application/json
{ "data": [ { "retentionPeriod": 2190, "effectiveFrom": null } ] }

Update Organizations By Id Retentionsettings updateOrganizationsByIdRetentionsettings

PUT

Try it out

Path Parameters
Custom Query Parameters
Custom Headers
Request Body application/json
Sets retention setting for an organization. The organization id should be a root organization id as retention period can not be set for a sub-organization.

Path Parameters

id *: string
The id to identify the target resource.

Request Body

json
retentionPeriod *: number
effectiveFrom: string
Examples
example1
{ "retentionPeriod": 30, "effectiveFrom": "2022-09-29T21:45:41.609000+00:00" }
example2
{ "retentionPeriod": 365 }

Response

The entry was recorded successfully.