Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
- Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in this example.
- Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
PUT https://management.azure.com/{scope}/providers/Microsoft.Quota/quotas/{resourceName}?api-version=2023-02-01
URI Parameters
Name |
In |
Required |
Type |
Description |
resourceName
|
path |
True
|
string
|
Resource name for a given resource provider. For example:
- SKU name for Microsoft.Compute
- SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices
For Microsoft.Network PublicIPAddresses.
|
scope
|
path |
True
|
string
|
The target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/ . This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas , then it's the target Azure resource URI in the GET operation for the specific resource.
|
api-version
|
query |
True
|
string
|
The API version to use for this operation.
|
Request Body
Name |
Type |
Description |
properties
|
QuotaProperties
|
Quota properties for the specified resource, based on the API called, Quotas or Usages.
|
Responses
Name |
Type |
Description |
200 OK
|
CurrentQuotaLimitBase
|
OK. Returns the quota request details.
|
202 Accepted
|
|
The request is accepted and is being processed. To check the status for this request, use the value for the quota request ID id obtained in the response of a Quota Request Status GET operation.
|
Other Status Codes
|
ExceptionResponse
|
Error response describing why the operation failed.
|
Security
azure_auth
Azure Active Directory OAuth 2.0 authorization
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name |
Description |
user_impersonation
|
Impersonate your user account.
|
Examples
Quotas_Put_Request_ForCompute
Sample Request
PUT https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotas/standardFSv2Family?api-version=2023-02-01
{
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"name": {
"value": "standardFSv2Family"
}
}
}
import com.azure.resourcemanager.quota.models.LimitObject;
import com.azure.resourcemanager.quota.models.QuotaProperties;
import com.azure.resourcemanager.quota.models.ResourceName;
/** Samples for Quota CreateOrUpdate. */
public final class Main {
/*
* x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putComputeOneSkuQuotaRequest.json
*/
/**
* Sample code: Quotas_Put_Request_ForCompute.
*
* @param manager Entry point to QuotaManager.
*/
public static void quotasPutRequestForCompute(com.azure.resourcemanager.quota.QuotaManager manager) {
manager
.quotas()
.define("standardFSv2Family")
.withExistingScope(
"subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus")
.withProperties(
new QuotaProperties()
.withLimit(new LimitObject().withValue(10))
.withName(new ResourceName().withValue("standardFSv2Family")))
.create();
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.quota import QuotaMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-quota
# USAGE
python put_compute_one_sku_quota_request.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = QuotaMgmtClient(
credential=DefaultAzureCredential(),
)
response = client.quota.begin_create_or_update(
resource_name="standardFSv2Family",
scope="subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus",
create_quota_request={
"properties": {
"limit": {"limitObjectType": "LimitValue", "value": 10},
"name": {"value": "standardFSv2Family"},
}
},
).result()
print(response)
# x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putComputeOneSkuQuotaRequest.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armquota_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putComputeOneSkuQuotaRequest.json
func ExampleClient_BeginCreateOrUpdate_quotasPutRequestForCompute() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armquota.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClient().BeginCreateOrUpdate(ctx, "standardFSv2Family", "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus", armquota.CurrentQuotaLimitBase{
Properties: &armquota.Properties{
Name: &armquota.ResourceName{
Value: to.Ptr("standardFSv2Family"),
},
Limit: &armquota.LimitObject{
LimitObjectType: to.Ptr(armquota.LimitTypeLimitValue),
Value: to.Ptr[int32](10),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CurrentQuotaLimitBase = armquota.CurrentQuotaLimitBase{
// Name: to.Ptr("standardFSv2Family"),
// Type: to.Ptr("Microsoft.Quota/quotas"),
// ID: to.Ptr("/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotas/standardFSv2Family"),
// Properties: &armquota.Properties{
// Name: &armquota.ResourceName{
// Value: to.Ptr("standardFSv2Family"),
// },
// Limit: &armquota.LimitObject{
// LimitObjectType: to.Ptr(armquota.LimitTypeLimitValue),
// Value: to.Ptr[int32](10),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AzureQuotaExtensionAPI } = require("@azure/arm-quota");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).
2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
*
* @summary Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).
2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
* x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putComputeOneSkuQuotaRequest.json
*/
async function quotasPutRequestForCompute() {
const resourceName = "standardFSv2Family";
const scope =
"subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus";
const createQuotaRequest = {
properties: {
name: { value: "standardFSv2Family" },
limit: { limitObjectType: "LimitValue", value: 10 },
},
};
const credential = new DefaultAzureCredential();
const client = new AzureQuotaExtensionAPI(credential);
const result = await client.quota.beginCreateOrUpdateAndWait(
resourceName,
scope,
createQuotaRequest
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.Quota;
using Azure.ResourceManager.Quota.Models;
// Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putComputeOneSkuQuotaRequest.json
// this example is just showing the usage of "Quota_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this ArmResource created on azure
// for more information of creating ArmResource, please refer to the document of ArmResource
// get the collection of this CurrentQuotaLimitBaseResource
string scope = "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus";
ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope));
CurrentQuotaLimitBaseCollection collection = client.GetCurrentQuotaLimitBases(scopeId);
// invoke the operation
string resourceName = "standardFSv2Family";
CurrentQuotaLimitBaseData data = new CurrentQuotaLimitBaseData()
{
Properties = new QuotaProperties()
{
Limit = new QuotaLimitObject(10),
Name = new QuotaRequestResourceName()
{
Value = "standardFSv2Family",
},
},
};
ArmOperation<CurrentQuotaLimitBaseResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, resourceName, data);
CurrentQuotaLimitBaseResource result = lro.Value;
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
CurrentQuotaLimitBaseData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample Response
Retry-After: 30
location: https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2023-02-01
location: https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2023-02-01
{
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotas/standardFSv2Family",
"type": "Microsoft.Quota/quotas",
"name": "standardFSv2Family",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"name": {
"value": "standardFSv2Family"
}
}
}
Quotas_PutRequest_ForNetwork
Sample Request
PUT https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotas/MinPublicIpInterNetworkPrefixLength?api-version=2023-02-01
{
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"name": {
"value": "MinPublicIpInterNetworkPrefixLength"
},
"resourceType": "MinPublicIpInterNetworkPrefixLength"
}
}
import com.azure.resourcemanager.quota.models.LimitObject;
import com.azure.resourcemanager.quota.models.QuotaProperties;
import com.azure.resourcemanager.quota.models.ResourceName;
/** Samples for Quota CreateOrUpdate. */
public final class Main {
/*
* x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequest.json
*/
/**
* Sample code: Quotas_PutRequest_ForNetwork.
*
* @param manager Entry point to QuotaManager.
*/
public static void quotasPutRequestForNetwork(com.azure.resourcemanager.quota.QuotaManager manager) {
manager
.quotas()
.define("MinPublicIpInterNetworkPrefixLength")
.withExistingScope(
"subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus")
.withProperties(
new QuotaProperties()
.withLimit(new LimitObject().withValue(10))
.withName(new ResourceName().withValue("MinPublicIpInterNetworkPrefixLength"))
.withResourceType("MinPublicIpInterNetworkPrefixLength"))
.create();
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.quota import QuotaMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-quota
# USAGE
python put_network_one_sku_quota_request.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = QuotaMgmtClient(
credential=DefaultAzureCredential(),
)
response = client.quota.begin_create_or_update(
resource_name="MinPublicIpInterNetworkPrefixLength",
scope="subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus",
create_quota_request={
"properties": {
"limit": {"limitObjectType": "LimitValue", "value": 10},
"name": {"value": "MinPublicIpInterNetworkPrefixLength"},
"resourceType": "MinPublicIpInterNetworkPrefixLength",
}
},
).result()
print(response)
# x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequest.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armquota_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequest.json
func ExampleClient_BeginCreateOrUpdate_quotasPutRequestForNetwork() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armquota.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClient().BeginCreateOrUpdate(ctx, "MinPublicIpInterNetworkPrefixLength", "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus", armquota.CurrentQuotaLimitBase{
Properties: &armquota.Properties{
Name: &armquota.ResourceName{
Value: to.Ptr("MinPublicIpInterNetworkPrefixLength"),
},
Limit: &armquota.LimitObject{
LimitObjectType: to.Ptr(armquota.LimitTypeLimitValue),
Value: to.Ptr[int32](10),
},
ResourceType: to.Ptr("MinPublicIpInterNetworkPrefixLength"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CurrentQuotaLimitBase = armquota.CurrentQuotaLimitBase{
// Name: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Type: to.Ptr("Microsoft.Quota/quotas"),
// ID: to.Ptr("/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Properties: &armquota.Properties{
// Name: &armquota.ResourceName{
// Value: to.Ptr("MinPublicIpInterNetworkPrefixLength"),
// },
// Limit: &armquota.LimitObject{
// LimitObjectType: to.Ptr(armquota.LimitTypeLimitValue),
// Value: to.Ptr[int32](10),
// },
// ResourceType: to.Ptr("MinPublicIpInterNetworkPrefixLength"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AzureQuotaExtensionAPI } = require("@azure/arm-quota");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).
2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
*
* @summary Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).
2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
* x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequest.json
*/
async function quotasPutRequestForNetwork() {
const resourceName = "MinPublicIpInterNetworkPrefixLength";
const scope =
"subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus";
const createQuotaRequest = {
properties: {
name: { value: "MinPublicIpInterNetworkPrefixLength" },
limit: { limitObjectType: "LimitValue", value: 10 },
resourceType: "MinPublicIpInterNetworkPrefixLength",
},
};
const credential = new DefaultAzureCredential();
const client = new AzureQuotaExtensionAPI(credential);
const result = await client.quota.beginCreateOrUpdateAndWait(
resourceName,
scope,
createQuotaRequest
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.Quota;
using Azure.ResourceManager.Quota.Models;
// Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequest.json
// this example is just showing the usage of "Quota_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this ArmResource created on azure
// for more information of creating ArmResource, please refer to the document of ArmResource
// get the collection of this CurrentQuotaLimitBaseResource
string scope = "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus";
ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope));
CurrentQuotaLimitBaseCollection collection = client.GetCurrentQuotaLimitBases(scopeId);
// invoke the operation
string resourceName = "MinPublicIpInterNetworkPrefixLength";
CurrentQuotaLimitBaseData data = new CurrentQuotaLimitBaseData()
{
Properties = new QuotaProperties()
{
Limit = new QuotaLimitObject(10),
Name = new QuotaRequestResourceName()
{
Value = "MinPublicIpInterNetworkPrefixLength",
},
ResourceTypeName = "MinPublicIpInterNetworkPrefixLength",
},
};
ArmOperation<CurrentQuotaLimitBaseResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, resourceName, data);
CurrentQuotaLimitBaseResource result = lro.Value;
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
CurrentQuotaLimitBaseData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample Response
Retry-After: 30
location: https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2023-02-01
location: https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2023-02-01
{
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Quota/quotas",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"name": {
"value": "MinPublicIpInterNetworkPrefixLength"
},
"resourceType": "MinPublicIpInterNetworkPrefixLength"
}
}
Quotas_PutRequest_ForNetwork_StandardSkuPublicIpAddressesResource
Sample Request
PUT https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotas/StandardSkuPublicIpAddresses?api-version=2023-02-01
{
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"name": {
"value": "StandardSkuPublicIpAddresses"
},
"resourceType": "PublicIpAddresses"
}
}
import com.azure.resourcemanager.quota.models.LimitObject;
import com.azure.resourcemanager.quota.models.QuotaProperties;
import com.azure.resourcemanager.quota.models.ResourceName;
/** Samples for Quota CreateOrUpdate. */
public final class Main {
/*
* x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json
*/
/**
* Sample code: Quotas_PutRequest_ForNetwork_StandardSkuPublicIpAddressesResource.
*
* @param manager Entry point to QuotaManager.
*/
public static void quotasPutRequestForNetworkStandardSkuPublicIpAddressesResource(
com.azure.resourcemanager.quota.QuotaManager manager) {
manager
.quotas()
.define("StandardSkuPublicIpAddresses")
.withExistingScope(
"subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus")
.withProperties(
new QuotaProperties()
.withLimit(new LimitObject().withValue(10))
.withName(new ResourceName().withValue("StandardSkuPublicIpAddresses"))
.withResourceType("PublicIpAddresses"))
.create();
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.quota import QuotaMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-quota
# USAGE
python put_network_one_sku_quota_request_standard_sku_public_ip_addresses.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = QuotaMgmtClient(
credential=DefaultAzureCredential(),
)
response = client.quota.begin_create_or_update(
resource_name="StandardSkuPublicIpAddresses",
scope="subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus",
create_quota_request={
"properties": {
"limit": {"limitObjectType": "LimitValue", "value": 10},
"name": {"value": "StandardSkuPublicIpAddresses"},
"resourceType": "PublicIpAddresses",
}
},
).result()
print(response)
# x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armquota_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json
func ExampleClient_BeginCreateOrUpdate_quotasPutRequestForNetworkStandardSkuPublicIpAddressesResource() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armquota.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClient().BeginCreateOrUpdate(ctx, "StandardSkuPublicIpAddresses", "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus", armquota.CurrentQuotaLimitBase{
Properties: &armquota.Properties{
Name: &armquota.ResourceName{
Value: to.Ptr("StandardSkuPublicIpAddresses"),
},
Limit: &armquota.LimitObject{
LimitObjectType: to.Ptr(armquota.LimitTypeLimitValue),
Value: to.Ptr[int32](10),
},
ResourceType: to.Ptr("PublicIpAddresses"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CurrentQuotaLimitBase = armquota.CurrentQuotaLimitBase{
// Name: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Type: to.Ptr("Microsoft.Quota/quotas"),
// ID: to.Ptr("/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Properties: &armquota.Properties{
// Name: &armquota.ResourceName{
// Value: to.Ptr("StandardSkuPublicIpAddresses"),
// },
// Limit: &armquota.LimitObject{
// LimitObjectType: to.Ptr(armquota.LimitTypeLimitValue),
// Value: to.Ptr[int32](10),
// },
// ResourceType: to.Ptr("PublicIpAddresses"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AzureQuotaExtensionAPI } = require("@azure/arm-quota");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).
2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
*
* @summary Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).
2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
* x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json
*/
async function quotasPutRequestForNetworkStandardSkuPublicIPAddressesResource() {
const resourceName = "StandardSkuPublicIpAddresses";
const scope =
"subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus";
const createQuotaRequest = {
properties: {
name: { value: "StandardSkuPublicIpAddresses" },
limit: { limitObjectType: "LimitValue", value: 10 },
resourceType: "PublicIpAddresses",
},
};
const credential = new DefaultAzureCredential();
const client = new AzureQuotaExtensionAPI(credential);
const result = await client.quota.beginCreateOrUpdateAndWait(
resourceName,
scope,
createQuotaRequest
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.Quota;
using Azure.ResourceManager.Quota.Models;
// Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json
// this example is just showing the usage of "Quota_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this ArmResource created on azure
// for more information of creating ArmResource, please refer to the document of ArmResource
// get the collection of this CurrentQuotaLimitBaseResource
string scope = "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus";
ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope));
CurrentQuotaLimitBaseCollection collection = client.GetCurrentQuotaLimitBases(scopeId);
// invoke the operation
string resourceName = "StandardSkuPublicIpAddresses";
CurrentQuotaLimitBaseData data = new CurrentQuotaLimitBaseData()
{
Properties = new QuotaProperties()
{
Limit = new QuotaLimitObject(10),
Name = new QuotaRequestResourceName()
{
Value = "StandardSkuPublicIpAddresses",
},
ResourceTypeName = "PublicIpAddresses",
},
};
ArmOperation<CurrentQuotaLimitBaseResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, resourceName, data);
CurrentQuotaLimitBaseResource result = lro.Value;
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
CurrentQuotaLimitBaseData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample Response
Retry-After: 30
location: https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2023-02-01
location: https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequest/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2023-02-01
{
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Quota/quotas",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"name": {
"value": "StandardSkuPublicIpAddresses"
},
"resourceType": "PublicIpAddresses"
}
}
Sample Request
PUT https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotas/TotalLowPriorityCores?api-version=2023-02-01
{
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"name": {
"value": "TotalLowPriorityCores"
},
"resourceType": "lowPriority"
}
}
import com.azure.resourcemanager.quota.models.LimitObject;
import com.azure.resourcemanager.quota.models.QuotaProperties;
import com.azure.resourcemanager.quota.models.ResourceName;
/** Samples for Quota CreateOrUpdate. */
public final class Main {
/*
* x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putMachineLearningServicesQuotaRequestLowPriority.json
*/
/**
* Sample code: Quotas_Request_ForMachineLearningServices_LowPriorityResource.
*
* @param manager Entry point to QuotaManager.
*/
public static void quotasRequestForMachineLearningServicesLowPriorityResource(
com.azure.resourcemanager.quota.QuotaManager manager) {
manager
.quotas()
.define("TotalLowPriorityCores")
.withExistingScope(
"subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus")
.withProperties(
new QuotaProperties()
.withLimit(new LimitObject().withValue(10))
.withName(new ResourceName().withValue("TotalLowPriorityCores"))
.withResourceType("lowPriority"))
.create();
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.quota import QuotaMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-quota
# USAGE
python put_machine_learning_services_quota_request_low_priority.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = QuotaMgmtClient(
credential=DefaultAzureCredential(),
)
response = client.quota.begin_create_or_update(
resource_name="TotalLowPriorityCores",
scope="subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus",
create_quota_request={
"properties": {
"limit": {"limitObjectType": "LimitValue", "value": 10},
"name": {"value": "TotalLowPriorityCores"},
"resourceType": "lowPriority",
}
},
).result()
print(response)
# x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putMachineLearningServicesQuotaRequestLowPriority.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armquota_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putMachineLearningServicesQuotaRequestLowPriority.json
func ExampleClient_BeginCreateOrUpdate_quotasRequestForMachineLearningServicesLowPriorityResource() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armquota.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClient().BeginCreateOrUpdate(ctx, "TotalLowPriorityCores", "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus", armquota.CurrentQuotaLimitBase{
Properties: &armquota.Properties{
Name: &armquota.ResourceName{
Value: to.Ptr("TotalLowPriorityCores"),
},
Limit: &armquota.LimitObject{
LimitObjectType: to.Ptr(armquota.LimitTypeLimitValue),
Value: to.Ptr[int32](10),
},
ResourceType: to.Ptr("lowPriority"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CurrentQuotaLimitBase = armquota.CurrentQuotaLimitBase{
// Name: to.Ptr("TotalLowPriorityCores"),
// Type: to.Ptr("Microsoft.Quota/quotas"),
// ID: to.Ptr("/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotas/TotalLowPriorityCores"),
// Properties: &armquota.Properties{
// Name: &armquota.ResourceName{
// Value: to.Ptr("TotalLowPriorityCores"),
// },
// Limit: &armquota.LimitObject{
// LimitObjectType: to.Ptr(armquota.LimitTypeLimitValue),
// Value: to.Ptr[int32](10),
// },
// ResourceType: to.Ptr("lowPriority"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AzureQuotaExtensionAPI } = require("@azure/arm-quota");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).
2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
*
* @summary Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).
2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
* x-ms-original-file: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putMachineLearningServicesQuotaRequestLowPriority.json
*/
async function quotasRequestForMachineLearningServicesLowPriorityResource() {
const resourceName = "TotalLowPriorityCores";
const scope =
"subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus";
const createQuotaRequest = {
properties: {
name: { value: "TotalLowPriorityCores" },
limit: { limitObjectType: "LimitValue", value: 10 },
resourceType: "lowPriority",
},
};
const credential = new DefaultAzureCredential();
const client = new AzureQuotaExtensionAPI(credential);
const result = await client.quota.beginCreateOrUpdateAndWait(
resourceName,
scope,
createQuotaRequest
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.Quota;
using Azure.ResourceManager.Quota.Models;
// Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putMachineLearningServicesQuotaRequestLowPriority.json
// this example is just showing the usage of "Quota_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this ArmResource created on azure
// for more information of creating ArmResource, please refer to the document of ArmResource
// get the collection of this CurrentQuotaLimitBaseResource
string scope = "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus";
ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope));
CurrentQuotaLimitBaseCollection collection = client.GetCurrentQuotaLimitBases(scopeId);
// invoke the operation
string resourceName = "TotalLowPriorityCores";
CurrentQuotaLimitBaseData data = new CurrentQuotaLimitBaseData()
{
Properties = new QuotaProperties()
{
Limit = new QuotaLimitObject(10),
Name = new QuotaRequestResourceName()
{
Value = "TotalLowPriorityCores",
},
ResourceTypeName = "lowPriority",
},
};
ArmOperation<CurrentQuotaLimitBaseResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, resourceName, data);
CurrentQuotaLimitBaseResource result = lro.Value;
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
CurrentQuotaLimitBaseData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample Response
Retry-After: 30
location: https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2023-02-01
location: https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2023-02-01
{
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotas/TotalLowPriorityCores",
"type": "Microsoft.Quota/quotas",
"name": "TotalLowPriorityCores",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"name": {
"value": "TotalLowPriorityCores"
},
"resourceType": "lowPriority"
}
}
Definitions
CurrentQuotaLimitBase
Quota limit.
Name |
Type |
Description |
id
|
string
|
The resource ID.
|
name
|
string
|
The resource name.
|
properties
|
QuotaProperties
|
Quota properties for the specified resource, based on the API called, Quotas or Usages.
|
type
|
string
|
The resource type.
|
ExceptionResponse
Error.
LimitObject
The resource quota limit value.
Name |
Type |
Description |
limitObjectType
|
string:
LimitValue
|
The limit object type.
|
limitType
|
quotaLimitTypes
|
The quota or usages limit types.
|
value
|
integer
|
The quota/limit value
|
quotaLimitTypes
The quota or usages limit types.
Name |
Type |
Description |
Independent
|
string
|
|
Shared
|
string
|
|
QuotaProperties
Quota properties for the specified resource.
Name |
Type |
Description |
isQuotaApplicable
|
boolean
|
States if quota can be requested for this resource.
|
limit
|
LimitJsonObject:
LimitObject
|
Resource quota limit properties.
|
name
|
ResourceName
|
Resource name provided by the resource provider. Use this property name when requesting quota.
|
properties
|
object
|
Additional properties for the specific resource provider.
|
quotaPeriod
|
string
|
The time period over which the quota usage values are summarized. For example:
*P1D (per one day)
*PT1M (per one minute)
*PT1S (per one second).
This parameter is optional because, for some resources like compute, the period is irrelevant.
|
resourceType
|
string
|
The name of the resource type. Optional field.
|
unit
|
string
|
The quota units, such as Count and Bytes. When requesting quota, use the unit value returned in the GET response in the request body of your PUT operation.
|
ResourceName
Name of the resource provided by the resource Provider. When requesting quota, use this property name.
Name |
Type |
Description |
localizedValue
|
string
|
Resource display name.
|
value
|
string
|
Resource name.
|
ServiceError
API error details.
Name |
Type |
Description |
code
|
string
|
Error code.
|
details
|
ServiceErrorDetail[]
|
List of error details.
|
message
|
string
|
Error message.
|
ServiceErrorDetail
Error details.
Name |
Type |
Description |
code
|
string
|
Error code.
|
message
|
string
|
Error message.
|