Method: enterprises.devices.executeCommand

기업에서 관리하는 기기에 명령어를 실행합니다.

HTTP 요청

POST https://smartdevicemanagement.googleapis.com/v1/{name=enterprises/*/devices/*}:executeCommand

URL은 gRPC 트랜스코딩 구문을 사용합니다.

경로 매개변수

매개변수
name

string

요청한 기기의 이름입니다. 예: 'enterprises/XYZ/devices/123'

요청 본문

요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.

JSON 표현
{
  "command": string,
  "params": {
    object
  }
}
필드
command

string

실행할 명령어 이름으로, 정규화된 protobuf 메시지 이름으로 표시됩니다.

params

object (Struct format)

실행할 명령어 메시지로, Struct로 표시됩니다.

응답 본문

SmartDeviceManagementService.ExecuteDeviceCommand의 응답 메시지입니다.

성공할 경우 응답 본문에 다음 구조의 데이터가 포함됩니다.

JSON 표현
{
  "results": {
    object
  }
}
필드
results

object (Struct format)

명령어 실행 결과입니다.

승인 범위

다음 OAuth 범위가 필요합니다.

  • https://www.googleapis.com/auth/sdm.service

자세한 내용은 OAuth 2.0 개요를 참고하세요.