Merge "Add OpenStack Databases (trove) API to api-site"

This commit is contained in:
Jenkins 2014-04-11 13:11:37 +00:00 committed by Gerrit Code Review
commit cabc70f62e
68 changed files with 2677 additions and 7 deletions

View File

@ -82,6 +82,17 @@
<pdfFilenameBase>api-ref-compute-v3</pdfFilenameBase>
</configuration>
</execution>
<execution>
<id>os-api-ref-databases</id>
<goals>
<goal>generate-pdf</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<includes> bk-api-ref-databases.xml </includes>
<pdfFilenameBase>api-ref-databases</pdfFilenameBase>
</configuration>
</execution>
<execution>
<id>os-api-ref-identity-v2</id>
<goals>

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:linkend="http://www.w3.org/1999/linkend"
xmlns:xref="http://www.w3.org/1999/xref"
xmlns:wadl="http://wadl.dev.java.net/2009/02"
version="5.0-extension RackBook-2.0"
xml:id="api.openstack.org-databases">
<info>
<title>OpenStack Database Service API</title>
<copyright>
<year>2010-2014</year>
</copyright>
<legalnotice role="rs-api">
<para/>
</legalnotice>
</info>
<xi:include href="preface.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_databases-v1.xml"/>
</book>

View File

@ -32,21 +32,26 @@
</annotation>
</legalnotice>
</info>
<!-- <xi:include href="preface.xml"/>-->
<xi:include href="../../api-ref/src/docbkx/ch_blockstorage-api.xml"/>
<!-- <xi:include href="preface.xml"/>-->
<xi:include
href="../../api-ref/src/docbkx/ch_blockstorage-api.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_compute-v2.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_compute-v2-ext.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_compute-v3.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_databases-v1.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_identity-v3.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_identity-v3-ext.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_identity-v2.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_identity-admin-v2.xml"/>
<xi:include
href="../../api-ref/src/docbkx/ch_identity-admin-v2.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_identity-v2-ext.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_images-v2.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_images-v1.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_netconn-v2.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_netconn-ext-v2.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_objectstorage-v1.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_orchestration-v1.xml"/>
<xi:include
href="../../api-ref/src/docbkx/ch_objectstorage-v1.xml"/>
<xi:include
href="../../api-ref/src/docbkx/ch_orchestration-v1.xml"/>
<xi:include href="../../api-ref/src/docbkx/ch_telemetry-v2.xml"/>
</book>

View File

@ -93,6 +93,18 @@
<pdfFilename>bk-api-ref-compute-v3</pdfFilename>
</configuration>
</execution>
<execution>
<id>os-api-ref-databases</id>
<goals>
<goal>generate-html</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<includes>
api-ref-databases.xml </includes>
<pdfFilename>bk-api-ref-databases</pdfFilename>
</configuration>
</execution>
<execution>
<id>os-api-ref-image</id>
<goals>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:linkend="http://www.w3.org/1999/linkend"
xmlns:xref="http://www.w3.org/1999/xref"
xmlns:wadl="http://wadl.dev.java.net/2009/02"
version="5.0-extension RackBook-2.0"
xml:id="api.openstack.org-databases">
<info xreflabel="api-ref-databases.html">
<title>OpenStack Database Service API</title>
<copyright>
<year>2010-2014</year>
</copyright>
<legalnotice role="apache2">
<para/>
</legalnotice>
<annotation>
<xi:include href="itemizedlist-service-list.xml"/>
</annotation>
</info>
<xi:include href="ch_databases-v1.xml"/>
</book>

View File

