借助 Chrome Management Profiles API,管理员可以查看数据并管理 Chrome 浏览器上受管理个人资料的远程命令。这组 API 可用于列出受管理的个人资料、检索受管理的个人资料、删除从受管理的个人资料收集的数据、向受管理的个人资料发出远程命令、检索向受管理的个人资料发出的远程命令,以及列出向受管理的个人资料发出的远程命令。
API 方法快速概览
网址相对于 https://chromemanagement.googleapis.com/v1/customers/{customer_id}
说明 | 相对网址 | HTTP 方法 |
---|---|---|
列出受管理资料 | /profiles | GET |
检索受管理资料 | /profiles/{profile_permanent_id} | GET |
删除从受管个人资料收集的数据 | /profiles/{profile_permanent_id} | 删除 |
网址相对于 https://chromemanagement.googleapis.com/v1/customers/{customer_id}/profiles/{profile_permanent_id}
说明 | 相对网址 | HTTP 方法 |
---|---|---|
发出远程命令 | /commands | POST |
检索远程命令 | /commands/{command_id} | GET |
列出远程命令 | /commands | GET |
如需查看请求和响应示例,请参阅代码示例。
管理员权限
Profiles API 遵循管理员角色委托。
方法 | 需要管理员权限 |
---|---|
ListChromeBrowserProfiles | “服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器” 或“服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器 -> 读取” |
GetChromeBrowserProfile | “服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器” 或“服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器 -> 读取” |
DeleteChromeBrowserProfile | “服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器” |
CreateChromeBrowserProfileCommand | “服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器” |
GetChromeBrowserProfileCommand | “服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器” 或“服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器 -> 读取” |
ListChromeBrowserProfileCommands | “服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器” 或“服务 -> Chrome 管理 -> 设置 -> 受管理的浏览器 -> 读取” |
如需管理管理员角色和权限,请访问“管理控制台 -> 管理员角色”。
API 范围
Chrome 管理个人资料 API 需要以下 OAuth 范围:
方法 | 所需的 OAuth 范围 |
---|---|
ListChromeBrowserProfiles | https://www.googleapis.com/auth/chrome.management.profiles 或 https://www.googleapis.com/auth/chrome.management.profiles.readonly |
GetChromeBrowserProfile | https://www.googleapis.com/auth/chrome.management.profiles 或 https://www.googleapis.com/auth/chrome.management.profiles.readonly |
DeleteChromeBrowserProfile | https://www.googleapis.com/auth/chrome.management.profiles |
CreateChromeBrowserProfileCommand | https://www.googleapis.com/auth/chrome.management.profiles |
GetChromeBrowserProfileCommand | https://www.googleapis.com/auth/chrome.management.profiles 或 https://www.googleapis.com/auth/chrome.management.profiles.readonly |
ListChromeBrowserProfileCommands | https://www.googleapis.com/auth/chrome.management.profiles 或 https://www.googleapis.com/auth/chrome.management.profiles.readonly |
如需了解详情,请参阅身份验证概览。