Description: Returns activity logs, with optional sorting and filtering parameters.
Since: AppTrust 1.16.4
Usage: GET https://{{artifactory-host}}/apptrust/api/v1/activity/log
Query Parameters (optional):
Note
All array parameters can be specified multiple times separated by commas.
Parameter | Type | Description |
|---|---|---|
| array:string | Filters by application key. |
| array:string | Filters by project key. |
| integer | Filter by timestamp from (UNIX timestamp). |
| integer | Filter by timestamp to (UNIX timestamp). |
| array:string | Filters by subject type. |
| string | Filters by subject name. |
| array:string | Filters by event type. |
| array:string | Filters by event category. |
| array:string | Filters by result (success, failure, warning). |
| string | Filters by prefix. |
| string | Defines the field by which to sort results ( The default is |
| string | Defines the sort direction ( The default is |
Request Body:
Parameter | Type | Description |
|---|---|---|
| string | The unique identifier for the activity log entry. |
| string | The key of the associated application, if applicable. |
| string | The display name of the associated application. |
| string | The key of the associated project. |
| string | The display name of the associated project. |
| integer | The UNIX timestamp when the event occurred. |
| string | The type of subject that triggered the event. |
| string | The name of the subject that triggered the event. |
| string | The event description. |
| string | The event type. |
| string | The event category. |
| string | The user who initiated the event. |
| string | The result of the event ( |
| string | Additional structured data related to the event. |
Sample Request:
GET 'https://{host}.jfrog.io/apptrust/api/v1/activity/log?project_key=catalina&event_category=lifecycle&sort_by=timestamp&sort=desc' Authorization: •••••• Sample Response:
[
{
"event_id": "01HN1234567890ABCDEFGHIJK",
"timestamp": 1672531200000,
"subject_type": "application",
"subject_name": "catalina-app",
"event_description": "Application version 1.2.0 promoted to QA",
"event_type": "promote",
"event_category": "lifecycle",
"result": "success",
"additional_data": {
"version": "1.2.0",
"stage": "QA"
},
"created_by": "admin@example.com",
"application_key": "catalina-app",
"application_name": "Catalina App",
"project_key": "catalina",
"project_name": "Catalina Project"
},
{
"event_id": "01HN0987654321ZYXWVUTSRQP",
"timestamp": 1672527600000,
"subject_type": "application",
"subject_name": "catalina-app",
"event_description": "Application created successfully",
"event_type": "create",
"event_category": "lifecycle",
"result": "success",
"additional_data": {},
"created_by": "admin@example.com",
"application_key": "catalina-app",
"application_name": "Catalina App",
"project_key": "catalina",
"project_name": "Catalina Project"
}
]
Status Codes:
Code | Description |
|---|---|
200 | Success |
400 | Bad Request |
401 | Bad Credentials |
403 | Permission Denied |
500 | Internal Server Error |