@ -0,0 +1,156 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter [
<!-- Some useful entities borrowed from HTML -->
<!ENTITY ndash "&#x2013;">
<!ENTITY mdash "&#x2014;">
<!ENTITY hellip "&#x2026;">
<!-- 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>'>
]>
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:linkend="http://www.w3.org/1999/linkend"
xmlns:xref="http://www.w3.org/1999/xref"
xmlns:wadl="http://wadl.dev.java.net/2009/02"
version="5.0-extension RackBook-2.0" xml:id="databases-v1.0">
<title>Databases Service API v1.0</title>
<section xml:id="API_Versions">
<title>API versions</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#versions"/>
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#version">
<wadl:method href="#getVersionInfo"/>
</wadl:resource>
</wadl:resources>
</section>
<!-- add back later - validation errors -->
<section xml:id="Database_Instances">
<title>Database instances</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#instances">
<wadl:method href="#createInstance"/>
<wadl:method href="#getInstance"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#instanceId">
<wadl:method href="#getInstanceById"/>
<wadl:method href="#deleteInstance"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#root">
<wadl:method href="#createRoot"/>
<wadl:method href="#isRootEnabled"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="Database_Instances_Actions">
<title>Database instance actions</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#instanceAction">
<wadl:method href="#restartInstance"/>
<wadl:method href="#resizeInstance"/>
<wadl:method href="#resizeVolume"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="databases">
<title>Databases</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#databases">
<wadl:method href="#createDatabase"/>
<wadl:method href="#getDatabases"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#databaseName">
<wadl:method href="#deleteDatabase"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="user_management">
<title>Users</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#users">
<wadl:method href="#createUser"/>
<wadl:method href="#getUsers"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#userId">
<wadl:method href="#deleteUser"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="flavors">
<title>Flavors</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#flavors">
<wadl:method href="#getFlavors"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/dbaas.wadl#flavorId">
<wadl:method href="#getFlavorById"/>
</wadl:resource>
</wadl:resources>
</section>
<!--<section xml:id="Database_Instance_Management">
<title>Database instance management</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#instances">
<wadl:method href="#getIndex"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#instanceId">
<wadl:method href="#showinstances"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#diagnostics">
<wadl:method href="#getdiagnosticdetails"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#rootdetails">
<wadl:method href="#getrootdetails"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#hwInfo">
<wadl:method href="#getHwInfo"/>
</wadl:resource>
</wadl:resources>
</section>-->
<!--<section xml:id="Host_Information">
<title>Host information</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#hosts">
<wadl:method href="#gethosts"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#hostid">
<wadl:method href="#gethostbyid"/>
</wadl:resource>
<wadl:resource
href="../wadls/databases-api/xsd/management.wadl#instanceAction-hostId">
<wadl:method href="#updateHostInstances"/>
</wadl:resource>
</wadl:resources>
</section>-->
<!--<section xml:id="Management_Instances_Actions">
<title>Management instance actions</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource
href="../wadls/databases-api/xsd/management.wadl#instanceAction">
<wadl:method href="#rebootInstance"/>
</wadl:resource>
</wadl:resources>
</section>-->
<!--<section xml:id="Storage_Management">
<title>Storage management</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#storage">
<wadl:method href="#indexstorage"/>
</wadl:resource>
</wadl:resources>
</section>-->
<!--<section xml:id="Account_Information">
<title>Account information</title>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#accounts">
<wadl:method href="#getaccounts"/>
</wadl:resource>
<wadl:resource href="../wadls/databases-api/xsd/management.wadl#accountid">
<wadl:method href="#getaccountbyid"/>
</wadl:resource>
</wadl:resources>
</section>-->
</chapter>

View File

@ -21,6 +21,9 @@
<listitem>
<para><link xlink:href="api-ref-compute-v3.html">Compute API v3 (EXPERIMENTAL)</link></para>
</listitem>
<listitem>
<para><link xlink:href="api-ref-databases.html">Database Service API</link></para>
</listitem>
<listitem>
<para><link xlink:href="api-ref-identity-v2.html">Identity
API v2.0 and extensions</link></para>

View File

