Partilhar via


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}

Parâmetros do URI

Name Em Necessário Tipo Description
customer_id
path True

string

O ID do cliente.

entitlementtype
query

string

O tipo de direito.

showExpiry
query

boolean

Sinalizador para mostrar a data de expiração de cada ativo.

Cabeçalho do Pedido

Name Necessário Tipo Description
Authorization True

string

Token de portador de autorização

ms-correlationid

string

Usado para rastrear solicitações internamente. Se um ms-correlationid não for fornecido, o servidor gerará um novo para cada solicitação

ms-cv

string

Usado para rastrear solicitações internamente. Se um ms-cv não for fornecido, o servidor gerará um novo para cada solicitação

ms-requestid

string

Usado para idempotência de solicitações. Se um ms-requestid não for fornecido, o servidor gerará um novo para cada solicitação

Respostas

Name Tipo Description
200 OK

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

O pedido foi bem-sucedido. O corpo da resposta contém direitos.

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

Definições

Name 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]
Name Tipo Description
body

string

headers

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

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Name Tipo Description
etag

string

objectType

string

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

Name Tipo Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

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

links

Microsoft.Partner.Core.Collections.ResourceLinks

totalCount

integer

Name Tipo 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

Name Tipo Description
artifactType enum:
  • product_key
  • reservedinstance
  • unknown
  • virtual_machine_reserved_instance
dynamicAttributes

object

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

Name Tipo 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

Name Tipo Description
quantity

integer

status

string

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

Name Tipo Description
alternateId

string

id

string

lineItemId

string

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

Name Tipo Description
key

string

value

string