POST api/Policy/{UnitName}/WindowsCommonPolicy
建立/更新Windows政策
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
UnitName |
單位名稱(e.g. 北區輔導團、臺北市、040304) |
string |
Required |
Body Parameters
WindowsCommonPolicyName | Description | Type | Additional information |
---|---|---|---|
microsoftAccountBlocked |
禁止連結Microsoft 帳戶 (Microsoft 帳戶為個人帳戶) |
boolean |
None. |
accountsBlockAddingNonMicrosoftAccountEmail |
禁止新增 非Microsoft 帳戶之關聯 |
boolean |
None. |
microsoftAccountBlockSettingsSync |
封鎖Microsoft 帳戶同步設定 (同步於裝置之間) |
boolean |
None. |
microsoftAccountSignInAssistantSettings |
Microsoft 登入小幫手服務 (wlidsvc)。 |
boolean |
None. |
settingsBlockSystemPage |
封鎖 "設定" - > "系統" 功能 |
boolean |
None. |
settingsBlockAccountsPage |
封鎖 "設定" - > "帳戶" 功能 |
boolean |
None. |
settingsBlockTimeLanguagePage |
禁止修改系統時間 |
boolean |
None. |
settingsBlockChangeRegion |
禁止修改區域設定 |
boolean |
None. |
settingsBlockChangeLanguage |
禁止修改語言設定 |
boolean |
None. |
settingsBlockUpdateSecurityPage |
封鎖 "設定" - > "更新與安全性" 功能 |
boolean |
None. |
settingsBlockGamingPage |
封鎖 "設定" - > "遊戲" 功能 |
boolean |
None. |
cameraBlocked |
封鎖相機功能 |
boolean |
None. |
deviceManagementBlockFactoryResetOnMobile |
禁止還原載具 |
boolean |
None. |
storageBlockRemovableStorage |
封鎖卸除式存放裝置(如USB) |
boolean |
None. |
energySaverOnBatteryThresholdPercentage |
設定連接電池電源執行省電電量百分比(整數) |
integer |
None. |
energySaverPluggedInThresholdPercentage |
設定連接一般電源執行省電電量百分比(整數) |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "microsoftAccountBlocked": true, "accountsBlockAddingNonMicrosoftAccountEmail": true, "microsoftAccountBlockSettingsSync": true, "microsoftAccountSignInAssistantSettings": true, "settingsBlockSystemPage": true, "settingsBlockAccountsPage": true, "settingsBlockTimeLanguagePage": true, "settingsBlockChangeRegion": true, "settingsBlockChangeLanguage": true, "settingsBlockUpdateSecurityPage": true, "settingsBlockGamingPage": true, "cameraBlocked": true, "deviceManagementBlockFactoryResetOnMobile": true, "storageBlockRemovableStorage": true, "energySaverOnBatteryThresholdPercentage": 15, "energySaverPluggedInThresholdPercentage": 16 }
application/xml, text/xml
Sample:
<WindowsCommonPolicy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers"> <accountsBlockAddingNonMicrosoftAccountEmail>true</accountsBlockAddingNonMicrosoftAccountEmail> <cameraBlocked>true</cameraBlocked> <deviceManagementBlockFactoryResetOnMobile>true</deviceManagementBlockFactoryResetOnMobile> <energySaverOnBatteryThresholdPercentage>15</energySaverOnBatteryThresholdPercentage> <energySaverPluggedInThresholdPercentage>16</energySaverPluggedInThresholdPercentage> <microsoftAccountBlockSettingsSync>true</microsoftAccountBlockSettingsSync> <microsoftAccountBlocked>true</microsoftAccountBlocked> <microsoftAccountSignInAssistantSettings>true</microsoftAccountSignInAssistantSettings> <settingsBlockAccountsPage>true</settingsBlockAccountsPage> <settingsBlockChangeLanguage>true</settingsBlockChangeLanguage> <settingsBlockChangeRegion>true</settingsBlockChangeRegion> <settingsBlockGamingPage>true</settingsBlockGamingPage> <settingsBlockSystemPage>true</settingsBlockSystemPage> <settingsBlockTimeLanguagePage>true</settingsBlockTimeLanguagePage> <settingsBlockUpdateSecurityPage>true</settingsBlockUpdateSecurityPage> <storageBlockRemovableStorage>true</storageBlockRemovableStorage> </WindowsCommonPolicy>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ActionResponseName | Description | Type | Additional information |
---|---|---|---|
Account |
執行帳號 |
string |
None. |
Action |
執行功能 |
string |
None. |
result |
執行結果 |
boolean |
None. |
remark |
執行失敗時所使用欄位,備註錯誤原因 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Account": "sample string 1", "Action": "sample string 2", "result": true, "remark": "sample string 4" }
application/xml, text/xml
Sample:
<ActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers"> <Account>sample string 1</Account> <Action>sample string 2</Action> <remark>sample string 4</remark> <result>true</result> </ActionResponse>