Method: mobiledevices.action

採取會影響行動裝置的操作。例如從遠端清除裝置資料。

HTTP 要求

POST https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
customerId

string

客戶 Google Workspace 帳戶的專屬 ID。帳戶管理員也可以使用 my_customer 別名來代表帳戶的customerIdcustomerId 也會做為使用者資源的一部分傳回。

resourceId

string

API 服務用來識別行動裝置的專屬 ID。

要求主體

要求主體包含 MobileDeviceAction 的例項。

回應主體

如果成功,回應是一般的 HTTP 回應,其格式則由方法定義。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/admin.directory.device.mobile
  • https://www.googleapis.com/auth/admin.directory.device.mobile.action

詳情請參閱授權指南

MobileDeviceAction

JSON 表示法
{
  "action": string
}
欄位
action

string

要在裝置上執行的動作。

可接受的值為:

  • admin_remote_wipe
  • admin_account_wipe
  • approve
  • block
  • cancel_remote_wipe_then_activate
  • cancel_remote_wipe_then_block