Digital Twin - Invoke Root Level Command

Roep een opdracht op basisniveau van een digitale dubbel aan.

POST https://fully-qualified-iothubname.azure-devices.net/digitaltwins/{id}/commands/{commandName}?api-version=2021-04-12
POST https://fully-qualified-iothubname.azure-devices.net/digitaltwins/{id}/commands/{commandName}?api-version=2021-04-12&connectTimeoutInSeconds={connectTimeoutInSeconds}&responseTimeoutInSeconds={responseTimeoutInSeconds}

URI-parameters

Name In Vereist Type Description
commandName
path True

string

id
path True

string

api-version
query True

string

Versie van de API.

connectTimeoutInSeconds
query

integer

int32

Maximale tijdsinterval, in seconden, dat de opdracht digitale dubbel wacht op het antwoord.

responseTimeoutInSeconds
query

integer

int32

Maximale tijdsinterval, in seconden, dat de opdracht digitale dubbel wacht op het antwoord.

Aanvraagbody

Name Type Description
payload

object

Antwoorden

Name Type Description
200 OK

object

Retourneert de nettolading van het antwoord van de digitale dubbelopdracht

Headers

  • x-ms-command-statuscode: integer
  • x-ms-request-id: string