title | expires_at | tags | ||
---|---|---|---|---|
API Guide |
never |
|
Example: GET /ping
GET /capacity
200 Ok
{
"memory_in_bytes": 123,
"disk_in_bytes": 2,
"max_containers": 5,
}
GET /containers?prop2=bar&prop1=bing
200 Ok
{ handles: [ "match-1", "match-2" ] }
POST /containers
{
"bind_mounts": [],
"grace_time": 1200,
"handle": 'user-supplied-handle',
"network": 'network',
"rootfs": 'rootfs',
"properties": [],
"env": [] }
200 Ok
{ handle: 'handle-of-created-container' }
GET /containers/:handle/info
200 Ok
{ MemoryStat: .., CpuStat: .., PortMapping: .. }
DELETE /containers/:handle
PUT /containers/:handle/stop
{ "kill":true }
PUT /containers/:handle/files?destination=/foo/bar/baz
contents
GET /containers/:handle/files?source=/foo/bar/baz
200 Ok
contents
POST /containers/:handle/processes
{
"path": "/path/to/exe",
"user": "vcap",
..
}
GET /containers/:handle/processes/:pid
Example: PUT /containers/:handle/limits/bandwidth
Example: GET /containers/:handle/limits/bandwidth
PUT /containers/:handle/limits/cpu
{ "limit_in_shares": 2 }
GET /containers/:handle/limits/cpu
200 Ok
{ "limit_in_shares": 2 }
PUT /containers/:handle/limits/memory
{ "limit_in_bytes": 2 }
GET /containers/:handle/limits/memory
200 Ok
{ "limit_in_bytes": 2 }
PUT /containers/:handle/limits/disk
{ "block_soft": 2, "block_hard": 2, .. }
GET /containers/:handle/limits/disk
200 Ok
{ "block_soft": 2, .. }
Example: POST /containers/:handle/net/in
Example: POST /containers/:handle/net/out
Example: GET /containers/:handle/properties/:key
Example: PUT /containers/:handle/properties/:key
Example: DELETE /containers/:handle/properties/:key