initial updates to api v2.0.0:
- switch access backend to access-manager-api - change resource quota to pool based - simplify backend system - various cleanup
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
### Get ticket
|
||||
POST {{baseUrl}}/access/ticket
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
username={{username}}
|
||||
&password={{password}}
|
||||
|
||||
### Get user
|
||||
GET {{baseUrl}}/access/users/{{username}}
|
||||
|
||||
### Get group
|
||||
GET {{baseUrl}}/access/groups/{{groupname}}
|
||||
|
||||
### Get all pools
|
||||
GET {{baseUrl}}/access/pools/
|
||||
|
||||
### Get pool
|
||||
GET {{baseUrl}}/access/pools/{{poolname}}
|
||||
|
||||
### Get all pools
|
||||
GET {{baseUrl}}/cluster/nodes
|
||||
@@ -0,0 +1,33 @@
|
||||
### Get ticket
|
||||
POST {{baseUrl}}/access/ticket
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
username={{username}}
|
||||
&password={{password}}
|
||||
|
||||
### Get instance resources
|
||||
GET {{baseUrl}}/cluster/{{testvmpath}}
|
||||
|
||||
### Test create instance
|
||||
|
||||
POST {{baseUrl}}/cluster/{{testvmpath}}/create
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
name=testvm
|
||||
&pool={{poolname}}
|
||||
&cores=8
|
||||
&memory=8192
|
||||
|
||||
### Test fail create instance
|
||||
|
||||
POST {{baseUrl}}/cluster/{{testvmpath}}/create
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
name=testvm
|
||||
&pool={{poolname}}
|
||||
&cores=9999
|
||||
&memory=8192
|
||||
|
||||
### Test delete instance
|
||||
|
||||
DELETE {{baseUrl}}/cluster/{{testvmpath}}/delete
|
||||
@@ -0,0 +1,2 @@
|
||||
### Get version
|
||||
GET {{baseUrl}}/version
|
||||
Reference in New Issue
Block a user