共用方式為


Manage customer accounts - Get Entitlements

GET https://api.partnercenter.microsoft.com/V1/customers/{customer_id}/entitlements
GET https://api.partnercenter.microsoft.com/V1/customers/{customer_id}/entitlements?entitlementtype={entitlementtype}&showExpiry={showExpiry}

URI 參數

名稱 位於 必要 類型 Description
customer_id
path True

string

客戶標識碼。

entitlementtype
query

string

權利類型。

showExpiry
query

boolean

標幟以顯示每個資產的到期日。

要求標頭

名稱 必要 類型 Description
Authorization True

string

授權持有人令牌

ms-correlationid

string

用於在內部追蹤要求。 如果未提供 ms-correlationid,伺服器會為每個要求產生新的要求

ms-cv

string

用於在內部追蹤要求。 如果未提供 ms-cv,伺服器將會為每個要求產生新的要求

ms-requestid

string

用於要求等冪性。 如果未提供 ms-requestid,伺服器將會為每個要求產生新的要求

回應

名稱 類型 Description
200 OK

Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Entitlement]

要求成功。 回應本文包含權利。

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

定義

名稱 Description
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Entitlement]
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Artifact
Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Entitlement
Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.QuantityDetail
Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.ReferenceOrder
System.Collections.Generic.KeyValuePair[System.String,System.String]
名稱 類型 Description
body

string

headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

名稱 類型 Description
etag

string

objectType

string

Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Entitlement]

名稱 類型 Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Entitlement[]

links

Microsoft.Partner.Core.Collections.ResourceLinks

totalCount

integer

名稱 類型 Description
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Artifact

名稱 類型 Description
artifactType enum:
  • product_key
  • reservedinstance
  • unknown
  • virtual_machine_reserved_instance
dynamicAttributes

object

Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Entitlement

名稱 類型 Description
entitledArtifacts

Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Artifact[]

entitlementType enum:
  • reservedinstance
  • software
  • unknown
  • virtual_machine_reserved_instance
expiryDate

string

fulfillmentState

string

includedEntitlements

Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Entitlement[]

minEventDate

string

productId

string

quantity

integer

quantityDetails

Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.QuantityDetail[]

referenceOrder

Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.ReferenceOrder

skuId

string

Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.QuantityDetail

名稱 類型 Description
quantity

integer

status

string

Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.ReferenceOrder

名稱 類型 Description
alternateId

string

id

string

lineItemId

string

System.Collections.Generic.KeyValuePair[System.String,System.String]

名稱 類型 Description
key

string

value

string