Constructor
new Events(endPoint, optionsopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
endPoint |
String | Cloud Controller API endpoint URL | ||
options |
Object |
<optional> |
{} | Options (same as CloudControllerBase) |
- Source:
Methods
getEvent(guid) → {Promise}
Get a single Event by GUID.
Parameters:
| Name | Type | Description |
|---|---|---|
guid |
String | Event unique identifier |
- Source:
Returns:
Resolves with JSON event object
- Type
- Promise
getEvents(filteropt) → {Promise}
Get Events list (audit_events in v3)
v2: http://apidocs.cloudfoundry.org/214/events/list_all_events.html
v3: https://v3-apidocs.cloudfoundry.org/index.html#list-audit-events
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
filter |
Object |
<optional> |
Query-string filter options |
- Source:
Returns:
Resolves with JSON events list
- Type
- Promise