Service - Get Modules On Device

Retrieve all the module identities on the device.

GET https://fully-qualified-iothubname.azure-devices.net/devices/{id}/modules?api-version=2018-06-30

URI Parameters

Name In Required Type Description
id
path True
  • string

Device ID.

api-version
query True
  • string

Version of the Api.

Responses

Name Type Description
200 OK

Returns the Device object

Definitions

AuthenticationMechanism
Module

Module identity on a device

SymmetricKey
X509Thumbprint

AuthenticationMechanism

Name Type Description
symmetricKey
type enum:
  • certificateAuthority
  • none
  • sas
  • selfSigned
x509Thumbprint

Module

Module identity on a device

Name Type Description
authentication
cloudToDeviceMessageCount
  • integer
connectionState enum:
  • Connected
  • Disconnected
connectionStateUpdatedTime
  • string
deviceId
  • string
etag
  • string
generationId
  • string
lastActivityTime
  • string
managedBy
  • string
moduleId
  • string

SymmetricKey

Name Type Description
primaryKey
  • string
secondaryKey
  • string

X509Thumbprint

Name Type Description
primaryThumbprint
  • string
secondaryThumbprint
  • string