Azure Log Analytics Summary Rules API

The SummaryRules API from Azure Log Analytics — 5 operation(s) for summaryrules.

GitHub OpenAPI

Operations 7

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs Summary logs list by workspace #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName} Summary logs get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName} Summary logs create or update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName} Summary logs delete #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/retrybin Summary logs retry bin #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/start Summary logs start #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/stop Summary logs stop #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/azure-log-analytics:azure-log-analytics-summaryrules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

azure-log-analytics-summaryrules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Log Analytics Network Security Perimeter Summary…
  version: '2026-03-01'
  description: Provides NSP operations for working with Log Analytics.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: SummaryRules
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs
  : get:
      operationId: SummaryLogs_ListByWorkspace
      tags:
      - SummaryRules
      description: Gets all summary rules for the specified Log Analytics workspace.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the workspace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 4
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SummaryLogsListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Summary logs list by workspace
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}
  : get:
      operationId: SummaryLogs_Get
      tags:
      - SummaryRules
      description: Gets Log Analytics workspace Summary rules.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the workspace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 4
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      - name: summaryLogsName
        in: path
        description: The name of the summary logs. Must not contain '/'.
        required: true
        schema:
          type: string
          pattern: '[^/]+'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SummaryLogs'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Summary logs get
      x-summary-source: derived
    put:
      operationId: SummaryLogs_CreateOrUpdate
      tags:
      - SummaryRules
      description: Creates or updates Log Analytics workspace Summary rules.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the workspace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 4
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      - name: summaryLogsName
        in: path
        description: The name of the summary logs. Must not contain '/'.
        required: true
        schema:
          type: string
          pattern: '[^/]+'
      responses:
        '200':
          description: The request has succeeded.
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
                format: uri
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SummaryLogs'
        '201':
          description: Resource 'SummaryLogs' create operation succeeded
          headers:
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SummaryLogs'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
        final-state-schema: '#/definitions/SummaryLogs'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SummaryLogs'
        description: The parameters required to update summary rules properties.
        required: true
      summary: Summary logs create or update
      x-summary-source: derived
    delete:
      operationId: SummaryLogs_Delete
      tags:
      - SummaryRules
      description: Deletes Log Analytics workspace Summary rules.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the workspace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 4
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      - name: summaryLogsName
        in: path
        description: The name of the summary logs. Must not contain '/'.
        required: true
        schema:
          type: string
          pattern: '[^/]+'
      responses:
        '202':
          description: Resource deletion accepted.
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
                format: uri
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      summary: Summary logs delete
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/retrybin
  : post:
      operationId: SummaryLogs_RetryBin
      tags:
      - SummaryRules
      description: Retries a failed Summary rule bin.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the workspace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 4
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      - name: summaryLogsName
        in: path
        description: The name of the summary logs. Must not contain '/'.
        required: true
        schema:
          type: string
          pattern: '[^/]+'
      responses:
        '202':
          description: Resource operation accepted.
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
                format: uri
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SummaryLogsRetryBin'
        description: The parameters required to retry a Summary rule bin.
        required: true
      summary: Summary logs retry bin
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/start
  : post:
      operationId: SummaryLogs_Start
      tags:
      - SummaryRules
      description: Starts an inactive Summary rule.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the workspace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 4
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      - name: summaryLogsName
        in: path
        description: The name of the summary logs. Must not contain '/'.
        required: true
        schema:
          type: string
          pattern: '[^/]+'
      responses:
        '202':
          description: Resource operation accepted.
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
                format: uri
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      summary: Summary logs start
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/stop
  : post:
      operationId: SummaryLogs_Stop
      tags:
      - SummaryRules
      description: Stops an active Summary rule.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the workspace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 4
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      - name: summaryLogsName
        in: path
        description: The name of the summary logs. Must not contain '/'.
        required: true
        schema:
          type: string
          pattern: '[^/]+'
      responses:
        '200':
          description: The request has succeeded.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Summary logs stop
      x-summary-source: derived
