Method: enterprises.devices.executeCommand
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
企業が管理するデバイスに対してコマンドを実行します。
HTTP リクエスト
POST https://smartdevicemanagement.googleapis.com/v1/{name=enterprises/*/devices/*}:executeCommand
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
リクエストされたデバイスの名前。例: 「enterprises/XYZ/devices/123」
|
リクエスト本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"command": string,
"params": {
object
}
} |
フィールド |
command |
string
実行するコマンド名。完全修飾の protobuf メッセージ名で表します。
|
params |
object (Struct format)
構造体で表される、実行するコマンド メッセージ。
|
レスポンスの本文
SmartDeviceManagementService.ExecuteDeviceCommand に対するレスポンス メッセージ
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
JSON 表現 |
{
"results": {
object
}
} |
フィールド |
results |
object (Struct format)
コマンドの実行結果。
|
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/sdm.service
詳しくは、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eExecutes a specified command on a device managed by the enterprise using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires the command name and parameters, formatted as a JSON object.\u003c/p\u003e\n"],["\u003cp\u003eThe response body provides the command execution results, also formatted as a JSON object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/sdm.service\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]