Skip to main content
本製品の最新リリースがご利用いただけます。
日本語は機械翻訳による参考訳です。内容に矛盾や不一致があった場合には、英語の内容が優先されます。

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

  • example: {{.Account}}

include

string

query

False

Indicates which fields should be returned when listing a collection.

URL examples: "include=id", "include=id,name"

OpenAPI examples: "id"

  • example: id,summary

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:

  • eq - Equality

  • lt/gt - Less than/Greater than

  • lte/gte - Less than or equals to/Greater than or equals to

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: ""</continue>

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

type_astra_metadata_list

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:

  • "true" - The banner is dismissible

  • "false" - The banner is not dismissible

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:

  • "application/astra-event"

version

string

True

Version of the resource. Defined values are:

  • "1.0"

  • "1.1"

  • "1.2"

  • "1.3"

  • "1.4"

id

string

True

Globally unique identifier of the resource. Defined values are:

  • Conforms to the UUIDv4 Schema

name

string

True

JSON string containing a dot notation (.) hierarchical name for the event. Defined values are:

  • Minimum length: 3

  • Maximum length: 127

  • Defined regex is: "^[a-z])(\.([a-z])+$"

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:

  • Minimum length: 3

  • Maximum length: 79

eventTime

string

True

JSON string containing a timestamp that indicates when an event occurred. Defined values are:

  • Conforms to the ISO-8601 Date Time Schema

source

string

True

JSON string containing the lowercase name of the service generating an event. Defined values are:

  • Minimum length: 1

  • Maximum length: 19

  • Defined regex is: "^([a-z-])*$"

resourceID

string

True

JSON string containing the resource ID associated with an event. Defined values are:

  • Conforms to the Astra Identifier Schema

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:

  • Conforms to the Astra Identifier Schema

resourceType

string

True

JSON string containing the media type of the resource associated with an event. Defined values are:

  • Minimum length: 4

  • Maximum length: 79

  • Defined regex is: "^application\/astra-([a-zA-Z])+$"

correlationID

string

True

JSON string containing a UUIDv4 correlation ID that allows related events to be grouped together. Defined values are:

  • Conforms to the Astra Identifier Schema

severity

string

True

JSON string containing one of the following values that indicate the severity of an event. Defined values are:

  • "cleared" - Indicates that a previously reported event describing a condition is no longer active. An event with severity "cleared" will use the same summary and correlation ID to allow it to be matched up.

  • "indeterminate" - Indicates that the severity cannot be determined.

  • "informational" - Indicates a change in state that is both expected and normal (not defined in X.733).

  • "warning" - Indicates the detection of a potential or impending service affecting fault before any significant effects have been felt.

  • "critical" - Indicates that a service affecting condition has occurred and immediate corrective action is required. Definitions for "cleared", "indeterminate", "warning" and "critical" are based on definitions in clause 8.1.2.3 of CCITT X.733.

class

string

True

JSON string containing one of the following values that indicate the class of the event. Defined values are:

  • "system" - The event is related to an internal event or request.

  • "user" - The event is related to a user-initiated event or request.

  • "security" - The event is related to a security issue.

description

string

True

JSON string containing a long-form descriptive text about the event. Defined values are:

  • Minimum length: 3

  • Maximum length: 1023

descriptionURL

string

False

JSON string containing the URL that enables and links a button in the banner to external documentation. Defined values are:

  • Minimum length: 3

  • Maximum length: 4095

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:

  • Minimum length: 3

  • Maximum length: 1023

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:

  • Minimum length: 3

  • Maximum length: 4095

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:

  • Minimum length: 1

  • Maximum length: 63

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:

  • "notification" - The event is marked as a notification, and will be accessible through the notifications API endpoint.

  • "banner" - The event is marked as a banner.

  • "support" - The event is marked as a support-related event.

resourceURI

string

False

JSON string containing the URI associated with the event. Only included for events related to API operations. Defined values are:

  • Minimum length: 3

  • Maximum length: 4095

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:

  • Minimum length: 1

  • Maximum length: 1023

resourceMethod

string

False

JSON string containing the HTTP method invoked. Only included for events related to API operations. Defined values are:

  • "options" - OPTIONS API operation

  • "post" - POST API operation

  • "get" - GET API operation

  • "put" - PUT API operation

  • "delete" - DELETE API operation

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:

  • Defined regex is: "^[1-5][0-9]{2}$"

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:

  • Conforms to the Astra Identifier Schema

accountID

string

False

JSON string containing the account ID associated with an event. Only included for events associated with an account. Defined values are:

  • Conforms to the Astra Identifier Schema

data

data

False

JSON object containing additional event-specific information.

metadata

type_astra_metadata

True

Client and service-specified metadata associated with the resource. Defined values are:

  • Conforms to the Astra Metadata Schema

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