Manage customer accounts - Get Subscribed Skus
GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/subscribedskus
GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/subscribedskus?licenseGroupIds={licenseGroupIds}
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
客戶租用戶標識碼。 |
license
|
query |
string[] |
授權群組標識碼(例如:“Group1”,意指 AAD 產品“Group2”,即 MDollar 產品)。 |
要求標頭
名稱 | 必要 | 類型 | Description |
---|---|---|---|
Authorization | True |
string |
授權持有人令牌 |
ms-correlationid |
string |
用於在內部追蹤要求。 如果未提供 ms-correlationid,伺服器會為每個要求產生新的要求 |
|
ms-cv |
string |
用於在內部追蹤要求。 如果未提供 ms-cv,伺服器將會為每個要求產生新的要求 |
|
ms-requestid |
string |
用於要求等冪性。 如果未提供 ms-requestid,伺服器將會為每個要求產生新的要求 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
要求成功。 回應本文包含可供授權指派的產品 SKU。 Media Types: "application/json", "text/json" |
定義
Microsoft.Partner.Core.Collections.Link
名稱 | 類型 | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
名稱 | 類型 | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Providers.Contracts.V1.SubscribedSku]
名稱 | 類型 | Description |
---|---|---|
attributes | ||
items | ||
links | ||
totalCount |
integer |
Microsoft.Partner.Core.Collections.ResourceLinks
名稱 | 類型 | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Providers.Contracts.V1.ProductSku
名稱 | 類型 | Description |
---|---|---|
id |
string |
|
licenseGroupId |
enum:
|
|
name |
string |
|
skuPartNumber |
string |
|
targetType |
string |
Microsoft.Partner.Providers.Contracts.V1.ServicePlan
名稱 | 類型 | Description |
---|---|---|
capabilityStatus |
string |
|
displayName |
string |
|
id |
string |
|
serviceName |
string |
|
targetType |
string |
Microsoft.Partner.Providers.Contracts.V1.SubscribedSku
名稱 | 類型 | Description |
---|---|---|
activeUnits |
integer |
|
attributes | ||
availableUnits |
integer |
|
capabilityStatus |
string |
|
consumedUnits |
integer |
|
productSku | ||
servicePlans | ||
suspendedUnits |
integer |
|
totalUnits |
integer |
|
warningUnits |
integer |
System.Collections.Generic.KeyValuePair[System.String,System.String]
名稱 | 類型 | Description |
---|---|---|
key |
string |
|
value |
string |