共用方式為


AppServicePlans interface

Interface representing a AppServicePlans.

Methods

beginCreateOrUpdate(string, string, AppServicePlan, AppServicePlansCreateOrUpdateOptionalParams)

Description for Creates or updates an App Service Plan.

beginCreateOrUpdateAndWait(string, string, AppServicePlan, AppServicePlansCreateOrUpdateOptionalParams)

Description for Creates or updates an App Service Plan.

createOrUpdateVnetRoute(string, string, string, string, VnetRoute, AppServicePlansCreateOrUpdateVnetRouteOptionalParams)

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

delete(string, string, AppServicePlansDeleteOptionalParams)

Description for Delete an App Service plan.

deleteHybridConnection(string, string, string, string, AppServicePlansDeleteHybridConnectionOptionalParams)

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

deleteVnetRoute(string, string, string, string, AppServicePlansDeleteVnetRouteOptionalParams)

Description for Delete a Virtual Network route in an App Service plan.

get(string, string, AppServicePlansGetOptionalParams)

Description for Get an App Service plan.

getHybridConnection(string, string, string, string, AppServicePlansGetHybridConnectionOptionalParams)

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

getHybridConnectionPlanLimit(string, string, AppServicePlansGetHybridConnectionPlanLimitOptionalParams)

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

getRouteForVnet(string, string, string, string, AppServicePlansGetRouteForVnetOptionalParams)

Description for Get a Virtual Network route in an App Service plan.

getServerFarmSkus(string, string, AppServicePlansGetServerFarmSkusOptionalParams)

Description for Gets all selectable SKUs for a given App Service Plan

getVnetFromServerFarm(string, string, string, AppServicePlansGetVnetFromServerFarmOptionalParams)

Description for Get a Virtual Network associated with an App Service plan.

getVnetGateway(string, string, string, string, AppServicePlansGetVnetGatewayOptionalParams)

Description for Get a Virtual Network gateway.

list(AppServicePlansListOptionalParams)

Description for Get all App Service plans for a subscription.

listByResourceGroup(string, AppServicePlansListByResourceGroupOptionalParams)

Description for Get all App Service plans in a resource group.

listCapabilities(string, string, AppServicePlansListCapabilitiesOptionalParams)

Description for List all capabilities of an App Service plan.

listHybridConnectionKeys(string, string, string, string, AppServicePlansListHybridConnectionKeysOptionalParams)

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

listHybridConnections(string, string, AppServicePlansListHybridConnectionsOptionalParams)

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

listRoutesForVnet(string, string, string, AppServicePlansListRoutesForVnetOptionalParams)

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

listUsages(string, string, AppServicePlansListUsagesOptionalParams)

Description for Gets server farm usage information

listVnets(string, string, AppServicePlansListVnetsOptionalParams)

Description for Get all Virtual Networks associated with an App Service plan.

listWebApps(string, string, AppServicePlansListWebAppsOptionalParams)

Description for Get all apps associated with an App Service plan.

listWebAppsByHybridConnection(string, string, string, string, AppServicePlansListWebAppsByHybridConnectionOptionalParams)

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

rebootWorker(string, string, string, AppServicePlansRebootWorkerOptionalParams)

Description for Reboot a worker machine in an App Service plan.

restartWebApps(string, string, AppServicePlansRestartWebAppsOptionalParams)

Description for Restart all apps in an App Service plan.

update(string, string, AppServicePlanPatchResource, AppServicePlansUpdateOptionalParams)

Description for Creates or updates an App Service Plan.

updateVnetGateway(string, string, string, string, VnetGateway, AppServicePlansUpdateVnetGatewayOptionalParams)

Description for Update a Virtual Network gateway.

updateVnetRoute(string, string, string, string, VnetRoute, AppServicePlansUpdateVnetRouteOptionalParams)

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

Method Details

beginCreateOrUpdate(string, string, AppServicePlan, AppServicePlansCreateOrUpdateOptionalParams)