components:
  schemas:
    TimeSelectorEnum:
      type: string
      description: The time cursor used in Summary rules bins processing, e.g. TimeGenerated.
      enum:
      - TimeGenerated
      x-ms-enum:
        name: TimeSelectorEnum
        modelAsString: true
        values:
        - name: TimeGenerated
          value: TimeGenerated
          description: TimeGenerated.
    StatusCodeEnum:
      type: string
      description: Indicates the reason for rule deactivation.
      enum:
      - UserAction
      - DataPlaneError
      x-ms-enum:
        name: StatusCodeEnum
        modelAsString: true
        values:
        - name: UserAction
          value: UserAction
          description: Summary rule stop originated from a user action (Stop was called).
        - name: DataPlaneError
          value: DataPlaneError
          description: Summary rule stop was caused due to data plane related error.
    SummaryLogsRetryBinProperties:
      type: object
      description: Properties for retrying a Summary rule bin.
      properties:
        retryBinStartTime:
          type: string
          format: date-time
          description: The time (UTC) of the bin to retry.
      required:
      - retryBinStartTime
    SummaryLogsListResult:
      type: object
      description: The response of a SummaryLogs list operation.
      properties:
        value:
          type: array
          description: The SummaryLogs items on this page
          items:
            $ref: '#/components/schemas/SummaryLogs'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    SummaryLogsIdentity:
      type: object
      description: Identity for the summary logs resource.
      properties:
        principalId:
          type: string
          description: The principal ID of resource identity.
          readOnly: true
        tenantId:
          type: string
          description: The tenant ID of resource.
          readOnly: true
        type:
          $ref: '#/components/schemas/SummaryLogsIdentityType'
          description: Type of managed service identity.
        userAssignedIdentities:
          type: object
          description: 'The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}''.'
          additionalProperties:
            $ref: '#/components/schemas/SummaryLogsUserIdentityProperties'
      required:
      - type
    ProvisioningStateEnum:
      type: string
      description: Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded.
      enum:
      - Updating
      - Succeeded
      - Deleting
      - Failed
      - Canceled
      x-ms-enum:
        name: ProvisioningStateEnum
        modelAsString: true
        values:
        - name: Updating
          value: Updating
          description: Table schema is still being built and updated, table is currently locked for any changes till the procedure is done.
        - name: Succeeded
          value: Succeeded
          description: Table state is stable and without changes, table is unlocked and open for new updates.
        - name: Deleting
          value: Deleting
          description: Table state is deleting.
        - name: Failed
          value: Failed
          description: Table state is failed.
        - name: Canceled
          value: Canceled
          description: Table state is canceled.
    SummaryLogsRetryBin:
      type: object
      description: Request to retry a summary logs bin.
      properties:
        properties:
          $ref: '#/components/schemas/SummaryLogsRetryBinProperties'
          description: Retry bin properties.
    SummaryLogsProperties:
      type: object
      description: Summary rule properties.
      properties:
        ruleType:
          $ref: '#/components/schemas/RuleTypeEnum'
          description: 'SummaryRules rule type: User.'
        displayName:
          type: string
          description: The display name of the Summary rule.
        description:
          type: string
          description: The description of the Summary rule.
        isActive:
          type: boolean
          description: Indicates if Summary rule is active. If not, Summary rule execution stops.
          readOnly: true
        statusCode:
          $ref: '#/components/schemas/StatusCodeEnum'
          description: Indicates the reason for rule deactivation.
          readOnly: true
        provisioningState:
          $ref: '#/components/schemas/ProvisioningStateEnum'
          description: Summary rule is in provisioning state. If set to 'updating' or 'deleting', indicates a resource lock due to an ongoing operation, preventing any update to the Summary rule until the operation is complete.
          readOnly: true
        ruleDefinition:
          $ref: '#/components/schemas/RuleDefinition'
          description: Rule definition parameters.
    RuleDefinition:
      type: object
      description: Rule definition parameters.
      properties:
        query:
          type: string
          description: Summary rule query.
        binSize:
          type: integer
          format: int32
          description: 'Scheduled window in minutes. Allowed values: 20, 30, 60, 120, 180, 360, 720, 1440.'
        binDelay:
          type: integer
          format: int32
          description: The minimum delay in seconds before bin processing.
        binStartTime:
          type: string
          format: date-time
          description: The start time (UTC) when Summary rule execution starts.
        timeSelector:
          $ref: '#/components/schemas/TimeSelectorEnum'
          description: The time cursor used in Summary rules bins processing, e.g. TimeGenerated.
        destinationTable:
          type: string
          description: The destination table used for the Summary rule results.
    ErrorResponse:
      type: object
      title: Error response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error object.
    Resource:
      type: object
      title: Resource
      description: Common fields that are returned in the response for all Azure Resource Manager resources
      properties:
        id:
          type: string
          format: arm-id
          description: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
          readOnly: true
        name:
          type: string
          description: The name of the resource
          readOnly: true
        type:
          type: string
          description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
          readOnly: true
        systemData:
          $ref: '#/components/schemas/systemData'
          description: Azure Resource Manager metadata containing createdBy and modifiedBy information.
          readOnly: true
      x-ms-azure-resource: true
    ProxyResource:
      type: object
      title: Proxy Resource
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      allOf:
      - $ref: '#/components/schemas/Resource'
    SummaryLogs:
      type: object
      description: Workspace data summary rules definition.
      properties:
        properties:
          $ref: '#/components/schemas/SummaryLogsProperties'
          description: Summary rule properties.
          x-ms-client-flatten: true
        identity:
          $ref: '#/components/schemas/SummaryLogsIdentity'
          description: The managed identity of the summary logs resource. Only user-assigned identity is supported.
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    SummaryLogsIdentityType:
      type: string
      description: Type of managed service identity.
      enum:
      - None
      - UserAssigned
      x-ms-enum:
        name: SummaryLogsIdentityType
        modelAsString: true
        values:
        - name: None
          value: None
          description: The default identity type. summary logs do not have a managed identity.
        - name: UserAssigned
          value: UserAssigned
          description: summary logs is associated with a user assigned managed identity. User assigned identities are created as separate Azure resources and can be shared across multiple summary logs.
    SummaryLogsUserIdentityProperties:
      type: object
      description: User assigned identity properties.
      properties:
        principalId:
          type: string
          description: The principal id of user assigned identity.
          readOnly: true
        clientId:
          type: string
          description: The client id of user assigned identity.
          readOnly: true
    RuleTypeEnum:
      type: string
      description: 'SummaryRules rule type: User.'
      enum:
      - User
      x-ms-enum:
        name: RuleTypeEnum
        modelAsString: true
        values:
        - name: User
          value: User
          description: User defined summary rule. This is the definition for rules created and defined by users.
  parameters:
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.