Skip to content

Instantly share code, notes, and snippets.

View edvm's full-sized avatar
:shipit:
FLDSMDFR

Emiliano Dalla Verde Marcozzi edvm

:shipit:
FLDSMDFR
View GitHub Profile
(vims-cli)[edvm@laptop asd]$ vims-cli post http://vims-devel.planisys.net/api/services/cdn/config/942 --token sk_live_8A8TCvuS6IC0lD4p5nJV0DEpBS8R1pTX --json-file foo.json
content-length 90
server nginx/1.6.2
connection keep-alive
date Thu, 12 Feb 2015 17:42:24 GMT
access-control-allow-origin *
access-control-allow-headers Authorization
content-type application/json
{
"message": "cdn configuration saved and pushed",
@edvm
edvm / gist:d52c72a2937cd9415d2f
Created February 12, 2015 14:01
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": [