---
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.

---

[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)
