Device deployment - Create Policies
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/policies
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
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
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 |
Corpo do Pedido
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Tipo | Description |
---|---|---|
category |
enum:
|
|
createdDate |
string |
|
description |
string |
|
devicesAssignedCount |
integer |
|
id |
string |
|
lastModifiedDate |
string |
|
links | ||
name |
string |
|
policySettings |
Respostas
Name | Tipo | Description |
---|---|---|
200 OK |
Microsoft. |
O pedido foi bem-sucedido. A política recém-criada é retornada no corpo da resposta. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definições
Microsoft.Partner.Core.Collections.Link
Name | Tipo | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Tipo | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceLinks
Name | Tipo | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Providers.Contracts.V1.ConfigurationPolicy
Name | Tipo | Description |
---|---|---|
attributes | ||
category |
enum:
|
|
createdDate |
string |
|
description |
string |
|
devicesAssignedCount |
integer |
|
id |
string |
|
lastModifiedDate |
string |
|
links | ||
name |
string |
|
policySettings |
PolicySettings
Name | Tipo | Description |
---|---|---|
none |
string |
|
oobe_user_not_local_admin |
string |
|
remove_oem_preinstalls |
string |
|
skip_eula |
string |
|
skip_express_settings |
string |
|
skip_oem_registration |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Tipo | Description |
---|---|---|
key |
string |
|
value |
string |