Skip to content

Retrieve a Server from a Project

Request

Admin roles:
  • access_user
  • access_admin
  • server_admin

Retrieves the details of a specified Server.

Security
bearerAuth
Path
team_namestringrequired

The name of your Team

project_namestringrequired

The Project name

server_idstringrequired

The UUID of the Server

curl -i -X GET \
  'https://app.scaleft.com/v1/teams/{team_name}/projects/{project_name}/servers/{server_id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
access_addressstringread-onlyrequired

The access address of the Server

alt_namesArray of stringsread-onlyrequired

(Optional) Alternative names for the Server

bastionstring, [ 1 .. 255 ] charactersread-onlyrequired

The bastion host that Clients automatically use when connecting to this host

canonical_namestring, [ 1 .. 255 ] charactersread-onlyrequired

The name that Clients should use when connecting to this Server. Overrides the name found with hostname.

cloud_providerstring or null, [ 1 .. 255 ] characters(CloudProviderType)read-only

If available, the name of cloud provider used by the Gateway

Enum:"aws""azure""gce"
deleted_atstring, (date-time)read-onlyrequired

A timestamp indicating when the Server was deleted from the Project

hostnamestring, [ 1 .. 255 ] charactersread-onlyrequired

The hostname of the Server

idstring, (regex)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...read-onlyrequired

The UUID of the Server

instance_detailsany
labelsobjectrequired

(Optional) The labels for this Server. Used by the PolicySync feature, see PolicySync: Attribute-Based Access Control.

last_seenstring, (date-time)read-onlyrequired

A timestamp indicating when the Server was last seen

managedbooleanread-onlyrequired

If true, the Server is managed by 'sftd'.

osstring, [ 1 .. 255 ] charactersread-onlyrequired

The OS version of the Server, such as CentOS 6 or Debian 9.13

os_typestring, [ 1 .. 255 ] charactersread-onlyrequired

The OS family of the Server. Possible values: linux or windows.

project_namestring, [ 1 .. 255 ] charactersread-onlyrequired

The name of the Project where the Server is enrolled

registered_atstring, (date-time)read-onlyrequired

A timestamp indicating when the Server was enrolled in the Project

servicesArray of stringsread-onlyrequired

The service that Clients use to connect to the Server. Possible values: ssh or rdp.

sftd_versionstring, [ 1 .. 255 ] charactersread-onlyrequired

The version of 'sftd' running on the Server

ssh_host_keysArray of stringsread-onlyrequired

The host keys used to authenticate the Server

statestring, [ 1 .. 255 ] charactersread-onlyrequired

The state of the Server. Possible values: ACTIVE or INACTIVE.

team_namestring, (regex), [ 1 .. 255 ] characters^[\w\-_.]+$read-onlyrequired

The name of the associated Team

Response
{ "access_address": null, "alt_names": null, "bastion": null, "broker_host_certs": null, "canonical_name": null, "cloud_provider": null, "deleted_at": "0001-01-01T00:00:00Z", "hostname": "harvard", "id": "9963d86c-dd31-44ef-86a6-23ccaf859b35", "instance_details": null, "instance_id": null, "last_seen": "0001-01-01T00:00:00Z", "managed": true, "os": "Ubuntu 16.04", "os_type": "linux", "registered_at": "0001-01-01T00:00:00Z", "services": [ "broker", "ssh" ], "sftd_version": "1.44.4", "ssh_host_keys": null, "state": "INACTIVE", "team_name": "william-faulkner" }