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

# GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}

`GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}`

Get the device diagnostics log collection

## Path parameters

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

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- LogCollection — Diagnostics request body
  - `operationId` string — The log collection id.
  - `deviceList` DeviceUpdateAgentId[], required — Array of Device Update agent ids
    - `deviceId` string, required — Device Id
    - `moduleId` string — Module Id
  - `description` string — Description of the diagnostics operation.
  - `createdDateTime` string — The timestamp when the operation was created.
  - `lastActionDateTime` string — A timestamp for when the current state was entered.
  - `status` 'NotStarted' | 'Running' | 'Succeeded' | 'Failed' — Operation status.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-07-13** (2020-09-01) `5ba53cf1b884` — 1 info
  - endpoint added
- **2021-03-02** (2020-09-01) `be0eed01a5b1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/deviceupdate-microsoft-deviceupdate/changes/deviceUpdate/:instanceId/management/deviceDiagnostics/logCollections/:operationId/get.md)

---

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