Description for Creates or updates an App Service Plan.

function beginCreateOrUpdate(resourceGroupName: string, name: string, appServicePlan: AppServicePlan, options?: AppServicePlansCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AppServicePlan>, AppServicePlan>>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

appServicePlan
AppServicePlan

Details of the App Service plan.

options
AppServicePlansCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<AppServicePlan>, AppServicePlan>>

beginCreateOrUpdateAndWait(string, string, AppServicePlan, AppServicePlansCreateOrUpdateOptionalParams)

Description for Creates or updates an App Service Plan.

function beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, appServicePlan: AppServicePlan, options?: AppServicePlansCreateOrUpdateOptionalParams): Promise<AppServicePlan>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

appServicePlan
AppServicePlan

Details of the App Service plan.

options
AppServicePlansCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<AppServicePlan>

createOrUpdateVnetRoute(string, string, string, string, VnetRoute, AppServicePlansCreateOrUpdateVnetRouteOptionalParams)

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

function createOrUpdateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: VnetRoute, options?: AppServicePlansCreateOrUpdateVnetRouteOptionalParams): Promise<VnetRoute>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

vnetName

string

Name of the Virtual Network.

routeName

string

Name of the Virtual Network route.

route
VnetRoute

Definition of the Virtual Network route.

Returns

Promise<VnetRoute>

delete(string, string, AppServicePlansDeleteOptionalParams)

Description for Delete an App Service plan.

function delete(resourceGroupName: string, name: string, options?: AppServicePlansDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

options
AppServicePlansDeleteOptionalParams

The options parameters.

Returns

Promise<void>

deleteHybridConnection(string, string, string, string, AppServicePlansDeleteHybridConnectionOptionalParams)

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

function deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansDeleteHybridConnectionOptionalParams): Promise<void>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

namespaceName

string

Name of the Service Bus namespace.

relayName

string

Name of the Service Bus relay.

options
AppServicePlansDeleteHybridConnectionOptionalParams

The options parameters.

Returns

Promise<void>

deleteVnetRoute(string, string, string, string, AppServicePlansDeleteVnetRouteOptionalParams)

Description for Delete a Virtual Network route in an App Service plan.

function deleteVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: AppServicePlansDeleteVnetRouteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

vnetName

string

Name of the Virtual Network.

routeName

string

Name of the Virtual Network route.

options
AppServicePlansDeleteVnetRouteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, AppServicePlansGetOptionalParams)

Description for Get an App Service plan.

function get(resourceGroupName: string, name: string, options?: AppServicePlansGetOptionalParams): Promise<AppServicePlan>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

options
AppServicePlansGetOptionalParams

The options parameters.

Returns

Promise<AppServicePlan>

getHybridConnection(string, string, string, string, AppServicePlansGetHybridConnectionOptionalParams)

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

function getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansGetHybridConnectionOptionalParams): Promise<HybridConnection>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

namespaceName

string

Name of the Service Bus namespace.

relayName

string

Name of the Service Bus relay.

options
AppServicePlansGetHybridConnectionOptionalParams

The options parameters.

Returns

Promise<HybridConnection>

getHybridConnectionPlanLimit(string, string, AppServicePlansGetHybridConnectionPlanLimitOptionalParams)

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

function getHybridConnectionPlanLimit(resourceGroupName: string, name: string, options?: AppServicePlansGetHybridConnectionPlanLimitOptionalParams): Promise<HybridConnectionLimits>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

Returns

getRouteForVnet(string, string, string, string, AppServicePlansGetRouteForVnetOptionalParams)

Description for Get a Virtual Network route in an App Service plan.

function getRouteForVnet(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: AppServicePlansGetRouteForVnetOptionalParams): Promise<AppServicePlansGetRouteForVnetResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

vnetName

string

Name of the Virtual Network.

routeName

string

Name of the Virtual Network route.

options
AppServicePlansGetRouteForVnetOptionalParams

The options parameters.

Returns

