简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
列出通知
贡献者
建议更改
您可以列出特定 Astra 帐户的通知。您可以在监控系统活动或调试问题描述时执行此操作。
执行以下 REST API 调用。
HTTP方法和端点
此REST API调用使用以下方法和端点。
HTTP 方法 | 路径 |
---|---|
获取 |
/accouns/{account_id}/core/v1/notifications |
其他输入参数
除了所有 REST API 调用通用的参数之外,此步骤的 curl 示例还使用以下参数。
参数 | Type | Required | Description |
---|---|---|---|
筛选器 |
查询 |
否 |
也可以筛选要在响应中返回的通知。 |
包括 |
查询 |
否 |
也可以选择要在响应中返回的值。 |
curl 示例:返回所有通知
curl --request GET \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/core/v1/notifications" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"
curl 示例:返回严重性为警告的通知的问题描述
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 输出示例
{ "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": {} }