Azure Log Analytics Deleted Workspaces API

The DeletedWorkspaces API from Azure Log Analytics — 2 operation(s) for deletedworkspaces.

GitHub OpenAPI

Operations 2

GET /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces Deleted workspaces list #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces Deleted workspaces list by resource group #

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-deletedworkspaces-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-deletedworkspaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Log Analytics Network Security Perimeter Deleted…
  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: DeletedWorkspaces
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces:
    get:
      operationId: DeletedWorkspaces_List
      tags:
      - DeletedWorkspaces
      description: Gets recently deleted workspaces in a subscription, available for recovery.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Deleted workspaces list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces
  : get:
      operationId: DeletedWorkspaces_ListByResourceGroup
      tags:
      - DeletedWorkspaces
      description: Gets recently deleted workspaces in a resource group, available for recovery.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Deleted workspaces list by resource group
      x-summary-source: derived
components:
  schemas:
    UserIdentityProperties:
      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
    WorkspaceFailoverProperties:
      type: object
      description: The failover state of the replication.
      properties:
        state:
          $ref: '#/components/schemas/WorkspaceFailoverState'
          description: The failover state of the replication.
          readOnly: true
        lastModifiedDate:
          type: string
          format: date-time
          description: The last time when the failover state was updated.
          readOnly: true
    WorkspaceProperties:
      type: object
      description: Workspace properties.
      properties:
        provisioningState:
          $ref: '#/components/schemas/WorkspaceEntityStatus'
          description: The provisioning state of the workspace.
          readOnly: true
        customerId:
          type: string
          description: This is a read-only property. Represents the ID associated with the workspace.
          readOnly: true
        sku:
          $ref: '#/components/schemas/WorkspaceSku'
          description: The SKU of the workspace.
        retentionInDays:
          type:
          - integer
          - 'null'
          format: int32
          description: The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.
        workspaceCapping:
          $ref: '#/components/schemas/WorkspaceCapping'
          description: The daily volume cap for ingestion.
        createdDate:
          type: string
          format: date-time
          description: Workspace creation date.
          readOnly: true
        modifiedDate:
          type: string
          format: date-time
          description: Workspace modification date.
          readOnly: true
        publicNetworkAccessForIngestion:
          type: string
          description: The network access type for accessing Log Analytics ingestion.
          default: Enabled
          enum:
          - Enabled
          - Disabled
          - SecuredByPerimeter
          x-ms-enum:
            name: PublicNetworkAccessType
            modelAsString: true
            values:
            - name: Enabled
              value: Enabled
              description: Enables connectivity to Log Analytics through public DNS.
            - name: Disabled
              value: Disabled
              description: Disables public connectivity to Log Analytics through public DNS.
            - name: SecuredByPerimeter
              value: SecuredByPerimeter
              description: Resource is only accessible from private networks and access approved by network security perimeter associated to this resource.
        publicNetworkAccessForQuery:
          type: string
          description: The network access type for accessing Log Analytics query.
          default: Enabled
          enum:
          - Enabled
          - Disabled
          - SecuredByPerimeter
          x-ms-enum:
            name: PublicNetworkAccessType
            modelAsString: true
            values:
            - name: Enabled
              value: Enabled
              description: Enables connectivity to Log Analytics through public DNS.
            - name: Disabled
              value: Disabled
              description: Disables public connectivity to Log Analytics through public DNS.
            - name: SecuredByPerimeter
              value: SecuredByPerimeter
              description: Resource is only accessible from private networks and access approved by network security perimeter associated to this resource.
        forceCmkForQuery:
          type: boolean
          description: Indicates whether customer managed storage is mandatory for query management.
        privateLinkScopedResources:
          type: array
          description: List of linked private link scope resources.
          items:
            $ref: '#/components/schemas/PrivateLinkScopedResource'
          readOnly: true
          x-ms-identifiers:
          - resourceId
        features:
          $ref: '#/components/schemas/WorkspaceFeatures'
          description: Workspace features.
        defaultDataCollectionRuleResourceId:
          type: string
          description: The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.
        replication:
          $ref: '#/components/schemas/WorkspaceReplicationProperties'
          description: workspace replication properties.
        failover:
          $ref: '#/components/schemas/WorkspaceFailoverProperties'
          description: workspace failover properties.
    WorkspaceListResult:
      type: object
      description: The list workspaces operation response.
      properties:
        value:
          type: array
          description: A list of workspaces.
          items:
            $ref: '#/components/schemas/Workspace'
        nextLink:
          type: string
          description: The URL to get the next set of results.
    TrackedResource:
      type: object
      title: Tracked Resource
      description: The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - create
          - update
        location:
          type: string
          description: The geo-location where the resource lives
          x-ms-mutability:
          - read
          - create
      required:
      - location
      allOf:
      - $ref: '#/components/schemas/Resource'
    WorkspaceReplicationProperties:
      type: object
      description: Workspace replication properties.
      properties:
        location:
          type: string
          description: The location of the replication.
          x-ms-mutability:
          - read
          - create
        enabled:
          type: boolean
          description: Specifies whether the replication is enabled or not. When true, workspace configuration and data is replicated to the specified location. If replication is been enabled, location must be provided.
        provisioningState:
          $ref: '#/components/schemas/WorkspaceReplicationState'
          description: The provisioning state of the replication.
          readOnly: true
        createdDate:
          type: string
          format: date-time
          description: The last time when the replication was enabled.
          readOnly: true
        lastModifiedDate:
          type: string
          format: date-time
          description: The last time when the replication was updated.
          readOnly: true
    Identity:
      type: object
      description: Identity for the 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/IdentityType'
          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/UserIdentityProperties'
      required:
      - type
    WorkspaceFailoverState:
      type: string
      description: The failover state of the replication.
      enum:
      - Inactive
      - Activating
      - Active
      - Deactivating
      - Failed
      x-ms-enum:
        name: WorkspaceFailoverState
        modelAsString: true
        values:
        - name: Inactive
          value: Inactive
          description: Inactive
        - name: Activating
          value: Activating
          description: Activating
        - name: Active
          value: Active
          description: Active
        - name: Deactivating
          value: Deactivating
          description: Deactivating
        - name: Failed
          value: Failed
          description: Failed
    DataIngestionStatus:
      type: string
      description: The status of data ingestion for this workspace.
      enum:
      - RespectQuota
      - ForceOn
      - ForceOff
      - OverQuota
      - SubscriptionSuspended
      - ApproachingQuota
      x-ms-enum:
        name: DataIngestionStatus
        modelAsString: true
        values:
        - name: RespectQuota
          value: RespectQuota
          description: Ingestion enabled following daily cap quota reset, or subscription enablement.
        - name: ForceOn
          value: ForceOn
          description: Ingestion started following service setting change.
        - name: ForceOff
          value: ForceOff
          description: Ingestion stopped following service setting change.
        - name: OverQuota
          value: OverQuota
          description: Reached daily cap quota, ingestion stopped.
        - name: SubscriptionSuspended
          value: SubscriptionSuspended
          description: Ingestion stopped following suspended subscription.
        - name: ApproachingQuota
          value: ApproachingQuota
          description: 80% of daily cap quota reached.
    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
    WorkspaceReplicationState:
      type: string
      description: The provisioning state of the replication.
      enum:
      - Succeeded
      - EnableRequested
      - Enabling
      - DisableRequested
      - Disabling
      - RollbackRequested
      - RollingBack
      - Failed
      - Canceled
      x-ms-enum:
        name: WorkspaceReplicationState
        modelAsString: true
        values:
        - name: Succeeded
          value: Succeeded
          description: Succeeded
        - name: EnableRequested
          value: EnableRequested
          description: EnableRequested
        - name: Enabling
          value: Enabling
          description: Enabling
        - name: DisableRequested
          value: DisableRequested
          description: DisableRequested
        - name: Disabling
          value: Disabling
          description: Disabling
        - name: RollbackRequested
          value: RollbackRequested
          description: RollbackRequested
        - name: RollingBack
          value: RollingBack
          description: RollingBack
        - name: Failed
          value: Failed
          description: Failed
        - name: Canceled
          value: Canceled
          description: Canceled
    Workspace:
      type: object
      description: The top level Workspace resource container.
      properties:
        properties:
          $ref: '#/components/schemas/WorkspaceProperties'
          description: Workspace properties.
          x-ms-client-flatten: true
        identity:
          $ref: '#/components/schemas/Identity'
          description: The identity of the resource.
        etag:
          type: string
          description: The etag of the workspace.
      allOf:
      - $ref: '#/components/schemas/TrackedResource'
    IdentityType:
      type: string
      description: Type of managed service identity.
      enum:
      - SystemAssigned
      - UserAssigned
      - None
      x-ms-enum:
        name: IdentityType
        modelAsString: false
        values:
        - name: SystemAssigned
          value: SystemAssigned
          description: SystemAssigned
        - name: UserAssigned
          value: UserAssigned
          description: UserAssigned
        - name: None
          value: None
          description: None
    WorkspaceFeatures:
      type: object
      description: Workspace features.
      properties:
        enableDataExport:
          type:
          - boolean
          - 'null'
          description: Flag that indicate if data should be exported.
        immediatePurgeDataOn30Days:
          type:
          - boolean
          - 'null'
          description: Flag that describes if we want to remove the data after 30 days.
        enableLogAccessUsingOnlyResourcePermissions:
          type:
          - boolean
          - 'null'
          description: Flag that indicate which permission to use - resource or workspace or both.
        clusterResourceId:
          type:
          - string
          - 'null'
          description: Dedicated LA cluster resourceId that is linked to the workspaces.
        disableLocalAuth:
          type:
          - boolean
          - 'null'
          description: Disable Non-AAD based Auth.
        unifiedSentinelBillingOnly:
          type:
          - boolean
          - 'null'
          description: An indication if the specify workspace is limited to sentinel's unified billing model only.
          readOnly: true
        associations:
          type: array
          description: 'List of associations for the workspace. Indicates if the workspace is associated with any of the following experiences: MDC, Sentinel, SentinelGraph, etc.'
          items:
            type: string
          readOnly: true
        dataAuthorizationMode:
          type:
          - boolean
          - 'null'
          description: Enable Data authorization mode for the workspace.
      additionalProperties: {}
    WorkspaceSku:
      type: object
      description: The SKU (tier) of a workspace.
      properties:
        name:
          $ref: '#/components/schemas/WorkspaceSkuNameEnum'
          description: The name of the SKU.
        capacityReservationLevel:
          type:
          - integer
          - 'null'
          format: int32
          description: The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.
        lastSkuUpdate:
          type: string
          format: date-time
          description: The last time when the sku was updated.
          readOnly: true
      required:
      - name
    WorkspaceEntityStatus:
      type: string
      description: The provisioning state of the workspace.
      enum:
      - Creating
      - Succeeded
      - Failed
      - Canceled
      - Deleting
      - ProvisioningAccount
      - Updating
      x-ms-enum:
        name: WorkspaceEntityStatus
        modelAsString: true
        values:
        - name: Creating
          value: Creating
          description: Creating
        - name: Succeeded
          value: Succeeded
          description: Succeeded
        - name: Failed
          value: Failed
          description: Failed
        - name: Canceled
          value: Canceled
          description: Canceled
        - name: Deleting
          value: Deleting
          description: Deleting
        - name: ProvisioningAccount
          value: ProvisioningAccount
          description: ProvisioningAccount
        - name: Updating
          value: Updating
          description: Updating
    PrivateLinkScopedResource:
      type: object
      description: The private link scope resource reference.
      properties:
        resourceId:
          type: string
          description: The full resource Id of the private link scope resource.
        scopeId:
          type: string
          description: The private link scope unique Identifier.
    WorkspaceSkuNameEnum:
      type: string
      description: The name of the SKU.
      enum:
      - Free
      - Standard
      - Premium
      - PerNode
      - PerGB2018
      - Standalone
      - CapacityReservation
      - LACluster
      x-ms-enum:
        name: WorkspaceSkuNameEnum
        modelAsString: true
        values:
        - name: Free
          value: Free
          description: Free
        - name: Standard
          value: Standard
          description: Standard
        - name: Premium
          value: Premium
          description: Premium
        - name: PerNode
          value: PerNode
          description: PerNode
        - name: PerGB2018
          value: PerGB2018
          description: PerGB2018
        - name: Standalone
          value: Standalone
          description: Standalone
        - name: CapacityReservation
          value: CapacityReservation
          description: CapacityReservation
        - name: LACluster
          value: LACluster
          description: LACluster
    WorkspaceCapping:
      type: object
      description: The daily volume cap for ingestion.
      properties:
        dailyQuotaGb:
          type: number
          format: double
          description: The workspace daily quota for ingestion.
        quotaNextResetTime:
          type: string
          description: The time when the quota will be rest.
          readOnly: true
        dataIngestionStatus:
          $ref: '#/components/schemas/DataIngestionStatus'
          description: The status of data ingestion for this workspace.
          readOnly: true
  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.