{
  "opencollection": "1.0.0",
  "info": {
    "name": "Azure Monitor Action Groups Query API",
    "version": "2022-06-01"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Query",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Azure Monitor Execute an Application Insights query via GET",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://management.azure.com/apps/:appId/query",
            "params": [
              {
                "name": "appId",
                "value": "",
                "type": "path",
                "description": "ID of the Application Insights component. This is the Application ID from the API Access settings blade in the Azure portal."
              },
              {
                "name": "query",
                "value": "",
                "type": "query",
                "description": "The Analytics query in KQL format."
              },
              {
                "name": "timespan",
                "value": "",
                "type": "query",
                "description": "The timespan over which to query data in ISO 8601 duration format."
              }
            ]
          },
          "docs": "Executes an Analytics query against Application Insights data using Kusto Query Language (KQL). The query is provided as a query parameter."
        },
        {
          "info": {
            "name": "Azure Monitor Execute an Application Insights query via POST",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://management.azure.com/apps/:appId/query",
            "params": [
              {
                "name": "appId",
                "value": "",
                "type": "path",
                "description": "ID of the Application Insights component. This is the Application ID from the API Access settings blade in the Azure portal."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Executes an Analytics query against Application Insights data using Kusto Query Language (KQL). The query is provided in the request body."
        },
        {
          "info": {
            "name": "Azure Monitor Execute a Log Analytics query via GET",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://management.azure.com/workspaces/:workspaceId/query",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path",
                "description": "ID of the workspace. This is the Workspace ID from the Properties blade in the Azure portal."
              },
              {
                "name": "query",
                "value": "",
                "type": "query",
                "description": "The Analytics query in KQL format."
              },
              {
                "name": "timespan",
                "value": "",
                "type": "query",
                "description": "The timespan over which to query data in ISO 8601 duration format."
              }
            ]
          },
          "docs": "Executes an Analytics query for data from a Log Analytics workspace using Kusto Query Language (KQL). The query is provided as a query parameter."
        },
        {
          "info": {
            "name": "Azure Monitor Execute a Log Analytics query via POST",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://management.azure.com/workspaces/:workspaceId/query",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path",
                "description": "ID of the workspace. This is the Workspace ID from the Properties blade in the Azure portal."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Executes an Analytics query for data from a Log Analytics workspace using Kusto Query Language (KQL). The query is provided in the request body along with optional parameters."
        }
      ]
    }
  ],
  "bundled": true
}