This method will return a list of all servers which are configured for your project.

**Tip**: You can explore and test this endpoint interactively using our [OpenAPI documentation](https://api.deployhq.com/docs).

## URL

```
/projects/<project>/server_groups
```

## HTTP Method

```
GET
```

Replace `<project>` with either the `permalink` or `identifier` of the project.

## Supported Parameters

None

## Example cURL Request

```
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
https://test.deployhq.com/projects/project/server_groups
```

## Example JSON

```json
{
  "name": "My Server Group",
  "preferred_branch": "master",
  "last_revision": "e84b5937f1132932dd56026db26a76f406555c19",
  "identifier": "7563d091-ca73-588e-cfe2-e4936f190145",
  "servers" : [
      {
        "name": "My Server",
        "server_path": "/var/www/my-project",
        "port": 22,
        "username": "dan",
        "use_ssh_keys": false,
        "last_revision": "e84b5937f1132932dd56026db26a76f406555c19",
        "hostname": "host.example.com",
        "identifier": "7563d091-ca73-588e-cfe2-e4936f190145",
        "protocol_type": "ssh"
      }
  ],
  "url": "https://test.deployhq.com/projects/my-project/server_groups/7563d091-ca73-588e-cfe2-e4936f190145"
}
```