Partilhar via


Manage customer accounts - Get Subscribed Skus

GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/subscribedskus
GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/subscribedskus?licenseGroupIds={licenseGroupIds}

Parâmetros do URI

Name Em Necessário Tipo Description
customer_id
path True

string

ID do locatário do cliente.

licenseGroupIds
query

string[]

IDs de grupo de licença (ex: "Group1" que significa produtos AAD, "Group2" que significa produtos MDollar).

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.Providers.Contracts.V1.SubscribedSku]

O pedido foi bem-sucedido. O corpo da resposta contém as SKUs do produto disponíveis para atribuição de licença.

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

Definições

Name Description
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Providers.Contracts.V1.SubscribedSku]
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Providers.Contracts.V1.ProductSku
Microsoft.Partner.Providers.Contracts.V1.ServicePlan
Microsoft.Partner.Providers.Contracts.V1.SubscribedSku
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.Providers.Contracts.V1.SubscribedSku]

Name Tipo Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

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

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.Providers.Contracts.V1.ProductSku

Name Tipo Description
id

string

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

string

skuPartNumber

string

targetType

string

Microsoft.Partner.Providers.Contracts.V1.ServicePlan

Name Tipo Description
capabilityStatus

string

displayName

string

id

string

serviceName

string

targetType

string

Microsoft.Partner.Providers.Contracts.V1.SubscribedSku

Name Tipo Description
activeUnits

integer

attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

availableUnits

integer

capabilityStatus

string

consumedUnits

integer

productSku

Microsoft.Partner.Providers.Contracts.V1.ProductSku

servicePlans

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

suspendedUnits

integer

totalUnits

integer

warningUnits

integer

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

Name Tipo Description
key

string

value

string