Azure Log Analytics Data Export API

The Data Export API from Azure Log Analytics — 2 operation(s) for data export.

GitHub OpenAPI

Operations 4

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports Data exports list by workspace #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName} Data exports get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName} Data exports create or update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName} Data exports delete #

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-data-export-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-data-export-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Log Analytics Network Security Perimeter Data Export…
  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: Data Export
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports
  : get:
      operationId: DataExports_ListByWorkspace
      tags:
      - Data Export
      description: Lists the data export instances within a 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/DataExportListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Data exports list by workspace
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}
  : get:
      operationId: DataExports_Get
      tags:
      - Data Export
      description: Gets a data export instance.
      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: dataExportName
        in: path
        description: The data export rule name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataExport'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Data exports get
      x-summary-source: derived
    put:
      operationId: DataExports_CreateOrUpdate
      tags:
      - Data Export
      description: Create or update a data export.
      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: dataExportName
        in: path
        description: The data export rule name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource 'DataExport' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataExport'
        '201':
          description: Resource 'DataExport' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataExport'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DataExport'
        description: The parameters required to create or update a data export.
        required: true
      summary: Data exports create or update
      x-summary-source: derived
    delete:
      operationId: DataExports_Delete
      tags:
      - Data Export
      description: Deletes the specified data export in a given 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]$
      - name: dataExportName
        in: path
        description: The data export rule name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource deleted successfully.
        '404':
          description: ignore
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Data exports delete
      x-summary-source: derived
components:
  schemas:
    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'
    DataExport:
      type: object
      description: The top level data export resource container.
      properties:
        properties:
          $ref: '#/components/schemas/DataExportProperties'
          description: data export properties.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    DataExportListResult:
      type: object
      description: Result of the request to list data exports.
      properties:
        value:
          type: array
          description: List of data export instances within a workspace..
          items:
            $ref: '#/components/schemas/DataExport'
        nextLink:
          type: string
          description: The URL to get the next set of results.
    DestinationMetaData:
      type: object
      description: Destination meta data.
      properties:
        eventHubName:
          type: string
          description: Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
    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.
    Destination:
      type: object
      description: Destination properties.
      properties:
        resourceId:
          type: string
          description: The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
        type:
          $ref: '#/components/schemas/Type'
          description: The type of the destination resource
          readOnly: true
        metaData:
          $ref: '#/components/schemas/DestinationMetaData'
          description: destination meta data.
          x-ms-client-flatten: true
      required:
      - resourceId
    DataExportProperties:
      type: object
      description: Data Export properties.
      properties:
        dataExportId:
          type: string
          description: The data export rule ID.
        tableNames:
          type: array
          description: 'An array of tables to export, for example: [“Heartbeat, SecurityEvent”].'
          items:
            type: string
        destination:
          $ref: '#/components/schemas/Destination'
          description: destination properties.
          x-ms-client-flatten: true
        enable:
          type: boolean
          description: Active when enabled.
        createdDate:
          type: string
          description: The latest data export rule modification time.
        lastModifiedDate:
          type: string
          description: Date and time when the export was last modified.
      required:
      - tableNames
    Type:
      type: string
      description: The type of the destination resource
      enum:
      - StorageAccount
      - EventHub
      x-ms-enum:
        name: Type
        modelAsString: true
        values:
        - name: StorageAccount
          value: StorageAccount
          description: StorageAccount
        - name: EventHub
          value: EventHub
          description: EventHub
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    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
    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.