{
  "opencollection": "1.0.0",
  "info": {
    "name": "Cribl As Code API Credentials Nodes API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Nodes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all worker and edge nodes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://gateway.cribl.cloud/master/workers"
          },
          "docs": "Retrieves a list of all connected worker nodes and edge nodes including their status, version, and resource utilization."
        },
        {
          "info": {
            "name": "Get a node by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://gateway.cribl.cloud/master/workers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the resource"
              }
            ]
          },
          "docs": "Retrieves the status and details of a specific worker or edge node identified by its node ID."
        },
        {
          "info": {
            "name": "Restart a node",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://gateway.cribl.cloud/master/workers/:id/restart",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the resource"
              }
            ]
          },
          "docs": "Initiates a restart of the specified worker or edge node."
        },
        {
          "info": {
            "name": "Get node count",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://gateway.cribl.cloud/master/workers/count"
          },
          "docs": "Returns the total count of connected worker and edge nodes."
        }
      ]
    }
  ],
  "bundled": true
}