共用方式為


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

取得指派授權之使用者的使用者標識碼或用戶主體名稱。

licenseGroupIds
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

Microsoft.Partner.Providers.Contracts.V1.License

要求成功。 回應本文包含授權清單。

Media Types: "application/json", "text/json", "application/xml", "text/xml"

定義

名稱 Description
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Providers.Contracts.V1.License
Microsoft.Partner.Providers.Contracts.V1.ProductSku
Microsoft.Partner.Providers.Contracts.V1.ServicePlan

Microsoft.Partner.Core.Collections.ResourceAttributes

名稱 類型 Description
etag

string

objectType

string

Microsoft.Partner.Providers.Contracts.V1.License

名稱 類型 Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

productSku

Microsoft.Partner.Providers.Contracts.V1.ProductSku

servicePlans

Microsoft.Partner.Providers.Contracts.V1.ServicePlan[]

Microsoft.Partner.Providers.Contracts.V1.ProductSku

名稱 類型 Description
id

string

licenseGroupId enum:
  • group1
  • group2
  • group3
  • none
name

string

skuPartNumber

string

targetType

string

Microsoft.Partner.Providers.Contracts.V1.ServicePlan

名稱 類型 Description
capabilityStatus

string

displayName

string

id

string

serviceName

string

targetType

string