NetWorker:如何使用 REST API 查询失败的作业

Summary: 如何使用 REST API 查询失败的作业。本文简要概述了如何使用适用于所有版本、代系、型号和组件的 REST API 查询 NetWorker 作业。

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.

Instructions

  • 使用以下 GET 请求查看 jobsdb 中的所有作业:
https://NETWORKER_SERVER_ADDRESS:9090/nwrestapi/v3/global/jobs
  • 可以针对特定属性查询作业端点:
/jobs?q=AttributeName:Value
例如,仅查询具有以下功能的“失败”作业
https://NETWORKER_SERVER_ADDRESS:9090/nwrestapi/v3/global/jobs?q=completionStatus:Failed
  • 若要向查询添加多个筛选器,请使用“and”分隔每个属性:值对:
/jobs?q=AttributeName1:Value1 and AttributeName2:Value2
例如,仅查询名称为“backup”的失败作:
https://NETWORKER_SERVER_ADDRESS:9090/nwrestapi/v3/global/jobs?q=completionStatus:Failed and policyActionName:backup
  • 可用于筛选器的属性和值显示在全局 /jobs 查询中。

Additional Information

Affected Products

NetWorker
Article Properties
Article Number: 000157956
Article Type: How To
Last Modified: 19 Mar 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.