這個外掛程式能對企業管理的裝置執行指令。
HTTP 要求
POST https://smartdevicemanagement.googleapis.com/v1/{name=enterprises/*/devices/*}:executeCommand
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
| name | 
 要求的裝置名稱。例如:「enterprises/XYZ/devices/123」 | 
要求主體
要求主體的資料會採用以下結構:
| JSON 表示法 | 
|---|
| { "command": string, "params": { object } } | 
| 欄位 | |
|---|---|
| command | 
 要執行的指令名稱,以完整的 protobuf 訊息名稱表示。 | 
| params | 
 要執行的指令訊息,以「Strruct」表示。 | 
回應主體
SmartDeviceManagementService.ExecuteDeviceCommand 的回應訊息
如果成功,回應主體會含有以下結構的資料:
| JSON 表示法 | 
|---|
| { "results": { object } } | 
| 欄位 | |
|---|---|
| results | 
 執行指令的結果。 | 
授權範圍
需要下列 OAuth 範圍:
- https://www.googleapis.com/auth/sdm.service
詳情請參閱 OAuth 2.0 總覽。
