---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups"
tags: ["NetworkSecurityGroups"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups

`GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups`

Gets all network security groups in a subscription.

## Parameters

- `./network.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `./network.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Response `200`

Request successful. The operation returns a list of NetworkSecurityGroup resources.

- NetworkSecurityGroupListResult — Response for ListNetworkSecurityGroups API service call.
  - `value` NetworkSecurityGroup[] — A list of NetworkSecurityGroup resources. — unresolved $ref
  - `nextLink` string — The URL to get the next set of results.

---

[API](https://skmtc.dev/azure/apis/networkmanagementclient-23.md) · [All operations](https://skmtc.dev/azure/apis/networkmanagementclient-23/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/networkmanagementclient-23/revisions/61fd157eddb9/schema)