@ -0,0 +1,72 @@
<!ENTITY ndash "&#8211;">
<!ENTITY mdash "&#8212;">
<!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>'>
<!--
A collection of common faults, these are pretty much expected
in every request.
-->
<!ENTITY commonFaults
'
<response status="400" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:badRequest"/>
<representation mediaType="application/json"/>
</response>
<response status="401" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:unauthorized"/>
<representation mediaType="application/json"/>
</response>
<response status="403" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:forbidden"/>
<representation mediaType="application/json"/>
</response>
<response status="405" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:badMethod"/>
<representation mediaType="application/json"/>
</response>
<response status="413" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:overLimit"/>
<representation mediaType="application/json"/>
</response>
<response status="422" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:unprocessableEntity"/>
<representation mediaType="application/json"/>
</response>
<response status="500" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:instanceFault"/>
<representation mediaType="application/json"/>
</response>
<response status="501" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:notImplemented"/>
<representation mediaType="application/json"/>
</response>
<response status="503" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:serviceUnavailable"/>
<representation mediaType="application/json"/>
</response>
'>
<!--
Faults on GET
-->
<!ENTITY getFaults
'
<response status="404" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:itemNotFound"/>
<representation mediaType="application/json"/>
</response>
'>
<!--
Faults on POST/PUT
-->
<!ENTITY postPutFaults
'
<response status="415" xmlns="http://wadl.dev.java.net/2009/02">
<representation mediaType="application/xml" element="dbaas:badMediaType"/>
<representation mediaType="application/json"/>
</response>
'>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,575 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema elementFormDefault="qualified"
attributeFormDefault="unqualified"
targetNamespace="http://docs.openstack.org/database/api/v1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:dbaas="http://docs.openstack.org/database/api/v1.0"
xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0">
<annotation>
<xsd:appinfo
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<xsdxt:title>DBaaS</xsdxt:title>
</xsd:appinfo>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
This is the main index XML Schema document
for DBaaS API Schema Types Version 1.0.
</p>
</xsd:documentation>
</annotation>
<element name="user" type="dbaas:User">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A MySQL User.</p>
</xsd:documentation>
</annotation>
</element>
<element name="users" type="dbaas:Users">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A MySQL User.</p>
</xsd:documentation>
</annotation>
</element>
<element name="instance" type="dbaas:instance">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A Database Instance.</p>
</xsd:documentation>
</annotation>
</element>
<element name="instances" type="dbaas:instances">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Database Instances.</p>
</xsd:documentation>
</annotation>
</element>
<element name="flavor" type="dbaas:Flavor">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Settings such as memory used to create a database instance.</p>
</xsd:documentation>
</annotation>
</element>
<element name="flavors" type="dbaas:Flavors">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of flavors.</p>
</xsd:documentation>
</annotation>
</element>
<element name="database" type="dbaas:Database">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A Database.</p>
</xsd:documentation>
</annotation>
</element>
<element name="databases" type="dbaas:Databases">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>List of Databases.</p>
</xsd:documentation>
</annotation>
</element>
<element name="restart">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Restart the Database</p>
</xsd:documentation>
</annotation>
</element>
<element name="resize" type="dbaas:Resize">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Resize an Instance</p>
</xsd:documentation>
</annotation>
</element>
<!--Complex Types-->
<complexType name="Users">
<sequence>
<element name="users" type="dbaas:User" minOccurs="1" maxOccurs="unbounded">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of database user names.</p>
</xsd:documentation>
</annotation>
</element>
</sequence>
</complexType>
<complexType name="User">
<sequence>
<element name="databases" type="dbaas:Database" minOccurs="0" maxOccurs="unbounded">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of databases.</p>
</xsd:documentation>
</annotation>
</element>
</sequence>
<attribute name="name" type="xsd:string" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The name for the user.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="password" type="xsd:string" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The password for the user.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="status" type="dbaas:UserStatusType" use="optional">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The status of the user.</p>
</xsd:documentation>
</annotation>
</attribute>
</complexType>
<complexType name="instances">
<sequence>
<element name="instance" type="dbaas:instance" minOccurs="0" maxOccurs="unbounded">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of database instances.</p>
</xsd:documentation>
</annotation>
</element>
</sequence>
</complexType>
<complexType name="instance">
<sequence>
<xsd:element name="databases" type="dbaas:Database" minOccurs="0" maxOccurs="unbounded">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of optional databases.</p>
</xsd:documentation>
</annotation>
</xsd:element>
<xsd:element name="users" type="dbaas:User" minOccurs="0" maxOccurs="unbounded">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of optional users.</p>
</xsd:documentation>
</annotation>
</xsd:element>
<xsd:element name="links" type="dbaas:Links" minOccurs="0" maxOccurs="1">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The links for the type of instance.</p>
</xsd:documentation>
</annotation>
</xsd:element>
<xsd:element name="volume" type="dbaas:Volume" minOccurs="0" maxOccurs="1">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The volume attached to the instance.</p>
</xsd:documentation>
</annotation>
</xsd:element>
</sequence>
<attribute name="id" type="xsd:ID" use="optional">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A unique database instance id.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="created" type="xsd:dateTime" use="optional">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Date/Time the instance was created.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="updated" type="xsd:dateTime" use="optional">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Date/Time the instance was last updated.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="name" type="xsd:string" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The name for the instance.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="flavorRef" type="xsd:string" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The flavor reference of the instance.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="status" type="dbaas:StatusType" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The status of the instance.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="hostname" type="xsd:string" use="optional">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The hostname attached to the instance.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="rootEnabled" type="xsd:boolean" use="optional">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Whether or not root is enabled for the instance.</p>
</xsd:documentation>
</annotation>
</attribute>
</complexType>
<complexType name="Link">
<attribute name="rel" type="xsd:string" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The type of link.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="href" type="xsd:string" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The URL.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="type" type="xsd:string" use="optional">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The type of link.</p>
</xsd:documentation>
</annotation>
</attribute>
</complexType>
<complexType name="Flavors">
<sequence>
<element name="Flavors" type="dbaas:Flavor" minOccurs="0" maxOccurs="unbounded">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of flavors.</p>
</xsd:documentation>
</annotation>
</element>
</sequence>
</complexType>
<complexType name="Flavor">
<sequence>
<element name="links" type="dbaas:Link" minOccurs="0" maxOccurs="unbounded">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of links.</p>
</xsd:documentation>
</annotation>
</element>
</sequence>
<attribute name="id" type="xsd:ID" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A unique flavor id.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="name" type="xsd:string" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The name for the instance.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="ram" type="xsd:integer" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The RAM in megabytes.</p>
</xsd:documentation>
</annotation>
</attribute>
</complexType>
<xsd:complexType name="Links">
<xsd:sequence>
<xsd:element name="link" type="dbaas:Link" minOccurs="0" maxOccurs="unbounded">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of links.</p>
</xsd:documentation>
</annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<complexType name="Databases">
<sequence>
<element name="database" type="dbaas:Database" minOccurs="0" maxOccurs="unbounded">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A list of databases.</p>
</xsd:documentation>
</annotation>
</element>
</sequence>
</complexType>
<complexType name="Database">
<attribute name="character_set" type="xsd:string" use="optional">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The Database character set.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="name" type="xsd:string" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The name for the instance.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="collate" type="xsd:string" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The Collation type of the database.</p>
</xsd:documentation>
</annotation>
</attribute>
</complexType>
<complexType name="RootEnabled">
<attribute name="rootEnabled" type="xsd:boolean" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Whether or not root is enabled for the given instance.</p>
</xsd:documentation>
</annotation>
</attribute>
</complexType>
<complexType name="Volume">
<attribute name="size" type="xsd:integer" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Size of the volume in GBs.</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="used" type="xsd:float" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Used space on the attached volume in GBs.</p>
</xsd:documentation>
</annotation>
</attribute>
</complexType>
<complexType name="FlavorRef">
<attribute name="flavorRef" type="xsd:ID" use="required">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>A unique flavor id.</p>
</xsd:documentation>
</annotation>
</attribute>
</complexType>
<complexType name="Resize">
<sequence>
<xsd:element name="volume" type="dbaas:Volume" minOccurs="0" maxOccurs="1">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The volume attached to the instance.</p>
</xsd:documentation>
</annotation>
</xsd:element>
<xsd:element name="flavorRef" type="dbaas:FlavorRef" minOccurs="0" maxOccurs="1">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>New flavorRef to size the instance.</p>
</xsd:documentation>
</annotation>
</xsd:element>
</sequence>
</complexType>
<!--Simple Types-->
<simpleType name="StatusType">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The instance status.</p>
</xsd:documentation>
</annotation>
<restriction base="xsd:string">
<enumeration value="ACTIVE">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Healthy status.</p>
</xsd:documentation>
</annotation>
</enumeration>
<enumeration value="SHUTDOWN">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Down status.</p>
</xsd:documentation>
</annotation>
</enumeration>
<enumeration value="BUILD">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>unavailable status.</p>
</xsd:documentation>
</annotation>
</enumeration>
</restriction>
</simpleType> <simpleType name="UserStatusType">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>The mysql user status.</p>
</xsd:documentation>
</annotation>
<restriction base="xsd:string">
<enumeration value="ENABLED">
<annotation>
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
<p>Enabled status.</p>
</xsd:documentation>
</annotation>
</enumeration>
</restriction>
</simpleType>
<!-- Fault Elements -->
<element name="badRequest" type="dbaas:BadRequestFault"/>
<element name="unauthorized" type="dbaas:UnauthorizedFault"/>
<element name="forbidden" type="dbaas:ForbiddenFault"/>
<element name="badMethod" type="dbaas:BadMethodFault"/>
<element name="overLimit" type="dbaas:OverLimitFault"/>
<element name="unprocessableEntity" type="dbaas:UnprocessableEntityFault"/>
<element name="instanceFault" type="dbaas:InstanceFault" />
<element name="notImplemented" type="dbaas:NotImplementedFault" />
<element name="serviceUnavailable" type="dbaas:ServiceUnavailableFault"/>
<element name="itemNotFound" type="dbaas:ItemNotFoundFault"/>
<element name="badMediaType" type="dbaas:BadMediaTypeFault"/>
<!-- Fault Types -->
<complexType name="BaseFault">
<sequence>
<element name="message" type="xsd:string">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A human readable message that is appropriate for display
to the end user.
</p>
</xsd:documentation>
</annotation>
</element>
<element name="details" type="xsd:string" minOccurs="0">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The optional &lt;details&gt; element may contain useful
information for tracking down errors (e.g a stack
trace). This information may or may not be appropriate
for display to an end user.
</p>
</xsd:documentation>
</annotation>
</element>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attribute name="code" type="xsd:int" use="required">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The HTTP status code associated with the current fault.
</p>
</xsd:documentation>
</annotation>
</attribute>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType> <complexType name="BadRequestFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType> <complexType name="UnauthorizedFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType> <complexType name="ForbiddenFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType> <complexType name="BadMethodFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType>
<complexType name="OverLimitFault">
<complexContent>
<extension base="dbaas:BaseFault">
<attribute name="retryAt" type="xsd:dateTime" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
An optional dateTime denoting when an operation should
be retried.
</p>
</xsd:documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
<complexType name="UnprocessableEntityFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType> <complexType name="InstanceFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType>
<complexType name="NotImplementedFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType>
<complexType name="ServiceUnavailableFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType>
<complexType name="ItemNotFoundFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType>
<complexType name="BadMediaTypeFault">
<complexContent>
<extension base="dbaas:BaseFault">
</extension>
</complexContent>
</complexType>
</schema>

