Віпр СРМ: Запит REST API до API веб-сервісу повертає "Помилка 404"
Summary: Через відсутність визначень ресурсів Rest API всі запити Rest API повертають "Помилку 404"
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
Ресурси Rest API існують, але вони порожні, відповідно до наступних команд, що виконуються на Frontend хості або основному серверному хості:
/opt/APG/bin/manage-resources.sh list
[
"rest/EVENTS",
"rest/METRICS"
]
/opt/APG/bin/manage-resources.sh отримати "rest/EVENTS"
{}
/opt/APG/bin/manage-resources.sh отримати "rest/METRICS"
{}
Resolution
1) Запустіть наступні 2 команди на фронтенді або основному бекенді хостів:
/opt/APG/bin/manage-resources.sh update rest/EVENTS '{"type"): "події", "кінцева точка": "/events","параметри": {"фільтр": "#EVENTS-ЗАГАЛЬНЕ:ВСІ | #EVENTS-GENERICARCH:ALL"}}'/
opt/APG/bin/manage-resources.sh update rest/METRICS '{"type": "metrics","endpoint": "/metrics","parameters": {"фільтр": "#APG:ВСІ"}}'
2) Перевірте командою "get", що ресурси були створені:
/opt/APG/bin/manage-resources.sh отримати "rest/EVENTS"
/opt/APG/bin/manage-resources.sh отримати "rest/METRICS"
/opt/APG/bin/manage-resources.sh update rest/EVENTS '{"type"): "події", "кінцева точка": "/events","параметри": {"фільтр": "#EVENTS-ЗАГАЛЬНЕ:ВСІ | #EVENTS-GENERICARCH:ALL"}}'/
opt/APG/bin/manage-resources.sh update rest/METRICS '{"type": "metrics","endpoint": "/metrics","parameters": {"фільтр": "#APG:ВСІ"}}'
2) Перевірте командою "get", що ресурси були створені:
/opt/APG/bin/manage-resources.sh отримати "rest/EVENTS"
/opt/APG/bin/manage-resources.sh отримати "rest/METRICS"
Affected Products
SRMArticle Properties
Article Number: 000050105
Article Type: Solution
Last Modified: 16 Sep 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.