Vipr SRM: Запрос REST API к API веб-службы возвращает ошибку 404
Summary: Из-за отсутствия определений ресурсов API REST все запросы API REST возвращают ошибку 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 существуют, но они пусты, в соответствии со следующими командами, выполняемыми на интерфейсном или основном внутреннем хосте:
/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","endpoint": "/events","parameters": {"filter": "#EVENTS-GENERIC:ALL | #EVENTS-GENERICARCH:ALL"}}'
/opt/APG/bin/manage-resources.sh update rest/METRICS '{"type": "metrics","endpoint": "/metrics","parameters": {"filter": "#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","endpoint": "/events","parameters": {"filter": "#EVENTS-GENERIC:ALL | #EVENTS-GENERICARCH:ALL"}}'
/opt/APG/bin/manage-resources.sh update rest/METRICS '{"type": "metrics","endpoint": "/metrics","parameters": {"filter": "#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.