Skip to content

Instantly share code, notes, and snippets.

@edvm
Created February 12, 2015 14:01
Show Gist options
  • Select an option

  • Save edvm/d52c72a2937cd9415d2f to your computer and use it in GitHub Desktop.

Select an option

Save edvm/d52c72a2937cd9415d2f to your computer and use it in GitHub Desktop.
Get configuration from a CDN
GET http://vims-devel.planisys.net/api/services/cdn/config/<ID:CDN>
{
"data": {
"created": "Fri, 23 Jan 2015 17:01:39 GMT",
"hn": {},
"id": 5,
"json_config": {
"upstream": {
"hosts": [
{
"name": "google.com",
"port": "",
"status": "active"
}
],
"name": "edvmupstream"
},
"virtualhost": {
"add_geoip_header": "",
"canonical_name": "edvm.ninja",
"locations": [],
"name": "edvm",
"port": 80,
"server_aliases": [],
"server_auto": "",
"set_mobile_redirect": "",
"set_wordpress_auth": ""
}
},
"modified": "Thu, 12 Feb 2015 13:02:17 GMT",
"name": null,
"service": {
"description": "cdn-devel",
"id": 942,
"name": null
},
"user": {},
"version": null,
"vm": {}
},
"message": "inspect found",
"status": "ok"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment