Get Events
| Description | Get data from project events or global events. |
URL | /api/events |
| Method | GET |
Security | Requires User role to get information on events for a specific project |
Examples
- Get versions from project org.codehaus.sonar:sonar: GET http://nemo.sonarsource.org/api/events?resource=org.codehaus.sonar:sonar&categories=Version
- Get versions and alerts from project org.codehaus.sonar:sonar between 2012-01-01 and 2012-08-31: GET http://nemo.sonarsource.org/api/events?resource=org.codehaus.sonar:sonar&categories=Alert,Versions&fromDate=2012-01-01&toDate=2012-08-31
- Get global events from 2012-10-08: GET http://localhost:9000/api/events?fromDate=2012-10-08
Parameters
Parameter | Description | Required | Example |
|---|---|---|---|
resource | id or key of the project | No. Get global events if not set. | |
categories | Comma-separated list of category filters (case-sensitive) | No | Version,Alert |
fromDateTime | ISO-8601 datetime (inclusive) | No | 2010-12-25T23:59:59+0100 |
toDateTime | ISO-8601 datetime (inclusive) | No | 2010-12-25T23:59:59+0100 |
fromDate | Date (inclusive) | No | 2010-12-25 |
toDate | Date (inclusive) | No | 2010-12-25 |
Response Format

