Sdílet prostřednictvím


Device deployment - Create Policies

POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/policies

Parametry identifikátoru URI

Name V Vyžadováno Typ Description
customer_id
path True

string

ID zákazníka.

version
path True

string

Hlavička požadavku

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

Name Vyžadováno Typ Description
Authorization True

string

Nosný token autorizace

ms-correlationid

string

Používá se k internímu sledování požadavků. Pokud není zadaný identifikátor ms-correlationid, server vygeneruje pro každý požadavek nový.

ms-cv

string

Používá se k internímu sledování požadavků. Pokud ms-cv není zadaný, server vygeneruje pro každou žádost nový.

ms-requestid

string

Používá se pro idempotenci požadavků. Pokud není zadaný identifikátor ms-requestid, server pro každou žádost vygeneruje nový.

Text požadavku

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

Name Typ Description
category enum:
  • none
  • o_o_b_e
createdDate

string

description

string

devicesAssignedCount

integer

id

string

lastModifiedDate

string

links

Microsoft.Partner.Core.Collections.ResourceLinks

name

string

policySettings

PolicySettings[]

Odpovědi

Name Typ Description
200 OK

Microsoft.Partner.Providers.Contracts.V1.ConfigurationPolicy

Požadavek byl úspěšný. Nově vytvořené zásady se vrátí v těle odpovědi.

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

Definice

Name Description
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Providers.Contracts.V1.ConfigurationPolicy
PolicySettings
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

Name Typ Description
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Providers.Contracts.V1.ConfigurationPolicy

Name Typ Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

category enum:
  • none
  • o_o_b_e
createdDate

string

description

string

devicesAssignedCount

integer

id

string

lastModifiedDate

string

links

Microsoft.Partner.Core.Collections.ResourceLinks

name

string

policySettings

PolicySettings[]

PolicySettings

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

string

value

string