getServerFarmSkus(string, string, AppServicePlansGetServerFarmSkusOptionalParams)

Description for Gets all selectable SKUs for a given App Service Plan

function getServerFarmSkus(resourceGroupName: string, name: string, options?: AppServicePlansGetServerFarmSkusOptionalParams): Promise<AppServicePlansGetServerFarmSkusResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of App Service Plan

options
AppServicePlansGetServerFarmSkusOptionalParams

The options parameters.

Returns

getVnetFromServerFarm(string, string, string, AppServicePlansGetVnetFromServerFarmOptionalParams)

Description for Get a Virtual Network associated with an App Service plan.

function getVnetFromServerFarm(resourceGroupName: string, name: string, vnetName: string, options?: AppServicePlansGetVnetFromServerFarmOptionalParams): Promise<VnetInfoResource>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

vnetName

string

Name of the Virtual Network.

options
AppServicePlansGetVnetFromServerFarmOptionalParams

The options parameters.

Returns

Promise<VnetInfoResource>

getVnetGateway(string, string, string, string, AppServicePlansGetVnetGatewayOptionalParams)

Description for Get a Virtual Network gateway.

function getVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, options?: AppServicePlansGetVnetGatewayOptionalParams): Promise<VnetGateway>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

vnetName

string

Name of the Virtual Network.

gatewayName

string

Name of the gateway. Only the 'primary' gateway is supported.

options
AppServicePlansGetVnetGatewayOptionalParams

The options parameters.

Returns

Promise<VnetGateway>

list(AppServicePlansListOptionalParams)

Description for Get all App Service plans for a subscription.

function list(options?: AppServicePlansListOptionalParams): PagedAsyncIterableIterator<AppServicePlan, AppServicePlan[], PageSettings>

Parameters

options
AppServicePlansListOptionalParams

The options parameters.

Returns

listByResourceGroup(string, AppServicePlansListByResourceGroupOptionalParams)

Description for Get all App Service plans in a resource group.

function listByResourceGroup(resourceGroupName: string, options?: AppServicePlansListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AppServicePlan, AppServicePlan[], PageSettings>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

options
AppServicePlansListByResourceGroupOptionalParams

The options parameters.

Returns

listCapabilities(string, string, AppServicePlansListCapabilitiesOptionalParams)

Description for List all capabilities of an App Service plan.

function listCapabilities(resourceGroupName: string, name: string, options?: AppServicePlansListCapabilitiesOptionalParams): Promise<AppServicePlansListCapabilitiesResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

options
AppServicePlansListCapabilitiesOptionalParams

The options parameters.

Returns

listHybridConnectionKeys(string, string, string, string, AppServicePlansListHybridConnectionKeysOptionalParams)

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

function listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansListHybridConnectionKeysOptionalParams): Promise<HybridConnectionKey>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

namespaceName

string

The name of the Service Bus namespace.

relayName

string

The name of the Service Bus relay.

Returns

listHybridConnections(string, string, AppServicePlansListHybridConnectionsOptionalParams)

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

function listHybridConnections(resourceGroupName: string, name: string, options?: AppServicePlansListHybridConnectionsOptionalParams): PagedAsyncIterableIterator<HybridConnection, HybridConnection[], PageSettings>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

options
AppServicePlansListHybridConnectionsOptionalParams

The options parameters.

Returns

listRoutesForVnet(string, string, string, AppServicePlansListRoutesForVnetOptionalParams)

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

function listRoutesForVnet(resourceGroupName: string, name: string, vnetName: string, options?: AppServicePlansListRoutesForVnetOptionalParams): Promise<AppServicePlansListRoutesForVnetResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

vnetName

string

Name of the Virtual Network.

options
AppServicePlansListRoutesForVnetOptionalParams

The options parameters.

Returns

listUsages(string, string, AppServicePlansListUsagesOptionalParams)

Description for Gets server farm usage information