View File

@ -0,0 +1,6 @@
GET /v1.0/1234/instances/692d8418-7a8f-47f1-8060-59846c6e024f/root HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 21
Date: Wed, 25 Jan 2012 21:58:13 GMT

View File

@ -0,0 +1,3 @@
{
"rootEnabled":true
}

View File

@ -0,0 +1,6 @@
POST /v1.0/1234/instances/692d8418-7a8f-47f1-8060-59846c6e024f/databases HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,12 @@
{
"databases":[
{
"character_set":"utf8",
"collate":"utf8_general_ci",
"name":"testingdb"
},
{
"name":"sampledb"
}
]
}

View File

@ -0,0 +1,4 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Wed, 27 Jun 2012 23:11:18 GMT

View File

@ -0,0 +1,6 @@
POST /v1.0/1234/instances HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: d6cafa5b-e0c7-4ab8-948e-7c95f2acd031
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,30 @@
{
"instance":{
"databases":[
{
"character_set":"utf8",
"collate":"utf8_general_ci",
"name":"sampledb"
},
{
"name":"nextround"
}
],
"flavorRef":"https://openstack.example.com/v1.0/1234/flavors/1",
"name":"json_rack_instance",
"users":[
{
"databases":[
{
"name":"sampledb"
}
],
"name":"demouser",
"password":"demopassword"
}
],
"volume":{
"size":2
}
}
}

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 636
Date: Wed, 25 Jan 2012 21:53:10 GMT

