---
title: "Get all the IoT hubs in a resource group"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs"
tags: ["GET"]
---

# Get all the IoT hubs in a resource group

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs`

Get all the IoT hubs in a resource group.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the IoT hubs in the resource group.

- IotHubDescriptionListResult — The JSON-serialized array of IotHubDescription objects with a next link.
  - `value` IotHubDescription[] — The array of IotHubDescription objects.
    - `id` string — The resource identifier.
    - `name` string — The resource name.
    - `type` string — The resource type.
    - `location` string, required — The resource location.
    - `tags` object — The resource tags.
  - `nextLink` string — The next link.

## Other responses

- `default` — DefaultErrorResponse

---

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