Fix URI for os-interface extension

Closes-Bug: #1293628

Change-Id: Ie5cea7a9384063afcac901c6be1945c798a567d7
Author: Diane Fleming dfleming@austin.rr.com
This commit is contained in:
Diane Fleming 2014-07-20 14:24:04 -05:00
parent e88eceb8b3
commit 0dbdee12f6
1 changed files with 62 additions and 120 deletions

View File

@ -2,51 +2,37 @@
<!-- (C) 2012-2014 OpenStack Foundation, All Rights Reserved -->
<application xmlns="http://wadl.dev.java.net/2009/02"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:db="http://docbook.org/ns/docbook"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:db="http://docbook.org/ns/docbook"
xmlns:csapi="http://docs.openstack.org/compute/api/v2"
xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
xmlns:common="http://docs.openstack.org/common/api/v1.0"
xmlns:wadl="http://wadl.dev.java.net/2009/02"
xmlns:atom="http://www.w3.org/2005/Atom">
<resources base="https://servers.api.openstack.com"
xml:id="os-attach-interfaces-v2">
xmlns:wadl="http://wadl.dev.java.net/2009/02" xmlns:atom="http://www.w3.org/2005/Atom">
<resources base="https://servers.api.openstack.com" xml:id="os-interface-v2">
<resource id="version" type="#VersionDetails" path="//v2">
<resource id="tenantID" path="{tenant_id}">
<param name="tenant_id" style="template"
type="xsd:string">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<para>The ID for the tenant or account in a
multi-tenancy cloud.</para>
<param name="tenant_id" style="template" type="xsd:string">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The ID for the tenant or account in a multi-tenancy cloud.</para>
</wadl:doc>
</param>
<resource id="Servers" path="servers">
<resource path="{server_id}" id="server_id">
<param name="server_id" style="template"
type="csapi:UUID">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<para>The UUID for the server of
interest to you.</para>
<param name="server_id" style="template" type="csapi:UUID">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The UUID for the server of interest to you.</para>
</wadl:doc>
</param>
<resource path="os-attach-interfaces"
id="os-attach-interfaces">
<resource path="os-interface" id="os-interface">
<method href="#createAttachInterface"/>
<method href="#listAttachedInterfaces"/>
<resource path="{attachment_id}"
id="attachment_id">
<param name="attachment_id"
style="template" type="csapi:UUID">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<para>The interface ID.</para>
</wadl:doc>
<resource path="{attachment_id}" id="attachment_id">
<param name="attachment_id" style="template" type="csapi:UUID">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The interface ID.</para>
</wadl:doc>
</param>
<method href="#showAttachedInterface"/>
<method
href="#deleteAttachedInterface"/>
<method href="#deleteAttachedInterface"/>
</resource>
</resource>
</resource>
@ -55,96 +41,73 @@
</resource>
</resources>
<method name="POST" id="createAttachInterface">
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN"
title="Create interface">
<para role="shortdesc">Creates and uses a port interface
to attach the port to a server instance.</para>
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN" title="Create interface">
<para role="shortdesc">Creates and uses a port interface to attach the port to a server
instance.</para>
</wadl:doc>
<request>
<representation mediaType="application/json">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
href="../api_samples/os-attach-interfaces/attach-interfaces-create-req.json"
/>
</wadl:doc>
</representation>
<representation mediaType="application/xml">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
href="../api_samples/os-attach-interfaces/attach-interfaces-create-req.xml"
/>
</wadl:doc>
<param name="interfaceAttachment" style="plain"
type="xsd:string" required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<para>Specify the
<code>interfaceAttachment</code>
action in the request body.</para>
<param name="interfaceAttachment" style="plain" type="xsd:string" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>Specify the <code>interfaceAttachment</code> action in the request
body.</para>
</wadl:doc>
</param>
<param name="port_id" style="plain" type="csapi:uuid"
required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<para>The ID of the port for which you want to
create an interface.</para>
<param name="port_id" style="plain" type="csapi:uuid" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The ID of the port for which you want to create an interface.</para>
</wadl:doc>
</param>
</representation>
</request>
<response status="202">
<representation mediaType="application/json">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
href="../api_samples/os-attach-interfaces/attach-interfaces-create-resp.json"
/>
</wadl:doc>
</representation>
<representation mediaType="application/xml">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
href="../api_samples/os-attach-interfaces/attach-interfaces-create-resp.xml"
/>
</wadl:doc>
<param name="fixed_ips" style="plain"
type="xsd:string" required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<para>Fixed IP addresses with subnet
IDs.</para>
<param name="fixed_ips" style="plain" type="xsd:string" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>Fixed IP addresses with subnet IDs.</para>
</wadl:doc>
</param>
<param name="mac_addr" style="plain" type="xsd:string"
required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<param name="mac_addr" style="plain" type="xsd:string" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The MAC address.</para>
</wadl:doc>
</param>
<param name="net_id" style="plain" type="csapi:uuid"
required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<param name="net_id" style="plain" type="csapi:uuid" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The network ID.</para>
</wadl:doc>
</param>
<param name="port_id" style="plain" type="csapi:uuid"
required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<param name="port_id" style="plain" type="csapi:uuid" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The port ID.</para>
</wadl:doc>
</param>
<param name="port_state" style="plain"
type="xsd:string" required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook"
title="Port state">
<param name="port_state" style="plain" type="xsd:string" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook" title="Port state">
<para>The port state.</para>
</wadl:doc>
</param>
@ -152,59 +115,44 @@
</response>
</method>
<method name="GET" id="listAttachedInterfaces">
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN"
title="List interfaces">
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN" title="List interfaces">
<para role="shortdesc">Lists port interfaces.</para>
</wadl:doc>
<response status="202">
<representation mediaType="application/json">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
href="../api_samples/os-attach-interfaces/attach-interfaces-list-resp.json"
/>
</wadl:doc>
</representation>
<representation mediaType="application/xml">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
href="../api_samples/os-attach-interfaces/attach-interfaces-list-resp.xml"
/>
href="../api_samples/os-attach-interfaces/attach-interfaces-list-resp.xml"/>
</wadl:doc>
<param name="port_state" style="plain"
type="xsd:string" required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<param name="port_state" style="plain" type="xsd:string" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The port state.</para>
</wadl:doc>
</param>
<param name="fixed_ips" style="plain"
type="xsd:string" required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<para>Fixed IP addresses with subnet
IDs.</para>
<param name="fixed_ips" style="plain" type="xsd:string" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>Fixed IP addresses with subnet IDs.</para>
</wadl:doc>
</param>
<param name="mac_addr" style="plain" type="xsd:string"
required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<param name="mac_addr" style="plain" type="xsd:string" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The MAC address.</para>
</wadl:doc>
</param>
<param name="net_id" style="plain" type="csapi:uuid"
required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<param name="net_id" style="plain" type="csapi:uuid" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The network ID.</para>
</wadl:doc>
</param>
<param name="port_id" style="plain" type="csapi:uuid"
required="true">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<param name="port_id" style="plain" type="csapi:uuid" required="true">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<para>The port ID.</para>
</wadl:doc>
</param>
@ -214,33 +162,27 @@
<method name="GET" id="showAttachedInterface">
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN"
title="Show attached interface information">
<para role="shortdesc">Shows information about a specified
port interface.</para>
<para role="shortdesc">Shows information about a specified port interface.</para>
</wadl:doc>
<response status="202">
<representation mediaType="application/json">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
href="../api_samples/os-attach-interfaces/attach-interfaces-show-resp.json"
/>
</wadl:doc>
</representation>
<representation mediaType="application/xml">
<wadl:doc xml:lang="EN"
xmlns="http://docbook.org/ns/docbook">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
href="../api_samples/os-attach-interfaces/attach-interfaces-show-resp.xml"
/>
href="../api_samples/os-attach-interfaces/attach-interfaces-show-resp.xml"/>
</wadl:doc>
</representation>
</response>
</method>
<method name="DELETE" id="deleteAttachedInterface">
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN"
title="Detach interface">
<para role="shortdesc">Detaches a specified port
interface.</para>
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN" title="Detach interface">
<para role="shortdesc">Detaches a specified port interface.</para>
</wadl:doc>
<response status="202"/>
</method>