Device deployment - Create Policies
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/policies
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
customer_id
|
path | True |
string |
客戶標識碼。 |
|
version
|
path | True |
string |
要求標頭
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| 名稱 | 必要 | 類型 | Description |
|---|---|---|---|
| Authorization | True |
string |
授權持有人令牌 |
| ms-correlationid |
string |
用於在內部追蹤要求。 如果未提供 ms-correlationid,伺服器會為每個要求產生新的要求 |
|
| ms-cv |
string |
用於在內部追蹤要求。 如果未提供 ms-cv,伺服器將會為每個要求產生新的要求 |
|
| ms-requestid |
string |
用於要求等冪性。 如果未提供 ms-requestid,伺服器將會為每個要求產生新的要求 |
要求本文
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| 名稱 | 類型 | Description |
|---|---|---|
| category |
enum:
|
|
| createdDate |
string (date-time) |
|
| description |
string |
|
| devicesAssignedCount |
integer (int32) |
|
| id |
string |
|
| lastModifiedDate |
string (date-time) |
|
| links | ||
| name |
string |
|
| policySettings |
Policy |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
Microsoft. |
要求成功。 新建立的原則會在回應本文中傳回。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
定義
Microsoft.Partner.Core.Collections.Link
| 名稱 | 類型 | Description |
|---|---|---|
| body |
string |
|
| headers |
System. |
|
| method |
string |
|
| uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
| 名稱 | 類型 | Description |
|---|---|---|
| etag |
string |
|
| objectType |
string |
Microsoft.Partner.Core.Collections.ResourceLinks
| 名稱 | 類型 | Description |
|---|---|---|
| next | ||
| previous | ||
| self |
Microsoft.Partner.Providers.Contracts.V1.ConfigurationPolicy
| 名稱 | 類型 | 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
| 值 | 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]
| 名稱 | 類型 | Description |
|---|---|---|
| key |
string |
|
| value |
string |