---
title: "GET /api/v2/providers/azure/securitygroups"
method: GET
path: "/api/v2/providers/azure/securitygroups"
tags: ["azure"]
---

# GET /api/v2/providers/azure/securitygroups

`GET /api/v2/providers/azure/securitygroups`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/docs/api/v2/providers/azure/securitygroups/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists available VM security groups

## Headers

- `SubscriptionID` string
- `TenantID` string
- `ClientID` string
- `ClientSecret` string
- `Credential` string
- `ResourceGroup` string
- `Location` string

## Response `200`

AzureSecurityGroupsList

- AzureSecurityGroupsList: AzureSecurityGroupsList is the object representing the security groups for vms in azure cloud provider
  - `securityGroups` string[]

## Other responses

- `default`: errorResponse

---

[API](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api.md) - [All operations](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/revisions/815b9bf19db5?raw)
