Fetch Hub

Fetches the hub this instance is a member of.

Returns

Returns an hub resource, otherwise returns an Error.

GET /v1/hub

Example Request
$ curl --unix-socket /var/run/cycle/api/api.sock http://internal.cycle/v1/hub \
-H "x-cycle-token: $CYCLE_API_TOKEN"
Example Response
{
"data": {
"id": "7w0y9l9j23212387773k7e7k2",
"name": "compute dev",
"events": {
"created": "2017-11-22T02:15:52.091Z",
"updated": "0001-01-01T00:00:00Z",
"deleted": "0001-01-01T00:00:00Z"
},
"state": {
"changed": "2017-11-22T02:16:50.848Z",
"job": {
"id": "",
"queued": "0001-01-01T00:00:00Z",
"queue": ""
},
"current": "live"
},
"integrations": {
"letsencrypt": null
},
"providers": {
"equinix_metal": {
"api_key": "2HF*****************************",
"project": "wefse234-6098-4a86-w3t2-a2b5c7f2f241"
},
"vultr": {
"api_key": "OAH*********************************"
},
"aws": {
"api_key": "AKI*****************",
"secret": "iEg*************************************"
}
},
"billing": {
"term": {
"start": "2020-01-22T23:17:43.414Z",
"end": "2020-02-22T23:17:43.414Z",
"renew": null
}
},
"meta": null
}
}