Microsoft Azure Functions StaticSites API

The StaticSites API from Microsoft Azure Functions — 51 operation(s) for staticsites.

OpenAPI Specification

microsoft-azure-functions-staticsites-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  title: WebApps API Client AppServiceEnvironments StaticSites 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: StaticSites
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile:
    post:
      operationId: StaticSites_PreviewWorkflow
      tags:
      - StaticSites
      summary: Generates a preview workflow file for the static site
      description: Description for Generates a preview workflow file for the static site
      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/LocationParameter
      - name: staticSitesWorkflowPreviewRequest
        in: body
        description: The request body
        required: true
        schema:
          $ref: '#/definitions/StaticSitesWorkflowPreviewRequest'
      responses:
        '200':
          description: The request has succeeded.
          schema:
            $ref: '#/definitions/StaticSitesWorkflowPreview'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Generates a preview workflow file for the static site:
          $ref: ./examples/GenerateStaticSiteWorkflowPreview.json
  /subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites:
    get:
      operationId: StaticSites_List
      tags:
      - StaticSites
      summary: Get all Static Sites for a subscription.
      description: Description for Get all Static Sites 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/StaticSiteCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get all static sites in a subscription:
          $ref: ./examples/GetAllStaticSites.json
      x-ms-pageable:
        nextLinkName: nextLink
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites:
    get:
      operationId: StaticSites_GetStaticSitesByResourceGroup
      tags:
      - StaticSites
      summary: Gets all static sites in the specified resource group.
      description: Description for Gets all static sites in the specified 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/StaticSiteCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get static sites for a resource group:
          $ref: ./examples/GetStaticSites.json
      x-ms-pageable:
        nextLinkName: nextLink
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}:
    get:
      operationId: StaticSites_GetStaticSite
      tags:
      - StaticSites
      summary: Gets the details of a static site.
      description: Description for Gets the details of a static site.
      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 static site.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/StaticSiteARMResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get details for a static site:
          $ref: ./examples/GetStaticSite.json
    put:
      operationId: StaticSites_CreateOrUpdateStaticSite
      tags:
      - StaticSites
      summary: Creates a new static site in an existing resource group, or updates an existing static site.
      description: Description for Creates a new static site in an existing resource group, or updates an existing static site.
      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 static site.
        required: true
        type: string
      - name: staticSiteEnvelope
        in: body
        description: A JSON representation of the staticsite properties. See example.
        required: true
        schema:
          $ref: '#/definitions/StaticSiteARMResource'
      responses:
        '200':
          description: Resource 'StaticSiteARMResource' update operation succeeded
          schema:
            $ref: '#/definitions/StaticSiteARMResource'
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          schema:
            $ref: '#/definitions/StaticSiteARMResource'
          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 static site:
          $ref: ./examples/CreateOrUpdateStaticSite.json
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/StaticSiteARMResource'
      x-ms-long-running-operation: true
    patch:
      operationId: StaticSites_UpdateStaticSite
      tags:
      - StaticSites
      summary: Creates a new static site in an existing resource group, or updates an existing static site.
      description: Description for Creates a new static site in an existing resource group, or updates an existing static site.
      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 static site.
        required: true
        type: string
      - name: staticSiteEnvelope
        in: body
        description: A JSON representation of the staticsite properties. See example.
        required: true
        schema:
          $ref: '#/definitions/StaticSitePatchResource'
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/StaticSiteARMResource'
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          schema:
            $ref: '#/definitions/StaticSiteARMResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Patch a static site:
          $ref: ./examples/PatchStaticSite.json
    delete:
      operationId: StaticSites_DeleteStaticSite
      tags:
      - StaticSites
      summary: Deletes a static site.
      description: Description for Deletes a static site.
      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 static site.
        required: true
        type: string
      responses:
        '200':
          description: Resource deleted successfully.
        '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.
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Delete a static site:
          $ref: ./examples/DeleteStaticSite.json
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/basicAuth:
    get:
      operationId: StaticSites_ListBasicAuth
      tags:
      - StaticSites
      summary: Gets the basic auth properties for a static site as a collection.
      description: Description for Gets the basic auth properties for a static site as a collection.
      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 static site.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/StaticSiteBasicAuthPropertiesCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Lists the basic auth properties for a static site.:
          $ref: ./examples/ListStaticSiteBasicAuth.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/basicAuth/{basicAuthName}
  : get:
      operationId: StaticSites_GetBasicAuth
      tags:
      - StaticSites
      summary: Gets the basic auth properties for a static site.
      description: Description for Gets the basic auth properties for a static site.
      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 static site.
        required: true
        type: string
      - name: basicAuthName
        in: path
        description: name of the basic auth entry.
        required: true
        type: string
        enum:
        - default
        x-ms-enum:
          name: BasicAuthName
          modelAsString: true
          values:
          - name: default
            value: default
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/StaticSiteBasicAuthPropertiesARMResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Gets the basic auth properties for a static site.:
          $ref: ./examples/GetStaticSiteBasicAuth.json
    put:
      operationId: StaticSites_CreateOrUpdateBasicAuth
      tags:
      - StaticSites
      summary: Adds or updates basic auth for a static site.
      description: Description for Adds or updates basic auth for a static site.
      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 static site.
        required: true
        type: string
      - name: basicAuthName
        in: path
        description: name of the basic auth entry.
        required: true
        type: string
        enum:
        - default
        x-ms-enum:
          name: BasicAuthName
          modelAsString: true
          values:
          - name: default
            value: default
      - name: basicAuthEnvelope
        in: body
        description: A JSON representation of the basic auth properties.
        required: true
        schema:
          $ref: '#/definitions/StaticSiteBasicAuthPropertiesARMResource'
      responses:
        '200':
          description: Resource 'StaticSiteBasicAuthPropertiesARMResource' update operation succeeded
          schema:
            $ref: '#/definitions/StaticSiteBasicAuthPropertiesARMResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Creates or updates basic auth properties for a static site.:
          $ref: ./examples/CreateOrUpdateStaticSiteBasicAuth.json
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds:
    get:
      operationId: StaticSites_GetStaticSiteBuilds
      tags:
      - StaticSites
      summary: Gets all static site builds for a particular static site.
      description: Description for Gets all static site builds for a particular static site.
      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 static site.
        required: true
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/StaticSiteBuildCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get all builds for a static site:
          $ref: ./examples/GetStaticSiteBuilds.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}
  : get:
      operationId: StaticSites_GetStaticSiteBuild
      tags:
      - StaticSites
      summary: Gets the details of a static site build.
      description: Description for Gets the details of a static site build.
      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 static site.
        required: true
        type: string
      - name: environmentName
        in: path
        description: The stage site identifier.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/StaticSiteBuildARMResource'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get a static site build:
          $ref: ./examples/GetStaticSiteBuild.json
    delete:
      operationId: StaticSites_DeleteStaticSiteBuild
      tags:
      - StaticSites
      summary: Deletes a static site build.
      description: Description for Deletes a static site build.
      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 static site.
        required: true
        type: string
      - name: environmentName
        in: path
        description: The stage site identifier.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      responses:
        '200':
          description: Resource deleted successfully.
        '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 a static site build:
          $ref: ./examples/DeleteStaticSiteBuild.json
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/appsettings
  : put:
      operationId: StaticSites_CreateOrUpdateStaticSiteBuildAppSettings
      tags:
      - StaticSites
      summary: Creates or updates the app settings of a static site build.
      description: Description for Creates or updates the app settings of a static site build.
      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 static site.
        required: true
        type: string
      - name: environmentName
        in: path
        description: The stage site identifier.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      - name: appSettings
        in: body
        description: The dictionary containing the static site app settings to update.
        required: true
        schema:
          $ref: '#/definitions/StringDictionary'
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/StringDictionary'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Creates or updates the function app settings of a static site build.:
          $ref: ./examples/CreateOrUpdateStaticSiteBuildAppSettings.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/functionappsettings
  : put:
      operationId: StaticSites_CreateOrUpdateStaticSiteBuildFunctionAppSettings
      tags:
      - StaticSites
      summary: Creates or updates the function app settings of a static site build.
      description: Description for Creates or updates the function app settings of a static site build.
      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 static site.
        required: true
        type: string
      - name: environmentName
        in: path
        description: The stage site identifier.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      - name: appSettings
        in: body
        description: The dictionary containing the static site function app settings to update.
        required: true
        schema:
          $ref: '#/definitions/StringDictionary'
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/StringDictionary'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Creates or updates the function app settings of a static site build.:
          $ref: ./examples/CreateOrUpdateStaticSiteBuildFunctionAppSettings.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections
  : get:
      operationId: StaticSites_GetBuildDatabaseConnections
      tags:
      - StaticSites
      summary: Returns overviews of database connections for a static site build
      description: Returns overviews of database connections for a static site build
      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 static site
        required: true
        type: string
      - name: environmentName
        in: path
        description: The stage site identifier.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DatabaseConnectionCollection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        List overviews of database connections for the static site build.:
          $ref: ./examples/GetStaticSiteBuildDatabaseConnections.json
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections/{databaseConnectionName}
  : get:
      operationId: StaticSites_GetBuildDatabaseConnection
      tags:
      - StaticSites
      summary: Returns overview of a database connection for a static site build by name
      description: Returns overview of a database connection for a static site build by name
      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 static site
        required: true
        type: string
      - name: environmentName
        in: path
        description: The stage site identifier.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      - name: databaseConnectionName
        in: path
        description: Name of the database connection.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DatabaseConnection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Get overview of database connections for the static site build.:
          $ref: ./examples/GetStaticSiteBuildDatabaseConnection.json
    put:
      operationId: StaticSites_CreateOrUpdateBuildDatabaseConnection
      tags:
      - StaticSites
      summary: Create or update a database connection for a static site build
      description: Description for Create or update a database connection for a static site build
      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 static site
        required: true
        type: string
      - name: environmentName
        in: path
        description: The stage site identifier.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      - name: databaseConnectionName
        in: path
        description: Name of the database connection.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      - name: databaseConnectionRequestEnvelope
        in: body
        description: A JSON representation of the database connection request properties
        required: true
        schema:
          $ref: '#/definitions/DatabaseConnection'
      responses:
        '200':
          description: Resource 'DatabaseConnection' update operation succeeded
          schema:
            $ref: '#/definitions/DatabaseConnection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Create or update a database connection for a static site build:
          $ref: ./examples/CreateOrUpdateStaticSiteBuildDatabaseConnection.json
    patch:
      operationId: StaticSites_UpdateBuildDatabaseConnection
      tags:
      - StaticSites
      summary: Create or update a database connection for a static site build
      description: Description for Create or update a database connection for a static site build
      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 static site
        required: true
        type: string
      - name: environmentName
        in: path
        description: The stage site identifier.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      - name: databaseConnectionName
        in: path
        description: Name of the database connection.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      - name: databaseConnectionRequestEnvelope
        in: body
        description: A JSON representation of the database connection request properties
        required: true
        schema:
          $ref: '#/definitions/DatabaseConnectionPatchRequest'
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            $ref: '#/definitions/DatabaseConnection'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Patch a database connection for a static site build:
          $ref: ./examples/PatchStaticSiteBuildDatabaseConnection.json
    delete:
      operationId: StaticSites_DeleteBuildDatabaseConnection
      tags:
      - StaticSites
      summary: Delete a database connection for a static site build
      description: Delete a database connection for a static site build
      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 static site
        required: true
        type: string
      - name: environmentName
        in: path
        description: The stage site identifier.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      - name: databaseConnectionName
        in: path
        description: Name of the database connection.
        required: true
        type: string
        pattern: ^[a-zA-Z0-9]+$
      responses:
        '200':
          description: Resource deleted successfully.
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/definitions/DefaultErrorResponse'
      x-ms-examples:
        Delete a database connection from a static site build.:
          $ref: ./examples/DeleteStaticSiteBuildDatabaseConnection.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections/{databaseConnectionName}/show
  : post:
      operationId: StaticSites_GetBuildDatabaseConnectionWithDetails
      tags:
      - StaticSites
      summary: Returns details of a database connection for a static site build by name
      description: Returns details of a database connection for a static site build b

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