Vipr SRM: Požadavek rozhraní REST API na rozhraní API webové služby vrátí chybu "Error 404"
Summary: Kvůli chybějícím definicím prostředků rozhraní REST API se u všech požadavků rozhraní REST API zobrazí chyba 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
Prostředky rozhraní REST API existují, ale jsou prázdné, a to podle následujících příkazů provedených na hostiteli front-endu nebo primárním hostiteli back-endu:
/opt/APG/bin/manage-resources.sh list
[
"rest/EVENTS",
"rest/METRICS"
]
/opt/APG/bin/manage-resources.sh get "rest/EVENTS"
{}
/opt/APG/bin/manage-resources.sh get "rest/METRICS"
{}
Resolution
1) Spusťte následující 2 příkazy na hostitelích front-endu nebo primárním back-endu:
/opt/APG/bin/manage-resources.sh update rest/EVENTS '{"type": "events","endpoint": "/events","parametry": {"filtr": "#EVENTS-GENERIC:ALL | #EVENTS-GENERICARCH:ALL"}}'
/opt/APG/bin/manage-resources.sh update rest/METRICS '{"type": "metrics","endpoint": "/metrics","parameters": {"filtr": "#APG:ALL"}}'
2) Pomocí příkazu "get" zkontrolujte, že byly vytvořeny zdroje:
/opt/APG/bin/manage-resources.sh get "rest/EVENTS"
/opt/APG/bin/manage-resources.sh get "rest/METRICS"
/opt/APG/bin/manage-resources.sh update rest/EVENTS '{"type": "events","endpoint": "/events","parametry": {"filtr": "#EVENTS-GENERIC:ALL | #EVENTS-GENERICARCH:ALL"}}'
/opt/APG/bin/manage-resources.sh update rest/METRICS '{"type": "metrics","endpoint": "/metrics","parameters": {"filtr": "#APG:ALL"}}'
2) Pomocí příkazu "get" zkontrolujte, že byly vytvořeny zdroje:
/opt/APG/bin/manage-resources.sh get "rest/EVENTS"
/opt/APG/bin/manage-resources.sh get "rest/METRICS"
Affected Products
SRMArticle Properties
Article Number: 000050105
Article Type: Solution
Last Modified: 16 Sept 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.