Skip to main content
Skip table of contents

Getting Started with the PeerGFS REST API

Applies to PeerGFS v6.1.0 and later


This article describes use cases for the PeerGFS REST API and then guides you through configuring the PeerGFS REST API to perform and automate PeerGFS operations. You’ll learn how to enable the API and test it and view the available API operations. In separate articles, we’ll cover:

By working through these articles, you'll learn to configure, test, and implement PeerGFS REST API functions to streamline workflows and enhance automation.


Key Use Cases for the PeerGFS REST API

The PeerGFS REST API is versatile and can be used for various automation tasks in PeerGFS environments. Examples include:

  • Automating job creation and management

  • Monitoring and clearing quarantines across volumes

  • Integrating PeerGFS job data with external monitoring or reporting systems


Enabling the PeerGFS REST API

  1. Open Peer Management Center (PMC).

  2. From the Tools menu, select Open Preferences.

  3. Expand General Configuration in the navigation tree, and then select Web and API Configuration.

  4. Select the HTTPS REST API using port: 8442 option.

    Web and API Configuration.png
  5. Click Apply and Close.

The API is now enabled and ready for operations on PeerGFS through secure HTTPS requests.


Testing and Browsing the PeerGFS REST API

To verify the API is operational and explore its capabilities:

  1. Open a web browser and navigate to <https://<PMC>:8442, replacing <PMC> with the resolvable hostname or IP address of the PMC host.

  2. Once connected, you will see a list of available API operations. This interface allows you to test API operations interactively and understand the syntax for various commands.

    PeerGFS Swagger UI.png
  3. Select an operation to expand its details. The parameters and response formats are displayed.
    The following example demonstrates how to view connected Agents using a call.

    Expanded Operation.png
  4. Click Try it out, and then Execute to run the operation and view the results.

    Ready to execute.png

    The output includes the required syntax to run the operation using cURL, which is helpful for creating custom scripts.

    Output.png
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.