次の方法で共有


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 (例: AAD 製品を意味する "Group1"、MDollar 製品を意味する "Group2")。

要求ヘッダー

名前 必須 説明
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