Skip to content

Instantly share code, notes, and snippets.

@edvm
Created February 12, 2015 17:49
Show Gist options
  • Select an option

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

Select an option

Save edvm/e26fda87549af134c124 to your computer and use it in GitHub Desktop.
vims-cli
(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",
"status": "ok",
"task_id": 2369
}
(vims-cli)[edvm@laptop asd]$ vims-cli get http://vims-devel.planisys.net/api/tasks/2369 --token sk_live_8A8TCvuS6IC0lD4p5nJV0DEpBS8R1pTX
content-length 564
server nginx/1.6.2
connection keep-alive
date Thu, 12 Feb 2015 17:43:37 GMT
access-control-allow-origin *
access-control-allow-headers Authorization
content-type application/json
{
"data": {
"comment": null,
"end": null,
"hn": {},
"id": 2369,
"name": "Configure CDN Host (all)",
"output": null,
"percentage": 0,
"service": {
"description": "cdn-devel",
"id": 942,
"name": null
},
"start": "Thu, 12 Feb 2015 17:42:24 GMT",
"status": "QUEUED",
"task_remote_id": null,
"task_type": "meta_celery",
"user": {
"email": "carlos@planisys.com",
"id": 2
},
"vims_task_type": "cdn_configure",
"vm": {}
},
"message": "bundle found",
"status": "ok"
}
(vims-cli)[edvm@laptop asd]$ clear

(vims-cli)[edvm@laptop asd]$ vims-cli get http://vims-devel.planisys.net/api/tasks/2369 --token sk_live_8A8TCvuS6IC0lD4p5nJV0DEpBS8R1pTX
content-length 564
server nginx/1.6.2
connection keep-alive
date Thu, 12 Feb 2015 17:44:40 GMT
access-control-allow-origin *
access-control-allow-headers Authorization
content-type application/json
{
"data": {
"comment": null,
"end": null,
"hn": {},
"id": 2369,
"name": "Configure CDN Host (all)",
"output": null,
"percentage": 0,
"service": {
"description": "cdn-devel",
"id": 942,
"name": null
},
"start": "Thu, 12 Feb 2015 17:42:24 GMT",
"status": "QUEUED",
"task_remote_id": null,
"task_type": "meta_celery",
"user": {
"email": "carlos@planisys.com",
"id": 2
},
"vims_task_type": "cdn_configure",
"vm": {}
},
"message": "bundle found",
"status": "ok"
}
(vims-cli)[edvm@laptop asd]$ vims-cli get http://vims-devel.planisys.net/api/tasks/2370 --token sk_live_8A8TCvuS6IC0lD4p5nJV0DEpBS8R1pTX
content-length 779
server nginx/1.6.2
connection keep-alive
date Thu, 12 Feb 2015 17:44:54 GMT
access-control-allow-origin *
access-control-allow-headers Authorization
content-type application/json
{
"data": {
"comment": null,
"end": "Thu, 12 Feb 2015 17:42:27 GMT",
"hn": {},
"id": 2370,
"name": "Configure CDN Host",
"output": "nginx: [emerg] invalid number of arguments in \"upstream\" directive in /etc/nginx/sites-enabled/edvm.conf:3\nnginx: configuration file /etc/nginx/nginx.conf test failed\n",
"percentage": 100,
"service": {
"description": "cdn-devel",
"id": 942,
"name": null
},
"start": "Thu, 12 Feb 2015 17:42:24 GMT",
"status": "FAILURE",
"task_remote_id": "05471c0e-d734-4109-851f-3915b142f6e1",
"task_type": "celery",
"user": {
"email": "carlos@planisys.com",
"id": 2
},
"vims_task_type": "celery",
"vm": {}
},
"message": "bundle found",
"status": "ok"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment