---
title: "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs"
tags: ["WebPubSubHubs"]
---

# GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

List hub settings.

## Path parameters

- `subscriptionId` string, uuid, required
- `resourceGroupName` string, required
- `resourceName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Azure operation completed successfully.

- WebPubSubHubList: Hub setting list
  - `value` WebPubSubHub[], required: The WebPubSubHub items on this page
    - `id` string, arm-id: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    - `name` string: The name of the resource
    - `type` string: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    - `systemData` SystemData: Metadata pertaining to creation and last modification of the resource.
      - `createdBy` string: The identity that created the resource.
      - `createdByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that created the resource.
      - `createdAt` string, date-time: The timestamp of resource creation (UTC).
      - `lastModifiedBy` string: The identity that last modified the resource.
      - `lastModifiedByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that last modified the resource.
      - `lastModifiedAt` string, date-time: The timestamp of resource last modification (UTC)
    - `properties` WebPubSubHubProperties, required: Properties of a hub.
      - `eventHandlers` EventHandler[]: Event handler of a hub.
        - `urlTemplate` string, required: Gets or sets the URL template for the event handler. The actual URL is calculated when the corresponding event is triggered. The template supports predefined parameters syntax: `{event}`, `{hub}`, and KeyVault reference syntax `{@Microsoft.KeyVault(SecretUri=_your_secret_identifier_)}` For example, if the template is `http://example.com/api/{event}`, when `connect` event is triggered, a POST request will be sent to the URL `http://example.com/chat/api/connect`. Note: Parameters are not allowed in the hostname of the URL, and curly brackets `{}` are reserved for parameter syntax only. If your URL path contains literal curly brackets, please URL-encode them to ensure proper handling.
        - `userEventPattern` string: Gets or sets the matching pattern for event names. There are 3 kinds of patterns supported: 1. "*", it matches any event name 2. Combine multiple events with ",", for example "event1,event2", it matches event "event1" and "event2" 3. A single event name, for example, "event1", it matches "event1"
        - `systemEvents` string[]: Gets or sets the list of system events.
        - `auth` UpstreamAuthSettings: Upstream auth settings. If not set, no auth is used for upstream messages.
          - `type` 'None' | 'ManagedIdentity': Upstream auth type enum.
          - `managedIdentity` ManagedIdentitySettings: Managed identity settings for upstream.
            - `resource` string: The Resource indicating the App ID URI of the target resource. It also appears in the aud (audience) claim of the issued token.
        - `groupPresenceEvents` GroupPresenceEventFilters: Represents presence event filters for event handler configuration.
          - `eventNames` GroupPresenceEventName[], required: The concerning event names. Valid values are "joined", "left". If the value is null or empty, no presence events will be sent to the event handler.
          - `groupFilters` string[]: The group filters. Only events from these groups will be sent to the event handler. Each element is a pattern that may match multiple groups. If null or empty, events from all groups will be sent (subject to eventNames).
      - `eventListeners` EventListener[]: Event listener settings for forwarding your client events to listeners. Event listener is transparent to Web PubSub clients, and it doesn't return any result to clients nor interrupt the lifetime of clients. One event can be sent to multiple listeners, as long as it matches the filters in those listeners. The order of the array elements doesn't matter. Maximum count of event listeners among all hubs is 10.
        - `filter` EventListenerFilter, required: A base class for event filter which determines whether an event should be sent to an event listener.
          - `type` 'EventName', required
        - `endpoint` EventListenerEndpoint, required: An endpoint specifying where Web PubSub should send events to.
          - `type` 'EventHub', required
      - `anonymousConnectPolicy` string: The settings for configuring if anonymous connections are allowed for this hub: "allow" or "deny". Default to "deny".
      - `webSocketKeepAliveIntervalInSeconds` integer: The settings for configuring the WebSocket ping-pong interval in seconds for all clients in the hub. Valid range: 1 to 120. Default to 20 seconds.
      - `chat` ChatSettings: Chat settings.
        - `mode` string: Enable or disable the chat feature.
        - `persistentStorage` ResourceReference: Reference to a resource.
          - `id` string: Resource ID.
  - `nextLink` string, uri: The link to the next page of items

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-07-13** (2021-04-01-preview) `1af7b550cd0b`: 3 breaking, 2 info
  - added the new path request parameter `resourceGroupName`
  - added the new path request parameter `subscriptionId`
  - added the new required `query` request parameter `api-version`
  - api tag `WebPubSubHubs` added
  - …1 more
- **2026-07-13** (2021-04-01-preview) `41ecf87c9dda`: 2 info
  - api tag `WebPubSubHubs` added
  - api tag `WebPubSub` removed
- **2026-07-13** (2021-04-01-preview) `aa4834c0c016`: 3 warning
  - deleted the `path` request parameter `resourceGroupName`
  - deleted the `path` request parameter `subscriptionId`
  - deleted the `query` request parameter `api-version`
- **2026-07-13** (2021-04-01-preview) `6a8c711a614a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/azure/apis/webpubsub-microsoft-signalrservice-signalrservice/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.SignalRService/webPubSub/:resourceName/hubs/get.md)

---

[API](https://skmtc.dev/azure/apis/webpubsub-microsoft-signalrservice-signalrservice.md) - [All operations](https://skmtc.dev/azure/apis/webpubsub-microsoft-signalrservice-signalrservice/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/webpubsub-microsoft-signalrservice-signalrservice/revisions/1af7b550cd0b?raw)
