2020-07-11 11:04:37 +00:00
|
|
|
POST http://localhost:1323/v1/apps
|
2021-04-25 22:57:05 +00:00
|
|
|
Authorization: Token ABCD
|
2020-07-11 11:04:37 +00:00
|
|
|
Content-type: application/json
|
|
|
|
|
|
|
|
{
|
2021-04-02 16:10:34 +00:00
|
|
|
"name": "test_1234",
|
2020-07-23 21:50:20 +00:00
|
|
|
"ssh_port": 46502,
|
|
|
|
"http_port": 46503,
|
2020-07-11 11:04:37 +00:00
|
|
|
"image": "docker.io/rosti/runtime:2020.04-1",
|
|
|
|
"cpu": 100,
|
2020-07-21 09:52:23 +00:00
|
|
|
"memory": 128
|
2020-07-11 11:04:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
PUT http://localhost:1323/v1/apps/test_1234
|
|
|
|
Content-type: application/json
|
|
|
|
|
|
|
|
{
|
2020-07-11 21:14:45 +00:00
|
|
|
"ssh_port": 46500,
|
2020-07-14 21:40:47 +00:00
|
|
|
"http_port": 46501,
|
|
|
|
"memory": 128
|
2020-07-11 11:04:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2020-07-13 22:01:42 +00:00
|
|
|
# Start
|
|
|
|
|
2021-04-02 16:10:34 +00:00
|
|
|
PUT http://localhost:1323/v1/apps/test_4567/start
|
2020-07-11 11:04:37 +00:00
|
|
|
Content-type: application/json
|
2020-07-11 21:14:45 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2020-07-15 21:32:28 +00:00
|
|
|
# Stop
|
2020-07-11 21:14:45 +00:00
|
|
|
|
|
|
|
PUT http://localhost:1323/v1/apps/test_1234/stop
|
|
|
|
Content-type: application/json
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2020-07-13 22:01:42 +00:00
|
|
|
# Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
PUT http://localhost:1323/v1/apps/test_1234/rebuild
|
|
|
|
Content-type: application/json
|
2020-08-06 22:36:40 +00:00
|
|
|
Authorization: Token fee60059-f554-4c35-b44f-74b6be377095
|
2020-07-13 22:01:42 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Delete of app
|
|
|
|
|
2021-04-02 16:10:34 +00:00
|
|
|
DELETE http://localhost:1323/v1/apps/test_4567
|
2020-07-11 21:14:45 +00:00
|
|
|
Content-type: application/json
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2021-04-02 16:10:34 +00:00
|
|
|
# Processes
|
2020-07-11 21:14:45 +00:00
|
|
|
|
2021-04-02 16:10:34 +00:00
|
|
|
GET http://localhost:1323/v1/apps/test_1234/processes
|
2020-07-11 21:14:45 +00:00
|
|
|
|
2020-07-15 21:32:28 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
# Get
|
|
|
|
|
2020-07-25 22:34:16 +00:00
|
|
|
GET http://localhost:1323/v1/apps/test_1234
|
2020-07-15 21:32:28 +00:00
|
|
|
Content-type: application/json
|
|
|
|
|
|
|
|
|
2020-07-11 21:14:45 +00:00
|
|
|
###
|
|
|
|
|
2020-07-13 22:01:42 +00:00
|
|
|
# List of all apps
|
2020-07-11 21:14:45 +00:00
|
|
|
|
|
|
|
GET http://localhost:1323/v1/apps
|
|
|
|
Content-type: application/json
|
2020-08-06 22:36:40 +00:00
|
|
|
Authorization: Token fee60059-f554-4c35-b44f-74b6be377095
|
2020-07-16 21:24:09 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
POST http://localhost:1323/v1/apps/test_1234/labels
|
|
|
|
Content-type: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"Value": "userid:cx"
|
|
|
|
}
|
2020-07-21 09:52:23 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
DELETE http://localhost:1323/v1/apps/test_1234/labels
|
|
|
|
Content-type: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"Value": "userid:cx"
|
|
|
|
}
|
2020-08-06 22:36:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Set password
|
|
|
|
|
2021-04-02 16:10:34 +00:00
|
|
|
PUT http://localhost:1323/v1/apps/test_1234/keys
|
2020-08-06 22:36:40 +00:00
|
|
|
Content-type: application/json
|
|
|
|
|
2021-04-02 16:10:34 +00:00
|
|
|
testrr
|