Last active
August 29, 2015 14:04
-
-
Save ereyes01/e77362b2c6dafdf8e7b6 to your computer and use it in GitHub Desktop.
Containable REST API Sample Usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat box-start.json | |
{ | |
"name" : "my-server", | |
"state" : "running" | |
} | |
$ curl -v -H "Content-Type: application/json" -X PUT \ | |
--data "@box-start.json" -H "X-Containable-API-Key" \ | |
https://containable-server.com/boxes/my-server | |
$ cat add-admin.json | |
{ | |
"name" : "admin", | |
"shell" : "bash" | |
} | |
$ curl -v -H "Content-Type: application/json" -X POST \ | |
--data "@add-admin.json" -H "X-Containable-API-Key" \ | |
https://my-box.com/users |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment