Compartilhar via


Manage customer accounts - Create self serve policy

Cria as políticas de autoatendimento para um cliente.

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

Parâmetros de URI

Nome Em Obrigatório Tipo Description
version
path True

string

Cabeçalho da solicitação

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

Nome Obrigatório Tipo Description
Authorization True

string

Token de portador de autorização

ms-correlationid

string

Usado para acompanhar 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 acompanhar 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 idempotency de solicitações. Se uma ms-requestid não for fornecida, o servidor gerará uma nova para cada solicitação

Corpo da solicitação

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

Nome Tipo Description
selfServePolicy

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

A política de autoatendimento.

Respostas

Nome Tipo Description
200 OK

object

OKEY

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

201 Created

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

A solicitação foi bem-sucedida. A política de autoatendimento é criada com êxito.

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

Definições

Nome 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

Nome Tipo Description
etag

string

objectType

string

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

Nome Tipo Description
grantorType

string

tenantID

string

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

Nome Tipo Description
action

string

resource

string

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

Nome Tipo Description
selfServeEntityType

string

tenantID

string

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

Nome Tipo 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