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.