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”:{“filter”:“#EVENTS-GENERIC:ALL |#EVENTS-GENERICARCH:ALL“}}'
/opt/APG/bin/manage-resources.sh update rest/METRICS '{”type“:“metrics”,“endpoint”:“/metrics”,“parameters”:{“filter”:“#APG:ALL”}}'
2) 使用“get”命令检查资源是否已创建:
/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”,“parameters”:{“filter”:“#EVENTS-GENERIC:ALL |#EVENTS-GENERICARCH:ALL“}}'
/opt/APG/bin/manage-resources.sh update rest/METRICS '{”type“:“metrics”,“endpoint”:“/metrics”,“parameters”:{“filter”:“#APG:ALL”}}'
2) 使用“get”命令检查资源是否已创建:
/opt/APG/bin/manage-resources.sh get “rest/EVENTS”
/opt/APG/bin/manage-resources.sh get “rest/METRICS”
Produits concernés
SRMProprié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.