commit
fdb4cb4269
@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "cloudscale",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
auth {
|
||||
mode: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{key}}
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
meta {
|
||||
name: create server
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseurl}}/servers
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
name: demo1
|
||||
zone: lpg1
|
||||
flavor: flex-4-1
|
||||
image: debian-12
|
||||
volume_size_gb: 10
|
||||
ssh_keys: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJl6TPTdcIoONUYBYFF7T96JJ1SNq9VeFOzR7LUNoFHJ ueli@Air-von-Ueli
|
||||
user_data: '''
|
||||
#cloud-config
|
||||
packages: ['nginx']
|
||||
'''
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
vars {
|
||||
baseurl: https://api.cloudscale.ch/v1
|
||||
serverid: 395ad20b-6141-43a0-b103-71128c249301
|
||||
}
|
||||
vars:secret [
|
||||
key
|
||||
]
|
||||
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: flavors
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseurl}}/flavors
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: images
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseurl}}/images
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: networks
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseurl}}/networks
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: regions
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseurl}}/regions
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: server/id delete
|
||||
type: http
|
||||
seq: 12
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseurl}}/servers/{{serverid}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: server/id start
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseurl}}/servers/{{serverid}}/start
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: server/id stop
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseurl}}/servers/{{serverid}}/stop
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: server/id update
|
||||
type: http
|
||||
seq: 11
|
||||
}
|
||||
|
||||
patch {
|
||||
url: {{baseurl}}/servers/{{serverid}}
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
flavor: plus-4-2
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: server/id
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseurl}}/servers/{{serverid}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: servers
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseurl}}/servers
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
Loading…
Reference in new issue