---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices"
tags: ["DeviceServices"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices

`GET /subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices`

Get all the IoT hubs in a subscription.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK. The request has succeeded.

- DeviceServiceDescriptionListResult — The JSON-serialized array of DeviceService objects with a next link.
  - `value` DeviceService[] — The array of DeviceService objects.
    - `id` string — Fully qualified resource Id for the resource
    - `name` string — The name of the resource
    - `type` string — The type of the resource.
  - `nextLink` string — The next link.

## Other responses

- `default` — DefaultErrorResponse

---

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