Share via


Update the Quota Settings for a Resource Provider

 

Applies To: Windows Azure Pack

Updates the quota settings for a resource provider.

Request

Replace <NotificationEndpoint> with the endpoint address for the Windows Azure Pack Custom Resource Provider Notification REST API.

Method

Request URI

HTTP version

PUT

http://<NotificationEndpoint>/quota

HTTP/1.1

URI Parameters

None.

Request Headers

The following table describes required and optional request headers.

Request header

Description

Authorization: Basic

Required. The basic authorization token.

x-ms-principal-id

Required. The principal identifier.

x-ms-client-request-id

Optional. The client request identifier.

x-ms-client-session-id

Optional. The client session identifier.

x-ms-principal-liveid

Optional. The principal Live identifier.

Request Body

The following table describes the elements of the request body.

Element name

Description

QuotaUpdateBatch

The batch of quota settings to be updated. For more information, see QuotaUpdateBatch (Notification Endpoint Object).

Response

The response includes an HTTP status code, a set of response headers, and a response body.

Status Code

A successful operation returns status code 200 (OK).

For information about status codes, see Status and Error Codes (Windows Azure Pack Service Management).

Response Headers

The response for this operation includes standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Response Body

The following table describes the key elements of the response body:

Element name

Description

QuotaUpdateResultBatch

The batch of updated quota settings. For more information, see QuotaUpdateResultBatch (Notification Endpoint Object).

Example

The following example shows a Update the Quota Settings for a Resource Provider request.

PUT https://<NotificationEndpoint>:30012/quota HTTP/1.1
Referer: https://<Computer>:30004/plans/MyServicePlanX18aa6bac-5e8d-439e-b4d9-4a7dea4e843a/quota
Accept-Language: en-US
x-ms-client-request-id: 0ee49d13-7b86-4840-b0e1-046106a8d813-2014-07-09 23:16:21Z
x-ms-client-session-id: a519f0aa-53e9-4522-94fd-3c55607a6b65
x-ms-principal-id: <Computer>%5cAdministrator
x-ms-request-id: 840de34d9d9a484a8ddd7255a44cb1fd.2014-07-09T23:16:22.6545190Z
Authorization: Basic <encoded username and password>
Content-Type: application/json; charset=utf-8
Host: <Computer>:30012
Content-Length: 467
Expect: 100-continue

{
  "BaseQuota": [
    {
      "Key": "Editions",
      "Value": "[{\"displayName\":\"Default\",\"groupName\":\"Default\",\"resourceCount\":11,\"resourceSize\":1024,\"offerEditionId\":\"040814101717\",\"groupType\":null,\"resourceSizeLimit\":null}]"
    }
  ],
  "AddOnQuotas": [

  ],
  "SubscriptionIdsToUpdate": [
    "da506abb-1658-4abf-971c-e0e5a9c47b83",
    "603e36b5-4f30-4ccf-8c90-9b37ded24149",
    "d5715678-aea4-49e5-b37d-7e65abdae793",
    "718fb765-72fe-4201-be6a-4b31fb396805",
    "f3fca3c5-1dca-411e-97f7-9891325aa78f"
  ]
}

The following code example shows the JSON response for Update the Quota Settings for a Resource Provider.

{
  "UpdatedSubscriptionIds": [
    "da506abb-1658-4abf-971c-e0e5a9c47b83",
    "603e36b5-4f30-4ccf-8c90-9b37ded24149",
    "d5715678-aea4-49e5-b37d-7e65abdae793",
    "718fb765-72fe-4201-be6a-4b31fb396805",
    "f3fca3c5-1dca-411e-97f7-9891325aa78f"
  ],
  "FailedSubscriptionIds": null,
  "Error": null
}

Remarks

Update the Quota Settings for a Resource Provider is used to update all subscriptions that belong to plans with the new quota.

See Also

Windows Azure Pack Custom Resource Provider Notification REST API Reference