Manage customer accounts - Create self serve policy

Erstellt die Self-Service-Richtlinien für einen Kunden.

POST https://api.partnercenter.microsoft.com/v{version}/SelfServePolicy

URI-Parameter

Name In Erforderlich Typ Beschreibung
version
path True

string

Anforderungsheader

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Erforderlich Typ Beschreibung
Authorization True

string

Autorisierungs-Bearertoken

ms-correlationid

string

Wird für die interne Nachverfolgung von Anforderungen verwendet. Wenn keine ms-correlationid angegeben wird, generiert der Server für jede Anforderung eine neue.

ms-cv

string

Wird für die interne Nachverfolgung von Anforderungen verwendet. Wenn kein ms-cv bereitgestellt wird, generiert der Server für jede Anforderung eine neue.

ms-requestid

string

Wird für Idempotenz von Anforderungen verwendet. Wenn keine ms-requestid angegeben wird, generiert der Server für jede Anforderung eine neue.

Anforderungstext

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Typ Beschreibung
selfServePolicy

Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.SelfServePolicy

Die Self-Service-Richtlinie.

Antworten

Name Typ Beschreibung
200 OK

object

OK

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

201 Created

Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.SelfServePolicy

Die Anforderung wurde erfolgreich gesendet. Die Self-Service-Richtlinie wurde erfolgreich erstellt.

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

Definitionen

Name Beschreibung
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.Grantor
Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.Permission
Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.SelfServeEntity
Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.SelfServePolicy

Microsoft.Partner.Core.Collections.ResourceAttributes

Name Typ Beschreibung
etag

string

objectType

string

Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.Grantor

Name Typ Beschreibung
grantorType

string

tenantID

string

Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.Permission

Name Typ Beschreibung
action

string

resource

string

Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.SelfServeEntity

Name Typ Beschreibung
selfServeEntityType

string

tenantID

string

Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.SelfServePolicy

Name Typ Beschreibung
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

grantor

Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.Grantor

id

string

permissions

Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.Permission[]

selfServeEntity

Microsoft.Partner.Service.Customers.Contracts.V1.SelfServePolicy.SelfServeEntity