WebApps API Client — AppServicePlans

WebApps API Client — AppServicePlans. 30 operations. Lead operation: Get all App Service plans for a subscription.. Self-contained Naftiko capability covering one Microsoft Azure Functions business surface.

Run with Naftiko Microsoft Azure FunctionsAppServicePlans

What You Can Do

GET
Appserviceplanslist — Get all App Service plans for a subscription.
/v1/subscriptions/{subscriptionid}/providers/microsoft-web/serverfarms
GET
Appserviceplanslistbyresourcegroup — Get all App Service plans in a resource group.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms
GET
Appserviceplansget — Get an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}
PUT
Appserviceplanscreateorupdate — Creates or updates an App Service Plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}
PATCH
Appserviceplansupdate — Creates or updates an App Service Plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}
DELETE
Appserviceplansdelete — Delete an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}
GET
Appserviceplanslistcapabilities — List all capabilities of an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/capabilities
POST
Appserviceplansgetserverfarmrdppassword — Get the RDP password for an IsCustomMode ServerFarm.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/getrdppassword
GET
Appserviceplansgethybridconnection — Retrieve a Hybrid Connection in use in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionnamespaces/{namespacename}/relays/{relayname}
DELETE
Appserviceplansdeletehybridconnection — Delete a Hybrid Connection in use in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionnamespaces/{namespacename}/relays/{relayname}
POST
Appserviceplanslisthybridconnectionkeys — Get the send key name and value of a Hybrid Connection.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionnamespaces/{namespacename}/relays/{relayname}/listkeys
GET
Appserviceplanslistwebappsbyhybridconnection — Get all apps that use a Hybrid Connection in an App Service Plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionnamespaces/{namespacename}/relays/{relayname}/sites
GET
Appserviceplansgethybridconnectionplanlimit — Get the maximum number of Hybrid Connections allowed in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionplanlimits/limit
GET
Appserviceplanslisthybridconnections — Retrieve all Hybrid Connections in use in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionrelays
POST
Appserviceplansgetserverfarminstancedetails — Get the instance details for an app service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/listinstances
POST
Appserviceplansrestartwebapps — Restart all apps in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/restartsites
GET
Appserviceplanslistwebapps — Get all apps associated with an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/sites
GET
Appserviceplansgetserverfarmskus — Gets all selectable SKUs for a given App Service Plan
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/skus
GET
Appserviceplanslistusages — Gets server farm usage information
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/usages
GET
Appserviceplanslistvnets — Get all Virtual Networks associated with an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/virtualnetworkconnections
GET
Appserviceplansgetvnetfromserverfarm — Get a Virtual Network associated with an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/virtualnetworkconnections/{vnetname}
GET
Appserviceplansgetvnetgateway — Get a Virtual Network gateway.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/virtualnetworkconnections/{vnetname}/gateways/{gatewayname}
PUT
Appserviceplansupdatevnetgateway — Update a Virtual Network gateway.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/virtualnetworkconnections/{vnetname}/gateways/{gatewayname}
GET
Appserviceplanslistroutesforvnet — Get all routes that are associated with a Virtual Network in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/virtualnetworkconnections/{vnetname}/routes
GET
Appserviceplansgetrouteforvnet — Get a Virtual Network route in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/virtualnetworkconnections/{vnetname}/routes/{routename}
PUT
Appserviceplanscreateorupdatevnetroute — Create or update a Virtual Network route in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/virtualnetworkconnections/{vnetname}/routes/{routename}
PATCH
Appserviceplansupdatevnetroute — Create or update a Virtual Network route in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/virtualnetworkconnections/{vnetname}/routes/{routename}
DELETE
Appserviceplansdeletevnetroute — Delete a Virtual Network route in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/virtualnetworkconnections/{vnetname}/routes/{routename}
POST
Appserviceplansrebootworker — Reboot a worker machine in an App Service plan.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/workers/{workername}/reboot
POST
Appserviceplansrecyclemanagedinstanceworker — Recycles a managed instance worker machine.
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/workers/{workername}/recycleinstance

MCP Tools

get-all-app-service-plans

Get all App Service plans for a subscription.

read-only idempotent
get-all-app-service-plans-2

Get all App Service plans in a resource group.

read-only idempotent
get-app-service-plan

Get an App Service plan.

read-only idempotent
creates-updates-app-service-plan

Creates or updates an App Service Plan.

idempotent
creates-updates-app-service-plan-2

Creates or updates an App Service Plan.

idempotent
delete-app-service-plan

Delete an App Service plan.

idempotent
list-all-capabilities-app-service

List all capabilities of an App Service plan.

read-only idempotent
get-rdp-password-iscustommode-serverfarm

Get the RDP password for an IsCustomMode ServerFarm.

