Adding volume-api wadl
Change-Id: I07fdde5c400d11122fbc181fb0db4e41af2f344d
This commit is contained in:
parent
e5945bab97
commit
9810d21336
|
@ -94,6 +94,15 @@
|
|||
</executions>
|
||||
<configuration>
|
||||
<transformationSets>
|
||||
|
||||
<transformationSet>
|
||||
<dir>src/wadls/volume-api/src</dir>
|
||||
<includes>
|
||||
<include>os-volume-*.wadl</include>
|
||||
</includes>
|
||||
<stylesheet>${project.build.directory}/generated-resources/cloud/normalizeWadl/normalizeWadl.xsl</stylesheet>
|
||||
</transformationSet>
|
||||
|
||||
<transformationSet>
|
||||
<dir>src/wadls/image-api/src</dir>
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
|
|
|
@ -69,4 +69,14 @@
|
|||
href="os-image-1.0.wadl"
|
||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"/>
|
||||
</chapter>
|
||||
|
||||
<chapter xml:id="volume">
|
||||
<title>Volume</title>
|
||||
<para>The Volume API allows you to manage volumes and snapshots
|
||||
that can be used with the Compute API.</para>
|
||||
<wadl:resources
|
||||
href="os-volume-1.wadl"
|
||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"/>
|
||||
</chapter>
|
||||
|
||||
</book>
|
||||
|
|
|
@ -0,0 +1,322 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- (C) 2012 OpenStack LLC., All Rights Reserved -->
|
||||
|
||||
<application xmlns="http://wadl.dev.java.net/2009/02"
|
||||
xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
|
||||
xmlns:wadl="http://wadl.dev.java.net/2009/02">
|
||||
|
||||
<resources base="https://volume.example.com/">
|
||||
<resource id="version" path="v1">
|
||||
<resource id="tenant_id" path="{tenant_id}">
|
||||
<param name="tenant_id" style="template">
|
||||
<doc>
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">
|
||||
The unique identifier of the tenant or account.
|
||||
</p>
|
||||
</doc>
|
||||
</param>
|
||||
|
||||
<resource id="volumes" path="volumes">
|
||||
<method href="#createVolume" />
|
||||
<method href="#getVolumesSimple" />
|
||||
|
||||
<resource path="detail">
|
||||
<method href="#getVolumesDetail" />
|
||||
</resource>
|
||||
|
||||
<resource path="{volume_id}">
|
||||
<param name="volume_id" style="template" required="true">
|
||||
<doc><p xmlns="http://www.w3.org/1999/xhtml">
|
||||
The unique identifier of an existing Volume.
|
||||
</p></doc>
|
||||
</param>
|
||||
|
||||
<method href="#getVolume" />
|
||||
<method href="#deleteVolume" />
|
||||
|
||||
</resource>
|
||||
</resource>
|
||||
|
||||
<resource id="volume_types" path="volume_types">
|
||||
<method href="#getVolumeTypes" />
|
||||
|
||||
<resource path="{volume_type_id}">
|
||||
<param name="volume_type_id" style="template" required="true">
|
||||
<doc><p xmlns="http://www.w3.org/1999/xhtml">
|
||||
The unique identifier of an existing Volume Type.
|
||||
</p></doc>
|
||||
</param>
|
||||
|
||||
<method href="#getVolumeType" />
|
||||
</resource>
|
||||
</resource>
|
||||
|
||||
<resource id="snapshots" path="snapshots">
|
||||
<method href="#createSnapshot" />
|
||||
<method href="#getSnapshotsSimple" />
|
||||
|
||||
<resource path="detail">
|
||||
<method href="#getSnapshotsDetail" />
|
||||
</resource>
|
||||
|
||||
<resource path="{snapshot_id}">
|
||||
<param name="snapshot_id" style="template" required="true">
|
||||
<doc><p xmlns="http://www.w3.org/1999/xhtml">
|
||||
The unique identifier of an existing Snapshot.
|
||||
</p></doc>
|
||||
</param>
|
||||
|
||||
<method href="#getSnapshot" />
|
||||
<method href="#deleteSnapshot" />
|
||||
|
||||
</resource>
|
||||
</resource>
|
||||
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<method name="POST" id="createVolume">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" title="Create Volume">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">Create a Volume.</p>
|
||||
</wadl:doc>
|
||||
<request>
|
||||
<param name="volume" style="plain" required="true">
|
||||
<doc><p xmlns="http://www.w3.org/1999/xhtml">
|
||||
A partial representation of a volume used in the creation process.
|
||||
</p></doc>
|
||||
</param>
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_create.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_create.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</request>
|
||||
<response status="201">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_show.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_show.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
<method name="GET" id="getVolumesSimple">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E" title="List Volumes">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">View a list of simple Volume entities.</p>
|
||||
</wadl:doc>
|
||||
<response status="200">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_list_simple.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_list_simple.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
<method name="GET" id="getVolumesDetail">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E"
|
||||
title="List Volumes (Detailed)">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">View a list of detailed Volume entities.</p>
|
||||
</wadl:doc>
|
||||
<response status="200">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_list_simple.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_list_simple.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
|
||||
<method name="GET" id="getVolume">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E" title="Describe Volume">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">View all information about a single Volume.</p>
|
||||
</wadl:doc>
|
||||
<response status="200">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_show.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_show.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
<method name="DELETE" id="deleteVolume">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E" title="Delete Volume">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">Delete a single Volume.</p>
|
||||
</wadl:doc>
|
||||
<response status="202" />
|
||||
</method>
|
||||
|
||||
<method name="GET" id="getVolumeTypes">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E" title="List Volume Types">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">Request a list of Volume Types.</p>
|
||||
</wadl:doc>
|
||||
<response status="200">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_type_list.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_type_list.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
<method name="GET" id="getVolumeType">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E" title="Describe Volume Type">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">Request a single Volume Type.</p>
|
||||
</wadl:doc>
|
||||
<response status="200">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_type_show.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/volume_type_show.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
<method name="POST" id="createSnapshot">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E"
|
||||
title="Create Snapshot">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">Create a Snapshot.</p>
|
||||
</wadl:doc>
|
||||
<request>
|
||||
<param name="snapshot" style="plain" required="true">
|
||||
<doc><p xmlns="http://www.w3.org/1999/xhtml">
|
||||
A partial representation of a snapshot used in the creation process.
|
||||
</p></doc>
|
||||
</param>
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_create.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_create.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</request>
|
||||
<response status="201">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_show.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_show.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
<method name="GET" id="getSnapshotsSimple">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E"
|
||||
title="List Snapshots">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">
|
||||
View a list of simple Snapshot entities.
|
||||
</p>
|
||||
</wadl:doc>
|
||||
<response status="200">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_list_simple.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_list_simple.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
<method name="GET" id="getSnapshotsDetail">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E"
|
||||
title="List Snapshots (Detailed)">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">
|
||||
View a list of detailed Snapshot entities.
|
||||
</p>
|
||||
</wadl:doc>
|
||||
<response status="200">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_list_simple.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_list_simple.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
|
||||
<method name="GET" id="getSnapshot">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E"
|
||||
title="Describe Snapshot">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">
|
||||
View all information about a single Snapshot.
|
||||
</p>
|
||||
</wadl:doc>
|
||||
<response status="200">
|
||||
<representation mediaType="application/xml">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_show.xml" />
|
||||
</doc>
|
||||
</representation>
|
||||
<representation mediaType="application/json">
|
||||
<doc xml:lang="EN">
|
||||
<xsdxt:code href="samples/snapshot_show.json" />
|
||||
</doc>
|
||||
</representation>
|
||||
</response>
|
||||
</method>
|
||||
|
||||
<method name="DELETE" id="deleteSnapshot">
|
||||
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="E"
|
||||
title="Delete Snapshot">
|
||||
<p xmlns="http://www.w3.org/1999/xhtml">Delete a single Snapshot.</p>
|
||||
</wadl:doc>
|
||||
<response status="202" />
|
||||
</method>
|
||||
|
||||
</application>
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"snapshot": {
|
||||
"display_name": "snap-001",
|
||||
"display_description": "Daily backup",
|
||||
"volume_id": "521752a6-acf6-4b2d-bc7a-119f9148cd8c",
|
||||
"force": true
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<snapshot xmlns="http://docs.openstack.org/volume/api/v1"
|
||||
name="snap-001"
|
||||
display_name="snap-001"
|
||||
display_description="Daily backup"
|
||||
volume_id="521752a6-acf6-4b2d-bc7a-119f9148cd8c"
|
||||
force="true" />
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"snapshots": [
|
||||
{
|
||||
"id": "3fbbcccf-d058-4502-8844-6feeffdf4cb5",
|
||||
"displayName": "snap-001",
|
||||
"displayDescription": "Daily backup",
|
||||
"volumeId": "521752a6-acf6-4b2d-bc7a-119f9148cd8c",
|
||||
"status": "available",
|
||||
"size": 30,
|
||||
"createdAt": "2012-02-29T03:50:07Z"
|
||||
},
|
||||
{
|
||||
"id": "e479997c-650b-40a4-9dfe-77655818b0d2",
|
||||
"displayName": "snap-002",
|
||||
"displayDescription": "Weekly backup",
|
||||
"volumeId": "76b8950a-8594-4e5b-8dce-0dfa9c696358",
|
||||
"status": "available",
|
||||
"size": 25,
|
||||
"createdAt": "2012-03-19T01:52:47Z"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<snapshots xmlns="http://docs.openstack.org/volume/api/v1">
|
||||
<snapshot id="3fbbcccf-d058-4502-8844-6feeffdf4cb5"
|
||||
displayName="snap-001"
|
||||
displayDescription="Daily backup"
|
||||
volumeId="521752a6-acf6-4b2d-bc7a-119f9148cd8c"
|
||||
status="available"
|
||||
size="30"
|
||||
createdAt="2012-02-29T03:50:07Z" />
|
||||
<snapshot id="e479997c-650b-40a4-9dfe-77655818b0d2"
|
||||
displayName="snap-002"
|
||||
dislayDescription="Weekly backup"
|
||||
volumeId="76b8950a-8594-4e5b-8dce-0dfa9c696358"
|
||||
status="available"
|
||||
size="25"
|
||||
createdAt="2012-03-19T01:52:47Z" />
|
||||
</snapshots>
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"snapshot": {
|
||||
"id": "3fbbcccf-d058-4502-8844-6feeffdf4cb5",
|
||||
"displayName": "snap-001",
|
||||
"displayDescription": "Daily backup",
|
||||
"volumeId": "521752a6-acf6-4b2d-bc7a-119f9148cd8c",
|
||||
"status": "available",
|
||||
"size": 30,
|
||||
"createdAt": "2012-02-29T03:50:07Z"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<snapshot xmlns="http://docs.openstack.org/volume/api/v1"
|
||||
id="3fbbcccf-d058-4502-8844-6feeffdf4cb5"
|
||||
displayName="snap-001"
|
||||
displayDescription="Daily backup"
|
||||
volumeId="521752a6-acf6-4b2d-bc7a-119f9148cd8c"
|
||||
status="available"
|
||||
size="30"
|
||||
createdAt="2012-02-29T03:50:07Z" />
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"volume": {
|
||||
"display_name": "vol-001",
|
||||
"display_description": "Another volume.",
|
||||
"size": 30,
|
||||
"volume_type": "289da7f8-6440-407c-9fb4-7db01ec49164",
|
||||
"metadata": {"contents": "junk"},
|
||||
"availability_zone": "us-east1"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<volume xmlns="http://docs.openstack.org/volume/api/v1"
|
||||
display_name="vol-001"
|
||||
display_description="Another volume."
|
||||
size="30"
|
||||
volume_type="289da7f8-6440-407c-9fb4-7db01ec49164"
|
||||
availability_zone="us-east1">
|
||||
<metadata>
|
||||
<meta key="contents">junk</meta>
|
||||
</metadata>
|
||||
</volume>
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"volumes": [
|
||||
{
|
||||
"id": "521752a6-acf6-4b2d-bc7a-119f9148cd8c",
|
||||
"displayName": "vol-001",
|
||||
"displayDescription": "Another volume.",
|
||||
"size": 30,
|
||||
"volumeType": "289da7f8-6440-407c-9fb4-7db01ec49164",
|
||||
"metadata": {"contents": "junk"},
|
||||
"availabilityZone": "us-east1",
|
||||
"snapshotId": null,
|
||||
"attachments": [{}],
|
||||
"createdAt": "2012-02-14T20:53:07Z"
|
||||
},
|
||||
{
|
||||
"id": "76b8950a-8594-4e5b-8dce-0dfa9c696358",
|
||||
"displayName": "vol-002",
|
||||
"displayDescription": "Yet another volume.",
|
||||
"size": 25,
|
||||
"volumeType": "96c3bda7-c82a-4f50-be73-ca7621794835",
|
||||
"metadata": {},
|
||||
"availabilityZone": "us-east2",
|
||||
"snapshotId": null,
|
||||
"attachments": [{}],
|
||||
"createdAt": "2012-03-15T19:10:03Z"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<volumes xmlns="http://docs.openstack.org/volume/api/v1">
|
||||
<volume xmlns="http://docs.openstack.org/volume/api/v1"
|
||||
id="521752a6-acf6-4b2d-bc7a-119f9148cd8c"
|
||||
display_name="vol-001"
|
||||
display_description="Another volume."
|
||||
status="active"
|
||||
size="30"
|
||||
volume_type="289da7f8-6440-407c-9fb4-7db01ec49164"
|
||||
availability_zone="us-east1"
|
||||
createdAt="2012-02-14T20:53:07Z">
|
||||
<metadata>
|
||||
<meta key="contents">junk</meta>
|
||||
</metadata>
|
||||
</volume>
|
||||
<volume xmlns="http://docs.openstack.org/volume/api/v1"
|
||||
id="76b8950a-8594-4e5b-8dce-0dfa9c696358"
|
||||
display_name="vol-002"
|
||||
display_description="Yet another volume."
|
||||
status="active"
|
||||
size="25"
|
||||
volume_type="96c3bda7-c82a-4f50-be73-ca7621794835"
|
||||
availability_zone="us-east2"
|
||||
createdAt="2012-03-15T19:10:03Z" />
|
||||
</volumes>
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"volume": {
|
||||
"id": "521752a6-acf6-4b2d-bc7a-119f9148cd8c",
|
||||
"displayName": "vol-001",
|
||||
"displayDescription": "Another volume.",
|
||||
"size": 30,
|
||||
"volumeType": "289da7f8-6440-407c-9fb4-7db01ec49164",
|
||||
"metadata": {"contents": "junk"},
|
||||
"availabilityZone": "us-east1",
|
||||
"snapshotId": null,
|
||||
"attachments": [{}],
|
||||
"createdAt": "2012-02-14T20:53:07Z"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<volume xmlns="http://docs.openstack.org/volume/api/v1"
|
||||
id="521752a6-acf6-4b2d-bc7a-119f9148cd8c"
|
||||
display_name="vol-001"
|
||||
display_description="Another volume."
|
||||
status="active"
|
||||
size="30"
|
||||
volume_type="289da7f8-6440-407c-9fb4-7db01ec49164"
|
||||
availability_zone="us-east1"
|
||||
createdAt="2012-02-14T20:53:07Z">
|
||||
<metadata>
|
||||
<meta key="contents">junk</meta>
|
||||
</metadata>
|
||||
</volume>
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"volume_types": [
|
||||
{
|
||||
"id": "289da7f8-6440-407c-9fb4-7db01ec49164",
|
||||
"name": "vol-type-001",
|
||||
"extra_specs": {"capabilities": "gpu"}
|
||||
},
|
||||
{
|
||||
"id": "96c3bda7-c82a-4f50-be73-ca7621794835",
|
||||
"name": "vol-type-002",
|
||||
"extra_specs": {}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<volume_types xmlns="http://docs.openstack.org/volume/api/v1">
|
||||
<volume_type id="289da7f8-6440-407c-9fb4-7db01ec49164"
|
||||
name="vol-type-001">
|
||||
<extra_specs>
|
||||
<extra_spec key="capabilities">gpu</extra_spec>
|
||||
</extra_specs>
|
||||
</volume_type>
|
||||
<volume_type id="96c3bda7-c82a-4f50-be73-ca7621794835"
|
||||
name="vol-type-002" />
|
||||
</volume_types>
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"volume_type": {
|
||||
"id": "289da7f8-6440-407c-9fb4-7db01ec49164",
|
||||
"name": "vol-type-001",
|
||||
"extra_specs": {"capabilities": "gpu"}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<volume_type xmlns="http://docs.openstack.org/volume/api/v1"
|
||||
id="289da7f8-6440-407c-9fb4-7db01ec49164"
|
||||
name="vol-type-001">
|
||||
<extra_specs>
|
||||
<extra_spec key="capabilities">gpu</extra_spec>
|
||||
</extra_specs>
|
||||
</volume_type>
|
Loading…
Reference in New Issue