AppServicePlans interface
代表 AppServicePlans 的介面。
方法
方法詳細資料
beginCreateOrUpdate(string, string, AppServicePlan, AppServicePlansCreateOrUpdateOptionalParams)
建立或更新 App Service 方案。
function beginCreateOrUpdate(resourceGroupName: string, name: string, appServicePlan: AppServicePlan, options?: AppServicePlansCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AppServicePlan>, AppServicePlan>>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- appServicePlan
- AppServicePlan
App Service 方案的詳細數據。
選項參數。
傳回
Promise<PollerLike<@azure/core-lro.PollOperationState<AppServicePlan>, AppServicePlan>>
beginCreateOrUpdateAndWait(string, string, AppServicePlan, AppServicePlansCreateOrUpdateOptionalParams)
建立或更新 App Service 方案。
function beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, appServicePlan: AppServicePlan, options?: AppServicePlansCreateOrUpdateOptionalParams): Promise<AppServicePlan>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- appServicePlan
- AppServicePlan
App Service 方案的詳細數據。
選項參數。
傳回
Promise<AppServicePlan>
createOrUpdateVnetRoute(string, string, string, string, VnetRoute, AppServicePlansCreateOrUpdateVnetRouteOptionalParams)
在 App Service 方案中建立或更新虛擬網路路由。
function createOrUpdateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: VnetRoute, options?: AppServicePlansCreateOrUpdateVnetRouteOptionalParams): Promise<VnetRoute>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- vnetName
-
string
虛擬網路的名稱。
- routeName
-
string
虛擬網路路由的名稱。
- route
- VnetRoute
虛擬網路路由的定義。
選項參數。
傳回
Promise<VnetRoute>
delete(string, string, AppServicePlansDeleteOptionalParams)
刪除 App Service 方案。
function delete(resourceGroupName: string, name: string, options?: AppServicePlansDeleteOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
選項參數。
傳回
Promise<void>
deleteHybridConnection(string, string, string, string, AppServicePlansDeleteHybridConnectionOptionalParams)
刪除 App Service 方案中使用的混合式連線。
function deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansDeleteHybridConnectionOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- namespaceName
-
string
服務總線命名空間的名稱。
- relayName
-
string
服務總線轉送的名稱。
選項參數。
傳回
Promise<void>
deleteVnetRoute(string, string, string, string, AppServicePlansDeleteVnetRouteOptionalParams)
刪除 App Service 方案中的虛擬網路路由。
function deleteVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: AppServicePlansDeleteVnetRouteOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- vnetName
-
string
虛擬網路的名稱。
- routeName
-
string
虛擬網路路由的名稱。
選項參數。
傳回
Promise<void>
get(string, string, AppServicePlansGetOptionalParams)
取得 App Service 方案。
function get(resourceGroupName: string, name: string, options?: AppServicePlansGetOptionalParams): Promise<AppServicePlan>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- options
- AppServicePlansGetOptionalParams
選項參數。
傳回
Promise<AppServicePlan>
getHybridConnection(string, string, string, string, AppServicePlansGetHybridConnectionOptionalParams)
擷取 App Service 方案中使用的混合式連線。
function getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansGetHybridConnectionOptionalParams): Promise<HybridConnection>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- namespaceName
-
string
服務總線命名空間的名稱。
- relayName
-
string
服務總線轉送的名稱。
選項參數。
傳回
Promise<HybridConnection>
getHybridConnectionPlanLimit(string, string, AppServicePlansGetHybridConnectionPlanLimitOptionalParams)
取得 App Service 方案中允許的混合式連線數目上限。
function getHybridConnectionPlanLimit(resourceGroupName: string, name: string, options?: AppServicePlansGetHybridConnectionPlanLimitOptionalParams): Promise<HybridConnectionLimits>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
傳回
Promise<HybridConnectionLimits>
getRouteForVnet(string, string, string, string, AppServicePlansGetRouteForVnetOptionalParams)
在 App Service 方案中取得虛擬網路路由。
function getRouteForVnet(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: AppServicePlansGetRouteForVnetOptionalParams): Promise<AppServicePlansGetRouteForVnetResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- vnetName
-
string
虛擬網路的名稱。
- routeName
-
string
虛擬網路路由的名稱。
選項參數。
傳回
getServerFarmSkus(string, string, AppServicePlansGetServerFarmSkusOptionalParams)
取得指定 App Service 方案的所有可選取 SKU
function getServerFarmSkus(resourceGroupName: string, name: string, options?: AppServicePlansGetServerFarmSkusOptionalParams): Promise<AppServicePlansGetServerFarmSkusResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱
選項參數。
傳回
getVnetFromServerFarm(string, string, string, AppServicePlansGetVnetFromServerFarmOptionalParams)
取得與 App Service 方案相關聯的虛擬網路。
function getVnetFromServerFarm(resourceGroupName: string, name: string, vnetName: string, options?: AppServicePlansGetVnetFromServerFarmOptionalParams): Promise<VnetInfo>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- vnetName
-
string
虛擬網路的名稱。
選項參數。
傳回
Promise<VnetInfo>
getVnetGateway(string, string, string, string, AppServicePlansGetVnetGatewayOptionalParams)
取得虛擬網路閘道。
function getVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, options?: AppServicePlansGetVnetGatewayOptionalParams): Promise<VnetGateway>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- vnetName
-
string
虛擬網路的名稱。
- gatewayName
-
string
閘道名稱。 僅支援「主要」閘道。
選項參數。
傳回
Promise<VnetGateway>
list(AppServicePlansListOptionalParams)
取得訂用帳戶的所有 App Service 方案。
function list(options?: AppServicePlansListOptionalParams): PagedAsyncIterableIterator<AppServicePlan, AppServicePlan[], PageSettings>
參數
選項參數。
傳回
listByResourceGroup(string, AppServicePlansListByResourceGroupOptionalParams)
取得資源群組中的所有App Service方案。
function listByResourceGroup(resourceGroupName: string, options?: AppServicePlansListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AppServicePlan, AppServicePlan[], PageSettings>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
選項參數。
傳回
listCapabilities(string, string, AppServicePlansListCapabilitiesOptionalParams)
列出 App Service 方案的所有功能。
function listCapabilities(resourceGroupName: string, name: string, options?: AppServicePlansListCapabilitiesOptionalParams): Promise<AppServicePlansListCapabilitiesResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
選項參數。
傳回
listHybridConnectionKeys(string, string, string, string, AppServicePlansListHybridConnectionKeysOptionalParams)
取得混合式連線的傳送金鑰名稱和值。
function listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansListHybridConnectionKeysOptionalParams): Promise<HybridConnectionKey>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- namespaceName
-
string
服務總線命名空間的名稱。
- relayName
-
string
服務總線轉送的名稱。
選項參數。
傳回
Promise<HybridConnectionKey>
listHybridConnections(string, string, AppServicePlansListHybridConnectionsOptionalParams)
擷取 App Service 方案中使用的所有混合式連線。
function listHybridConnections(resourceGroupName: string, name: string, options?: AppServicePlansListHybridConnectionsOptionalParams): PagedAsyncIterableIterator<HybridConnection, HybridConnection[], PageSettings>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
選項參數。
傳回
listMetricDefintions(string, string, AppServicePlansListMetricDefintionsOptionalParams)
取得可查詢 App Service 方案的計量及其定義。
function listMetricDefintions(resourceGroupName: string, name: string, options?: AppServicePlansListMetricDefintionsOptionalParams): PagedAsyncIterableIterator<ResourceMetricDefinition, ResourceMetricDefinition[], PageSettings>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
選項參數。
傳回
listMetrics(string, string, AppServicePlansListMetricsOptionalParams)
取得 App Service 方案的計量。
function listMetrics(resourceGroupName: string, name: string, options?: AppServicePlansListMetricsOptionalParams): PagedAsyncIterableIterator<ResourceMetric, ResourceMetric[], PageSettings>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
選項參數。
傳回
listRoutesForVnet(string, string, string, AppServicePlansListRoutesForVnetOptionalParams)
取得與 App Service 方案中虛擬網路相關聯的所有路由。
function listRoutesForVnet(resourceGroupName: string, name: string, vnetName: string, options?: AppServicePlansListRoutesForVnetOptionalParams): Promise<AppServicePlansListRoutesForVnetResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- vnetName
-
string
虛擬網路的名稱。
選項參數。
傳回
listUsages(string, string, AppServicePlansListUsagesOptionalParams)
取得伺服器陣列使用資訊
function listUsages(resourceGroupName: string, name: string, options?: AppServicePlansListUsagesOptionalParams): PagedAsyncIterableIterator<CsmUsageQuota, CsmUsageQuota[], PageSettings>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱
選項參數。
傳回
listVnets(string, string, AppServicePlansListVnetsOptionalParams)
取得與 App Service 方案相關聯的所有虛擬網路。
function listVnets(resourceGroupName: string, name: string, options?: AppServicePlansListVnetsOptionalParams): Promise<AppServicePlansListVnetsResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
選項參數。
傳回
Promise<AppServicePlansListVnetsResponse>
listWebApps(string, string, AppServicePlansListWebAppsOptionalParams)
取得與 App Service 方案相關聯的所有應用程式。
function listWebApps(resourceGroupName: string, name: string, options?: AppServicePlansListWebAppsOptionalParams): PagedAsyncIterableIterator<Site, Site[], PageSettings>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
選項參數。
傳回
listWebAppsByHybridConnection(string, string, string, string, AppServicePlansListWebAppsByHybridConnectionOptionalParams)
取得在 App Service 方案中使用混合式連線的所有應用程式。
function listWebAppsByHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansListWebAppsByHybridConnectionOptionalParams): PagedAsyncIterableIterator<string, string[], PageSettings>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- namespaceName
-
string
混合式連線命名空間的名稱。
- relayName
-
string
混合式連線轉送的名稱。
傳回
PagedAsyncIterableIterator<string, string[], PageSettings>
rebootWorker(string, string, string, AppServicePlansRebootWorkerOptionalParams)
在 App Service 方案中重新啟動背景工作電腦。
function rebootWorker(resourceGroupName: string, name: string, workerName: string, options?: AppServicePlansRebootWorkerOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- workerName
-
string
背景工作計算機的名稱,通常以 RD 開頭。
選項參數。
傳回
Promise<void>
restartWebApps(string, string, AppServicePlansRestartWebAppsOptionalParams)
重新啟動App Service 方案中的所有應用程式。
function restartWebApps(resourceGroupName: string, name: string, options?: AppServicePlansRestartWebAppsOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
選項參數。
傳回
Promise<void>
update(string, string, AppServicePlanPatchResource, AppServicePlansUpdateOptionalParams)
建立或更新 App Service 方案。
function update(resourceGroupName: string, name: string, appServicePlan: AppServicePlanPatchResource, options?: AppServicePlansUpdateOptionalParams): Promise<AppServicePlan>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- appServicePlan
- AppServicePlanPatchResource
App Service 方案的詳細數據。
選項參數。
傳回
Promise<AppServicePlan>
updateVnetGateway(string, string, string, string, VnetGateway, AppServicePlansUpdateVnetGatewayOptionalParams)
更新虛擬網路閘道。
function updateVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: VnetGateway, options?: AppServicePlansUpdateVnetGatewayOptionalParams): Promise<VnetGateway>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- vnetName
-
string
虛擬網路的名稱。
- gatewayName
-
string
閘道名稱。 僅支援「主要」閘道。
- connectionEnvelope
- VnetGateway
閘道的定義。
選項參數。
傳回
Promise<VnetGateway>
updateVnetRoute(string, string, string, string, VnetRoute, AppServicePlansUpdateVnetRouteOptionalParams)
在 App Service 方案中建立或更新虛擬網路路由。
function updateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: VnetRoute, options?: AppServicePlansUpdateVnetRouteOptionalParams): Promise<VnetRoute>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- name
-
string
App Service 方案的名稱。
- vnetName
-
string
虛擬網路的名稱。
- routeName
-
string
虛擬網路路由的名稱。
- route
- VnetRoute
虛擬網路路由的定義。
選項參數。
傳回
Promise<VnetRoute>