Vipr SRM: Web Service API:n REST API -pyyntö palauttaa virheen 404

Summary: Koska REST-ohjelmointirajapinnan resurssimääritykset puuttuvat, kaikki REST-ohjelmointirajapintapyynnöt palauttavat virheen 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-ohjelmointirajapinnan resurssit ovat olemassa, mutta ne ovat tyhjiä seuraavien edustaisännässä tai ensisijaisessa taustaisännässä suoritettavien komentojen mukaisesti:

 /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) Suorita seuraavat 2 komentoa edustaisännissä tai ensisijaisessa taustaisännässä:

/opt/APG/bin/manage-resources.sh update rest/EVENTS '{"type": "events","endpoint": "/events","parameters": {"suodatin": "#EVENTS-GENEERINEN:KAIKKI | #EVENTS-GENERICARCH:ALL"}}'

/opt/APG/bin/manage-resources.sh update rest/METRICS '{"type": "mittarit","päätepiste": "/metrics","parameters": {"suodatin": "#APG:KAIKKI"}}'


2) Tarkista get-komennolla, että resurssit on luotu:

/opt/APG/bin/manage-resources.sh get rest/EVENTS/
opt/APG/bin/manage-resources.sh get rest/METRICS



Affected Products

SRM
Article 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.