UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 169 kB
{"openapi":"3.0.0","info":{"title":"AppServicePlans API Client","version":"2018-02-01","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/web/resource-manager/Microsoft.Web/stable/2018-02-01/AppServicePlans.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"web-AppServicePlans","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/providers/Microsoft.Web/serverfarms":{"get":{"description":"Get all App Service plans for a subscription.","operationId":"AppServicePlans_List","parameters":[{"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.\n Retrieval of all properties may increase the API latency.","in":"query","name":"detailed","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Collection of App Service plans.","properties":{"nextLink":{"description":"Link to next page of resources.","readOnly":true,"type":"string"},"value":{"description":"Collection of resources.","items":{"allOf":[{"description":"Azure resource. This resource is tracked in Azure Resource Manager","properties":{"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"kind":{"description":"Kind of resource.","type":"string"},"location":{"description":"Resource Location.","type":"string"},"name":{"description":"Resource Name.","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true}],"description":"App Service plan.","properties":{"properties":{"description":"AppServicePlan resource specific properties","properties":{"freeOfferExpirationTime":{"description":"The time when the server farm free offer expires.","format":"date-time","type":"string"},"geoRegion":{"description":"Geographical location for the App Service plan.","readOnly":true,"type":"string"},"hostingEnvironmentProfile":{"description":"Specification for an App Service Environment to use for this resource.","properties":{"id":{"description":"Resource ID of the App Service Environment.","type":"string"},"name":{"description":"Name of the App Service Environment.","readOnly":true,"type":"string"},"type":{"description":"Resource type of the App Service Environment.","readOnly":true,"type":"string"}},"type":"object"},"hyperV":{"default":false,"description":"If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"isSpot":{"description":"If <code>true</code>, this App Service Plan owns spot instances.","type":"boolean"},"isXenon":{"default":false,"description":"Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"maximumElasticWorkerCount":{"description":"Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan","format":"int32","type":"integer"},"maximumNumberOfWorkers":{"description":"Maximum number of instances that can be assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"numberOfSites":{"description":"Number of apps assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"perSiteScaling":{"default":false,"description":"If <code>true</code>, apps assigned to this App Service plan can be scaled independently.\nIf <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.","type":"boolean"},"provisioningState":{"description":"Provisioning state of the App Service Environment.","enum":["Succeeded","Failed","Canceled","InProgress","Deleting"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"ProvisioningState"}},"reserved":{"default":false,"description":"If Linux app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"resourceGroup":{"description":"Resource group of the App Service plan.","readOnly":true,"type":"string"},"spotExpirationTime":{"description":"The time when the server farm expires. Valid only if it is a spot server farm.","format":"date-time","type":"string"},"status":{"description":"App Service plan status.","enum":["Ready","Pending","Creating"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"StatusOptions"}},"subscription":{"description":"App Service plan subscription.","readOnly":true,"type":"string"},"targetWorkerCount":{"description":"Scaling worker count.","format":"int32","type":"integer"},"targetWorkerSizeId":{"description":"Scaling worker size ID.","format":"int32","type":"integer"},"workerTierName":{"description":"Target worker tier assigned to the App Service plan.","type":"string"}},"x-ms-client-flatten":true},"sku":{"description":"Description of a SKU for a scalable resource.","properties":{"capabilities":{"description":"Capabilities of the SKU, e.g., is traffic manager enabled?","items":{"description":"Describes the capabilities/features allowed for a specific SKU.","properties":{"name":{"description":"Name of the SKU capability.","type":"string"},"reason":{"description":"Reason of the SKU capability.","type":"string"},"value":{"description":"Value of the SKU capability.","type":"string"}},"type":"object"},"type":"array"},"capacity":{"description":"Current number of instances assigned to the resource.","format":"int32","type":"integer"},"family":{"description":"Family code of the resource SKU.","type":"string"},"locations":{"description":"Locations of the SKU.","items":{"type":"string"},"type":"array"},"name":{"description":"Name of the resource SKU.","type":"string"},"size":{"description":"Size specifier of the resource SKU.","type":"string"},"skuCapacity":{"description":"Description of the App Service plan scale options.","properties":{"default":{"description":"Default number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"maximum":{"description":"Maximum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"minimum":{"description":"Minimum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"scaleType":{"description":"Available scale configurations for an App Service plan.","type":"string"}},"type":"object"},"tier":{"description":"Service tier of the resource SKU.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"}},"required":["value"],"type":"object"},"examples":{"List App Service plans":{"$ref":"#/components/examples/List_App_Service_plans"}}}}},"default":{"description":"App Service error response.","content":{"application/json":{"schema":{"description":"App Service error response.","properties":{"error":{"description":"Error model.","properties":{"code":{"description":"Standardized string to programmatically identify the error.","readOnly":true,"type":"string"},"details":{"items":{"description":"Detailed errors.","properties":{"code":{"description":"Standardized string to programmatically identify the error.","readOnly":true,"type":"string"},"message":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"},"target":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"}},"readOnly":true},"type":"array"},"innererror":{"description":"More information to debug error.","readOnly":true,"type":"string"},"message":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"},"target":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"}},"readOnly":true,"type":"object"}},"type":"object"}}}}},"summary":"Get all App Service plans for a subscription.","tags":["AppServicePlans"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms":{"get":{"description":"Get all App Service plans in a resource group.","operationId":"AppServicePlans_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Collection of App Service plans.","properties":{"nextLink":{"description":"Link to next page of resources.","readOnly":true,"type":"string"},"value":{"description":"Collection of resources.","items":{"allOf":[{"description":"Azure resource. This resource is tracked in Azure Resource Manager","properties":{"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"kind":{"description":"Kind of resource.","type":"string"},"location":{"description":"Resource Location.","type":"string"},"name":{"description":"Resource Name.","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true}],"description":"App Service plan.","properties":{"properties":{"description":"AppServicePlan resource specific properties","properties":{"freeOfferExpirationTime":{"description":"The time when the server farm free offer expires.","format":"date-time","type":"string"},"geoRegion":{"description":"Geographical location for the App Service plan.","readOnly":true,"type":"string"},"hostingEnvironmentProfile":{"description":"Specification for an App Service Environment to use for this resource.","properties":{"id":{"description":"Resource ID of the App Service Environment.","type":"string"},"name":{"description":"Name of the App Service Environment.","readOnly":true,"type":"string"},"type":{"description":"Resource type of the App Service Environment.","readOnly":true,"type":"string"}},"type":"object"},"hyperV":{"default":false,"description":"If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"isSpot":{"description":"If <code>true</code>, this App Service Plan owns spot instances.","type":"boolean"},"isXenon":{"default":false,"description":"Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"maximumElasticWorkerCount":{"description":"Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan","format":"int32","type":"integer"},"maximumNumberOfWorkers":{"description":"Maximum number of instances that can be assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"numberOfSites":{"description":"Number of apps assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"perSiteScaling":{"default":false,"description":"If <code>true</code>, apps assigned to this App Service plan can be scaled independently.\nIf <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.","type":"boolean"},"provisioningState":{"description":"Provisioning state of the App Service Environment.","enum":["Succeeded","Failed","Canceled","InProgress","Deleting"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"ProvisioningState"}},"reserved":{"default":false,"description":"If Linux app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"resourceGroup":{"description":"Resource group of the App Service plan.","readOnly":true,"type":"string"},"spotExpirationTime":{"description":"The time when the server farm expires. Valid only if it is a spot server farm.","format":"date-time","type":"string"},"status":{"description":"App Service plan status.","enum":["Ready","Pending","Creating"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"StatusOptions"}},"subscription":{"description":"App Service plan subscription.","readOnly":true,"type":"string"},"targetWorkerCount":{"description":"Scaling worker count.","format":"int32","type":"integer"},"targetWorkerSizeId":{"description":"Scaling worker size ID.","format":"int32","type":"integer"},"workerTierName":{"description":"Target worker tier assigned to the App Service plan.","type":"string"}},"x-ms-client-flatten":true},"sku":{"description":"Description of a SKU for a scalable resource.","properties":{"capabilities":{"description":"Capabilities of the SKU, e.g., is traffic manager enabled?","items":{"description":"Describes the capabilities/features allowed for a specific SKU.","properties":{"name":{"description":"Name of the SKU capability.","type":"string"},"reason":{"description":"Reason of the SKU capability.","type":"string"},"value":{"description":"Value of the SKU capability.","type":"string"}},"type":"object"},"type":"array"},"capacity":{"description":"Current number of instances assigned to the resource.","format":"int32","type":"integer"},"family":{"description":"Family code of the resource SKU.","type":"string"},"locations":{"description":"Locations of the SKU.","items":{"type":"string"},"type":"array"},"name":{"description":"Name of the resource SKU.","type":"string"},"size":{"description":"Size specifier of the resource SKU.","type":"string"},"skuCapacity":{"description":"Description of the App Service plan scale options.","properties":{"default":{"description":"Default number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"maximum":{"description":"Maximum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"minimum":{"description":"Minimum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"scaleType":{"description":"Available scale configurations for an App Service plan.","type":"string"}},"type":"object"},"tier":{"description":"Service tier of the resource SKU.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"}},"required":["value"],"type":"object"},"examples":{"List App Service plans by resource group":{"$ref":"#/components/examples/List_App_Service_plans_by_resource_group"}}}}},"default":{"description":"App Service error response.","content":{"application/json":{"schema":{"description":"App Service error response.","properties":{"error":{"description":"Error model.","properties":{"code":{"description":"Standardized string to programmatically identify the error.","readOnly":true,"type":"string"},"details":{"items":{"description":"Detailed errors.","properties":{"code":{"description":"Standardized string to programmatically identify the error.","readOnly":true,"type":"string"},"message":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"},"target":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"}},"readOnly":true},"type":"array"},"innererror":{"description":"More information to debug error.","readOnly":true,"type":"string"},"message":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"},"target":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"}},"readOnly":true,"type":"object"}},"type":"object"}}}}},"summary":"Get all App Service plans in a resource group.","tags":["AppServicePlans"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}":{"delete":{"description":"Delete an App Service plan.","operationId":"AppServicePlans_Delete","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"description":"Name of the App Service plan.","in":"path","name":"name","required":true,"schema":{"type":"string"},"examples":{"Delete App Service plan":{"value":"testsf6141"}}},{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK."},"204":{"description":"OK."}},"summary":"Delete an App Service plan.","tags":["AppServicePlans"]},"get":{"description":"Get an App Service plan.","operationId":"AppServicePlans_Get","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"description":"Name of the App Service plan.","in":"path","name":"name","required":true,"schema":{"type":"string"},"examples":{"Get App Service plan":{"value":"testsf6141"}}},{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"allOf":[{"description":"Azure resource. This resource is tracked in Azure Resource Manager","properties":{"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"kind":{"description":"Kind of resource.","type":"string"},"location":{"description":"Resource Location.","type":"string"},"name":{"description":"Resource Name.","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true}],"description":"App Service plan.","properties":{"properties":{"description":"AppServicePlan resource specific properties","properties":{"freeOfferExpirationTime":{"description":"The time when the server farm free offer expires.","format":"date-time","type":"string"},"geoRegion":{"description":"Geographical location for the App Service plan.","readOnly":true,"type":"string"},"hostingEnvironmentProfile":{"description":"Specification for an App Service Environment to use for this resource.","properties":{"id":{"description":"Resource ID of the App Service Environment.","type":"string"},"name":{"description":"Name of the App Service Environment.","readOnly":true,"type":"string"},"type":{"description":"Resource type of the App Service Environment.","readOnly":true,"type":"string"}},"type":"object"},"hyperV":{"default":false,"description":"If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"isSpot":{"description":"If <code>true</code>, this App Service Plan owns spot instances.","type":"boolean"},"isXenon":{"default":false,"description":"Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"maximumElasticWorkerCount":{"description":"Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan","format":"int32","type":"integer"},"maximumNumberOfWorkers":{"description":"Maximum number of instances that can be assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"numberOfSites":{"description":"Number of apps assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"perSiteScaling":{"default":false,"description":"If <code>true</code>, apps assigned to this App Service plan can be scaled independently.\nIf <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.","type":"boolean"},"provisioningState":{"description":"Provisioning state of the App Service Environment.","enum":["Succeeded","Failed","Canceled","InProgress","Deleting"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"ProvisioningState"}},"reserved":{"default":false,"description":"If Linux app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"resourceGroup":{"description":"Resource group of the App Service plan.","readOnly":true,"type":"string"},"spotExpirationTime":{"description":"The time when the server farm expires. Valid only if it is a spot server farm.","format":"date-time","type":"string"},"status":{"description":"App Service plan status.","enum":["Ready","Pending","Creating"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"StatusOptions"}},"subscription":{"description":"App Service plan subscription.","readOnly":true,"type":"string"},"targetWorkerCount":{"description":"Scaling worker count.","format":"int32","type":"integer"},"targetWorkerSizeId":{"description":"Scaling worker size ID.","format":"int32","type":"integer"},"workerTierName":{"description":"Target worker tier assigned to the App Service plan.","type":"string"}},"x-ms-client-flatten":true},"sku":{"description":"Description of a SKU for a scalable resource.","properties":{"capabilities":{"description":"Capabilities of the SKU, e.g., is traffic manager enabled?","items":{"description":"Describes the capabilities/features allowed for a specific SKU.","properties":{"name":{"description":"Name of the SKU capability.","type":"string"},"reason":{"description":"Reason of the SKU capability.","type":"string"},"value":{"description":"Value of the SKU capability.","type":"string"}},"type":"object"},"type":"array"},"capacity":{"description":"Current number of instances assigned to the resource.","format":"int32","type":"integer"},"family":{"description":"Family code of the resource SKU.","type":"string"},"locations":{"description":"Locations of the SKU.","items":{"type":"string"},"type":"array"},"name":{"description":"Name of the resource SKU.","type":"string"},"size":{"description":"Size specifier of the resource SKU.","type":"string"},"skuCapacity":{"description":"Description of the App Service plan scale options.","properties":{"default":{"description":"Default number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"maximum":{"description":"Maximum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"minimum":{"description":"Minimum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"scaleType":{"description":"Available scale configurations for an App Service plan.","type":"string"}},"type":"object"},"tier":{"description":"Service tier of the resource SKU.","type":"string"}},"type":"object"}},"type":"object"},"examples":{"Get App Service plan":{"$ref":"#/components/examples/Get_App_Service_plan"}}}}},"404":{"description":"Not found."}},"summary":"Get an App Service plan.","tags":["AppServicePlans"]},"patch":{"description":"Creates or updates an App Service Plan.","operationId":"AppServicePlans_Update","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"description":"Name of the App Service plan.","in":"path","name":"name","required":true,"schema":{"type":"string"},"examples":{"Patch Service plan":{"value":"testsf6141"}}},{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppServicePlanPatchResource"}}},"description":"Details of the App Service plan.","required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"allOf":[{"description":"Azure resource. This resource is tracked in Azure Resource Manager","properties":{"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"kind":{"description":"Kind of resource.","type":"string"},"location":{"description":"Resource Location.","type":"string"},"name":{"description":"Resource Name.","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true}],"description":"App Service plan.","properties":{"properties":{"description":"AppServicePlan resource specific properties","properties":{"freeOfferExpirationTime":{"description":"The time when the server farm free offer expires.","format":"date-time","type":"string"},"geoRegion":{"description":"Geographical location for the App Service plan.","readOnly":true,"type":"string"},"hostingEnvironmentProfile":{"description":"Specification for an App Service Environment to use for this resource.","properties":{"id":{"description":"Resource ID of the App Service Environment.","type":"string"},"name":{"description":"Name of the App Service Environment.","readOnly":true,"type":"string"},"type":{"description":"Resource type of the App Service Environment.","readOnly":true,"type":"string"}},"type":"object"},"hyperV":{"default":false,"description":"If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"isSpot":{"description":"If <code>true</code>, this App Service Plan owns spot instances.","type":"boolean"},"isXenon":{"default":false,"description":"Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"maximumElasticWorkerCount":{"description":"Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan","format":"int32","type":"integer"},"maximumNumberOfWorkers":{"description":"Maximum number of instances that can be assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"numberOfSites":{"description":"Number of apps assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"perSiteScaling":{"default":false,"description":"If <code>true</code>, apps assigned to this App Service plan can be scaled independently.\nIf <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.","type":"boolean"},"provisioningState":{"description":"Provisioning state of the App Service Environment.","enum":["Succeeded","Failed","Canceled","InProgress","Deleting"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"ProvisioningState"}},"reserved":{"default":false,"description":"If Linux app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"resourceGroup":{"description":"Resource group of the App Service plan.","readOnly":true,"type":"string"},"spotExpirationTime":{"description":"The time when the server farm expires. Valid only if it is a spot server farm.","format":"date-time","type":"string"},"status":{"description":"App Service plan status.","enum":["Ready","Pending","Creating"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"StatusOptions"}},"subscription":{"description":"App Service plan subscription.","readOnly":true,"type":"string"},"targetWorkerCount":{"description":"Scaling worker count.","format":"int32","type":"integer"},"targetWorkerSizeId":{"description":"Scaling worker size ID.","format":"int32","type":"integer"},"workerTierName":{"description":"Target worker tier assigned to the App Service plan.","type":"string"}},"x-ms-client-flatten":true},"sku":{"description":"Description of a SKU for a scalable resource.","properties":{"capabilities":{"description":"Capabilities of the SKU, e.g., is traffic manager enabled?","items":{"description":"Describes the capabilities/features allowed for a specific SKU.","properties":{"name":{"description":"Name of the SKU capability.","type":"string"},"reason":{"description":"Reason of the SKU capability.","type":"string"},"value":{"description":"Value of the SKU capability.","type":"string"}},"type":"object"},"type":"array"},"capacity":{"description":"Current number of instances assigned to the resource.","format":"int32","type":"integer"},"family":{"description":"Family code of the resource SKU.","type":"string"},"locations":{"description":"Locations of the SKU.","items":{"type":"string"},"type":"array"},"name":{"description":"Name of the resource SKU.","type":"string"},"size":{"description":"Size specifier of the resource SKU.","type":"string"},"skuCapacity":{"description":"Description of the App Service plan scale options.","properties":{"default":{"description":"Default number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"maximum":{"description":"Maximum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"minimum":{"description":"Minimum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"scaleType":{"description":"Available scale configurations for an App Service plan.","type":"string"}},"type":"object"},"tier":{"description":"Service tier of the resource SKU.","type":"string"}},"type":"object"}},"type":"object"},"examples":{"Patch Service plan":{"$ref":"#/components/examples/Patch_Service_plan"}}}}},"202":{"description":"Operation is in progress.","content":{"application/json":{"schema":{"allOf":[{"description":"Azure resource. This resource is tracked in Azure Resource Manager","properties":{"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"kind":{"description":"Kind of resource.","type":"string"},"location":{"description":"Resource Location.","type":"string"},"name":{"description":"Resource Name.","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true}],"description":"App Service plan.","properties":{"properties":{"description":"AppServicePlan resource specific properties","properties":{"freeOfferExpirationTime":{"description":"The time when the server farm free offer expires.","format":"date-time","type":"string"},"geoRegion":{"description":"Geographical location for the App Service plan.","readOnly":true,"type":"string"},"hostingEnvironmentProfile":{"description":"Specification for an App Service Environment to use for this resource.","properties":{"id":{"description":"Resource ID of the App Service Environment.","type":"string"},"name":{"description":"Name of the App Service Environment.","readOnly":true,"type":"string"},"type":{"description":"Resource type of the App Service Environment.","readOnly":true,"type":"string"}},"type":"object"},"hyperV":{"default":false,"description":"If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"isSpot":{"description":"If <code>true</code>, this App Service Plan owns spot instances.","type":"boolean"},"isXenon":{"default":false,"description":"Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"maximumElasticWorkerCount":{"description":"Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan","format":"int32","type":"integer"},"maximumNumberOfWorkers":{"description":"Maximum number of instances that can be assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"numberOfSites":{"description":"Number of apps assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"perSiteScaling":{"default":false,"description":"If <code>true</code>, apps assigned to this App Service plan can be scaled independently.\nIf <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.","type":"boolean"},"provisioningState":{"description":"Provisioning state of the App Service Environment.","enum":["Succeeded","Failed","Canceled","InProgress","Deleting"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"ProvisioningState"}},"reserved":{"default":false,"description":"If Linux app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"resourceGroup":{"description":"Resource group of the App Service plan.","readOnly":true,"type":"string"},"spotExpirationTime":{"description":"The time when the server farm expires. Valid only if it is a spot server farm.","format":"date-time","type":"string"},"status":{"description":"App Service plan status.","enum":["Ready","Pending","Creating"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"StatusOptions"}},"subscription":{"description":"App Service plan subscription.","readOnly":true,"type":"string"},"targetWorkerCount":{"description":"Scaling worker count.","format":"int32","type":"integer"},"targetWorkerSizeId":{"description":"Scaling worker size ID.","format":"int32","type":"integer"},"workerTierName":{"description":"Target worker tier assigned to the App Service plan.","type":"string"}},"x-ms-client-flatten":true},"sku":{"description":"Description of a SKU for a scalable resource.","properties":{"capabilities":{"description":"Capabilities of the SKU, e.g., is traffic manager enabled?","items":{"description":"Describes the capabilities/features allowed for a specific SKU.","properties":{"name":{"description":"Name of the SKU capability.","type":"string"},"reason":{"description":"Reason of the SKU capability.","type":"string"},"value":{"description":"Value of the SKU capability.","type":"string"}},"type":"object"},"type":"array"},"capacity":{"description":"Current number of instances assigned to the resource.","format":"int32","type":"integer"},"family":{"description":"Family code of the resource SKU.","type":"string"},"locations":{"description":"Locations of the SKU.","items":{"type":"string"},"type":"array"},"name":{"description":"Name of the resource SKU.","type":"string"},"size":{"description":"Size specifier of the resource SKU.","type":"string"},"skuCapacity":{"description":"Description of the App Service plan scale options.","properties":{"default":{"description":"Default number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"maximum":{"description":"Maximum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"minimum":{"description":"Minimum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"scaleType":{"description":"Available scale configurations for an App Service plan.","type":"string"}},"type":"object"},"tier":{"description":"Service tier of the resource SKU.","type":"string"}},"type":"object"}},"type":"object"},"examples":{"Patch Service plan":{"$ref":"#/components/examples/Patch_Service_plan"}}}}},"default":{"description":"App Service error response.","content":{"application/json":{"schema":{"description":"App Service error response.","properties":{"error":{"description":"Error model.","properties":{"code":{"description":"Standardized string to programmatically identify the error.","readOnly":true,"type":"string"},"details":{"items":{"description":"Detailed errors.","properties":{"code":{"description":"Standardized string to programmatically identify the error.","readOnly":true,"type":"string"},"message":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"},"target":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"}},"readOnly":true},"type":"array"},"innererror":{"description":"More information to debug error.","readOnly":true,"type":"string"},"message":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"},"target":{"description":"Detailed error description and debugging information.","readOnly":true,"type":"string"}},"readOnly":true,"type":"object"}},"type":"object"}}}}},"summary":"Creates or updates an App Service Plan.","tags":["AppServicePlans"]},"put":{"description":"Creates or updates an App Service Plan.","operationId":"AppServicePlans_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"description":"Name of the App Service plan.","in":"path","name":"name","required":true,"schema":{"type":"string"},"examples":{"Create Or Update App Service plan":{"value":"testsf6141"}}},{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"description":"Azure resource. This resource is tracked in Azure Resource Manager","properties":{"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"kind":{"description":"Kind of resource.","type":"string"},"location":{"description":"Resource Location.","type":"string"},"name":{"description":"Resource Name.","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true}],"description":"App Service plan.","properties":{"properties":{"description":"AppServicePlan resource specific properties","properties":{"freeOfferExpirationTime":{"description":"The time when the server farm free offer expires.","format":"date-time","type":"string"},"geoRegion":{"description":"Geographical location for the App Service plan.","readOnly":true,"type":"string"},"hostingEnvironmentProfile":{"description":"Specification for an App Service Environment to use for this resource.","properties":{"id":{"description":"Resource ID of the App Service Environment.","type":"string"},"name":{"description":"Name of the App Service Environment.","readOnly":true,"type":"string"},"type":{"description":"Resource type of the App Service Environment.","readOnly":true,"type":"string"}},"type":"object"},"hyperV":{"default":false,"description":"If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"isSpot":{"description":"If <code>true</code>, this App Service Plan owns spot instances.","type":"boolean"},"isXenon":{"default":false,"description":"Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"maximumElasticWorkerCount":{"description":"Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan","format":"int32","type":"integer"},"maximumNumberOfWorkers":{"description":"Maximum number of instances that can be assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"numberOfSites":{"description":"Number of apps assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"perSiteScaling":{"default":false,"description":"If <code>true</code>, apps assigned to this App Service plan can be scaled independently.\nIf <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.","type":"boolean"},"provisioningState":{"description":"Provisioning state of the App Service Environment.","enum":["Succeeded","Failed","Canceled","InProgress","Deleting"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"ProvisioningState"}},"reserved":{"default":false,"description":"If Linux app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"resourceGroup":{"description":"Resource group of the App Service plan.","readOnly":true,"type":"string"},"spotExpirationTime":{"description":"The time when the server farm expires. Valid only if it is a spot server farm.","format":"date-time","type":"string"},"status":{"description":"App Service plan status.","enum":["Ready","Pending","Creating"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"StatusOptions"}},"subscription":{"description":"App Service plan subscription.","readOnly":true,"type":"string"},"targetWorkerCount":{"description":"Scaling worker count.","format":"int32","type":"integer"},"targetWorkerSizeId":{"description":"Scaling worker size ID.","format":"int32","type":"integer"},"workerTierName":{"description":"Target worker tier assigned to the App Service plan.","type":"string"}},"x-ms-client-flatten":true},"sku":{"description":"Description of a SKU for a scalable resource.","properties":{"capabilities":{"description":"Capabilities of the SKU, e.g., is traffic manager enabled?","items":{"description":"Describes the capabilities/features allowed for a specific SKU.","properties":{"name":{"description":"Name of the SKU capability.","type":"string"},"reason":{"description":"Reason of the SKU capability.","type":"string"},"value":{"description":"Value of the SKU capability.","type":"string"}},"type":"object"},"type":"array"},"capacity":{"description":"Current number of instances assigned to the resource.","format":"int32","type":"integer"},"family":{"description":"Family code of the resource SKU.","type":"string"},"locations":{"description":"Locations of the SKU.","items":{"type":"string"},"type":"array"},"name":{"description":"Name of the resource SKU.","type":"string"},"size":{"description":"Size specifier of the resource SKU.","type":"string"},"skuCapacity":{"description":"Description of the App Service plan scale options.","properties":{"default":{"description":"Default number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"maximum":{"description":"Maximum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"minimum":{"description":"Minimum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"scaleType":{"description":"Available scale configurations for an App Service plan.","type":"string"}},"type":"object"},"tier":{"description":"Service tier of the resource SKU.","type":"string"}},"type":"object"}},"type":"object"}}},"description":"Details of the App Service plan.","required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"allOf":[{"description":"Azure resource. This resource is tracked in Azure Resource Manager","properties":{"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"kind":{"description":"Kind of resource.","type":"string"},"location":{"description":"Resource Location.","type":"string"},"name":{"description":"Resource Name.","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true}],"description":"App Service plan.","properties":{"properties":{"description":"AppServicePlan resource specific properties","properties":{"freeOfferExpirationTime":{"description":"The time when the server farm free offer expires.","format":"date-time","type":"string"},"geoRegion":{"description":"Geographical location for the App Service plan.","readOnly":true,"type":"string"},"hostingEnvironmentProfile":{"description":"Specification for an App Service Environment to use for this resource.","properties":{"id":{"description":"Resource ID of the App Service Environment.","type":"string"},"name":{"description":"Name of the App Service Environment.","readOnly":true,"type":"string"},"type":{"description":"Resource type of the App Service Environment.","readOnly":true,"type":"string"}},"type":"object"},"hyperV":{"default":false,"description":"If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"isSpot":{"description":"If <code>true</code>, this App Service Plan owns spot instances.","type":"boolean"},"isXenon":{"default":false,"description":"Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"maximumElasticWorkerCount":{"description":"Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan","format":"int32","type":"integer"},"maximumNumberOfWorkers":{"description":"Maximum number of instances that can be assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"numberOfSites":{"description":"Number of apps assigned to this App Service plan.","format":"int32","readOnly":true,"type":"integer"},"perSiteScaling":{"default":false,"description":"If <code>true</code>, apps assigned to this App Service plan can be scaled independently.\nIf <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.","type":"boolean"},"provisioningState":{"description":"Provisioning state of the App Service Environment.","enum":["Succeeded","Failed","Canceled","InProgress","Deleting"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"ProvisioningState"}},"reserved":{"default":false,"description":"If Linux app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["create","read"]},"resourceGroup":{"description":"Resource group of the App Service plan.","readOnly":true,"type":"string"},"spotExpirationTime":{"description":"The time when the server farm expires. Valid only if it is a spot server farm.","format":"date-time","type":"string"},"status":{"description":"App Service plan status.","enum":["Ready","Pending","Creating"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"StatusOptions"}},"subscription":{"description":"App Service plan subscription.","readOnly":true,"type":"string"},"targetWorkerCount":{"description":"Scaling worker count.","format":"int32","type":"integer"},"targetWorkerSizeId":{"description":"Scaling worker size ID.","format":"int32","type":"integer"},"workerTierName":{"description":"Target worker tier assigned to the App Service plan.","type":"string"}},"x-ms-client-flatten":true},"sku":{"description":"Description of a SKU for a scalable resource.","properties":{"capabilities":{"description":"Capabilities of the SKU, e.g., is traffic manager enabled?","items":{"description":"Describes the capabilities/features allowed for a specific SKU.","properties":{"name":{"description":"Name of the SKU capability.","type":"string"},"reason":{"description":"Reason of the SKU capability.","type":"string"},"value":{"description":"Value of the SKU capability.","type":"string"}},"type":"object"},"type":"array"},"capacity":{"description":"Current number of instances assigned to the resource.","format":"int32","type":"integer"},"family":{"description":"Family code of the resource SKU.","type":"string"},"locations":{"description":"Locations of the SKU.","items":{"type":"string"},"type":"array"},"name":{"description":"Name of the resource SKU.","type":"string"},"size":{"description":"Size specifier of the resource SKU.","type":"string"},"skuCapacity":{"description":"Description of the App Service plan scale options.","properties":{"default":{"description":"Default number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"maximum":{"description":"Maximum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"minimum":{"description":"Minimum number of workers for this App Service plan SKU.","format":"int32","type":"integer"},"scaleType":{"description":"Available scale configurations for an App Service plan.","type":"string"}},"type":"object"},"tier":{"description":"Service tier of the resource SKU.","type":"string"}},"type":"object"}},"type":"object"},"examples":{"Create Or Update App Service plan":{"$ref":"#/components/examples/Create_Or_Update_App_Service_plan"}}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"allOf":[{"description":"Azure resource. This resource is tracked in Azure Resource Manager","properties":{"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"kind":{"description":"Kind of resource.","type":"string"},"location":{"description":"Resource Location.","type":"string"},"name":{"description":"Resource Name.","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true}],"description":"App Service plan.","properties":{"properties":{"description":"AppServicePlan resource specific properties","properties":{"freeOfferExpirationTime":{"description":"The time when the server farm free offer expires.","format":"date-time","type":"string"},"geoRegion":{"description":"Geographical location for the App Service plan.","readOnly":true,"type":"string"},"hostingEnvironmentProfile":{"description":"Specification for an App Service Environment to use for this resource.","properties":{"id":{"description":"Resource ID of the App Service Environment.","type":"string"},"name":{"description":"Name of the App Service Environment.","readOnly":true,"type":"string"},"type":{"description":"Resource type of the App Service Environment.","readOnly":true,"type":"string"}},"type":"object"},"hyperV":{"default":false,"description":"If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.","type":"boolean","x-ms-mutability":["crea