Adding Cinder templates

Adding templates for:
- Versions
- Backups
- Backup Actions
- Capabilities
- Consistency group snapshots
- Volume type access
- API extensions

Change-Id: I22e4c41b075d282702ed52844cb5e2106ea96a77
This commit is contained in:
Vinay Potluri 2016-09-26 12:41:23 -05:00
parent 1f8551fafa
commit 8a61f36e05
16 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,3 @@
GET /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/extensions HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,8 @@
POST /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/backups/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/action HTTP/1.1
Accept: application/json
Content-Type: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|
{
"os-force_delete": {}
}

View File

@ -0,0 +1,14 @@
POST /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/backups HTTP/1.1
Accept: application/json
Content-Type: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|
{
"backup": {
"container": null,
"description": null,
"name": "backup001",
"volume_id": "CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|",
"incremental": true
}
}

View File

@ -0,0 +1,3 @@
DELETE /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/backups/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|} HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,3 @@
GET /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/backups HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,3 @@
GET /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/backups/detail HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,11 @@
POST /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/backups/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/restore HTTP/1.1
Accept: application/json
Content-Type: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|
{
"restore": {
"name": "vol-01",
"volume_id": "CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|"
}
}

View File

@ -0,0 +1,3 @@
GET /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/backups/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|} HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,3 @@
GET /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/capabilities/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|} HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,15 @@
POST /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/cgsnapshots HTTP/1.1
Accept: application/json
Content-Type: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|
{
"cgsnapshot": {
"consistencygroup_id": "CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|",
"name": "firstcg",
"description": "first consistency group",
"user_id": "CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|",
"project_id": "CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|",
"status": "creating"
}
}

View File

@ -0,0 +1,3 @@
DELETE /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/cgsnapshots/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|} HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,3 @@
GET /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/cgsnapshots/detail HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,3 @@
GET /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/cgsnapshots HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,3 @@
GET /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/cgsnapshots/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|} HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,3 @@
GET / HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|

View File

@ -0,0 +1,3 @@
GET /v2/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/types/{CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|}/os-volume-type-access HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|