function listUsages(resourceGroupName: string, name: string, options?: AppServicePlansListUsagesOptionalParams): PagedAsyncIterableIterator<CsmUsageQuota, CsmUsageQuota[], PageSettings>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of App Service Plan

options
AppServicePlansListUsagesOptionalParams

The options parameters.

Returns

listVnets(string, string, AppServicePlansListVnetsOptionalParams)

Description for Get all Virtual Networks associated with an App Service plan.

function listVnets(resourceGroupName: string, name: string, options?: AppServicePlansListVnetsOptionalParams): Promise<AppServicePlansListVnetsResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

options
AppServicePlansListVnetsOptionalParams

The options parameters.

Returns

listWebApps(string, string, AppServicePlansListWebAppsOptionalParams)

Description for Get all apps associated with an App Service plan.

function listWebApps(resourceGroupName: string, name: string, options?: AppServicePlansListWebAppsOptionalParams): PagedAsyncIterableIterator<Site, Site[], PageSettings>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

options
AppServicePlansListWebAppsOptionalParams

The options parameters.

Returns

listWebAppsByHybridConnection(string, string, string, string, AppServicePlansListWebAppsByHybridConnectionOptionalParams)

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

function listWebAppsByHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansListWebAppsByHybridConnectionOptionalParams): PagedAsyncIterableIterator<string, string[], PageSettings>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

namespaceName

string

Name of the Hybrid Connection namespace.

relayName

string

Name of the Hybrid Connection relay.

Returns

rebootWorker(string, string, string, AppServicePlansRebootWorkerOptionalParams)

Description for Reboot a worker machine in an App Service plan.

function rebootWorker(resourceGroupName: string, name: string, workerName: string, options?: AppServicePlansRebootWorkerOptionalParams): Promise<void>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

workerName

string

Name of worker machine, which typically starts with RD.

options
AppServicePlansRebootWorkerOptionalParams

The options parameters.

Returns

Promise<void>

restartWebApps(string, string, AppServicePlansRestartWebAppsOptionalParams)

Description for Restart all apps in an App Service plan.

function restartWebApps(resourceGroupName: string, name: string, options?: AppServicePlansRestartWebAppsOptionalParams): Promise<void>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

options
AppServicePlansRestartWebAppsOptionalParams

The options parameters.

Returns

Promise<void>

update(string, string, AppServicePlanPatchResource, AppServicePlansUpdateOptionalParams)

Description for Creates or updates an App Service Plan.

function update(resourceGroupName: string, name: string, appServicePlan: AppServicePlanPatchResource, options?: AppServicePlansUpdateOptionalParams): Promise<AppServicePlan>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

appServicePlan
AppServicePlanPatchResource

Details of the App Service plan.

options
AppServicePlansUpdateOptionalParams

The options parameters.

Returns

Promise<AppServicePlan>

updateVnetGateway(string, string, string, string, VnetGateway, AppServicePlansUpdateVnetGatewayOptionalParams)

Description for Update a Virtual Network gateway.

function updateVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: VnetGateway, options?: AppServicePlansUpdateVnetGatewayOptionalParams): Promise<VnetGateway>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

vnetName

string

Name of the Virtual Network.

gatewayName

string

Name of the gateway. Only the 'primary' gateway is supported.

connectionEnvelope
VnetGateway

Definition of the gateway.

options
AppServicePlansUpdateVnetGatewayOptionalParams

The options parameters.

Returns

Promise<VnetGateway>

updateVnetRoute(string, string, string, string, VnetRoute, AppServicePlansUpdateVnetRouteOptionalParams)

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

function updateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: VnetRoute, options?: AppServicePlansUpdateVnetRouteOptionalParams): Promise<VnetRoute>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

name

string

Name of the App Service plan.

vnetName

string

Name of the Virtual Network.

routeName

string

Name of the Virtual Network route.

route
VnetRoute

Definition of the Virtual Network route.

options
AppServicePlansUpdateVnetRouteOptionalParams

The options parameters.

Returns

Promise<VnetRoute>