Vipr SRM:對 Web 服務 API 的 REST API 要求傳回「錯誤 404」

Résumé: 由於缺少 Rest API 資源定義,所有 Rest API 要求傳回「錯誤 404」

Cet article concerne Cet article ne concerne pas Cet article n’est associé à aucun produit spécifique. Toutes les versions du produit ne sont pas identifiées dans cet article.

Symptômes



根據在前端主機或主要後端主機上執行的下列命令,Rest API 資源存在,但為空白:

/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”
{}


Résolution

1) 在前端或主要後端主機上執行下列 2 個命令:

/opt/APG/bin/manage-resources.sh update rest/EVENTS '{“type”:「events“,”endpoint」:「/events“,”parameters“:{“過濾器”:「#EVENTS-GENERIC:ALL |#EVENTS-GENERICARCH:ALL“}}'

/opt/APG/bin/manage-resources.sh update rest/METRICS '{”type“:「指標“,”端點」:「/metrics“,”parameters“:{“過濾器”:“#APG:全部”}}'


2) 使用「get」命令檢查資源是否已建立:

/opt/APG/bin/manage-resources.sh 取得「rest/EVENTS」
/opt/APG/bin/manage-resources.sh 取得「rest/metrics」



Produits concernés

SRM
Propriétés de l’article
Numéro d’article: 000050105
Type d’article: Solution
Dernière modification: 16 sept. 2025
Version:  4
Trouvez des réponses à vos questions auprès d’autres utilisateurs Dell
Services de support
Vérifiez si votre appareil est couvert par les services de support.