共用方式為


更新超額

適用於

  • 合作夥伴中心

適當的角色

  • 全域管理員
  • 系統管理代理人

注意

授權型服務的新商務體驗包含許多新功能,並可供所有 雲端解決方案提供者 (CSP) 使用。 如需詳細資訊,請參閱 新的商務體驗概觀

用來將指定客戶的超額設定為取用訂用帳戶。 也可以透過將超額設定為 false 來移除超額。 超額可讓客戶在使用超出規定限制的服務時繼續使用服務。 超額會定義使用量訂用帳戶超額隨用隨付將會累算的 。

必要條件

REST 要求

[PUT] /customers/{customer-tenant-id}/subscriptions/overage

要求語法

方法 要求 URI
PUT {baseURL}/v1/customers/{customer-tenant-id}/subscriptions/overage HTTP/1.1

URI 參數

使用下列查詢參數可傳回客戶的超額。

名稱 類型​​ 必要 描述
customer-tenant-id guid Y 對應至客戶租使用者的 GUID。

要求標頭

如需詳細資訊,請參閱合作夥伴中心 REST 標頭

要求本文

名稱 類型​​ 描述
azureEntitlementId guid 定義超額使用量訂用帳戶的 GUID。
partnerId guid 間接轉銷商的 PartnerID。 僅適用於兩層模型(間接提供者)。
overageEnabled bool 指出是否應針對指定的取用帳戶啟用超額。

要求範例

PUT https://api.partnercenter.microsoft.com/v1/customers/{customer-tenant-id}/subscriptions/overage HTTP/1.1
Authorization: Bearer <token>
Accept: application/json
MS-RequestId: 18752a69-1aa1-4ef7-8f9d-eb3681b2d70a
MS-CorrelationId: 81b08ffe-4cf8-49cd-82db-5c2fb0a8e132
X-Locale: en-US

{
    "azureEntitlementId": "ea1c26b7-8c99-42bb-ba7d-c535831fae8e",
    "partnerId": "5357563",
    "overageEnabled": true
}

REST 回應

如果成功,這個方法會傳回客戶的超額。

回應成功和錯誤碼

每個回應都隨附 HTTP 狀態碼,會指出成功與否以及其他的偵錯資訊。 請使用網路追蹤工具來讀取此錯誤碼、錯誤類型和其他參數。 如需完整清單,請參閱錯誤碼

回應範例

HTTP/1.1 200 OK
Content-Length: 138
Content-Type: application/json
MS-CorrelationId: 81b08ffe-4cf8-49cd-82db-5c2fb0a8e132
MS-RequestId: 18752a69-1aa1-4ef7-8f9d-eb3681b2d70a
Date: Fri, 26 Feb 2021 20:42:26 GMT

{
    "azureEntitlementId": "ea1c26b7-8c99-42bb-ba7d-c535831fae8e",
    "partnerId": "5357563",
    "type": "PhoneServices",
    "overageEnabled": true,
    "links": {
        "overage": {
            "uri": "/customers/f62cf10b-8f76-4fc4-9774-c5291f8faf86/subscriptions/overage",
            "method": "GET",
            "headers": []
        }
    },
    "attributes": {
        "objectType": "Overage"
    }
}