管理員可透過 Chrome 管理設定檔 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 |
詳情請參閱驗證總覽。