Microsoft Azure Functions AppServiceEnvironments API

The AppServiceEnvironments API from Microsoft Azure Functions — 36 operation(s) for appserviceenvironments.

OpenAPI Specification

microsoft-azure-functions-appserviceenvironments-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  title: WebApps API Client AppServiceEnvironments 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: AppServiceEnvironments
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Web/hostingEnvironments:
    get:
      operationId: AppServiceEnvironments_List
      tags:
      - AppServiceEnvironments
      summary: Get all App Service Environments for a subscription.
      description: Description for Get all App Service Environments for a subscription.
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/AppServiceEnvironmentCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get all App Service Environments for a subscription.:
          $ref: ./examples/AppServiceEnvironments_List.json
      x-ms-pageable:
        nextLinkName: nextLink
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments:
    get:
      operationId: AppServiceEnvironments_ListByResourceGroup
      tags:
      - AppServiceEnvironments
      summary: Get all App Service Environments in a resource group.
      description: Description for Get all App Service Environments in a resource group.
      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
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/AppServiceEnvironmentCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get all App Service Environments in a resource group.:
          $ref: ./examples/AppServiceEnvironments_ListByResourceGroup.json
      x-ms-pageable:
        nextLinkName: nextLink
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}:
    get:
      operationId: AppServiceEnvironments_Get
      tags:
      - AppServiceEnvironments
      summary: Get the properties of an App Service Environment.
      description: Description for Get the properties of an App Service Environment.
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/AppServiceEnvironmentResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get the properties of an App Service Environment.:
          $ref: ./examples/AppServiceEnvironments_Get.json
    put:
      operationId: AppServiceEnvironments_CreateOrUpdate
      tags:
      - AppServiceEnvironments
      summary: Create or update an App Service Environment.
      description: Description for Create or update an App Service Environment.
      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: Name of the App Service Environment.
        required: true
        type: string
      - name: hostingEnvironmentEnvelope
        in: body
        description: Configuration details of the App Service Environment.
        required: true
        schema:
          $ref: '#/definitions/AppServiceEnvironmentResource'
      responses:
        '200':
          description: Resource 'AppServiceEnvironmentResource' update operation succeeded
          schema:
            $ref: '#/definitions/AppServiceEnvironmentResource'
        '201':
          description: Resource 'AppServiceEnvironmentResource' create operation succeeded
          schema:
            $ref: '#/definitions/AppServiceEnvironmentResource'
          headers:
            Location:
              type: string
              description: The Location header contains the URL where the status of the long running operation can be checked.
            Retry-After:
              type: integer
              format: int32
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          schema:
            $ref: '#/definitions/AppServiceEnvironmentResource'
          headers:
            Location:
              type: string
              description: The Location header contains the URL where the status of the long running operation can be checked.
            Retry-After:
              type: integer
              format: int32
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Create or update an App Service Environment.:
          $ref: ./examples/AppServiceEnvironments_CreateOrUpdate.json
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/AppServiceEnvironmentResource'
      x-ms-long-running-operation: true
    patch:
      operationId: AppServiceEnvironments_Update
      tags:
      - AppServiceEnvironments
      summary: Create or update an App Service Environment.
      description: Description for Create or update an App Service Environment.
      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: Name of the App Service Environment.
        required: true
        type: string
      - name: hostingEnvironmentEnvelope
        in: body
        description: Configuration details of the App Service Environment.
        required: true
        schema:
          $ref: '#/definitions/AppServiceEnvironmentPatchResource'
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/AppServiceEnvironmentResource'
        '201':
          description: Resource 'AppServiceEnvironmentResource' create operation succeeded
          schema:
            $ref: '#/definitions/AppServiceEnvironmentResource'
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          schema:
            $ref: '#/definitions/AppServiceEnvironmentResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Create or update an App Service Environment.:
          $ref: ./examples/AppServiceEnvironments_Update.json
    delete:
      operationId: AppServiceEnvironments_Delete
      tags:
      - AppServiceEnvironments
      summary: Delete an App Service Environment.
      description: Description for Delete an App Service Environment.
      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: Name of the App Service Environment.
        required: true
        type: string
      - name: forceDelete
        in: query
        description: Specify <code>true</code> to force the deletion even if the App Service Environment contains resources. The default is <code>false</code>.
        required: false
        type: boolean
      responses:
        '202':
          description: Resource deletion accepted.
          headers:
            Location:
              type: string
              description: The Location header contains the URL where the status of the long running operation can be checked.
            Retry-After:
              type: integer
              format: int32
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Delete an App Service Environment.:
          $ref: ./examples/AppServiceEnvironments_Delete.json
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/compute
  : get:
      operationId: AppServiceEnvironments_ListCapacities
      tags:
      - AppServiceEnvironments
      summary: Get the used, available, and total worker capacity an App Service Environment.
      description: Description for Get the used, available, and total worker capacity an App Service Environment.
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/StampCapacityCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get the used, available, and total worker capacity an App Service Environment.:
          $ref: ./examples/AppServiceEnvironments_ListCapacities.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip
  : get:
      operationId: AppServiceEnvironments_GetVipInfo
      tags:
      - AppServiceEnvironments
      summary: Get IP addresses assigned to an App Service Environment.
      description: Description for Get IP addresses assigned to an App Service Environment.
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/AddressResponse'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get IP addresses assigned to an App Service Environment.:
          $ref: ./examples/AppServiceEnvironments_GetVipInfo.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/changeVirtualNetwork
  : post:
      operationId: AppServiceEnvironments_ChangeVnet
      tags:
      - AppServiceEnvironments
      summary: Move an App Service Environment to a different VNET.
      description: Description for Move an App Service Environment to a different VNET.
      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: Name of the App Service Environment.
        required: true
        type: string
      - name: vnetInfo
        in: body
        description: Details for the new virtual network.
        required: true
        schema:
          $ref: '#/definitions/VirtualNetworkProfile'
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/WebAppCollection'
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          schema:
            $ref: '#/definitions/WebAppCollection'
          headers:
            Location:
              type: string
              description: The Location header contains the URL where the status of the long running operation can be checked.
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Move an App Service Environment to a different VNET.:
          $ref: ./examples/AppServiceEnvironments_ChangeVnet.json
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/WebAppCollection'
      x-ms-long-running-operation: true
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/customdnssuffix
  : get:
      operationId: AppServiceEnvironments_GetAseCustomDnsSuffixConfiguration
      tags:
      - AppServiceEnvironments
      summary: Get Custom Dns Suffix configuration of an App Service Environment
      description: Get Custom Dns Suffix configuration of an App Service Environment
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/CustomDnsSuffixConfiguration'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get ASE custom DNS suffix configuration:
          $ref: ./examples/GetAseCustomDnsSuffixConfiguration.json
    put:
      operationId: AppServiceEnvironments_UpdateAseCustomDnsSuffixConfiguration
      tags:
      - AppServiceEnvironments
      summary: Update Custom Dns Suffix configuration of an App Service Environment
      description: Update Custom Dns Suffix configuration of an App Service Environment
      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: Name of the App Service Environment.
        required: true
        type: string
      - name: customDnsSuffixConfiguration
        in: body
        description: ''
        required: true
        schema:
          $ref: '#/definitions/CustomDnsSuffixConfiguration'
      responses:
        '200':
          description: Resource 'CustomDnsSuffixConfiguration' update operation succeeded
          schema:
            $ref: '#/definitions/CustomDnsSuffixConfiguration'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Update ASE custom DNS suffix configuration:
          $ref: ./examples/UpdateAseCustomDnsSuffixConfiguration.json
    delete:
      operationId: AppServiceEnvironments_DeleteAseCustomDnsSuffixConfiguration
      tags:
      - AppServiceEnvironments
      summary: Delete Custom Dns Suffix configuration of an App Service Environment
      description: Delete Custom Dns Suffix configuration of an App Service Environment
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema: {}
        '204':
          description: 'There is no content to send for this request, but the headers may be useful. '
          schema: {}
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Delete ASE custom DNS suffix configuration:
          $ref: ./examples/DeleteAseCustomDnsSuffixConfiguration.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking
  : get:
      operationId: AppServiceEnvironments_GetAseV3NetworkingConfiguration
      tags:
      - AppServiceEnvironments
      summary: Get networking configuration of an App Service Environment
      description: Description for Get networking configuration of an App Service Environment
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/AseV3NetworkingConfiguration'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get networking configuration of an App Service Environment.:
          $ref: ./examples/AppServiceEnvironments_GetAseV3NetworkingConfiguration.json
    put:
      operationId: AppServiceEnvironments_UpdateAseNetworkingConfiguration
      tags:
      - AppServiceEnvironments
      summary: Update networking configuration of an App Service Environment
      description: Description for Update networking configuration of an App Service Environment
      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: Name of the App Service Environment.
        required: true
        type: string
      - name: aseNetworkingConfiguration
        in: body
        description: ''
        required: true
        schema:
          $ref: '#/definitions/AseV3NetworkingConfiguration'
      responses:
        '200':
          description: Resource 'AseV3NetworkingConfiguration' update operation succeeded
          schema:
            $ref: '#/definitions/AseV3NetworkingConfiguration'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Update networking configuration of an App Service Environment.:
          $ref: ./examples/AppServiceEnvironments_UpdateAseNetworkingConfiguration.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics
  : get:
      operationId: AppServiceEnvironments_ListDiagnostics
      tags:
      - AppServiceEnvironments
      summary: Get diagnostic information for an App Service Environment.
      description: Description for Get diagnostic information for an App Service Environment.
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            type: array
            items:
              $ref: '#/definitions/HostingEnvironmentDiagnostics'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get diagnostic information for an App Service Environment.:
          $ref: ./examples/AppServiceEnvironments_ListDiagnostics.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints
  : get:
      operationId: AppServiceEnvironments_GetInboundNetworkDependenciesEndpoints
      tags:
      - AppServiceEnvironments
      summary: Get the network endpoints of all inbound dependencies of an App Service Environment.
      description: Description for Get the network endpoints of all inbound dependencies of an App Service Environment.
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/InboundEnvironmentEndpointCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get the network endpoints of all inbound dependencies of an App Service Environment.:
          $ref: ./examples/GetInboundNetworkDependenciesEndpoints.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools
  : get:
      operationId: AppServiceEnvironments_ListMultiRolePools
      tags:
      - AppServiceEnvironments
      summary: Get all multi-role pools.
      description: Description for Get all multi-role pools.
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/WorkerPoolCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get all multi-role pools.:
          $ref: ./examples/AppServiceEnvironments_ListMultiRolePools.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default
  : get:
      operationId: AppServiceEnvironments_GetMultiRolePool
      tags:
      - AppServiceEnvironments
      summary: Get properties of a multi-role pool.
      description: Description for Get properties of a multi-role pool.
      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: Name of the App Service Environment.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/WorkerPoolResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get properties of a multi-role pool.:
          $ref: ./examples/AppServiceEnvironments_GetMultiRolePool.json
    put:
      operationId: AppServiceEnvironments_CreateOrUpdateMultiRolePool
      tags:
      - AppServiceEnvironments
      summary: Create or update a multi-role pool.
      description: Description for Create or update a multi-role pool.
      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: Name of the App Service Environment.
        required: true
        type: string
      - name: multiRolePoolEnvelope
        in: body
        description: Properties of the multi-role pool.
        required: true
        schema:
          $ref: '#/definitions/WorkerPoolResource'
      responses:
        '200':
          description: Resource 'WorkerPoolResource' update operation succeeded
          schema:
            $ref: '#/definitions/WorkerPoolResource'
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          schema:
            $ref: '#/definitions/WorkerPoolResource'
          headers:
            Location:
              type: string
              description: The Location header contains the URL where the status of the long running operation can be checked.
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Create or update a multi-role pool.:
          $ref: ./examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/WorkerPoolResource'
      x-ms-long-running-operation: true
    patch:
      operationId: AppServiceEnvironments_UpdateMultiRolePool
      tags:
      - AppServiceEnvironments
      summary: Create or update a multi-role pool.
      description: Description for Create or update a multi-role pool.
      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: Name of the App Service Environment.
        required: true
        type: string
      - name: multiRolePoolEnvelope
        in: body
        description: Properties of the multi-role pool.
        required: true
        schema:
          $ref: '#/definitions/WorkerPoolResource'
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/WorkerPoolResource'
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          schema:
            $ref: '#/definitions/WorkerPoolResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Create or update a multi-role pool.:
          $ref: ./examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool_UpdateMultiRolePool.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions
  : get:
      operationId: AppServiceEnvironments_ListMultiRoleMetricDefinitions
      tags:
      - AppServiceEnvironments
      summary: Get metric definitions for a multi-role pool of an App Service Environment.
      description: Description for Get metric definitions for a multi-role pool of an App Service Environment.
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types

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