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

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

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

Use this method to get the device security group for the specified IoT Hub resource.

## Path parameters

- `deviceSecurityGroupName` string, required

## Parameters

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

## Response `200`

Successful request to get device security group.

- DeviceSecurityGroup — unresolved $ref

## 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)