View File

@ -0,0 +1,36 @@
{
"instance":{
"created":"2012-01-25T21:53:09Z",
"flavor":{
"id":"1",
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/flavors/1",
"rel":"self"
},
{
"href":"https://openstack.example.com/flavors/1",
"rel":"bookmark"
}
]
},
"hostname":"e09ad9a3f73309469cf1f43d11e79549caf9acf2.rackspaceclouddb.com",
"id":"dea5a2f7-3ec7-4496-adab-0abb5a42d635",
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/instances/dea5a2f7-3ec7-4496-adab-0abb5a42d635",
"rel":"self"
},
{
"href":"https://openstack.example.com/instances/dea5a2f7-3ec7-4496-adab-0abb5a42d635",
"rel":"bookmark"
}
],
"name":"json_rack_instance",
"status":"BUILD",
"updated":"2012-01-25T21:53:10Z",
"volume":{
"size":2
}
}
}

View File

@ -0,0 +1,6 @@
POST /v1.0/1234/instances/1c59bdb8-03b6-4079-a7db-ba92d23a98b3/users HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: bb64d788-2dec-4a6b-a670-7151d108cacf
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,25 @@
{
"users":[
{
"databases":[
{
"name":"databaseA"
}
],
"name":"dbuser3",
"password":"password"
},
{
"databases":[
{
"name":"databaseB"
},
{
"name":"databaseC"
}
],
"name":"dbuser4",
"password":"password"
}
]
}

