Device deployment - Create Policies
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/policies
Paramètres URI
| Nom | Dans | Obligatoire | Type | Description |
|---|---|---|---|---|
|
customer_id
|
path | True |
string |
ID du client. |
|
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 |
|---|---|---|
| category |
enum:
|
|
| createdDate |
string (date-time) |
|
| description |
string |
|
| devicesAssignedCount |
integer (int32) |
|
| id |
string |
|
| lastModifiedDate |
string (date-time) |
|
| links | ||
| name |
string |
|
| policySettings |
Policy |
Réponses
| Nom | Type | Description |
|---|---|---|
| 200 OK |
Microsoft. |
La demande a réussi. La stratégie nouvellement créée est retournée dans le corps de la réponse. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Définitions
Microsoft.Partner.Core.Collections.Link
| Nom | Type | Description |
|---|---|---|
| body |
string |
|
| headers |
System. |
|
| method |
string |
|
| uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
| Nom | Type | Description |
|---|---|---|
| etag |
string |
|
| objectType |
string |
Microsoft.Partner.Core.Collections.ResourceLinks
| Nom | Type | Description |
|---|---|---|
| next | ||
| previous | ||
| self |
Microsoft.Partner.Providers.Contracts.V1.ConfigurationPolicy
| Nom | Type | Description |
|---|---|---|
| attributes | ||
| category |
enum:
|
|
| createdDate |
string (date-time) |
|
| description |
string |
|
| devicesAssignedCount |
integer (int32) |
|
| id |
string |
|
| lastModifiedDate |
string (date-time) |
|
| links | ||
| name |
string |
|
| policySettings |
Policy |
PolicySettings
| Valeur | Description |
|---|---|
| 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]
| Nom | Type | Description |
|---|---|---|
| key |
string |
|
| value |
string |