---
title: "Get a security group"
method: GET
path: "/v1/projects/{projectId}/security-groups/{id}"
tags: ["Networks"]
---

# Get a security group

`GET /v1/projects/{projectId}/security-groups/{id}`

Retrieves the details of a security group.

## Path parameters

- `projectId` string, required
- `id` string, required

## Response `200`

A successful response.

- SecurityGroup
  - `dataCenterId` string, required
  - `description` string
  - `id` string, required
  - `projectId` string
  - `rules` Rule[]
    - `icmpType` string
    - `id` string
    - `ipRangeCidr` string
    - `ports` string
    - `protocol` 'PROTOCOL_UNKNOWN' | 'PROTOCOL_ALL' | 'PROTOCOL_TCP' | 'PROTOCOL_UDP' | 'PROTOCOL_ICMP' | 'PROTOCOL_ICMPv6' | 'PROTOCOL_IPSEC'
    - `ruleType` 'RULE_TYPE_UNKNOWN' | 'RULE_TYPE_INBOUND' | 'RULE_TYPE_OUTBOUND'

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/cudocompute/apis/cudo-compute-service.md) · [All operations](https://skmtc.net/cudocompute/apis/cudo-compute-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cudocompute/cudo-compute-service/versions/93dc40dababc/schema)
