Event types REST API
Use this REST API to manage event types.
Get all event types
| REST API information | Value | Description |
|---|---|---|
| URI | /admin/resources/event_types | |
| Method | GET | |
| Returns | 200 | Returns a list of all event types. |
| 404 | The event type list was not found. | |
| 500 | Platform System Manager encountered an internal error while processing the request. |
Returns a list of event types.
You can use optional parameters to modify the response from the REST API call. For more information, see the Related information section.
Response body
[
{
"id": "/admin/resources/event_types/69942404-0390-4368-9c21-5510c102aa63",
"created_time_raw": 1465937470993,
"updated_time_raw": 1465937470993,
"state": "pending",
"isas_rn": 1,
"label_text": "Event Types",
"type": "Internal Management Switch",
"created_time": "Tue 14 Jun 2016 20:51:10.993 UTC",
"label_key": "pure1101",
"updated_time": "Tue 14 Jun 2016 20:51:10.993 UTC",
"version": "2.2.2.0"
}
]
- state
- The general availability of the object. If "pending" the object has been created but not activated. If "available" the object is active in the system.
- updated_time
- The time at which the object was last updated
- created_time
- The time at which the object is created
- label_key
- The key for retrieving the label for the event type
- label_text
- Default translated message text
- type
- The event type
- id
- The unique ID of the object in the system.
Get a specific event type
| REST API information | Value | Description |
|---|---|---|
| URI | https://<ip_address>/admin/resources/event_types?id={id} | For example, https://9.x.x.x.x/admin/resources/event_types?id=41cf035c-9dc9-4cd0-8ef0-cad9fdab2b33 |
| Method | GET | |
| Returns | 200 | The event type was returned. |
| 404 | The event type was not found. | |
| 500 | Platform System Manager encountered an internal error while processing the request. |
Returns a single event type identified by {id}.
You can use optional parameters to modify the response from the REST API call. For more information, see the Related information section.