List the notifications
Suggest changes
You can list the notifications for a specific Astra account. You might do this as part of monitoring the system activity or debugging an issue.
Perform the following REST API call.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
GET |
/accounts/{account_id}/core/v1/notifications |
Additional input parameters
In addition to the parameters common with all REST API calls, the following parameters are also used in the curl examples for this step.
Parameter | Type | Required | Description |
---|---|---|---|
filter |
Query |
No |
Optionally filter the notifications you want returned in the response. |
include |
Query |
No |
Optionally select the values you want returned in the response. |
Curl example: Return all notifications
curl --request GET \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/core/v1/notifications" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"
Curl example: Return the description for notifications with severity of warning
curl --request GET \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/core/v1/notifications?filter=severity%20eq%20'warning'&include=description" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"
JSON output example
{ "items": [ [ "Trident on cluster david-ie-00 has failed or timed out; installation of the Trident operator failed or is not yet complete; operator failed to reach an installed state within 300.00 seconds; container trident-operator not found in operator deployment" ], [ "Trident on cluster david-ie-00 has failed or timed out; installation of the Trident operator failed or is not yet complete; operator failed to reach an installed state within 300.00 seconds; container trident-operator not found in operator deployment" ] ], "metadata": {} }