...
The user account used to generate the token is the one associated with the token. They are the owner of that token and as such any API call they use it against will validate their Roles and Access before allowing the action to proceed. To To access Audit Logs, the user MUST have the Power User role in the Opsera Platform, setup via Group Management.
...
The following actions are logged:
Scope | Event / Action | ID (type) |
---|---|---|
User Authentication | A new login event for a given user. |
|
Pipeline Actions |
|
|
Access Token Usage | All uses of a given token are logged | n/a |
Tool Registry |
| registry |
Analytics Data Entries |
| analytics_data_entry |
Analytics Data Mapping: Organization |
| analytics_data_mapping_organization |
Analytics Data Mapping: Project |
| analytics_data_mapping_project |
Analytics Data Mapping: User |
| analytics_data_mapping_user |
Feature Flags |
| feature_flags |
Notification Policy |
| notification_policy |
Pipeline Template |
| pipeline_template |
Instructions |
| instructions |
Policy |
| policy |
Tag |
| tag |
Task |
| task |
Audit Logs API
The following API’s are available for consuming the audit logs. All Opsera API’s require a valid Access Token with either API Access OR Security Logs (Read Only)
scope.
Note: Dates are in UTC.
API Server*: https://app.opsera.io
URL | METHOD | DESCRIPTION | Scope | DATA | RESPONSE | ||
---|---|---|---|---|---|---|---|
| GET | Gets the User Activity Logs for the system. This is a route limited to Site Admins and Power users and requires a token of either API scope or Security Logs scope. If no date parameter is passed, the last 7 days of logs will be returned (up to a max of 1000 records) |
| Optional Query Parameters:
*supported timescale characters = s(seconds): 30 seconds = “30s” m(minutes): 13 minutes = “13m” h(hours): 1 hour = “1h” d(days): 3 days = “3d” w(weeks): 2 weeks = “2w” |
| ||
| GET | Gets the User Activity Logs for the system. This is a route limited to Site Administrators, Power Users, Auditors, Security Managers. It requires a token of either API scope or Security Logs scope. |
| Optional Query Parameters
page=<integer> current page page_size=<integer> page size (max is 1000) action=<string> various actions type=<string> item type (pipeline, registry, etc) user_id=<mongo id> mongo user ID user_email=<sso user email> email address | |||
| GET | Gets the Personal Access Tokens' Activity Logs. This is a route limited to Site Admins and Power users and requires a token of either API scope or Security Logs scope. If no date parameter is passed, the last 7 days will be returned.(up to a max of 1000 records) |
| Optional Query Parameters:
|
| ||
| GET | Gets the Pipeline Activity Logs for the system. This is a route limited to Site Admins and Power users and requires a token of either API scope or Security Logs scope. If no date parameter is passed, all logs will be returned (up to a max of 1000 records). |
| Optional Query Parameters
*supported timescale characters = s(seconds): 30 seconds = “30s” m(minutes): 13 minutes = “13m” h(hours): 1 hour = “1h” d(days): 3 days = “3d” w(weeks): 2 weeks = “2w” |
|
*Please note, if a customer is running in their own tenant, the API URL would be different. Please contact Opsera to get your unique API URL.
...