Dela via


Manage customer accounts - Get partner relationships by customer ID

Hämtar ett segment av en partners återförsäljare för ett specifikt kund-ID.

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

URI-parametrar

Name I Obligatorisk Typ Description
customer_id
path True

string

Kund-ID:t.

version
path True

string

Begärandehuvud

Name Obligatorisk Typ Description
Authorization True

string

Token för auktoriseringsbärare

ms-correlationid

string

Används för att spåra begäranden internt. Om ett ms-correlationid inte anges genererar servern en ny för varje begäran

ms-cv

string

Används för att spåra begäranden internt. Om en ms-cv inte tillhandahålls genererar servern en ny för varje begäran

ms-requestid

string

Används för idempotens för begäranden. Om ett ms-requestid inte har angetts genererar servern en ny för varje begäran

Svar

Name Typ Description
200 OK

Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Service.Customers.Contracts.V1.PartnerRelationship]

Begäran lyckades. Svarstexten innehåller en lista över partnerrelationer som är associerade med den angivna kunden.

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

Definitioner

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 Typ Description
body

string

headers

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

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Name Typ Description
etag

string

objectType

string

Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Service.Customers.Contracts.V1.PartnerRelationship]

Name Typ Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

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

links

Microsoft.Partner.Core.Collections.ResourceLinks

totalCount

integer

Name Typ 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 Typ 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 Typ Description
key

string

value

string