Fetch Environment
Fetches the environment this instance is a part of.
Returns
Returns an environment resource, otherwise returns an Error.
GET /v1/environment
Example Request
$ curl --unix-socket /var/run/cycle/api/api.sock http://internal.cycle/v1/environment \-H "x-cycle-token: $CYCLE_API_TOKEN"
Example Response
{"data": {"id": "4r24db9a4190876551f5a3sf","name": "redis","about": {"description": "","favorite": false},"creator": {"id": "4r24db9a4190876551f5a3sf","type": "account"},"hub_id": "4r24db9a4190876551f5a3sf","project": null,"state": {"changed": "2020-01-14T03:55:06.366Z","job": {"id": "5e1e128cdb2ab00001389b4a","queued": "2020-01-14T19:12:12.926Z","queue": "environment-4r24db9a4190876551f5a3sf"},"current": "live"},"cluster": "development","events": {"created": "2020-01-14T03:55:06.115Z","updated": "0001-01-01T00:00:00Z","deleted": "0001-01-01T00:00:00Z"},"stack": null,"features": {"legacy_networking": false},"services": {"discovery": {"enable": true,"container_id": "5e1d3b9adb2ab00001176d13","high_availability": false,"config": null},"vpn": {"enable": true,"container_id": "5e1d3b9adb2ab00001176d15","high_availability": false,"config": null},"loadbalancer": {"enable": true,"container_id": "5e1d3b9adb2ab00001176d18","high_availability": false,"config": null}},"private_network": {"vxlan_tag": 18001,"subnet": "f4f0","ipv6": {"ip": "fd00::f4f0:0:0:0","cidr": "fd00::f4f0:0:0:0/80"},"legacy": null}}}