Header

View an existing server

This method allows you to view an existing server.

URL

/project/<project>/servers/<identifier>
  • Replace <project> with the permalink of the project.
  • Replace <identifier> with the identifier of the server.

HTTP Method

GET

Supported Parameters

None

Example cURL Request

curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
https://atech.deployhq.com/projects/adam-s-test-project/servers/12341234-5678-5678-12341234

Example Response

{
  "id":884734,
  "identifier":"12341234-5678-5678-12341234",
  "name":"server",
  "protocol_type":"ssh",
  "server_path":"/home/adam/myserver",
  "last_revision":"eef3b8abaf7a4d63be748d763076dfda6a5d784f",
  "preferred_branch":"master",
  "branch":"",
  "notify_email":"",
  "server_group_identifier":nil,
  "auto_deploy":false, 
  "hostname":"my.server.io",
  "username":"adam",
  "port":"22",
  "use_ssh_keys":true,
"host_key":"AAAAB3NzaC1yc2EAAAADAQABAAABAQDMPBryafyuTgm1NTY+iTWahUin4DtYB4pudphJdRvkVmpwL06VlYqupHh0CGjagicTbSie8bA/ekPvIgROST212um3W2hlP2YqQjoulucT0l0cONN8dXZRN87AqNo4nP2sgodt2HhSqfShFkryHpFQK53vOJOGalBj6hxGvFA0XLjZl7FqbWFYwYcW5egeeSYaY+07YYPHyyhBklYQ/sSQtT/Q4E9sPs4yr/zDkouhzSYHaVrxRnA2tQYglBqvHJ2Jph+e5ylgTJh4BgFwnKGMxLYuxmGOJ6F3LTvanNvu1qFL40oZ61T7WY5gdu85bp06b+NUI4no35PiNyK89vkB",
  "unlink_before_upload":false
}