View File

@ -0,0 +1,4 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Wed, 27 Jun 2012 23:11:18 GMT

View File

@ -0,0 +1,8 @@
DELETE /v1.0/1234/instances/692d8418-7a8f-47f1-8060-59846c6e024f/databases/exampledb HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Wed, 27 Jun 2012 23:11:18 GMT

View File

@ -0,0 +1,6 @@
DELETE /v1.0/1234/instances/692d8418-7a8f-47f1-8060-59846c6e024f HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Wed, 27 Jun 2012 23:15:51 GMT

View File

@ -0,0 +1,8 @@
DELETE /v1.0/1234/instances/692d8418-7a8f-47f1-8060-59846c6e024f/users/testuser HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Wed, 27 Jun 2012 23:11:19 GMT

View File

@ -0,0 +1,8 @@
POST /v1.0/1234/instances/692d8418-7a8f-47f1-8060-59846c6e024f/root HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 78
Date: Wed, 25 Jan 2012 21:58:11 GMT

View File

@ -0,0 +1,6 @@
{
"user":{
"name":"root",
"password":"d4311cb1-d912-45be-8517-e8a46f54df66"
}
}

View File

@ -0,0 +1,8 @@
GET /v1.0/1234/flavors/1 HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 209
Date: Wed, 25 Jan 2012 21:53:05 GMT

