---
title: "View a server"
method: GET
path: "/projects/{project_id}/servers/{id}"
tags: ["Servers"]
---

# View a server

`GET /projects/{project_id}/servers/{id}`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{project_id}/servers/{id}`
- Auth: HTTP basic

Returns the full details of a single server including its connection configuration.
Returns server details including provisioning state for managed protocols. For static_hosting servers the
response includes a `static_hosting` block (status, url). For managed_vps servers the response includes a
`managed_vps` block (status, ip_address, region, size, ssh_key). Either block is `null` when the underlying managed
resource does not exist yet (e.g. provisioning failed before it was created). Poll this endpoint to track provisioning.

## Path parameters

- `project_id` string, required
- `id` string, required

## Response `200`

Success

- IdIdentifierNameObject2
  - `id` integer
  - `identifier` string
  - `name` string
  - `protocol_type` string
  - `enabled` boolean
  - `static_hosting` object
    - `hosted_website_identifier` string
    - `subdomain` string
    - `url` string
    - `spa_mode` boolean
    - `status` string
    - `active_deployment_uuid` string
  - `managed_vps` object
    - `hosted_resource_identifier` string
    - `status` string
    - `ip_address` string
    - `region` string
    - `size` string
    - `ssh_key` object
      - `identifier` string
      - `title` string
      - `fingerprint` string

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `404`: The requested resource could not be found.
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
