From 77e2d72e64f74f8334bc0ff87686fe1a7ecc9dd5 Mon Sep 17 00:00:00 2001 From: Diane Fleming Date: Fri, 20 Dec 2013 16:15:32 -0600 Subject: [PATCH] Boot volume - add imageRef and bootable attributes To create a bootable volume, you must include imageRef and bootable attributes Partial-Bug: #1215147 Change-Id: I31a9b40d5da0281e6ea3fcdea59ee6989a454789 author: diane fleming --- .../wadls/volume-api/src/v1/volume-api.wadl | 2 +- .../src/v2/samples/volume_create_request.json | 19 +- .../src/v2/samples/volume_create_request.xml | 6 +- .../v2/samples/volume_create_response.json | 28 +- .../src/v2/samples/volume_create_response.xml | 8 +- .../wadls/volume-api/src/v2/volume-api.wadl | 480 +++++++++++------- 6 files changed, 320 insertions(+), 223 deletions(-) diff --git a/api-ref/src/wadls/volume-api/src/v1/volume-api.wadl b/api-ref/src/wadls/volume-api/src/v1/volume-api.wadl index f3badd319..e4a43481d 100644 --- a/api-ref/src/wadls/volume-api/src/v1/volume-api.wadl +++ b/api-ref/src/wadls/volume-api/src/v1/volume-api.wadl @@ -10,7 +10,7 @@ -

The +

The unique identifier of the tenant or account.

diff --git a/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_request.json b/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_request.json index 85fd6569d..241da399f 100644 --- a/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_request.json +++ b/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_request.json @@ -1,10 +1,13 @@ { - "volume": { - "name": "vol-001", - "description": "Another volume.", - "size": 30, - "volume_type": "289da7f8-6440-407c-9fb4-7db01ec49164", - "availability_zone": "us-east1", - "metadata": {"contents": "junk"} - } + "volume":{ + "availability_zone":"nova", + "bootable":"true", + "description":null, + "size":2, + "display_name":"my-new-vol2", + "imageRef":"f855b40a-66c7-4b6e-8a46-f229e70a2d0f", + "metadata":{ + + } + } } \ No newline at end of file diff --git a/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_request.xml b/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_request.xml index 8b68197b8..b854485e4 100644 --- a/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_request.xml +++ b/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_request.xml @@ -1,9 +1,9 @@ + name="vol-001" description="Another volume." size="2" + availability_zone="nova" bootable="true" + imageRef="f855b40a-66c7-4b6e-8a46-f229e70a2d0f"> junk diff --git a/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_response.json b/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_response.json index 6c5da1ff2..1fbede0e9 100644 --- a/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_response.json +++ b/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_response.json @@ -1,16 +1,16 @@ { - "volume": { - "id": "6996b558-d633-4635-8116-adf14009fcc3", - "links": [ - { - "href": "http://localhost:8776/v2/0c2eba2c5af04d3f9e9d0d410b371fde/volumes/6996b558-d633-4635-8116-adf14009fcc3", - "rel": "self" - }, - { - "href": "http://localhost:8776/0c2eba2c5af04d3f9e9d0d410b371fde/volumes/6996b558-d633-4635-8116-adf14009fcc3", - "rel": "bookmark" - } - ], - "name": "vol-001" - } + "volume":{ + "id":"71586f20-57de-4c06-97b9-1d1b59ed037b", + "links":[ + { + "href":"http://23.253.72.207:8776/v2/73f0aa26640f4971864919d0eb0f0880/volumes/71586f20-57de-4c06-97b9-1d1b59ed037b", + "rel":"self" + }, + { + "href":"http://23.253.72.207:8776/73f0aa26640f4971864919d0eb0f0880/volumes/71586f20-57de-4c06-97b9-1d1b59ed037b", + "rel":"bookmark" + } + ], + "name":"my-new-vol2" + } } \ No newline at end of file diff --git a/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_response.xml b/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_response.xml index de5614d98..94ae3cea1 100644 --- a/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_response.xml +++ b/api-ref/src/wadls/volume-api/src/v2/samples/volume_create_response.xml @@ -1,9 +1,7 @@ - + diff --git a/api-ref/src/wadls/volume-api/src/v2/volume-api.wadl b/api-ref/src/wadls/volume-api/src/v2/volume-api.wadl index 4f0d28277..7474bb0a0 100644 --- a/api-ref/src/wadls/volume-api/src/v2/volume-api.wadl +++ b/api-ref/src/wadls/volume-api/src/v2/volume-api.wadl @@ -5,31 +5,32 @@ - -

