Run a module component command

Run a command on a module.

post/devices/{deviceId}/modules/{moduleName}/components/{componentName}/commands/{commandName}

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    OAuth 2
    Implicithttps://login.microsoftonline.com/common/oauth2/authorize
    Scopesuser_impersonation

Path parameters

deviceIdstring required

Unique ID of the device.

moduleNamestring required

Name of the device module.

componentNamestring required

Name of the device component.

commandNamestring required

Name of this device command.

Query parameters

api-versionstring required

The version of the API being called.

Request body

idstring

The request ID of the device command execution.

connectionTimeoutinteger

Connection timeout in seconds to wait for a disconnected device to come online. Defaults to 0 seconds.

responseTimeoutinteger

Response timeout in seconds to wait for a command completion on a device. Defaults to 30 seconds.

requestunknown
responseunknown
responseCodeinteger

The status code of the device command response.

Response

Success

idstring

The request ID of the device command execution.

connectionTimeoutinteger

Connection timeout in seconds to wait for a disconnected device to come online. Defaults to 0 seconds.

responseTimeoutinteger

Response timeout in seconds to wait for a command completion on a device. Defaults to 30 seconds.

requestunknown
responseunknown
responseCodeinteger

The status code of the device command response.

Changes

No recorded changes to this operation across all 8 revisions of this API.