read-only
retrieve-hybrid-connection-use-app

Retrieve a Hybrid Connection in use in an App Service plan.

read-only idempotent
delete-hybrid-connection-use-app

Delete a Hybrid Connection in use in an App Service plan.

idempotent
get-send-key-name-and

Get the send key name and value of a Hybrid Connection.

read-only
get-all-apps-that-use

Get all apps that use a Hybrid Connection in an App Service Plan.

read-only idempotent
get-maximum-number-hybrid-connections

Get the maximum number of Hybrid Connections allowed in an App Service plan.

read-only idempotent
retrieve-all-hybrid-connections-use

Retrieve all Hybrid Connections in use in an App Service plan.

read-only idempotent
get-instance-details-app-service

Get the instance details for an app service plan.

read-only
restart-all-apps-app-service

Restart all apps in an App Service plan.

get-all-apps-associated-app

Get all apps associated with an App Service plan.

read-only idempotent
gets-all-selectable-skus-given

Gets all selectable SKUs for a given App Service Plan

read-only idempotent
gets-server-farm-usage-information

Gets server farm usage information

read-only idempotent
get-all-virtual-networks-associated

Get all Virtual Networks associated with an App Service plan.

read-only idempotent
get-virtual-network-associated-app

Get a Virtual Network associated with an App Service plan.

read-only idempotent
get-virtual-network-gateway

Get a Virtual Network gateway.

read-only idempotent
update-virtual-network-gateway

Update a Virtual Network gateway.

idempotent
get-all-routes-that-are

Get all routes that are associated with a Virtual Network in an App Service plan.

read-only idempotent
get-virtual-network-route-app

Get a Virtual Network route in an App Service plan.

read-only idempotent
create-update-virtual-network-route

Create or update a Virtual Network route in an App Service plan.

idempotent
create-update-virtual-network-route-2

Create or update a Virtual Network route in an App Service plan.

idempotent
delete-virtual-network-route-app

Delete a Virtual Network route in an App Service plan.

idempotent
reboot-worker-machine-app-service

Reboot a worker machine in an App Service plan.

recycles-managed-instance-worker-machine

Recycles a managed instance worker machine.

Capability Spec

