Manage customer accounts - Get Licenses
GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/users/{user_id}/licenses
GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/users/{user_id}/licenses?licenseGroupIds={licenseGroupIds}
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
客戶租用戶標識碼。 |
user_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 |
要求成功。 回應本文包含授權清單。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
定義
Microsoft.Partner.Core.Collections.ResourceAttributes
名稱 | 類型 | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Providers.Contracts.V1.License
名稱 | 類型 | Description |
---|---|---|
attributes | ||
productSku | ||
servicePlans |
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 |