Skip to main content
Uma versão mais recente deste produto está disponível.
O português é fornecido por meio de tradução automática para sua conveniência. O inglês precede o português em caso de inconsistências.

Retrieve a notification

Colaboradores

GET /accounts/{account_id}/core/v1/notifications/{notification_id}

Returns the stored Notification API resource in the JSON response body.

Parameters

Name Type In Required Description

account_id

string

path

True

ID of the containing account resource

  • example: {{.Account}}

notification_id

string

path

True

ID of the notification collection to list

Response

Status: 200, Returns the stored Notification API resource in the JSON response body.
Name Type Required Description

type

string

True

Media type of the resource. Defined values are:

  • "application/astra-notification"

version

string

True

Version of the resource. Defined values are:

  • "1.0"

  • "1.1"

  • "1.2"

  • "1.3"

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. Although 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 should 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 allow a service to provide hints about where an event must be routed in addition to the Activity service's 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. Included only 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

Example response
{
  "type": "application/astra-notification",
  "version": "1.3",
  "id": "03c645d6-75f0-59b0-95f2-862ae344ea27",
  "name": "astra.app.discovery.failed",
  "sequenceCount": 48923,
  "summary": "Application Discovery Failed",
  "eventTime": "2020-08-06T12:24:51.846543Z",
  "source": "composite-compute",
  "resourceID": "f670bf11-8850-44bd-b330-815af6186a06",
  "additionalResourceIDs": [
    "84dfee99-b7b2-46d2-9021-0a1a9a5df1d6",
    "abb32003-07b9-49b1-9938-1cf6d2f33566"
  ],
  "resourceType": "application/astra-app",
  "correlationID": "3c603442-cfca-4af9-9f1b-40dde5c7a806",
  "severity": "warning",
  "class": "user",
  "description": "Discovering the application 'mysql' was unsuccessful. K8s error 442. Application marked in state 'error'.",
  "destinations": [
    "notification"
  ],
  "resourceURI": "/accounts/fdaa655c-15ab-4d34-aa61-1e9098e67be0/topology/v1/managedClusters/dfd9de2d-6f0b-437b-a737-c8f7f176cd14/apps/f670bf11-8850-44bd-b330-815af6186a06",
  "resourceCollectionURL": [
    "https://www.astra.io/accounts/fdaa655c-15ab-4d34-aa61-1e9098e67be0/topology/v1/clouds/0df3f1a0-7203-4c12-aabf-a7bee6302671/clusters/dfd9de2d-6f0b-437b-a737-c8f7f176cd14/namespaces/f8b58091-4b9c-4c64-9b40-018dbaf7c5de/apps/f670bf11-8850-44bd-b330-815af6186a06",
    "https://www.astra.io/accounts/fdaa655c-15ab-4d34-aa61-1e9098e67be0/topology/v1/clouds/0df3f1a0-7203-4c12-aabf-a7bee6302671/clusters/dfd9de2d-6f0b-437b-a737-c8f7f176cd14/namespaces/923708f8-0435-45b5-8c00-fbdef3ffaf25/apps/f670bf11-8850-44bd-b330-815af6186a06"
  ],
  "userID": "abda967f-cd2c-4237-908e-99266648c553",
  "accountID": "f126d214-bccf-4558-86b4-2137a41e734f",
  "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

invalidParams

Name Type Required Description

name

string

True

Name of the invalid query parameter

reason

string

True

Reason why the query parameter is invalid