azure-functions-management-appserviceplans.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WebApps API Client — AppServicePlans
  description: 'WebApps API Client — AppServicePlans. 30 operations. Lead operation: Get all App Service plans for a subscription..
    Self-contained Naftiko capability covering one Microsoft Azure Functions business surface.'
  tags:
  - Microsoft Azure Functions
  - AppServicePlans
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_AZURE_FUNCTIONS_API_KEY: MICROSOFT_AZURE_FUNCTIONS_API_KEY
capability:
  consumes:
  - type: http
    namespace: azure-functions-management-appserviceplans
    baseUri: https://management.azure.com
    description: WebApps API Client — AppServicePlans business capability. Self-contained, no shared references.
    resources:
    - name: subscriptions-subscriptionId-providers-Microsoft.Web-serverfarms
      path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/serverfarms
      operations:
      - name: appserviceplanslist
        method: GET
        description: Get all App Service plans for a subscription.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: detailed
          in: query
          type: boolean
          description: Specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>,
            which returns a subset of the properties.
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms
      operations:
      - name: appserviceplanslistbyresourcegroup
        method: GET
        description: Get all App Service plans in a resource group.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}
      operations:
      - name: appserviceplansget
        method: GET
        description: Get an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
      - name: appserviceplanscreateorupdate
        method: PUT
        description: Creates or updates an App Service Plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: appServicePlan
          in: body
          type: string
          description: Details of the App Service plan.
          required: true
      - name: appserviceplansupdate
        method: PATCH
        description: Creates or updates an App Service Plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: appServicePlan
          in: body
          type: string
          description: Details of the App Service plan.
          required: true
      - name: appserviceplansdelete
        method: DELETE
        description: Delete an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/capabilities
      operations:
      - name: appserviceplanslistcapabilities
        method: GET
        description: List all capabilities of an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/getrdppassword
      operations:
      - name: appserviceplansgetserverfarmrdppassword
        method: POST
        description: Get the RDP password for an IsCustomMode ServerFarm.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}
      operations:
      - name: appserviceplansgethybridconnection
        method: GET
        description: Retrieve a Hybrid Connection in use in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: namespaceName
          in: path
          type: string
          description: Name of the Service Bus namespace.
          required: true
        - name: relayName
          in: path
          type: string
          description: Name of the Service Bus relay.
          required: true
      - name: appserviceplansdeletehybridconnection
        method: DELETE
        description: Delete a Hybrid Connection in use in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: namespaceName
          in: path
          type: string
          description: Name of the Service Bus namespace.
          required: true
        - name: relayName
          in: path
          type: string
          description: Name of the Service Bus relay.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys
      operations:
      - name: appserviceplanslisthybridconnectionkeys
        method: POST
        description: Get the send key name and value of a Hybrid Connection.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: namespaceName
          in: path
          type: string
          description: Name of the Service Bus namespace.
          required: true
        - name: relayName
          in: path
          type: string
          description: Name of the Service Bus relay.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/sites
      operations:
      - name: appserviceplanslistwebappsbyhybridconnection
        method: GET
        description: Get all apps that use a Hybrid Connection in an App Service Plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: namespaceName
          in: path
          type: string
          description: Name of the Service Bus namespace.
          required: true
        - name: relayName
          in: path
          type: string
          description: Name of the Service Bus relay.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionPlanLimits/limit
      operations:
      - name: appserviceplansgethybridconnectionplanlimit
        method: GET
        description: Get the maximum number of Hybrid Connections allowed in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionRelays
      operations:
      - name: appserviceplanslisthybridconnections
        method: GET
        description: Retrieve all Hybrid Connections in use in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/listinstances
      operations:
      - name: appserviceplansgetserverfarminstancedetails
        method: POST
        description: Get the instance details for an app service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/restartSites
      operations:
      - name: appserviceplansrestartwebapps
        method: POST
        description: Restart all apps in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: softRestart
          in: query
          type: boolean
          description: Specify <code>true</code> to perform a soft restart, applies the configuration settings and restarts
            the apps if necessary. The default is <code>false</code>, w
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/sites
      operations:
      - name: appserviceplanslistwebapps
        method: GET
        description: Get all apps associated with an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: $skipToken
          in: query
          type: string
          description: 'Skip to a web app in the list of webapps associated with app service plan. If specified, the resulting
            list will contain web apps starting from (including) the '
        - name: $filter
          in: query
          type: string
          description: 'Supported filter: $filter=state eq running. Returns only web apps that are currently running'
        - name: $top
          in: query
          type: string
          description: List page size. If specified, results are paged.
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/skus
      operations:
      - name: appserviceplansgetserverfarmskus
        method: GET
        description: Gets all selectable SKUs for a given App Service Plan
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/usages
      operations:
      - name: appserviceplanslistusages
        method: GET
        description: Gets server farm usage information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: $filter
          in: query
          type: string
          description: 'Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value
            eq ''Metric1'' or name.value eq ''Metric2'').'
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections
      operations:
      - name: appserviceplanslistvnets
        method: GET
        description: Get all Virtual Networks associated with an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}
      operations:
      - name: appserviceplansgetvnetfromserverfarm
        method: GET
        description: Get a Virtual Network associated with an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: vnetName
          in: path
          type: string
          description: Name of the Virtual Network.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}
      operations:
      - name: appserviceplansgetvnetgateway
        method: GET
        description: Get a Virtual Network gateway.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: vnetName
          in: path
          type: string
          description: Name of the Virtual Network.
          required: true
        - name: gatewayName
          in: path
          type: string
          description: Name of the gateway. Only the 'primary' gateway is supported.
          required: true
      - name: appserviceplansupdatevnetgateway
        method: PUT
        description: Update a Virtual Network gateway.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: vnetName
          in: path
          type: string
          description: Name of the Virtual Network.
          required: true
        - name: gatewayName
          in: path
          type: string
          description: Name of the gateway. Only the 'primary' gateway is supported.
          required: true
        - name: connectionEnvelope
          in: body
          type: string
          description: Definition of the gateway.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes
      operations:
      - name: appserviceplanslistroutesforvnet
        method: GET
        description: Get all routes that are associated with a Virtual Network in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: vnetName
          in: path
          type: string
          description: Name of the Virtual Network.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}
      operations:
      - name: appserviceplansgetrouteforvnet
        method: GET
        description: Get a Virtual Network route in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: vnetName
          in: path
          type: string
          description: Name of the Virtual Network.
          required: true
        - name: routeName
          in: path
          type: string
          description: Name of the Virtual Network route.
          required: true
      - name: appserviceplanscreateorupdatevnetroute
        method: PUT
        description: Create or update a Virtual Network route in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: vnetName
          in: path
          type: string
          description: Name of the Virtual Network.
          required: true
        - name: routeName
          in: path
          type: string
          description: Name of the Virtual Network route.
          required: true
        - name: route
          in: body
          type: string
          description: Definition of the Virtual Network route.
          required: true
      - name: appserviceplansupdatevnetroute
        method: PATCH
        description: Create or update a Virtual Network route in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: vnetName
          in: path
          type: string
          description: Name of the Virtual Network.
          required: true
        - name: routeName
          in: path
          type: string
          description: Name of the Virtual Network route.
          required: true
        - name: route
          in: body
          type: string
          description: Definition of the Virtual Network route.
          required: true
      - name: appserviceplansdeletevnetroute
        method: DELETE
        description: Delete a Virtual Network route in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the App Service plan.
          required: true
        - name: vnetName
          in: path
          type: string
          description: Name of the Virtual Network.
          required: true
        - name: routeName
          in: path
          type: string
          description: Name of the Virtual Network route.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Web/serverfarms/{name}/workers/{workerName}/reboot
      operations:
      - name: appserviceplansrebootworker
        method: POST
        description: Reboot a worker machine in an App Service plan.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: App Service plan.
          required: true
        - name: workerName
          in: path
          type: string
          description: Name of worker machine, which typically starts with RD.
          required: true
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Web/serverfarms/{name}/workers/{workerName}/recycleinstance
      operations:
      - name: appserviceplansrecyclemanagedinstanceworker
        method: POST
        description: Recycles a managed instance worker machine.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: App Service plan.
          required: true
        - name: workerName
          in: path
          type: string
          description: Name of worker machine, which typically starts with RD.
          required: true
  exposes:
  - type: rest
    namespace: azure-functions-management-appserviceplans-rest
    port: 8080
    description: REST adapter for WebApps API Client — AppServicePlans. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/subscriptions/{subscriptionid}/providers/microsoft-web/serverfarms
      name: subscriptions-subscriptionid-providers-microsoft-web-serverfarms
      description: REST surface for subscriptions-subscriptionId-providers-Microsoft.Web-serverfarms.
      operations:
      - method: GET
        name: appserviceplanslist
        description: Get all App Service plans for a subscription.
        call: azure-functions-management-appserviceplans.appserviceplanslist
        with:
          detailed: rest.detailed
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: appserviceplanslistbyresourcegroup
        description: Get all App Service plans in a resource group.
        call: azure-functions-management-appserviceplans.appserviceplanslistbyresourcegroup
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: appserviceplansget
        description: Get an App Service plan.
        call: azure-functions-management-appserviceplans.appserviceplansget
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: appserviceplanscreateorupdate
        description: Creates or updates an App Service Plan.
        call: azure-functions-management-appserviceplans.appserviceplanscreateorupdate
        with:
          name: rest.name
          appServicePlan: rest.appServicePlan
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: appserviceplansupdate
        description: Creates or updates an App Service Plan.
        call: azure-functions-management-appserviceplans.appserviceplansupdate
        with:
          name: rest.name
          appServicePlan: rest.appServicePlan
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: appserviceplansdelete
        description: Delete an App Service plan.
        call: azure-functions-management-appserviceplans.appserviceplansdelete
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/capabilities
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: appserviceplanslistcapabilities
        description: List all capabilities of an App Service plan.
        call: azure-functions-management-appserviceplans.appserviceplanslistcapabilities
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/getrdppassword
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: POST
        name: appserviceplansgetserverfarmrdppassword
        description: Get the RDP password for an IsCustomMode ServerFarm.
        call: azure-functions-management-appserviceplans.appserviceplansgetserverfarmrdppassword
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionnamespaces/{namespacename}/relays/{relayname}
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: appserviceplansgethybridconnection
        description: Retrieve a Hybrid Connection in use in an App Service plan.
        call: azure-functions-management-appserviceplans.appserviceplansgethybridconnection
        with:
          name: rest.name
          namespaceName: rest.namespaceName
          relayName: rest.relayName
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: appserviceplansdeletehybridconnection
        description: Delete a Hybrid Connection in use in an App Service plan.
        call: azure-functions-management-appserviceplans.appserviceplansdeletehybridconnection
        with:
          name: rest.name
          namespaceName: rest.namespaceName
          relayName: rest.relayName
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionnamespaces/{namespacename}/relays/{relayname}/listkeys
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: POST
        name: appserviceplanslisthybridconnectionkeys
        description: Get the send key name and value of a Hybrid Connection.
        call: azure-functions-management-appserviceplans.appserviceplanslisthybridconnectionkeys
        with:
          name: rest.name
          namespaceName: rest.namespaceName
          relayName: rest.relayName
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionnamespaces/{namespacename}/relays/{relayname}/sites
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: appserviceplanslistwebappsbyhybridconnection
        description: Get all apps that use a Hybrid Connection in an App Service Plan.
        call: azure-functions-management-appserviceplans.appserviceplanslistwebappsbyhybridconnection
        with:
          name: rest.name
          namespaceName: rest.namespaceName
          relayName: rest.relayName
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-web/serverfarms/{name}/hybridconnectionplanlimits/limit
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Micr

# --- truncated at 32 KB (56 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-azure-functions/refs/heads/main/capabilities/azure-functions-management-appserviceplans.yaml