{
  "opencollection": "1.0.0",
  "info": {
    "name": "Juniper Networks Juniper Apstra Allowlists and Blocklists Configuration API",
    "version": "4.2.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "AuthToken",
      "value": "{{AuthToken}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Configuration",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Juniper Networks Get device configuration",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{apstra_server}/api/api/get-config",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Retrieves the device configuration. Supports retrieving specific configuration hierarchies or the entire configuration."
        },
        {
          "info": {
            "name": "Juniper Networks Edit device configuration",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{apstra_server}/api/api/edit-config",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Modifies the candidate configuration on the device. Changes must be committed separately using the commit-configuration endpoint."
        },
        {
          "info": {
            "name": "Juniper Networks Commit configuration",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{apstra_server}/api/rpc/commit-configuration",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Commits the candidate configuration to the active configuration. Supports confirmed commits and commit comments."
        },
        {
          "info": {
            "name": "Juniper Networks Rollback configuration",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{apstra_server}/api/rpc/rollback-configuration",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Rolls back the configuration to a previous version."
        },
        {
          "info": {
            "name": "Juniper Networks Get device configuration",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{apstra_server}/api/device-management/devices/:device_id/configurations/raw",
            "params": [
              {
                "name": "device_id",
                "value": "",
                "type": "path",
                "description": "Device unique identifier"
              }
            ]
          },
          "docs": "Returns the current running configuration of a managed device."
        },
        {
          "info": {
            "name": "Juniper Networks List configuration files",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{apstra_server}/api/config-file-management/config-files",
            "params": [
              {
                "name": "paging.start",
                "value": "",
                "type": "query",
                "description": "Starting index for pagination"
              },
              {
                "name": "paging.limit",
                "value": "",
                "type": "query",
                "description": "Number of results per page"
              }
            ]
          },
          "docs": "Returns all stored configuration file versions."
        },
        {
          "info": {
            "name": "Juniper Networks Apply configlet to devices",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{apstra_server}/api/config-file-management/apply-configlet",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Applies a configuration template (configlet) to one or more devices."
        }
      ]
    }
  ],
  "bundled": true
}