This method allows you to retrieve a list of all server groups within a project template.

```bash
/templates/<permalink>/server_groups
```

* Replace `<permalink>` with the permalink of your template.

## HTTP Method

```
GET
```

## Supported Parameters

None

## Example cURL Request

```bash
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
https://atech.deployhq.com/templates/api-created/server_groups
```


## Example response

```json
[
  {
    "identifier":"1247fa2d-b383-4af5-a28c-c17a05e8bd9b",
    "name":"Server group",
    "servers":[],
    "preferred_branch":null,
    "last_revision":null
  }
]
```