McMain icon

McMain

Interact with McMain API

Base Data → Get Faults

AI-generated

Summary

Fetch fault records from the McMain Base Data API

Inputs

  • batch — Batch size for throttling; -1 disables batching, 0 treated as 1.
  • batchInterval — Time in ms between batches; 0 disables interval-based batching.
  • allowUnauthorizedCerts — Skip SSL certificate validation for the request.
  • proxy — HTTP proxy URL; include credentials if needed.
  • timeout — Request timeout in milliseconds.

Output shape

a list of fault records

Each record contains fault details; results may be paginated and a successful call returns HTTP 200 with the data.

Examples

Example 1: Retrieve all faults for a maintenance window

Select Base Data → Get Faults, choose Resource (e.g., Work Order), optionally enable batching with batchSize 100 and batchInterval 500.

Example 2: Pull faults through a corporate proxy with custom timeout

Enter Proxy URL (e.g., http://proxy.example.com:3128) and set Timeout to 15000 ms.

Discussion