Retrieve a notification
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
|
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:
|
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 should 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 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:
|
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. Included only 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:
|
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 |
False |
|
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 |
False |
|
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 |
False |
|
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 |
False |
|
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 |
invalidParams
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
Name of the invalid query parameter |
reason |
string |
True |
Reason why the query parameter is invalid |