Delen via


Quota - Update

Werk het quotum (servicelimieten) van deze resource bij naar de aangevraagde waarde.

• Als u de quotumgegevens voor een specifieke resource wilt ophalen, verzendt u een GET-aanvraag.

• Als u het quotum wilt verhogen, werkt u het limietveld van het GET-antwoord bij naar een nieuwe waarde.

• Als u de quotumwaarde wilt bijwerken, verzendt u het JSON-antwoord naar de API voor quotumaanvragen om het quotum bij te werken.

• Om het quotum bij te werken. gebruik de patch-bewerking.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}?api-version=2020-10-25

URI-parameters

Name In Vereist Type Description
location
path True

string

Azure-regio.

providerId
path True

string

Id van Azure-resourceprovider.

resourceName
path True

string

De resourcenaam voor een resourceprovider, zoals SKU-naam voor Microsoft.Compute, SKU of TotalLowPriorityCores voor Microsoft.MachineLearningServices

subscriptionId
path True

string

Azure-abonnements-id.

api-version
query True

string

API-versie.

Aanvraagbody

Name Type Description
properties

QuotaProperties

Quotumeigenschappen voor de resource.

Antwoorden

Name Type Description
200 OK

CurrentQuotaLimitBase

OK. Retourneert details van de quotumaanvraag.

201 Created

QuotaRequestSubmitResponse201

De aanvraag wordt geaccepteerd en wordt verwerkt. Gebruik de parameter requestId om de status te controleren.

Other Status Codes

ExceptionResponse

Foutbeschrijving in het antwoord.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Quotas_Request_PatchForCompute

Sample Request

PATCH https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/standardFSv2Family?api-version=2020-10-25

{
  "properties": {
    "limit": 200,
    "unit": "Count",
    "name": {
      "value": "standardFSv2Family"
    }
  }
}

Sample Response

{
  "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
  "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
  "type": "Microsoft.Capacity/ServiceLimits",
  "properties": {
    "provisioningState": "InProgress",
    "message": ""
  }
}
{
  "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
  "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
  "type": "Microsoft.Capacity/serviceLimits",
  "properties": {
    "limit": 200,
    "unit": "Count",
    "currentValue": 160,
    "name": {
      "value": "standardFSv2Family",
      "localizedValue": "Standard FSv2 Family vCPUs"
    },
    "quotaPeriod": "",
    "properties": {}
  }
}

Definities

Name Description
CurrentQuotaLimitBase

Quotumeigenschappen.

ExceptionResponse

De API-fout.

QuotaProperties

Quotumeigenschappen voor de resource.

QuotaRequestState

De status van de quotumaanvraag.

QuotaRequestSubmitResponse201

Antwoord met aanvraag-id dat de quotumaanvraag is geaccepteerd.

ResourceName

Resourcenaam die is opgegeven door de resourceprovider. Gebruik deze eigenschap voor de parameter quotaRequest.

ResourceType

De naam van het resourcetype.

ServiceError

De details van de API-fout.

ServiceErrorDetail

De foutdetails.

CurrentQuotaLimitBase

Quotumeigenschappen.

Name Type Description
id

string

De quotumaanvraag-id.

name

string

De naam van de quotumaanvraag.

properties

QuotaProperties

Quotumeigenschappen voor de resource.

type

string

Type resource. "Microsoft.Capacity/ServiceLimits"

ExceptionResponse

De API-fout.

Name Type Description
error

ServiceError

De details van de API-fout.

QuotaProperties

Quotumeigenschappen voor de resource.

Name Type Description
currentValue

integer

Huidige gebruikswaarde voor de resource.

limit

integer

Quotumeigenschappen.

name

ResourceName

Naam van de resource die is opgegeven door de resourceprovider. Gebruik deze eigenschap voor resourcebewerkingen quotumRequests.

properties

object

Aanvullende eigenschappen voor de opgegeven resourceprovider.

quotaPeriod

string

De periode waarin de quotumgebruikswaarden worden samengevat. Bijvoorbeeld P1D (per dag), PT1M (per één minuut) en PT1S (per seconde). Deze parameter is optioneel omdat voor sommige resources, zoals compute, de tijdsperiode niet relevant is.

resourceType

ResourceType

De naam van het resourcetype.

unit

string

De limieteenheden, zoals aantal en bytes. Gebruik het eenheidsveld in het antwoord van de GET-quotumbewerking.

QuotaRequestState

De status van de quotumaanvraag.

Name Type Description
Accepted

string

Failed

string

InProgress

string

Invalid

string

Succeeded

string

QuotaRequestSubmitResponse201

Antwoord met aanvraag-id dat de quotumaanvraag is geaccepteerd.

Name Type Description
id

string

De quotumaanvraag-id. Gebruik de parameter requestId om de aanvraagstatus te controleren.

name

string

Bewerkings-id

properties.message

string

Een gebruiksvriendelijk bericht.

properties.provisioningState

QuotaRequestState

De details van de status van de quotumaanvraag.

type

string

Resourcetype

ResourceName

Resourcenaam die is opgegeven door de resourceprovider. Gebruik deze eigenschap voor de parameter quotaRequest.

Name Type Description
localizedValue

string

De gelokaliseerde naam van de resource wordt weergegeven.

value

string

Resourcenaam.

ResourceType

De naam van het resourcetype.

Name Type Description
dedicated

string

lowPriority

string

serviceSpecific

string

shared

string

standard

string

ServiceError

De details van de API-fout.

Name Type Description
code

string

De foutcode.

details

ServiceErrorDetail[]

De lijst met foutdetails.

message

string

De tekst van het foutbericht.

ServiceErrorDetail

De foutdetails.

Name Type Description
code

string

De foutcode.

message

string

Het foutbericht.