Vipr SRM:对 Web 服务 API 的 REST API 请求返回“错误 404”

Summary: 由于缺少 Rest API 资源定义,所有 Rest API 请求都将返回“错误 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 get “rest/EVENTS”
{}
/opt/APG/bin/manage-resources.sh get “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:ALL”}}'


2) 使用“get”命令检查资源是否已创建:

/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.