Device deployment - Create Policies
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/policies
URI-Parameter
| Name | In | Erforderlich | Typ | Beschreibung |
|---|---|---|---|---|
|
customer_id
|
path | True |
string |
Die Kunden-ID. |
|
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 intern zum Nachverfolgen von Anforderungen verwendet. Wenn keine ms-correlationid angegeben wird, generiert der Server für jede Anforderung eine neue. |
|
| ms-cv |
string |
Wird intern zum Nachverfolgen von Anforderungen verwendet. Wenn kein ms-cv bereitgestellt wird, generiert der Server für jede Anforderung eine neue. |
|
| ms-requestid |
string |
Wird für die Idempotenz von Anforderungen verwendet. Wenn keine ms-requestid angegeben wird, generiert der Server für jede Anforderung eine neue anforderung. |
Anforderungstext
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| Name | Typ | Beschreibung |
|---|---|---|
| category |
enum:
|
|
| createdDate |
string (date-time) |
|
| description |
string |
|
| devicesAssignedCount |
integer (int32) |
|
| id |
string |
|
| lastModifiedDate |
string (date-time) |
|
| links | ||
| name |
string |
|
| policySettings |
Policy |
Antworten
| Name | Typ | Beschreibung |
|---|---|---|
| 200 OK |
Microsoft. |
Die Anforderung war erfolgreich. Die neu erstellte Richtlinie wird im Antworttext zurückgegeben. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definitionen
Microsoft.Partner.Core.Collections.Link
| Name | Typ | Beschreibung |
|---|---|---|
| body |
string |
|
| headers |
System. |
|
| method |
string |
|
| uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
| Name | Typ | Beschreibung |
|---|---|---|
| etag |
string |
|
| objectType |
string |
Microsoft.Partner.Core.Collections.ResourceLinks
| Name | Typ | Beschreibung |
|---|---|---|
| next | ||
| previous | ||
| self |
Microsoft.Partner.Providers.Contracts.V1.ConfigurationPolicy
| Name | Typ | Beschreibung |
|---|---|---|
| attributes | ||
| category |
enum:
|
|
| createdDate |
string (date-time) |
|
| description |
string |
|
| devicesAssignedCount |
integer (int32) |
|
| id |
string |
|
| lastModifiedDate |
string (date-time) |
|
| links | ||
| name |
string |
|
| policySettings |
Policy |
PolicySettings
| Wert | Beschreibung |
|---|---|
| none | |
| oobe_user_not_local_admin | |
| remove_oem_preinstalls | |
| skip_eula | |
| skip_express_settings | |
| skip_oem_registration |
System.Collections.Generic.KeyValuePair[System.String,System.String]
| Name | Typ | Beschreibung |
|---|---|---|
| key |
string |
|
| value |
string |