Added 422 return code to reboot server operation

bug: #1086371

Change-Id: Ibb33960be14b447ca063b562486c3a6b1dce2934
author: diane fleming
This commit is contained in:
Diane Fleming
2013-09-10 15:57:43 -07:00
parent f05512bcd4
commit 4cbf86cc2e
3 changed files with 23 additions and 8 deletions

View File

@@ -13,6 +13,10 @@
<representation mediaType="application/xml" element="csapi:serviceUnavailable"/>
<representation mediaType="application/json"/>
</response>
<response status="400" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="csapi:badRequest"/>
<representation mediaType="application/json"/>
</response>
<response status="401" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="csapi:unauthorized"/>
<representation mediaType="application/json"/>
@@ -20,11 +24,7 @@
<response status="403" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="csapi:forbidden"/>
<representation mediaType="application/json"/>
</response>
<response status="400" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="csapi:badRequest"/>
<representation mediaType="application/json"/>
</response>
</response>
<response status="405" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="csapi:badMethod"/>
<representation mediaType="application/json"/>
@@ -52,6 +52,10 @@
<response status="415" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="csapi:badMediaType"/>
<representation mediaType="application/json"/>
</response>
<response status="422" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="csapi:HTTPUnprocessableEntity"/>
<representation mediaType="application/json"/>
</response>
'>
<!--

View File

@@ -72,6 +72,17 @@
(<abbrev>API</abbrev>). </para>
</abstract>
<revhistory>
<revision>
<!-- ... continue addding more revisions here as you change this document using the markup shown below... -->
<date>2013-09-10</date>
<revdescription>
<itemizedlist>
<listitem>
<para>Added the 422 return code to the reboot server operation.</para>
</listitem>
</itemizedlist>
</revdescription>
</revision>
<revision>
<!-- ... continue addding more revisions here as you change this document using the markup shown below... -->
<date>2013-05-22</date>
@@ -2777,7 +2788,6 @@ Host: servers.api.openstack.org/v2/
JSON</title>
<programlisting language="json"><xi:include href="samples/changepassword.json" parse="text"/></programlisting>
</example>
<para/>
</section>
<?hard-pagebreak?>
<section xml:id="Reboot_Server-d1e3371">
@@ -2813,7 +2823,9 @@ Host: servers.api.openstack.org/v2/
(<errorcode>405</errorcode>), overLimit
(<errorcode>413</errorcode>), itemNotFound
(<errorcode>404</errorcode>), badMediaType
(<errorcode>415</errorcode>), buildInProgress
(<errorcode>415</errorcode>),
HTTPUnprocessableEntity
(<errorcode>422</errorcode>) buildInProgress
(<errorcode>409</errorcode>) </simpara>
<informaltable frame="void">
<tbody>
@@ -2853,7 +2865,6 @@ Host: servers.api.openstack.org/v2/
<table rules="all">
<caption>Reboot Server Request
Attributes</caption>
<col width="20%"/>
<col width="60%"/>
<col width="20%"/>

View File