Partager via


Manage customer accounts - Create self serve policy

Crée les stratégies de libre-service pour un client.

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

Paramètres URI

Nom Dans Obligatoire Type Description
version
path True

string

En-tête de la demande

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

Nom Obligatoire Type Description
Authorization True

string

Jeton du porteur d’autorisation

ms-correlationid

string

Utilisé pour le suivi des demandes en interne. Si un ms-correlationid n’est pas fourni, le serveur en génère un nouveau pour chaque requête

ms-cv

string

Utilisé pour le suivi des demandes en interne. Si un ms-cv n’est pas fourni, le serveur en génère un nouveau pour chaque requête

ms-requestid

string

Utilisé pour l’idempotency des requêtes. Si un ms-requestid n’est pas fourni, le serveur en génère un nouveau pour chaque requête

Corps de la demande

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

Nom Type Description
selfServePolicy

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

La stratégie de libre-service.

Réponses

Nom Type Description
200 OK

object

D’ACCORD

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

201 Created

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

La demande a réussi. La stratégie en libre-service est créée avec succès.

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

Définitions

Nom Description
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

Nom Type Description
etag

string

objectType

string

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

Nom Type Description
grantorType

string

tenantID

string

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

Nom Type Description
action

string

resource

string

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

Nom Type Description
selfServeEntityType

string

tenantID

string

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

Nom Type Description
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