Merge "Tweak API Quick Start curl commands and remove v3 in response"

This commit is contained in:
Jenkins 2015-03-26 08:10:53 +00:00 committed by Gerrit Code Review
commit 570d337127
2 changed files with 12 additions and 21 deletions

View File

@ -151,17 +151,22 @@
xlink:href="http://developer.openstack.org/api-ref-compute-v2.html"
>Compute APIs and Extensions</link>.</para>
<para>Use the Compute API to list flavors, as follows:</para>
<screen><?db-font-size 70%?><prompt>$</prompt> <userinput>curl -i -H
"X-Auth-Token:<replaceable>token</replaceable>"
http://8.21.28.222:8774/v2/<replaceable>tenant_id</replaceable>/flavors</userinput></screen>
<screen><?db-font-size 70%?><prompt>$</prompt> <userinput>curl -s -H \
"X-Auth-Token:<replaceable>token</replaceable>" \
http://8.21.28.222:8774/v2/<replaceable>tenant_id</replaceable>/flavors \
| python -m json.tool</userinput></screen>
<programlisting><?db-font-size 60%?><xi:include href="flavors-post-resp.json" parse="text"/></programlisting>
<para>Use the Compute API to list images, as follows:</para>
<screen><?db-font-size 70%?><prompt>$</prompt> <userinput>curl -i -H
"X-Auth-Token:<replaceable>token</replaceable>"
http://8.21.28.222:8774/v2/<replaceable>tenant_id</replaceable>/images</userinput></screen>
<screen><?db-font-size 70%?><prompt>$</prompt> <userinput>curl -s -H \
"X-Auth-Token:<replaceable>token</replaceable>" \
http://8.21.28.222:8774/v2/<replaceable>tenant_id</replaceable>/images \
| python -m json.tool</userinput></screen>
<programlisting><?db-font-size 60%?><xi:include href="images-post-resp.json" parse="text"/></programlisting>
<para>Use the Compute API to list servers, as follows:</para>
<screen><?db-font-size 70%?><prompt>$</prompt> <userinput>curl -i -H "X-Auth-Token:<replaceable>token</replaceable>" http://8.21.28.222:8774/v2/<replaceable>tenant_id</replaceable>/servers</userinput></screen>
<screen><?db-font-size 70%?><prompt>$</prompt> <userinput>curl -s -H \
"X-Auth-Token:<replaceable>token</replaceable>" \
http://8.21.28.222:8774/v2/<replaceable>tenant_id</replaceable>/servers \
| python -m json.tool</userinput></screen>
<programlisting><?db-font-size 60%?><xi:include href="servers-post-resp.json" parse="text"/></programlisting>
</section>
</section>

View File

@ -77,20 +77,6 @@
"name": "glance",
"type": "image"
},
{
"endpoints": [
{
"adminURL": "http://10.100.0.222:8774/v3",
"id": "14187733d29845e5993d9b4e0f2df4fc",
"internalURL": "http://10.100.0.222:8774/v3",
"publicURL": "http://8.21.28.222:8774/v3",
"region": "RegionOne"
}
],
"endpoints_links": [],
"name": "novav3",
"type": "computev3"
},
{
"endpoints": [
{