App Service Plans - Get
Beschrijving voor Een App Service-plan ophalen.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}?api-version=2024-04-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Naam van het App Service-plan. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Naam van de resourcegroep waartoe de resource behoort. |
subscription
|
path | True |
string |
Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 00000000-0000-0000-0000-000000000000000). |
api-version
|
query | True |
string |
API-versie |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK. |
|
404 Not Found |
Niet gevonden. |
|
Other Status Codes |
Foutreactie van App Service. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Get App Service plan
Voorbeeldaanvraag
Voorbeeldrespons
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141",
"name": "testsf6141",
"type": "Microsoft.Web/serverfarms",
"kind": "app",
"location": "East US",
"properties": {
"status": "Ready",
"maximumNumberOfWorkers": 20,
"numberOfWorkers": 19,
"geoRegion": "East US",
"numberOfSites": 4,
"isSpot": false,
"reserved": false,
"targetWorkerCount": 0,
"targetWorkerSizeId": 0,
"provisioningState": "Succeeded"
},
"sku": {
"name": "P1",
"tier": "Premium",
"size": "P1",
"family": "P",
"capacity": 1
}
}
Definities
Name | Description |
---|---|
App |
App Service-plan. |
Capability |
Beschrijft de mogelijkheden/functies die zijn toegestaan voor een specifieke SKU. |
Default |
Foutreactie van App Service. |
Details | |
Error |
Foutmodel. |
Extended |
Uitgebreide locatie. |
Hosting |
Specificatie voor een App Service-omgeving die voor deze resource moet worden gebruikt. |
Kube |
Specificatie voor een Kubernetes-omgeving die voor deze resource moet worden gebruikt. |
Provisioning |
Inrichtingsstatus van het App Service-plan. |
Sku |
Beschrijving van de schaalopties van het App Service-plan. |
Sku |
Beschrijving van een SKU voor een schaalbare resource. |
Status |
Status van App Service-plan. |
AppServicePlan
App Service-plan.
Name | Type | Default value | Description |
---|---|---|---|
extendedLocation |
Uitgebreide locatie. |
||
id |
string |
Resource-id. |
|
kind |
string |
Soort resource. Als de resource een app is, kunt u verwijzen naar https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference voor meer informatie over ondersteunde waarden voor soort. |
|
location |
string |
Resourcelocatie. |
|
name |
string |
Resourcenaam. |
|
properties.elasticScaleEnabled |
boolean |
ServerFarm ondersteunt ElasticScale. Apps in dit plan worden geschaald alsof de ServerFarm ElasticPremium-sku is |
|
properties.freeOfferExpirationTime |
string (date-time) |
Het tijdstip waarop de gratis aanbieding voor de serverfarm verloopt. |
|
properties.geoRegion |
string |
Geografische locatie voor het App Service-plan. |
|
properties.hostingEnvironmentProfile |
Specificatie voor de App Service-omgeving die moet worden gebruikt voor het App Service-plan. |
||
properties.hyperV |
boolean |
False |
Als Hyper-V Container App Service-plan |
properties.isSpot |
boolean |
Als |
|
properties.isXenon |
boolean |
False |
Verouderd: als Hyper-V Container App Service-plan |
properties.kubeEnvironmentProfile |
Specificatie voor de Kubernetes-omgeving die moet worden gebruikt voor het App Service-plan. |
||
properties.maximumElasticWorkerCount |
integer (int32) |
Maximum aantal toegestane werknemers voor dit ElasticScaleEnabled App Service-plan |
|
properties.maximumNumberOfWorkers |
integer (int32) |
Maximum aantal exemplaren dat kan worden toegewezen aan dit App Service-plan. |
|
properties.numberOfSites |
integer (int32) |
Het aantal apps dat is toegewezen aan dit App Service-plan. |
|
properties.numberOfWorkers |
integer (int32) |
Het aantal exemplaren dat is toegewezen aan dit App Service-plan. |
|
properties.perSiteScaling |
boolean |
False |
Als |
properties.provisioningState |
Inrichtingsstatus van het App Service-plan. |
||
properties.reserved |
boolean |
False |
Als het Linux App Service-plan |
properties.resourceGroup |
string |
Resourcegroep van het App Service-plan. |
|
properties.spotExpirationTime |
string (date-time) |
Het tijdstip waarop de serverfarm verloopt. Alleen geldig als het een spot-serverfarm is. |
|
properties.status |
Status van App Service-plan. |
||
properties.subscription |
string |
Abonnement op App Service-plan. |
|
properties.targetWorkerCount |
integer (int32) |
Het aantal werkrollen schalen. |
|
properties.targetWorkerSizeId |
integer (int32) |
Schaal van werkrolgrootte-id. |
|
properties.workerTierName |
string |
Doelwerklaag die is toegewezen aan het App Service-plan. |
|
properties.zoneRedundant |
boolean |
False |
Als |
sku |
Beschrijving van een SKU voor een schaalbare resource. |
||
tags |
object |
Resourcetags. |
|
type |
string |
Resourcetype. |
Capability
Beschrijft de mogelijkheden/functies die zijn toegestaan voor een specifieke SKU.
Name | Type | Description |
---|---|---|
name |
string |
Naam van de SKU-mogelijkheid. |
reason |
string |
Reden van de SKU-mogelijkheid. |
value |
string |
Waarde van de SKU-mogelijkheid. |
DefaultErrorResponse
Foutreactie van App Service.
Name | Type | Description |
---|---|---|
error |
Foutmodel. |
Details
Name | Type | Description |
---|---|---|
code |
string |
Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren. |
message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |
Error
Foutmodel.
Name | Type | Description |
---|---|---|
code |
string |
Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren. |
details |
Details[] |
Gedetailleerde fouten. |
innererror |
string |
Meer informatie over foutopsporing. |
message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |
ExtendedLocation
Uitgebreide locatie.
Name | Type | Description |
---|---|---|
name |
string |
Naam van uitgebreide locatie. |
type |
string |
Type uitgebreide locatie. |
HostingEnvironmentProfile
Specificatie voor een App Service-omgeving die voor deze resource moet worden gebruikt.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id van de App Service-omgeving. |
name |
string |
Naam van de App Service-omgeving. |
type |
string |
Resourcetype van de App Service-omgeving. |
KubeEnvironmentProfile
Specificatie voor een Kubernetes-omgeving die voor deze resource moet worden gebruikt.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id van de Kubernetes-omgeving. |
name |
string |
Naam van de Kubernetes-omgeving. |
type |
string |
Resourcetype van de Kubernetes-omgeving. |
ProvisioningState
Inrichtingsstatus van het App Service-plan.
Waarde | Description |
---|---|
Canceled | |
Deleting | |
Failed | |
InProgress | |
Succeeded |
SkuCapacity
Beschrijving van de schaalopties van het App Service-plan.
Name | Type | Description |
---|---|---|
default |
integer (int32) |
Het standaardaantal werkrollen voor deze App Service-plan-SKU. |
elasticMaximum |
integer (int32) |
Maximum aantal elastische werkrollen voor deze App Service-plan-SKU. |
maximum |
integer (int32) |
Maximum aantal werkrollen voor deze App Service-plan-SKU. |
minimum |
integer (int32) |
Minimaal aantal werkrollen voor deze App Service-plan-SKU. |
scaleType |
string |
Beschikbare schaalconfiguraties voor een App Service-plan. |
SkuDescription
Beschrijving van een SKU voor een schaalbare resource.
Name | Type | Description |
---|---|---|
capabilities |
Mogelijkheden van de SKU, bijvoorbeeld, is Traffic Manager ingeschakeld? |
|
capacity |
integer (int32) |
Het huidige aantal exemplaren dat is toegewezen aan de resource. |
family |
string |
Familiecode van de resource-SKU. |
locations |
string[] |
Locaties van de SKU. |
name |
string |
Naam van de resource-SKU. |
size |
string |
Grootteaanduiding van de resource-SKU. |
skuCapacity |
Minimale, maximale en standaardschaalwaarden van de SKU. |
|
tier |
string |
Servicelaag van de resource-SKU. |
StatusOptions
Status van App Service-plan.
Waarde | Description |
---|---|
Creating | |
Pending | |
Ready |