你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
App Service Environments - List Web Worker Usages
Description for Get usage metrics for a worker pool of an App Service Environment.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/usages?api-version=2023-12-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Name of the App Service Environment. |
resource
|
path | True |
string |
Name of the resource group to which the resource belongs. Regex pattern: |
subscription
|
path | True |
string |
Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). |
worker
|
path | True |
string |
Name of the worker pool. |
api-version
|
query | True |
string |
API Version |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
App Service error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get usage metrics for a worker pool of an App Service Environment.
Sample Request
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/usages?api-version=2023-12-01
Sample Response
{
"value": [],
"nextLink": null
}
Definitions
Name | Description |
---|---|
Compute |
Shared/dedicated workers. |
Default |
App Service error response. |
Details | |
Error |
Error model. |
Usage |
Usage of the quota resource. |
Usage |
Collection of usages. |
ComputeModeOptions
Shared/dedicated workers.
Name | Type | Description |
---|---|---|
Dedicated |
string |
|
Dynamic |
string |
|
Shared |
string |
DefaultErrorResponse
App Service error response.
Name | Type | Description |
---|---|---|
error |
Error model. |
Details
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
Error
Error model.
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
details |
Details[] |
Detailed errors. |
innererror |
string |
More information to debug error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
Usage
Usage of the quota resource.
Name | Type | Description |
---|---|---|
id |
string |
Resource Id. |
kind |
string |
Kind of resource. |
name |
string |
Resource Name. |
properties.computeMode |
Compute mode used for this usage. |
|
properties.currentValue |
integer |
The current value of the resource counter. |
properties.displayName |
string |
Friendly name shown in the UI. |
properties.limit |
integer |
The resource limit. |
properties.nextResetTime |
string |
Next reset time for the resource counter. |
properties.resourceName |
string |
Name of the quota resource. |
properties.siteMode |
string |
Site mode used for this usage. |
properties.unit |
string |
Units of measurement for the quota resource. |
type |
string |
Resource type. |
UsageCollection
Collection of usages.
Name | Type | Description |
---|---|---|
nextLink |
string |
Link to next page of resources. |
value |
Usage[] |
Collection of resources. |