API Hồ sơ quản lý Chrome

Chrome Management Profiles API cho phép quản trị viên xem dữ liệu và quản lý các lệnh từ xa của hồ sơ được quản lý trên trình duyệt Chrome. Bạn có thể dùng nhóm API này để liệt kê các hồ sơ được quản lý, truy xuất một hồ sơ được quản lý, xoá dữ liệu được thu thập từ hồ sơ được quản lý, phát hành một lệnh từ xa cho hồ sơ được quản lý, truy xuất một lệnh từ xa được phát hành cho hồ sơ được quản lý và liệt kê các lệnh từ xa được phát hành cho hồ sơ được quản lý.

Tổng quan nhanh về các phương thức API

Các URL liên quan đến https://chromemanagement.googleapis.com/v1/customers/{customer_id}

Mô tả URL tương đối Phương thức HTTP
Liệt kê các hồ sơ được quản lý /profiles XEM
Truy xuất hồ sơ được quản lý /profiles/{profile_permanent_id} XEM
Xoá dữ liệu được thu thập từ một hồ sơ được quản lý /profiles/{profile_permanent_id} DELETE

Các URL liên quan đến https://chromemanagement.googleapis.com/v1/customers/{customer_id}/profiles/{profile_permanent_id}

Mô tả URL tương đối Phương thức HTTP
Ra lệnh từ xa /commands ĐĂNG
Truy xuất lệnh từ xa /commands/{command_id} XEM
Liệt kê các lệnh từ xa /commands XEM

Hãy xem mã mẫu để biết ví dụ về các yêu cầu và phản hồi.

Đặc quyền của quản trị viên

Profiles API tuân thủ việc uỷ quyền vai trò quản trị viên.

Phương thức Cần có đặc quyền của quản trị viên
ListChromeBrowserProfiles "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý"
hoặc "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý -> Đọc"
GetChromeBrowserProfile "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý"
hoặc "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý -> Đọc"
DeleteChromeBrowserProfile "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý"
CreateChromeBrowserProfileCommand "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý"
GetChromeBrowserProfileCommand "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý"
hoặc "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý -> Đọc"
ListChromeBrowserProfileCommands "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý"
hoặc "Dịch vụ -> Quản lý Chrome -> Cài đặt -> Trình duyệt được quản lý -> Đọc"

Để quản lý vai trò và đặc quyền của quản trị viên, hãy truy cập vào "Bảng điều khiển dành cho quản trị viên -> Vai trò quản trị".

Phạm vi API

Chrome Management Profiles API yêu cầu các phạm vi OAuth sau:

Phương thức Phạm vi OAuth bắt buộc
ListChromeBrowserProfiles https://www.googleapis.com/auth/chrome.management.profiles
hoặc https://www.googleapis.com/auth/chrome.management.profiles.readonly
GetChromeBrowserProfile https://www.googleapis.com/auth/chrome.management.profiles
hoặc 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
hoặc https://www.googleapis.com/auth/chrome.management.profiles.readonly
ListChromeBrowserProfileCommands https://www.googleapis.com/auth/chrome.management.profiles
hoặc https://www.googleapis.com/auth/chrome.management.profiles.readonly

Để biết thêm thông tin, hãy xem bài viết Tổng quan về quy trình xác thực.