Fetch Server

Fetches information about the server that this instance is deployed to.

Returns

Returns a server resource, otherwise returns an Error.

GET /v1/server

Example Request
$ curl --unix-socket /var/run/cycle/api/api.sock http://internal.cycle/v1/server \
-H "x-cycle-token: $CYCLE_API_TOKEN"
Example Response
{
"data": {
"id": "7w0y9l9j23212387773k7e7k2",
"hostname": "rexkl-vultr-dfw.s.7w0y9l9j23212387773k7e7k2.cycle.io",
"creator": {
"id": "7w0y9l9j23212387773k7e7k2",
"type": "account"
},
"hub_id": "7w0y9l9j23212387773k7e7k2",
"provider": {
"identifier": "vultr",
"model": "202",
"location": "3",
"server": "32463539",
"init_ips": [
"104.123.147.52",
"2001:19f0:6401:2a38:2188:02ff:fa7b:9236"
]
},
"location_id": "7w0y9l9j23212387773k7e7k2",
"cluster": "development",
"constraints": {
"tags": [
"vultr",
"vultr-dfw",
"vultr-virt.x86",
"vultr-general"
],
"allow": {
"overcommit": false,
"pool": true,
"services": true
}
},
"model_id": "5c8058fa4938523a9e339aee",
"node_id": "7w0y9l9j23212387773k7e7k2",
"state": {
"changed": "2020-01-10T17:36:55.777Z",
"job": {
"id": "",
"queued": "0001-01-01T00:00:00Z",
"queue": ""
},
"current": "live"
},
"events": {
"created": "2020-01-10T16:58:16.871Z",
"updated": "0001-01-01T00:00:00Z",
"deleted": "0001-01-01T00:00:00Z",
"provisioning": {
"started": "0001-01-01T00:00:00Z",
"completed": "0001-01-01T00:00:00Z"
}
}
}
}