Cloud Panel

List security groups

GET/api/v1/security-groups

The firewalls of the account. A server goes into the default group when Create a VM names none.

Example request

curl -X GET "https://platform.serverscamp.com/api/v1/security-groups" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
itemslist of SecurityGroupResponserequiredList of security groups
items[].idintegerrequiredInternal ID
items[].sg_uuidstringrequiredSecurity group UUID
items[].namestring, optionalUser-defined name
items[].sg_namestring, optionalInternal name (sg-xxx format)
items[].descriptionstring, optionalGroup description
items[].created_atstringrequiredCreation timestamp
items[].updated_atstringrequiredLast update timestamp
totalintegerrequiredTotal count
{
  "items": [
    {
      "id": 7,
      "sg_uuid": "0e9d8c7b-6a5f-4e3d-2c1b-0a9f8e7d6c5b",
      "name": "default",
      "sg_name": "sg-0e9d8c7b",
      "description": "Default security group",
      "created_at": "2026-10-20T10:00:00Z",
      "updated_at": "2026-10-20T10:00:00Z"
    }
  ],
  "total": 1
}

Errors

StatusWhen
401No token, or a token that is not valid
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors