netconn-api/v2.0/section_neutron_list-extensions.xml
Diane Fleming 7bfa3e776c Update port bindings
Closes-Bug: #1284156

Change-Id: Ie9f0467bb23aad11c650fe1092caf33397586012
author: diane fleming
2014-04-29 09:57:29 -05:00

62 lines
2.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section[
<!-- Some useful entities borrowed from HTML -->
<!ENTITY ndash "&#x2013;">
<!ENTITY mdash "&#x2014;">
<!ENTITY hellip "&#x2026;">
<!ENTITY plusmn "&#xB1;">
<!-- Useful for describing APIs -->
<!ENTITY GET '<command xmlns="http://docbook.org/ns/docbook">GET</command>'>
<!ENTITY PUT '<command xmlns="http://docbook.org/ns/docbook">PUT</command>'>
<!ENTITY POST '<command xmlns="http://docbook.org/ns/docbook">POST</command>'>
<!ENTITY DELETE '<command xmlns="http://docbook.org/ns/docbook">DELETE</command>'>
<!ENTITY CHECK '<inlinemediaobject xmlns="http://docbook.org/ns/docbook">
<imageobject>
<imagedata fileref="figures/Check_mark_23x20_02.svg"
format="SVG" scale="60"/>
</imageobject>
</inlinemediaobject>'>
<!ENTITY ARROW '<inlinemediaobject xmlns="http://docbook.org/ns/docbook">
<imageobject>
<imagedata fileref="figures/Arrow_east.svg"
format="SVG" scale="60"/>
</imageobject>
</inlinemediaobject>'>
<!ENTITY APIv2 'Networking API v2.0'>
]>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:m="http://www.w3.org/1998/Math/MathML"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
xmlns:db="http://docbook.org/ns/docbook" version="5.0"
xml:id="retrieve_extensions">
<title>List available extensions</title>
<para>You can list available extensions through the <filename
role="bold">/v2.0/extensions</filename> URI.</para>
<note>
<para>You must authenticate these requests just like any other
API request.</para>
</note>
<para>The following example response shows a list of
extensions:</para>
<screen><computeroutput>Status Code: 200 OK
Connection: keep-alive
Content-Length: 654
Content-Type: application/xml; charset=UTF-8
Date: Wed, 12 Sep 2012 11:32:56 GMT</computeroutput></screen>
<programlisting language="xml"><xi:include href="samples/extensionsv2.xml" parse="text"/></programlisting>
<para>Also, you can query for specific extension using the
extension alias. For instance, querying
<literal>/v2.0/extensions/router</literal>, results in the
following response:</para>
<screen><computeroutput>Status Code: 200 OK
Connection: keep-alive
Content-Length: 350
Content-Type: application/xml; charset=UTF-8
Date: Wed, 12 Sep 2012 11:36:20 GMT</computeroutput></screen>
<programlisting language="xml"><xi:include href="samples/extension.xml" parse="text"/></programlisting>
</section>