The - unique identifier of the tenant or - account.

-
+ type="xsd:string"> + + The unique identifier of the tenant or + account. - + - + -

The unique identifier of an - existing volume.

+ The unique + identifier of an existing + volume. @@ -38,13 +39,15 @@
- + -

The unique identifier of an - existing volume type.

+ The unique + identifier of an existing volume + type.
@@ -52,16 +55,17 @@ - + - + -

The unique identifier of an - existing snapshot.

+ The unique + identifier of an existing + snapshot. @@ -72,407 +76,499 @@
- -

Creates a - volume.

+ + Creates a volume. + To create a bootable volume, include the image ID + and set the bootable flag to + true in the request body. - + + + The availability zone. + + + + A flag that indicates whether the volume is + bootable. A bootable volume is one from which + you can boot an instance. + + + + The volume description. + + + + The size of the volume in + GBs. + + + + The volume name. + + + + The ID of the image from which you want to + create the volume. Required to create a + bootable volume. + + + + Metadata to associate with the + volume. + - + - +
- + - + + + + The volume ID. + + + + The links through which you can access the + volume. + + + + The volume name. + - + - + - + - +
- -

Lists summary - information for all Cinder volumes that are accessible - to the tenant who submits the request.

+ + Lists summary information for all + Block Storage volumes that the tenant who submits the + request can access. - + - +
- + - +
- -

Lists detailed - information for all Cinder volumes that are accessible - to the tenant who submits the request.

+ + Lists detailed information for all + Block Storage volumes that the tenant who submits the + request can access. - + - +
- + - +
- -

Shows information - about a specified volume.

+ + Shows information about a specified + volume. - + - +
- + - +
- -

Updates a - volume.

+ + Updates a volume. - -

A - description of the volume.

+ + A description of the + volume. -

The name - of the volume.

+ The name of the + volume. - + - +
- + - + - + - + - + - +
- -

Deletes a - specified volume.

+ + Deletes a specified volume.
- -

Lists volume - types.

+ + Lists volume types. - + - +
- + - +
- -

Shows information - about a specified volume type.

+ + Shows information about a specified + volume type. - + - +
- + - +
- -

Creates a snapshot, which is a point-in-time copy of - a volume. You can create a new volume from the - snapshot.

-
+ + Creates a snapshot, which is a + point-in-time copy of a volume. You can create a + volume from the snapshot. + -

A partial - representation of a snapshot used in the - creation process.

-
+ A partial representation of a + snapshot used in the creation process. + -

The ID of - the volume to snapshot.

-
+ The ID of the volume to + snapshot. + -

- [True/False] Indicate whether to snapshot, - even if the volume is attached. - Default==False.

-
+ [True/False] Indicate whether + to snapshot, even if the volume is attached. + Default==False. + -

Name of - the snapshot. Default==None.

-
+ Name of the snapshot. + Default==None. + -

- Description of snapshot. Default==None.

-
+ Description of snapshot. + Default==None. + - + - + - + - +
- + - + - + - +
- -

Lists summary - information for all Cinder snapshots that are - accessible to the tenant who submits the request.

+ + Lists summary information for all + Block Storage snapshots that the tenant who submits + the request can access. - + - +
- + - +
- -

Lists detailed - information for all Cinder snapshots that are - accessible to the tenant who submits the request.

+ + Lists detailed information for all + Block Storage snapshots that the tenant who submits + the request can access. - + - +
- + - +
- -

Shows information - for a specified snapshot.

+ + Shows information for a specified + snapshot. - + - +
- + - +
- -

Updates a - specified snapshot.

+ + Updates a specified + snapshot. - -

Describes - the snapshot.

+ + Describes the + snapshot. -

The name - of the snapshot.

+ The name of the + snapshot. - + - +
- + - + - + - + - + - +
- -

Deletes a - specified snapshot.

+ + Deletes a specified + snapshot.