Microsoft Azure Functions Diagnostics API

The Diagnostics API from Microsoft Azure Functions — 22 operation(s) for diagnostics.

OpenAPI Specification

microsoft-azure-functions-diagnostics-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  title: WebApps API Client AppServiceEnvironments Diagnostics API
  version: '2025-05-01'
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
host: management.azure.com
schemes:
- https
consumes:
- application/json
produces:
- application/json
security:
- azure_auth:
  - user_impersonation
tags:
- name: Diagnostics
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors
  : get:
      operationId: Diagnostics_ListHostingEnvironmentDetectorResponses
      tags:
      - Diagnostics
      summary: List Hosting Environment Detector Responses
      description: Description for List Hosting Environment Detector Responses
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: name
        in: path
        description: App Service Environment Name
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DetectorResponseCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Service Environment Detector Responses:
          $ref: ./examples/Diagnostics_ListHostingEnvironmentDetectorResponses.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName}
  : get:
      operationId: Diagnostics_GetHostingEnvironmentDetectorResponse
      tags:
      - Diagnostics
      summary: Get Hosting Environment Detector Response
      description: Description for Get Hosting Environment Detector Response
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: name
        in: path
        description: App Service Environment Name
        required: true
        type: string
      - name: detectorName
        in: path
        description: Detector Resource Name
        required: true
        type: string
      - name: startTime
        in: query
        description: Start Time
        required: false
        type: string
        format: date-time
      - name: endTime
        in: query
        description: End Time
        required: false
        type: string
        format: date-time
      - name: timeGrain
        in: query
        description: Time Grain
        required: false
        type: string
        pattern: PT[1-9][0-9]+[SMH]
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DetectorResponse'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Service Environment Detector Responses:
          $ref: ./examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors:
    get:
      operationId: Diagnostics_ListSiteDetectorResponses
      tags:
      - Diagnostics
      summary: List Site Detector Responses
      description: Description for List Site Detector Responses
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DetectorResponseCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Detector Responses:
          $ref: ./examples/Diagnostics_ListSiteDetectorResponses.json
        Get App Slot Detector Responses:
          $ref: ./examples/Diagnostics_ListSiteDetectorResponsesSlot.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName}
  : get:
      operationId: Diagnostics_GetSiteDetectorResponse
      tags:
      - Diagnostics
      summary: Get site detector response
      description: Description for Get site detector response
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: detectorName
        in: path
        description: Detector Resource Name
        required: true
        type: string
      - name: startTime
        in: query
        description: Start Time
        required: false
        type: string
        format: date-time
      - name: endTime
        in: query
        description: End Time
        required: false
        type: string
        format: date-time
      - name: timeGrain
        in: query
        description: Time Grain
        required: false
        type: string
        pattern: PT[1-9][0-9]+[SMH]
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DetectorResponse'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Detector Response:
          $ref: ./examples/Diagnostics_GetSiteDetectorResponse.json
        Get App Slot Detector Response:
          $ref: ./examples/Diagnostics_GetSiteDetectorResponseSlot.json
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics:
    get:
      operationId: Diagnostics_ListSiteDiagnosticCategories
      tags:
      - Diagnostics
      summary: Get Diagnostics Categories
      description: Description for Get Diagnostics Categories
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticCategoryCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        List App Diagnostic Categories:
          $ref: ./examples/Diagnostics_ListSiteDiagnosticCategories.json
        List App Slot Diagnostic Categories:
          $ref: ./examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}
  : get:
      operationId: Diagnostics_GetSiteDiagnosticCategory
      tags:
      - Diagnostics
      summary: Get Diagnostics Category
      description: Description for Get Diagnostics Category
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticCategory'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Diagnostic Category:
          $ref: ./examples/Diagnostics_GetSiteDiagnosticCategory.json
        Get App Slot Diagnostic Category:
          $ref: ./examples/Diagnostics_GetSiteDiagnosticCategorySlot.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses
  : get:
      operationId: Diagnostics_ListSiteAnalyses
      tags:
      - Diagnostics
      summary: Get Site Analyses
      description: Description for Get Site Analyses
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticAnalysisCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        List App Analyses:
          $ref: ./examples/Diagnostics_ListSiteAnalyses.json
        List App Slot Analyses:
          $ref: ./examples/Diagnostics_ListSiteAnalysesSlot.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}
  : get:
      operationId: Diagnostics_GetSiteAnalysis
      tags:
      - Diagnostics
      summary: Get Site Analysis
      description: Description for Get Site Analysis
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      - name: analysisName
        in: path
        description: Analysis Name
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/AnalysisDefinition'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Analysis:
          $ref: ./examples/Diagnostics_GetSiteAnalysis.json
        Get App Slot Analysis:
          $ref: ./examples/Diagnostics_GetSiteAnalysisSlot.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}/execute
  : post:
      operationId: Diagnostics_ExecuteSiteAnalysis
      tags:
      - Diagnostics
      summary: Execute Analysis
      description: Description for Execute Analysis
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      - name: analysisName
        in: path
        description: Analysis Name
        required: true
        type: string
      - name: startTime
        in: query
        description: Start Time
        required: false
        type: string
        format: date-time
      - name: endTime
        in: query
        description: End Time
        required: false
        type: string
        format: date-time
      - name: timeGrain
        in: query
        description: Time Grain
        required: false
        type: string
        pattern: PT[1-9][0-9]+[SMH]
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticAnalysis'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Execute site analysis:
          $ref: ./examples/Diagnostics_ExecuteSiteAnalysis.json
        Execute site slot analysis:
          $ref: ./examples/Diagnostics_ExecuteSiteAnalysisSlot.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors
  : get:
      operationId: Diagnostics_ListSiteDetectors
      tags:
      - Diagnostics
      summary: Get Detectors
      description: Description for Get Detectors
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticDetectorCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        List App Detectors:
          $ref: ./examples/Diagnostics_ListSiteDetectors.json
        List App Slot Detectors:
          $ref: ./examples/Diagnostics_ListSiteDetectorsSlot.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}
  : get:
      operationId: Diagnostics_GetSiteDetector
      tags:
      - Diagnostics
      summary: Get Detector
      description: Description for Get Detector
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      - name: detectorName
        in: path
        description: Detector Name
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DetectorDefinitionResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Detector:
          $ref: ./examples/Diagnostics_GetSiteDetector.json
        Get App Slot Detector:
          $ref: ./examples/Diagnostics_GetSiteDetectorSlot.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute
  : post:
      operationId: Diagnostics_ExecuteSiteDetector
      tags:
      - Diagnostics
      summary: Execute Detector
      description: Description for Execute Detector
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      - name: detectorName
        in: path
        description: Detector Name
        required: true
        type: string
      - name: startTime
        in: query
        description: Start Time
        required: false
        type: string
        format: date-time
      - name: endTime
        in: query
        description: End Time
        required: false
        type: string
        format: date-time
      - name: timeGrain
        in: query
        description: Time Grain
        required: false
        type: string
        pattern: PT[1-9][0-9]+[SMH]
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticDetectorResponse'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Execute site detector:
          $ref: ./examples/Diagnostics_ExecuteSiteDetector.json
        Execute site slot detector:
          $ref: ./examples/Diagnostics_ExecuteSiteDetectorSlot.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors
  : get:
      operationId: Diagnostics_ListSiteDetectorResponsesSlot
      tags:
      - Diagnostics
      summary: List Site Detector Responses
      description: Description for List Site Detector Responses
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: slot
        in: path
        description: Slot Name
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DetectorResponseCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Detector Responses:
          $ref: ./examples/Diagnostics_ListSiteDetectorResponses_Slot.json
        Get App Slot Detector Responses:
          $ref: ./examples/Diagnostics_ListSiteDetectorResponsesSlot_Slot.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName}
  : get:
      operationId: Diagnostics_GetSiteDetectorResponseSlot
      tags:
      - Diagnostics
      summary: Get site detector response
      description: Description for Get site detector response
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: slot
        in: path
        description: Slot Name
        required: true
        type: string
      - name: detectorName
        in: path
        description: Detector Resource Name
        required: true
        type: string
      - name: startTime
        in: query
        description: Start Time
        required: false
        type: string
        format: date-time
      - name: endTime
        in: query
        description: End Time
        required: false
        type: string
        format: date-time
      - name: timeGrain
        in: query
        description: Time Grain
        required: false
        type: string
        pattern: PT[1-9][0-9]+[SMH]
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DetectorResponse'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Detector Response:
          $ref: ./examples/Diagnostics_GetSiteDetectorResponse_Slot.json
        Get App Slot Detector Response:
          $ref: ./examples/Diagnostics_GetSiteDetectorResponseSlot_Slot.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics
  : get:
      operationId: Diagnostics_ListSiteDiagnosticCategoriesSlot
      tags:
      - Diagnostics
      summary: Get Diagnostics Categories
      description: Description for Get Diagnostics Categories
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: slot
        in: path
        description: Slot Name
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticCategoryCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        List App Diagnostic Categories:
          $ref: ./examples/Diagnostics_ListSiteDiagnosticCategories_Slot.json
        List App Slot Diagnostic Categories:
          $ref: ./examples/Diagnostics_ListSiteDiagnosticCategoriesSlot_Slot.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}
  : get:
      operationId: Diagnostics_GetSiteDiagnosticCategorySlot
      tags:
      - Diagnostics
      summary: Get Diagnostics Category
      description: Description for Get Diagnostics Category
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: slot
        in: path
        description: Slot Name
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticCategory'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Diagnostic Category:
          $ref: ./examples/Diagnostics_GetSiteDiagnosticCategory_Slot.json
        Get App Slot Diagnostic Category:
          $ref: ./examples/Diagnostics_GetSiteDiagnosticCategorySlot_Slot.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses
  : get:
      operationId: Diagnostics_ListSiteAnalysesSlot
      tags:
      - Diagnostics
      summary: Get Site Analyses
      description: Description for Get Site Analyses
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: slot
        in: path
        description: Slot - optional
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticAnalysisCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        List App Analyses:
          $ref: ./examples/Diagnostics_ListSiteAnalyses_Slot.json
        List App Slot Analyses:
          $ref: ./examples/Diagnostics_ListSiteAnalysesSlot_Slot.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}
  : get:
      operationId: Diagnostics_GetSiteAnalysisSlot
      tags:
      - Diagnostics
      summary: Get Site Analysis
      description: Description for Get Site Analysis
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: slot
        in: path
        description: Slot - optional
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      - name: analysisName
        in: path
        description: Analysis Name
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/AnalysisDefinition'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get App Analysis:
          $ref: ./examples/Diagnostics_GetSiteAnalysis_Slot.json
        Get App Slot Analysis:
          $ref: ./examples/Diagnostics_GetSiteAnalysisSlot_Slot.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}/execute
  : post:
      operationId: Diagnostics_ExecuteSiteAnalysisSlot
      tags:
      - Diagnostics
      summary: Execute Analysis
      description: Description for Execute Analysis
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: siteName
        in: path
        description: Site Name
        required: true
        type: string
      - name: slot
        in: path
        description: Slot - optional
        required: true
        type: string
      - name: diagnosticCategory
        in: path
        description: Diagnostic Category
        required: true
        type: string
      - name: analysisName
        in: path
        description: Analysis Name
        required: true
        type: string
      - name: startTime
        in: query
        description: Start Time
        required: false
        type: string
        format: date-time
      - name: endTime
        in: query
        description: End Time
        required: false
        type: string
        format: date-time
      - name: timeGrain
        in: query
        description: Time Grain
        required: false
        type: string
        pattern: PT[1-9][0-9]+[SMH]
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DiagnosticAnalysis'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Execute site analysis:
          $ref: ./examples/Diagnostics_ExecuteSiteAnalysis_Slot.json
        Execute site slot analysis:
          $ref: ./examples/Diagnostics_ExecuteSiteAnalysisSlot_Slot.json
  ? /subscriptions

# --- truncated at 32 KB (61 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-azure-functions/refs/heads/main/openapi/microsoft-azure-functions-diagnostics-api-openapi.yml