List all events
GET /accounts/{account_id}/core/v1/events
Returns a JSON array of all matching resources in the collection. If individual fields are specified in the request, the items JSON array will contain the fields requested for each matching resource in the order specified.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
account_id |
string |
path |
True |
ID of the containing account resource
|
include |
string |
query |
False |
Indicates which fields should be returned when listing a collection. URL examples: "include=id", "include=id,name" OpenAPI examples: "id"
|
limit |
string |
query |
False |
Indicates the maximum number of resources to return when listing a collection. URL examples: "limit=2" OpenAPI examples: "2" |
filter |
string |
query |
False |
Indicates which fields should be matched in order to return a resource when listing a collection. Supported operators are:
URL example: "filter=field%20eq%20%27value%27" OpenAPI examples: "field eq 'value'" |
orderBy |
string |
query |
False |
Indicates the sort order of resource when listing a collection. URL examples: "orderBy=name", "orderBy=name%20desc" OpenAPI examples: "name desc" |
skip |
string |
query |
False |
Indicates the number of resources to skip over when listing a collection. URL examples: "skip=1" OpenAPI examples: "1" |
count |
string |
query |
False |
Indicates if the total number of resources should be returned in the metadata object. URL examples: "count=true" OpenAPI examples: "true" |
continue |
query |
False |
Indicates the token to resume listing from. URL examples: "continue= OpenAPI examples: " |
Response
Status: 200, Returns a JSON array of all matching resources in the collection. If individual fields are specified in the request, the items JSON array will contain the fields requested for each matching resource in the order specified.
Name | Type | Required | Description |
---|---|---|---|
items |
array[Any of: event_1.4_get_response_body, array[]] |
True |
|
metadata |
True |
Example response
{
"type": "application/astra-events",
"version": "1.4",
"items": [
[
"4f8273ee-883d-47f0-a512-9e27b6285f20",
"Discovering Applications in Cluster"
],
[
"1cdd26dc-5eb0-4cf4-a0c1-39a9b83720e1",
"Application Discovered"
],
[
"2064d1c1-4bc6-466e-9c30-b941a11be16a",
"Application Discovery Failed"
],
[
"4325f971-ca9c-4a52-bc9a-da6ec62e6bfe",
"Application Discovered"
]
],
"metadata": {
"labels": [],
"creationTimestamp": "2022-10-06T20:58:16.305662Z",
"modificationTimestamp": "2022-10-06T20:58:16.305662Z",
"createdBy": "8f84cf09-8036-51e4-b579-bd30cb07b269"
}
}
Response
Status: 401, Unauthorized
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
status |
string |
True |
|
correlationID |
string |
False |
Example response
{
"type": "https://astra.netapp.io/problems/3",
"title": "Missing bearer token",
"detail": "The request is missing the required bearer token.",
"status": "401"
}
Response
Status: 400, Bad request
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
status |
string |
True |
|
correlationID |
string |
False |
|
invalidParams |
array[invalidParams] |
False |
List of invalid query parameters |
Example response
{
"type": "https://astra.netapp.io/problems/5",
"title": "Invalid query parameters",
"detail": "The supplied query parameters are invalid.",
"status": "400"
}
Response
Status: 403, Forbidden
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
status |
string |
True |
|
correlationID |
string |
False |
Example response
{
"type": "https://astra.netapp.io/problems/11",
"title": "Operation not permitted",
"detail": "The requested operation isn't permitted.",
"status": "403"
}
Error
Status: 404, Not found
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
status |
string |
True |
|
correlationID |
string |
False |
Example error response
{
"type": "https://astra.netapp.io/problems/2",
"title": "Collection not found",
"detail": "The collection specified in the request URI wasn't found.",
"status": "404"
}
Definitions
See Definitions
data
JSON object containing additional event-specific information.
Name | Type | Required | Description |
---|---|---|---|
ttl |
number |
False |
JSON number indicating the number of seconds (since the eventTime) that the event will be retained. This field is only included when an event is automatically deleted after the specified number of seconds. When deleted, if the event has a notification destination, all associated notifications are also deleted. When deleted, if the event has a banner destination, the banner is also removed. The absence of this field (or a value of "0") means that an event will not be automatically deleted. |
isAcknowledgeable |
string |
False |
JSON string indicating whether the banner is dismissible. Defined values are:
|
type_astra_label
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
|
value |
string |
True |
type_astra_metadata
Client and service-specified metadata associated with the resource. Defined values are:
-
Conforms to the Astra Metadata Schema
Name | Type | Required | Description |
---|---|---|---|
labels |
array[type_astra_label] |
True |
|
creationTimestamp |
string |
True |
|
modificationTimestamp |
string |
True |
|
createdBy |
string |
True |
|
modifiedBy |
string |
False |
event_1.4_get_response_body
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
Media type of the resource. Defined values are:
|
version |
string |
True |
Version of the resource. Defined values are:
|
id |
string |
True |
Globally unique identifier of the resource. Defined values are:
|
name |
string |
True |
JSON string containing a dot notation (.) hierarchical name for the event. Defined values are:
|
sequenceCount |
number |
True |
JSON number containing a sequence count. The number is incremented by the system each time a new event is received. |
summary |
string |
True |
JSON string containing the short-form (less than 40 characters) summary of the event. Defined values are:
|
eventTime |
string |
True |
JSON string containing a timestamp that indicates when an event occurred. Defined values are:
|
source |
string |
True |
JSON string containing the lowercase name of the service generating an event. Defined values are:
|
resourceID |
string |
True |
JSON string containing the resource ID associated with an event. Defined values are:
|
additionalResourceIDs |
array[string] |
True |
JSON array of JSON strings, each containing a resource ID of an additional resource associated with the event. While the "resourceID" field contains the primary resource associated with this event, this field contains any number of additional resource IDs to be associated with the same events. If no additional resources are associated with the event, the array will be empty. Defined values are:
|
resourceType |
string |
True |
JSON string containing the media type of the resource associated with an event. Defined values are:
|
correlationID |
string |
True |
JSON string containing a UUIDv4 correlation ID that allows related events to be grouped together. Defined values are:
|
severity |
string |
True |
JSON string containing one of the following values that indicate the severity of an event. Defined values are:
|
class |
string |
True |
JSON string containing one of the following values that indicate the class of the event. Defined values are:
|
description |
string |
True |
JSON string containing a long-form descriptive text about the event. Defined values are:
|
descriptionURL |
string |
False |
JSON string containing the URL that enables and links a button in the banner to external documentation. Defined values are:
|
correctiveAction |
string |
False |
JSON string containing a long-form descriptive text about what corrective action must be taken in response to the event. Defined values are:
|
correctiveActionURL |
string |
False |
JSON string containing the URL that links a button in the banner to a page within the UI to fix the issue. Defined values are:
|
visibility |
array[string] |
False |
JSON array of JSON strings, each indicating an RBAC role permitted to view the event. Roles are OR-defined together. Optional. If omitted, a user with any RBAC role can view the event. Defined values are:
|
destinations |
array[string] |
False |
JSON array of JSON strings, each indicating an additional destination for the event. These strings allow a service to provide hints about where an event should be routed in addition to the activity log. Optional. Defined values are:
|
resourceURI |
string |
False |
JSON string containing the URI associated with the event. Only included for events related to API operations. Defined values are:
|
resourceCollectionURL |
array[string] |
False |
JSON array of JSON strings, each indicating the fully-expanded access URL of the resource associated with the event. Defined values are:
|
resourceMethod |
string |
False |
JSON string containing the HTTP method invoked. Only included for events related to API operations. Defined values are:
|
resourceMethodResult |
string |
False |
JSON string containing the result of the HTTP method invoked. Only included for events related to the API operations. Defined values are:
|
userID |
string |
False |
JSON string containing the user ID associated with an event. Only included for events associated with the user-initiated actions. Defined values are:
|
accountID |
string |
False |
JSON string containing the account ID associated with an event. Only included for events associated with an account. Defined values are:
|
data |
False |
JSON object containing additional event-specific information. |
|
metadata |
True |
Client and service-specified metadata associated with the resource. Defined values are:
|
type_astra_metadata_list
Name | Type | Required | Description |
---|---|---|---|
continue |
string |
False |
|
count |
number |
False |
|
labels |
array[type_astra_label] |
False |
|
creationTimestamp |
string |
False |
|
modificationTimestamp |
string |
False |
|
createdBy |
string |
False |
|
modifiedBy |
string |
False |
invalidParams
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
Name of the invalid query parameter |
reason |
string |
True |
Reason why the query parameter is invalid |