---
title: "GET /{resourceId}/providers/Microsoft.Security/deviceSecurityGroups"
method: GET
path: "/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups"
tags: ["DeviceSecurityGroups"]
---

# GET /{resourceId}/providers/Microsoft.Security/deviceSecurityGroups

`GET /{resourceId}/providers/Microsoft.Security/deviceSecurityGroups`

Use this method get the list of device security groups for the specified IoT Hub resource.

## Parameters

- `../../../common/v1/types.json#/components/parameters/ApiVersion` — unresolved $ref
- `../../../common/v1/types.json#/components/parameters/ResourceId` — unresolved $ref

## Response `200`

OK

- DeviceSecurityGroupList — List of device security groups
  - `value` DeviceSecurityGroup[] — List of device security group objects — unresolved $ref
  - `nextLink` string — The URI to fetch the next page.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.dev/azure/apis/security-center-4.md) · [All operations](https://skmtc.dev/azure/apis/security-center-4/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/security-center-4/revisions/c8666a280adc/schema)
