---
title: "GetAllWriterGroupStates"
method: GET
path: "/v2/diagnostics/writergroups"
tags: ["Diagnostics"]
---

# GetAllWriterGroupStates

`GET /v2/diagnostics/writergroups`

Get the state of all writer groups currently configured in the publisher, including the state of each of their dataset writers.

## Response `200`

The operation was successful.

- WriterGroupStateDiagnosticModel[]
  - `id` string, required — Writer group identifier.
  - `writerGroupName` string — Writer group name.
  - `version` integer — Writer group version
  - `dataSetWriters` DataSetWriterStateDiagnosticModel[], required — Diagnostics for the dataset writers
    - `id` string, required — Dataset writer identifier.
    - `dataSetWriterName` string — Dataset writer name.
    - `endpointUrl` string — The endpoint url of the server the writer is connecting to.
    - `useSecurity` boolean — Whether the connection to the endpoint uses a secure channel.
    - `opcAuthenticationMode` 'Anonymous' | 'UsernamePassword' | 'Certificate' — Specifies the authentication method used to connect to OPC UA servers. The chosen mode determines how the Publisher authenticates itself to servers. When using credentials or certificates, encrypted communication should be enabled via UseSecurity or EndpointSecurityMode to protect authentication secrets.
    - `opcAuthenticationUsername` string — The user name used to connect to the endpoint in case of user name and password authentication.
    - `source` PublishedDataSetSourceDiagnosticModel — Model for monitored item node errors
      - `errors` MonitoredItemNodeErrorModel[] — Error information for nodes inside the writer source
        - `nodeId` string, required — Node id of the variable
        - `errorInfo` ServiceResultModel, required — Service result
          - `statusCode` integer — Error code - if null operation succeeded.
          - `errorMessage` string — Error message in case of error or null.
          - `symbolicId` string — Symbolic identifier
          - `locale` string — Locale of the error message
          - `additionalInfo` string — Additional information if available
          - `namespaceUri` string — Namespace uri
          - `inner` ServiceResultModel — recursive

## Other responses

- `500` — An unexpected error occurred

## Changes

- **2026-08-31** `6a0e0e1a68ac` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/opcpublisher/changes/v2/diagnostics/writergroups/get.md)

---

[API](https://skmtc.dev/azure/apis/opcpublisher.md) · [All operations](https://skmtc.dev/azure/apis/opcpublisher/llms.txt) · [OpenAPI document](https://skmtc.dev/azure/apis/opcpublisher/revisions/6a0e0e1a68ac?raw)
