{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mist Admins Orgs JSI API",
    "version": "2606.1.1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Orgs JSI",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "listOrgJsiDevices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/devices",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Select the page number to return when using page-based pagination; starts at `1`"
              },
              {
                "name": "model",
                "value": "",
                "type": "query",
                "description": "Filter results by device model"
              },
              {
                "name": "serial",
                "value": "",
                "type": "query",
                "description": "Filter results by device serial number"
              },
              {
                "name": "mac",
                "value": "",
                "type": "query",
                "description": "Filter results by MAC address"
              }
            ]
          },
          "docs": "List organization devices connected to Juniper Support Insights (JSI), optionally filtered by model, serial number, or MAC address."
        },
        {
          "info": {
            "name": "adoptOrgJsiDevice",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/devices/outbound_ssh_cmd",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Return the outbound SSH registration command used to onboard Junos devices to Juniper Support Insights (JSI)."
        },
        {
          "info": {
            "name": "createOrgJsiDeviceShellSession",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/devices/:device_mac/shell",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "device_mac",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create a WebSocket-backed shell session for a JSI-connected device identified by MAC address."
        },
        {
          "info": {
            "name": "listOrgJsiPastPurchases",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/inventory",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Select the page number to return when using page-based pagination; starts at `1`"
              },
              {
                "name": "model",
                "value": "",
                "type": "query",
                "description": "Filter results by one or more device models. Supports comma-separated values"
              },
              {
                "name": "serial",
                "value": "",
                "type": "query",
                "description": "Filter results by device serial number"
              }
            ]
          },
          "docs": "This gets all devices purchased from the accounts associated with the Org \n  * Fetch Install base devices for all linked accounts and associated account of the linked accounts. \n  * The primary and the associated account ids will be queries from SFDC by passing the linked account \n  * Returns only the device centric details of the Install base device. No customer specific information will be returned."
        },
        {
          "info": {
            "name": "countOrgJsiAssetsAndContracts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/inventory/count",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "distinct",
                "value": "",
                "type": "query",
                "description": "Field used to group this count response. enum: `account_id`, `claimed`, `has_support`, `end_of_sale_time`, `eos_time`, `version_time`, `model`, `sku`, `status`, `type`, `version`, `warranty_type`"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              }
            ]
          },
          "docs": "Count devices purchased from the accounts associated with the Org"
        },
        {
          "info": {
            "name": "searchOrgJsiAssetsAndContracts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/inventory/search",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "claimed",
                "value": "",
                "type": "query",
                "description": "Device claim status, `true` for claimed devices, `false` for all devices. Accepts multiple comma-separated boolean values."
              },
              {
                "name": "model",
                "value": "",
                "type": "query",
                "description": "Filter results by device model. Accepts multiple comma-separated values."
              },
              {
                "name": "serial",
                "value": "",
                "type": "query",
                "description": "Filter results by device serial number. Accepts multiple comma-separated values."
              },
              {
                "name": "sku",
                "value": "",
                "type": "query",
                "description": "Filter results by SKU. Accepts multiple comma-separated values."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Device status. enum: `all`, `connected`, `disconnected`"
              },
              {
                "name": "warranty_type",
                "value": "",
                "type": "query",
                "description": "Device warranty type used to filter Juniper Support Insight inventory. enum: `Standard Hardware Warranty`, `Enhanced Hardware Warranty`, `Dead On Arrival Warranty`, `Limited Lifetime Warranty`, `Software Warranty`, `Limited Lifetime Warranty for WLA`, `Warranty-JCPO EOL (DOA Not Included)`, `MIST Enhanced Hardware Warranty`, `MIST Standard Warranty`, `Determine Lifetime warranty`"
              },
              {
                "name": "end_of_sale_after",
                "value": "",
                "type": "query",
                "description": "Filter devices with End Of Sale date after this date"
              },
              {
                "name": "end_of_sale_before",
                "value": "",
                "type": "query",
                "description": "Filter devices with End Of Sale date before this date"
              },
              {
                "name": "eos_after",
                "value": "",
                "type": "query",
                "description": "Filter devices with End Of Support date after this date"
              },
              {
                "name": "eos_before",
                "value": "",
                "type": "query",
                "description": "Filter devices with End Of Support date before this date"
              },
              {
                "name": "version_eos_after",
                "value": "",
                "type": "query",
                "description": "Filter devices with OS Version End Of Support date after this date"
              },
              {
                "name": "version_eos_before",
                "value": "",
                "type": "query",
                "description": "Filter devices with OS Version End Of Support date before this date"
              },
              {
                "name": "has_support",
                "value": "",
                "type": "query",
                "description": "Indicates if the device is covered under active support contract. Accepts multiple comma-separated boolean values."
              },
              {
                "name": "sirt_id",
                "value": "",
                "type": "query",
                "description": "To get the onboarded devices that are affected by the SIRT ID"
              },
              {
                "name": "pbn_id",
                "value": "",
                "type": "query",
                "description": "To get the onboarded devices that are affected by the PBN ID"
              },
              {
                "name": "text",
                "value": "",
                "type": "query",
                "description": "Wildcards for `serial`, `model`, `account_id`"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "On which field the list should be sorted, -prefix represents DESC order"
              },
              {
                "name": "search_after",
                "value": "",
                "type": "query",
                "description": "Pagination cursor for retrieving subsequent pages of results. This value is automatically populated by Mist in the `next` URL from the previous response and should not be manually constructed."
              }
            ]
          },
          "docs": "This gets all devices purchased from the accounts associated with the Org \n  * Fetch Install base devices for all linked accounts and associated account of the linked accounts. \n  * The primary and the associated account ids will be queries from SFDC by passing the linked account \n  * Returns only the device centric details of the Install base device. No customer specific information will be returned."
        },
        {
          "info": {
            "name": "countOrgJsiPbn",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/pbn/count",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "distinct",
                "value": "",
                "type": "query",
                "description": "Field to group by enum: `versions`, `models`, `customer_risk`, `bug_type`"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Lower bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d` or `-1w`"
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "Upper bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d`, `-2h`, or `now`"
              }
            ]
          },
          "docs": "Get count of PBN advisories grouped by specified field"
        },
        {
          "info": {
            "name": "searchOrgJsiPbn",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/pbn/search",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "versions",
                "value": "",
                "type": "query",
                "description": "OS versions to search for"
              },
              {
                "name": "models",
                "value": "",
                "type": "query",
                "description": "Device models to search for"
              },
              {
                "name": "customer_risk",
                "value": "",
                "type": "query",
                "description": "Customer risk level to filter by"
              },
              {
                "name": "id",
                "value": "",
                "type": "query",
                "description": "PBN ID to search for"
              },
              {
                "name": "bug_type",
                "value": "",
                "type": "query",
                "description": "Bug type to filter by"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Select the page number to return when using page-based pagination; starts at `1`"
              },
              {
                "name": "search_after",
                "value": "",
                "type": "query",
                "description": "Pagination cursor for retrieving subsequent pages of results. This value is automatically populated by Mist in the `next` URL from the previous response and should not be manually constructed."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Lower bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d` or `-1w`"
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "Upper bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d`, `-2h`, or `now`"
              }
            ]
          },
          "docs": "Text search for PBN (Problem Bug Notification) advisories. Search can be done on versions, models, customer_risk, id, and bug_type fields."
        },
        {
          "info": {
            "name": "countOrgJsiSirt",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/sirt/count",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "distinct",
                "value": "",
                "type": "query",
                "description": "Field to group by. enum: `jsa_updated_date`, `models`, `severity`, `versions`"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Lower bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d` or `-1w`"
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "Upper bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d`, `-2h`, or `now`"
              }
            ]
          },
          "docs": "Get count of SIRT advisories grouped by specified field"
        },
        {
          "info": {
            "name": "searchOrgJsiSirt",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/orgs/:org_id/jsi/sirt/search",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "severity",
                "value": "",
                "type": "query",
                "description": "Filter results by severity"
              },
              {
                "name": "id",
                "value": "",
                "type": "query",
                "description": "Filter results by identifier"
              },
              {
                "name": "updated_after",
                "value": "",
                "type": "query",
                "description": "JSA Updated date to be filtered after this date"
              },
              {
                "name": "updated_before",
                "value": "",
                "type": "query",
                "description": "JSA Updated date to be filtered before this date"
              },
              {
                "name": "published_after",
                "value": "",
                "type": "query",
                "description": "JSA Published date to be filtered after this date"
              },
              {
                "name": "published_before",
                "value": "",
                "type": "query",
                "description": "JSA Published date to be filtered before this date"
              },
              {
                "name": "models",
                "value": "",
                "type": "query",
                "description": "Filter results by models"
              },
              {
                "name": "versions",
                "value": "",
                "type": "query",
                "description": "Software version affected by the SIRT"
              },
              {
                "name": "text",
                "value": "",
                "type": "query",
                "description": "Wildcards search on os_version_affected, affected_models, severity, jsa_id"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Select the page number to return when using page-based pagination; starts at `1`"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "On which field the list should be sorted, -prefix represents DESC order"
              },
              {
                "name": "search_after",
                "value": "",
                "type": "query",
                "description": "Pagination cursor for retrieving subsequent pages of results. This value is automatically populated by Mist in the `next` URL from the previous response and should not be manually constructed."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Lower bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d` or `-1w`"
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "Upper bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d`, `-2h`, or `now`"
              }
            ]
          },
          "docs": "Search and get all the SIRT for the onboarded devices. Search can be done on severity, id, updated_after, updated_before, published_after, published_before, models, versions, and text fields."
        }
      ]
    }
  ],
  "bundled": true
}