Synchronize a Subscription
Applies To: Windows Azure Pack
Synchronizes a subscription.
Replace <ServiceMgmt> with your Service Management API endpoint address. Replace <Port> with either 30005 for the tenant API or 30004 for the administrator API. Replace the <SubscriptionId> with the subscription identifier of the subscription being synchronized.
Method | Request URI | HTTP version |
|---|---|---|
PUT | https://<ServiceMgmt>:<Port>/subscriptions/<SubscriptionId>/quota | HTTP/1.1 |
The following table describes the URI parameters.
URI parameter | Description |
|---|---|
sync | Required. Set to True to start synchronizing the subscription. |
The following table describes required and optional request headers.
Request header | Description |
|---|---|
Authorization: Bearer | Required. Authorization bearer token. |
x-ms-client-request-id: | Optional. The client request identifier. |
x-ms-client-session-id: | Optional. The client session identifier. |
x-ms-client-principal-id: | Optional. The principal identifier. |
x-ms-principal-liveid: | Optional. The principal Live identifier. |
None.
The response includes an HTTP status code, a set of response headers, and a response body.
A successful operation returns status code 200 (OK).
For information about status codes, see Status and Error Codes (Windows Azure Pack Service Management).
The response for this operation includes standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.
The following table describes the key elements of the response body:
Element name | Description |
|---|---|
Subscription | The synchronized subscription. For more information, see Subscription (Common object). |
The following code example shows a Synchronize Subscription request.
PUT https://<Computer>:30004/subscriptions/512d113d-44e0-4fb4-81d1-2770be611d14/quota?sync=True HTTP/1.1 Authorization: Bearer <Token> x-ms-client-request-id: 295fe5f2-4e2e-4b19-85c2-29700db62b82-2013-06-28 19:35:15Z x-ms-client-session-id: 36d65d7b-42b5-4fc0-8334-93c10e7a90f2 x-ms-principal-id: <COMPUTER>\Administrator Accept-Language: en-US x-ms-principal-liveid: <COMPUTER>\Administrator Content-Type: application/json; charset=utf-8 Host: <Computer>:30004 Content-Length: 4 Expect: 100-continue
The following code example shows a Synchronize Subscription response.
{
"SubscriptionID": "512d113d-44e0-4fb4-81d1-2770be611d14",
"SubscriptionName": "WebWeb",
"AccountAdminLiveEmailId": "aaa@ccc.com",
"ServiceAdminLiveEmailId": null,
"CoAdminNames": [
],
"AddOnReferences": [
],
"AddOns": [
],
"State": 1,
"QuotaSyncState": 0,
"ActivationSyncState": 2,
"PlanId": "WebWehig9z4ua",
"Services": [
{
"Type": "webspaces",
"State": "registered",
"QuotaSyncState": 0,
"ActivationSyncState": 0,
"BaseQuotaSettings": [
{
"Key": "BytesReceived_Shared_WebSpace_Limited",
"Value": "{\"ComputeMode\":0,\"CustomActionName\":null,\"EnforcementScope\":0,\"ExceededAction\":0,\"Limit\":-1,\"Period\":1440,\"QuotaName\":\"BytesReceived\",\"ResourceName\":\"BytesReceived\",\"SiteMode\":\"Limited\",\"Unit\":1,\"WebPlan\":null}"
},
{
"Key": "NumberOfVirtualWorkers_Dedicated_WebSpace_NULL",
"Value": "{\"ComputeMode\":1,\"CustomActionName\":null,\"EnforcementScope\":0,\"ExceededAction\":0,\"Limit\":-1,\"Period\":1440,\"QuotaName\":\"NumberOfVirtualWorkers\",\"ResourceName\":\"NumberOfVirtualWorkers\",\"SiteMode\":null,\"Unit\":1,\"WebPlan\":null}"
}
]
},
{
"Type": "sqlservers",
"State": "registered",
"QuotaSyncState": 0,
"ActivationSyncState": 0,
"BaseQuotaSettings": [
{
"Key": "Editions",
"Value": "[{\"displayName\":\"Default\",\"groupName\":\"Default\",\"resourceCount\":\"10\",\"resourceSize\":\"1024\",\"resourceSizeLimit\":\"1024\",\"offerEditionId\":\"062713061814\",\"groupType\":null}]"
}
]
},
{
"Type": "mysqlservers",
"State": "registered",
"QuotaSyncState": 0,
"ActivationSyncState": 2,
"BaseQuotaSettings": [
{
"Key": "Editions",
"Value": "[{\"displayName\":\"Default\",\"groupName\":\"Default\",\"resourceCount\":\"10\",\"resourceSize\":\"1024\",\"offerEditionId\":\"062713061814\",\"groupType\":null}]"
}
]
}
],
"LastErrorMessage": null,
"Features": null,
"OfferFriendlyName": "WebWeb",
"OfferCategory": null,
"Created": "2013-06-28T19:26:03.373"
}