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 参数

名称 必需 类型 说明
customer_id
path True

string

客户租户 ID。

user_id
path True

string

用于获取分配许可证的用户的用户 ID 或用户主体名称。

licenseGroupIds
query

string[]

许可证组 ID(例如:“Group1”,这意味着 AAD 产品,“Group2”,即 MDollar 产品)。

请求头

名称 必需 类型 说明
Authorization True

string

授权持有者令牌

ms-correlationid

string

用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求

ms-cv

string

用于在内部跟踪请求。 如果未提供 ms-cv,服务器将为每个请求生成一个新请求

ms-requestid

string

用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求

响应

名称 类型 说明
200 OK

Microsoft.Partner.Providers.Contracts.V1.License

请求成功。 响应正文包含许可证列表。

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

定义

名称 说明
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

名称 类型 说明
etag

string

objectType

string

Microsoft.Partner.Providers.Contracts.V1.License

名称 类型 说明
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

名称 类型 说明
id

string

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

string

skuPartNumber

string

targetType

string

Microsoft.Partner.Providers.Contracts.V1.ServicePlan

名称 类型 说明
capabilityStatus

string

displayName

string

id

string

serviceName

string

targetType

string