{
  "opencollection": "1.0.0",
  "info": {
    "name": "Azure Monitor Action Groups 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": "Action Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Azure Monitor Get an action group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://management.azure.com/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/actionGroups/:actionGroupName",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "The ID of the target subscription."
              },
              {
                "name": "resourceGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the resource group."
              },
              {
                "name": "actionGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the action group."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              }
            ]
          },
          "docs": "Get an action group by name from a resource group."
        },
        {
          "info": {
            "name": "Azure Monitor Create or update an action group",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://management.azure.com/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/actionGroups/:actionGroupName",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "The ID of the target subscription."
              },
              {
                "name": "resourceGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the resource group."
              },
              {
                "name": "actionGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the action group."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new action group or update an existing one. Action groups define the actions to take when an alert is fired."
        },
        {
          "info": {
            "name": "Azure Monitor Update an action group",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://management.azure.com/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/actionGroups/:actionGroupName",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "The ID of the target subscription."
              },
              {
                "name": "resourceGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the resource group."
              },
              {
                "name": "actionGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the action group."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing action group's tags. Only tag updates are supported via PATCH."
        },
        {
          "info": {
            "name": "Azure Monitor Delete an action group",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://management.azure.com/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/actionGroups/:actionGroupName",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "The ID of the target subscription."
              },
              {
                "name": "resourceGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the resource group."
              },
              {
                "name": "actionGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the action group."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              }
            ]
          },
          "docs": "Delete an action group from a resource group."
        },
        {
          "info": {
            "name": "Azure Monitor List action groups in a subscription",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://management.azure.com/subscriptions/:subscriptionId/providers/Microsoft.Insights/actionGroups",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "The ID of the target subscription."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              }
            ]
          },
          "docs": "Get a list of all action groups in a subscription."
        },
        {
          "info": {
            "name": "Azure Monitor List action groups in a resource group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://management.azure.com/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/actionGroups",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "The ID of the target subscription."
              },
              {
                "name": "resourceGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the resource group."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              }
            ]
          },
          "docs": "Get a list of all action groups in a resource group."
        },
        {
          "info": {
            "name": "Azure Monitor Enable a receiver in an action group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://management.azure.com/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/actionGroups/:actionGroupName/subscribe",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "The ID of the target subscription."
              },
              {
                "name": "resourceGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the resource group."
              },
              {
                "name": "actionGroupName",
                "value": "",
                "type": "path",
                "description": "The name of the action group."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enable a receiver in an action group. This re-subscribes a receiver that has been unsubscribed."
        }
      ]
    }
  ],
  "bundled": true
}