---
title: "GET /deviceUpdate/{instanceId}/management/operations/{operationId}"
method: GET
path: "/deviceUpdate/{instanceId}/management/operations/{operationId}"
tags: ["Device and deployment management"]
---

# GET /deviceUpdate/{instanceId}/management/operations/{operationId}

`GET /deviceUpdate/{instanceId}/management/operations/{operationId}`

Retrieve operation status.

## Path parameters

- `instanceId` string, required
- `operationId` string, required

## Query parameters

- `api-version` string, required

## Headers

- `If-None-Match` string

## Response `200`

The request has succeeded.

- DeviceOperation — Operation metadata.
  - `operationId` string, required — Operation Id.
  - `status` 'NotStarted' | 'Running' | 'Succeeded' | 'Failed', required — Operation status.
  - `error` Error — Error details.
    - `code` string, required — Server defined error code.
    - `message` string, required — A human-readable representation of the error.
    - `target` string — The target of the error.
    - `details` Error[] — An array of errors that led to the reported error.
    - `innererror` InnerError — An object containing more specific information than the current object about the error.
      - `code` string, required — A more specific error code than what was provided by the containing error.
      - `message` string — A human-readable representation of the error.
      - `errorDetail` string — The internal error or exception message.
      - `innerError` InnerError — recursive
    - `occurredDateTime` string, date-time — Date and time in UTC when the error occurred.
  - `traceId` string — Operation correlation identity that can used by Microsoft Support for troubleshooting.
  - `lastActionDateTime` string, date-time, required — Date and time in UTC when the operation status was last updated.
  - `createdDateTime` string, date-time, required — Date and time in UTC when the operation was created.
  - `etag` string — Operation ETag.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/deviceupdate-microsoft-deviceupdate.md) · [All operations](https://skmtc.net/azure/apis/deviceupdate-microsoft-deviceupdate/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/deviceupdate-microsoft-deviceupdate/versions/ceb0ecac6c82/schema)
