Gets the task with the given ID.

When the wait parameter is set then the request will not return a response until:

  • The task reaches the desired state (and optionally client action), or
  • The specified number of seconds is reached, or
  • The task completes, fails, times-out or is canceled

You must check the state property of the returned task to determine whether it reached the desired state.

Language