View File

@ -0,0 +1,17 @@
{
"flavor":{
"id":1,
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/flavors/1",
"rel":"self"
},
{
"href":"https://openstack.example.com/flavors/1",
"rel":"bookmark"
}
],
"name":"m1.tiny",
"ram":512
}
}

View File

@ -0,0 +1,8 @@
GET /v1.0/1234/flavors HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1768
Date: Tue, 19 Jun 2012 19:52:45 GMT

View File

@ -0,0 +1,64 @@
{
"flavors":[
{
"id":1,
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/flavors/1",
"rel":"self"
},
{
"href":"https://openstack.example.com/flavors/1",
"rel":"bookmark"
}
],
"name":"m1.tiny",
"ram":512
},
{
"id":2,
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/flavors/2",
"rel":"self"
},
{
"href":"https://openstack.example.com/flavors/2",
"rel":"bookmark"
}
],
"name":"m1.small",
"ram":1024
},
{
"id":3,
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/flavors/3",
"rel":"self"
},
{
"href":"https://openstack.example.com/flavors/3",
"rel":"bookmark"
}
],
"name":"m1.medium",
"ram":2048
},
{
"id":4,
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/flavors/4",
"rel":"self"
},
{
"href":"https://openstack.example.com/flavors/4",
"rel":"bookmark"
}
],
"name":"m1.large",
"ram":4096
}
]
}

View File

@ -0,0 +1,5 @@
{
"resize":{
"flavorRef":"https://openstack.example.com/v1.0/1234/flavors/3"
}
}

View File

@ -0,0 +1,4 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Wed, 27 Jun 2012 23:14:20 GMT

View File

@ -0,0 +1,6 @@
POST /v1.0/1234/instances/23a3d4fb-3731-497b-afd4-bf25bde2b5fc/action HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 2eeb3252-0164-40f5-8fb7-85df5faa2698
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
{
"resize":{
"flavorRef":"https://openstack.example.com/v1.0/1234/flavors/2"
}
}

View File

@ -0,0 +1,6 @@
HTTP/1.1 202 Accepted
Content-Type: text/plain; charset=UTF-8
Content-Length: 58
Date: Mon, 06 Feb 2012 21:28:10 GMT

View File

@ -0,0 +1,6 @@
POST /v1.0/1234/instances/23a3d4fb-3731-497b-afd4-bf25bde2b5fc/action HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 2eeb3252-0164-40f5-8fb7-85df5faa2698
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,7 @@
{
"resize":{
"volume":{
"size":4
}
}
}

View File

@ -0,0 +1,4 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Wed, 27 Jun 2012 23:12:20 GMT

View File

@ -0,0 +1,6 @@
POST /v1.0/1234/instances/13d940c4-70bb-4ff4-8866-6ee9ab5e5cae/action HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
{
"restart":{
}
}

View File

@ -0,0 +1,4 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Wed, 27 Jun 2012 23:11:19 GMT

View File

@ -0,0 +1,6 @@
GET /v1.0/1234/instances/692d8418-7a8f-47f1-8060-59846c6e024f HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 685
Date: Wed, 28 Mar 2012 21:37:29 GMT

View File

@ -0,0 +1,37 @@
{
"instance":{
"created":"2012-03-28T21:31:02Z",
"flavor":{
"id":"1",
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/flavors/1",
"rel":"self"
},
{
"href":"https://openstack.example.com/flavors/1",
"rel":"bookmark"
}
]
},
"hostname":"e09ad9a3f73309469cf1f43d11e79549caf9acf2.rackspaceclouddb.com",
"id":"2450c73f-7805-4afe-a42c-4094ab42666b",
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/instances/2450c73f-7805-4afe-a42c-4094ab42666b",
"rel":"self"
},
{
"href":"https://openstack.example.com/instances/2450c73f-7805-4afe-a42c-4094ab42666b",
"rel":"bookmark"
}
],
"name":"xml_rack_instance",
"status":"ACTIVE",
"updated":"2012-03-28T21:34:25Z",
"volume":{
"size":2,
"used":0.124542236328125
}
}
}

