Partilhar via


Manage customer accounts - Get partner relationships by customer ID

Recupera um segmento de revendedores de um parceiro para um ID de cliente específico.

GET https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/relationships

Parâmetros do URI

Name Em Necessário Tipo Description
customer_id
path True

string

O ID do cliente.

version
path True

string

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.Service.Customers.Contracts.V1.PartnerRelationship]

O pedido foi bem-sucedido. O corpo da resposta contém uma lista de relacionamentos de parceiros associados ao cliente especificado.

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.Service.Customers.Contracts.V1.PartnerRelationship]
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Service.Customers.Contracts.V1.PartnerRelationship
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.Service.Customers.Contracts.V1.PartnerRelationship]

Name Tipo Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

Microsoft.Partner.Service.Customers.Contracts.V1.PartnerRelationship[]

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.Service.Customers.Contracts.V1.PartnerRelationship

Name Tipo Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

id

string

location

string

mpnId

string

name

string

relationshipType enum:
  • is_indirect_cloud_solution_provider_of
  • is_indirect_reseller_of
  • none
state

string

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

Name Tipo Description
key

string

value

string