Added v3 templates for limits to API extensions

Change-Id: If1d744e3da60e168071315dbdab6ff4a1258990b
This commit is contained in:
Michael Dong 2017-03-21 11:01:33 -05:00
parent efcef6b31b
commit b7fa59bbc6
33 changed files with 185 additions and 0 deletions

View File

@ -0,0 +1,3 @@
GET /v3/{|project_id|}/extensions HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|project_id|}/limits HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

5
cinder_v3/meta.json Normal file
View File

@ -0,0 +1,5 @@
{
"token": {"type": "function", "val": "syntribos.extensions.identity.client:get_scoped_token_v3", "args":["user"], "fuzz": false},
"project_id": {"type": "function", "val": "syntribos.extensions.identity.client:get_project_id_v3"},
"rand_uuid": {"type": "function", "val": "syntribos.extensions.random_data.client:get_uuid"}
}

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/os-quota-sets/defaults HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
DELETE /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|} HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
DELETE /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|}/{|rand_uuid|} HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|}/detail/{|rand_uuid|} HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|} HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|}/{|rand_uuid|} HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,10 @@
PUT /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|} HTTP/1.1
Accept: application/json
Content-type: application/json
X-Auth-Token: |token|
{
"quota_set": {
"snapshots": 45
}
}

View File

@ -0,0 +1,10 @@
PUT /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|}/{|rand_uuid|} HTTP/1.1
Accept: application/json
Content-type: application/json
X-Auth-Token: |token|
{
"quota_set": {
"snapshots": 45
}
}

View File

@ -0,0 +1,23 @@
POST /v3/{|rand_uuid|}/os-volume-manage HTTP/1.1
Accept: application/json
Content-type: application/json
X-Auth-Token: |token|
{
"volume": {
"host": "geraint-VirtualBox",
"ref": {
"source-name": "existingLV",
"source-id": "1234"
},
"name": "New Volume",
"availability_zone": "az2",
"description": "Volume imported from existingLV",
"volume_type": null,
"bootable": true,
"metadata": {
"key1": "value1",
"key2": "value2"
}
}
}

View File

@ -0,0 +1,3 @@
GET /v3/{|project_id|}/scheduler-stats/get_pools HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/associate HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/associations HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,12 @@
POST /v3/{|rand_uuid|}/qos-specs HTTP/1.1
Accept: application/json
Content-type: application/json
X-Auth-Token: |token|
{
"qos_specs": {
"availability": "100",
"name": "reliability-spec",
"numberOfFailures": "0"
}
}

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/disassociate_all HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/disassociate HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/qos-specs HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
DELETE /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|} HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,10 @@
PUT /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|} HTTP/1.1
Accept: application/json
Content-type: application/json
X-Auth-Token: |token|
{
"qos_specs": {
"delay": "1"
}
}

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|} HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,10 @@
PUT /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/delete_keys HTTP/1.1
Accept: application/json
Content-type: application/json
X-Auth-Token: |token|
{
"keys": [
"key1"
]
}

View File

@ -0,0 +1,3 @@
GET /v3/{|project_id|}/os-vol-image-meta HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,10 @@
POST /v3/{|rand_uuid|}/types/{volume_type_id:CALL_EXTERNAL|syntribos.extensions.cinder.client:get_volume_type_id:[]|}/action HTTP/1.1
Accept: application/json
Content-type: application/json
X-Auth-Token: |token|
{
"addProjectAccess": {
"project": "|rand_uuid|"
}
}

View File

@ -0,0 +1,3 @@
GET /v3/{|rand_uuid|}/types/{volume_type_id:CALL_EXTERNAL|syntribos.extensions.cinder.client:get_volume_type_id:[]|}/os-volume-type-access HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,10 @@
POST /v3/{|rand_uuid|}/types/{volume_type_id:CALL_EXTERNAL|syntribos.extensions.cinder.client:get_volume_type_id:[]|}/action HTTP/1.1
Accept: application/json
Content-type: application/json
X-Auth-Token: |token|
{
"removeProjectAccess": {
"project": "|rand_uuid|"
}
}

View File

@ -0,0 +1,9 @@
POST /v3/{|project_id|}/os-volume-transfer/{transfer_id:5b363906-6967-463c-bc05-6d284cf875ee}/accept HTTP/1.1
Content-type: application/json
X-Auth-Token: |token|
{
"accept": {
"auth_key": "9266c59563c84664"
}
}

View File

@ -0,0 +1,3 @@
DELETE /v3/{|project_id|}/os-volume-transfer/{transfer_id:5b363906-6967-463c-bc05-6d284cf875ee}/accept HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|project_id|}/os-volume-transfer/detail HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|project_id|}/os-volume-transfer/{transfer_id:5b363906-6967-463c-bc05-6d284cf875ee} HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,3 @@
GET /v3/{|project_id|}/os-volume-transfer HTTP/1.1
Accept: application/json
X-Auth-Token: |token|

View File

@ -0,0 +1,10 @@
POST /v3/{|project_id|}/os-volume-transfer HTTP/1.1
Content-type: application/json
X-Auth-Token: |token|
{
"transfer": {
"volume_id": "c86b9af4-151d-4ead-b62c-5fb967af0e37",
"name": "first volume"
}
}