View File

@ -0,0 +1,6 @@
GET /v1.0/1234/instances HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1150
Date: Tue, 19 Jun 2012 19:53:04 GMT

View File

@ -0,0 +1,66 @@
{
"instances":[
{
"flavor":{
"id":"1",
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/flavors/1",
"rel":"self"
},
{
"href":"https://openstack.example.com/flavors/1",
"rel":"bookmark"
}
]
},
"id":"28d1b8f3-172a-4f6d-983d-36021508444a",
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/instances/28d1b8f3-172a-4f6d-983d-36021508444a",
"rel":"self"
},
{
"href":"https://openstack.example.com/instances/28d1b8f3-172a-4f6d-983d-36021508444a",
"rel":"bookmark"
}
],
"name":"json_rack_instance",
"status":"ACTIVE",
"volume":{
"size":2
}
},
{
"flavor":{
"id":"1",
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/flavors/1",
"rel":"self"
},
{
"href":"https://openstack.example.com/flavors/1",
"rel":"bookmark"
}
]
},
"id":"8fb081af-f237-44f5-80cc-b46be1840ca9",
"links":[
{
"href":"https://openstack.example.com/v1.0/1234/instances/8fb081af-f237-44f5-80cc-b46be1840ca9",
"rel":"self"
},
{
"href":"https://openstack.example.com/instances/8fb081af-f237-44f5-80cc-b46be1840ca9",
"rel":"bookmark"
}
],
"name":"xml_rack_instance",
"status":"ACTIVE",
"volume":{
"size":2
}
}
]
}

View File

@ -0,0 +1,8 @@
GET /v1.0/1234/instances/692d8418-7a8f-47f1-8060-59846c6e024f/databases HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 136
Date: Wed, 25 Jan 2012 21:58:01 GMT

View File

@ -0,0 +1,19 @@
{
"databases":[
{
"name":"anotherexampledb"
},
{
"name":"exampledb"
},
{
"name":"nextround"
},
{
"name":"sampledb"
},
{
"name":"testingdb"
}
]
}

View File

@ -0,0 +1,8 @@
GET /v1.0/1234/instances/692d8418-7a8f-47f1-8060-59846c6e024f/users HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 152
Date: Wed, 21 Mar 2012 17:46:46 GMT

View File

@ -0,0 +1,23 @@
{
"users":[
{
"databases":[
{
"name":"databaseA"
}
],
"name":"dbuser3"
},
{
"databases":[
{
"name":"databaseB"
},
{
"name":"databaseC"
}
],
"name":"dbuser4"
}
]
}

View File

@ -0,0 +1,6 @@
GET /v1.0/ HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 150
Date: Wed, 25 Jan 2012 21:53:04 GMT

View File

@ -0,0 +1,13 @@
{
"version":{
"id":"v1.0",
"links":[
{
"href":"https://openstack.example.com/v1.0/",
"rel":"self"
}
],
"status":"CURRENT",
"updated":"2012-01-01T00:00:00Z"
}
}

View File

@ -0,0 +1,6 @@
GET / HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 153
Date: Wed, 25 Jan 2012 21:53:04 GMT

View File

@ -0,0 +1,15 @@
{
"versions":[
{
"id":"v1.0",
"links":[
{
"href":"https://openstack.example.com/v1.0/",
"rel":"self"
}
],
"status":"CURRENT",
"updated":"2012-01-01T00:00:00Z"
}
]
}

View File

@ -2,12 +2,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openstack.docs</groupId>
<artifactId>parent-pom</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>api-quick-start</module>
<module>api-guide</module>