Adapt documentation structure to the new standard

This patch changes the documentation structure to follow the new
standard [1]. It also includes formatting and typo fixes.

[1] http://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

Change-Id: I63b9b14955838fa229dcd414cb9ca6de218a5897
Partial-Bug: #1721489
This commit is contained in:
Hiroaki Kobayashi 2017-10-27 13:35:21 +09:00 committed by Pierre Riteau
parent 76d25c8fa1
commit 489ffd3535
33 changed files with 379 additions and 199 deletions

View File

@ -24,17 +24,19 @@ Please see the following resources to learn more.
API API
--- ---
See `Blazar API reference <http://blazar.readthedocs.io/en/latest/restapi/rest_api_v1.0.html>`__. See `Blazar API reference <https://docs.openstack.org/blazar/latest/restapi/>`__.
Operators Operators
--------- ---------
To learn how to deploy and configure Blazar, see `the installation guide <http://blazar.readthedocs.io/en/latest/userdoc/installation.guide.html>`__. To learn how to deploy and configure Blazar,
see `the installation guide <https://docs.openstack.org/blazar/latest/install/>`__
and `the configuration reference <https://docs.openstack.org/blazar/latest/configuration/>`__.
Developers Developers
---------- ----------
To learn how to contribute to Blazar, see `the contribution guide <http://blazar.readthedocs.io/en/latest/devref/how.to.contribute.html>`__. To learn how to contribute to Blazar, see `the contributor guide <https://docs.openstack.org/blazar/latest/contributor/>`__.
Other Resources Other Resources
--------------- ---------------
@ -47,4 +49,4 @@ Other Resources
* `Dashboard (Horizon plugin) <https://git.openstack.org/cgit/openstack/blazar-dashboard>`__ * `Dashboard (Horizon plugin) <https://git.openstack.org/cgit/openstack/blazar-dashboard>`__
* Blueprints/Bugs: https://launchpad.net/blazar * Blueprints/Bugs: https://launchpad.net/blazar
* Documentation: https://blazar.readthedocs.io/en/latest/ * Documentation: https://docs.openstack.org/blazar/latest/

View File

@ -0,0 +1,11 @@
===================
Administrator Guide
===================
.. toctree::
:maxdepth: 2
../install/index
../configuration/index
../cli/index
../restapi/index

View File

@ -1,3 +1,4 @@
====================
Blazar architecture Blazar architecture
==================== ====================

View File

@ -1,5 +1,6 @@
Using Host Reservation ================
====================== Host Reservation
================
Prerequisites Prerequisites
------------- -------------
@ -30,7 +31,9 @@ The following packages should be installed:
.. ..
Result:: Result:
.. sourcecode:: console
+----+---------------------+-------+-----------+----------+ +----+---------------------+-------+-----------+----------+
| id | hypervisor_hostname | vcpus | memory_mb | local_gb | | id | hypervisor_hostname | vcpus | memory_mb | local_gb |
@ -38,6 +41,7 @@ The following packages should be installed:
| 1 | compute-1 | 2 | 3951 | 38 | | 1 | compute-1 | 2 | 3951 | 38 |
+----+---------------------+-------+-----------+----------+ +----+---------------------+-------+-----------+----------+
..
2. Create a lease 2. Create a lease
----------------- -----------------
@ -50,7 +54,9 @@ The following packages should be installed:
.. ..
Result:: Result:
.. sourcecode:: console
+---------------+---------------------------------------------------------------------------------------------------------------------------------------------+ +---------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value | | Field | Value |
@ -78,6 +84,8 @@ The following packages should be installed:
| user_id | | | user_id | |
+---------------+---------------------------------------------------------------------------------------------------------------------------------------------+ +---------------+---------------------------------------------------------------------------------------------------------------------------------------------+
..
2. Check leases: 2. Check leases:
.. sourcecode:: console .. sourcecode:: console
@ -86,7 +94,10 @@ The following packages should be installed:
.. ..
Result:: Result:
.. sourcecode:: console
+--------------------------------------+---------+----------------------------+----------------------------+ +--------------------------------------+---------+----------------------------+----------------------------+
| id | name | start_date | end_date | | id | name | start_date | end_date |
@ -94,6 +105,8 @@ The following packages should be installed:
| 6638c31e-f6c8-4982-9b98-d2ca0a8cb646 | lease-1 | 2020-06-08T12:00:00.000000 | 2020-06-09T12:00:00.000000 | | 6638c31e-f6c8-4982-9b98-d2ca0a8cb646 | lease-1 | 2020-06-08T12:00:00.000000 | 2020-06-09T12:00:00.000000 |
+--------------------------------------+---------+----------------------------+----------------------------+ +--------------------------------------+---------+----------------------------+----------------------------+
..
3. Use the leased resources 3. Use the leased resources
--------------------------- ---------------------------

8
doc/source/cli/index.rst Normal file
View File

@ -0,0 +1,8 @@
================================
Command-Line Interface Reference
================================
.. toctree::
host-reservation
instance-reservation

View File

@ -1,5 +1,6 @@
Using Instance Reservation ====================
========================== Instance Reservation
====================
Prerequisites Prerequisites
------------- -------------
@ -36,7 +37,9 @@ The following four scheduler filters should be configured in nova.conf:
.. ..
Result:: Result:
.. sourcecode:: console
+----+---------------------+-------+-----------+----------+ +----+---------------------+-------+-----------+----------+
| id | hypervisor_hostname | vcpus | memory_mb | local_gb | | id | hypervisor_hostname | vcpus | memory_mb | local_gb |
@ -44,6 +47,7 @@ The following four scheduler filters should be configured in nova.conf:
| 1 | compute-1 | 2 | 3951 | 38 | | 1 | compute-1 | 2 | 3951 | 38 |
+----+---------------------+-------+-----------+----------+ +----+---------------------+-------+-----------+----------+
..
2. Create a lease 2. Create a lease
----------------- -----------------
@ -56,7 +60,9 @@ The following four scheduler filters should be configured in nova.conf:
.. ..
Result:: Result:
.. sourcecode:: console
+---------------+--------------------------------------------------------------------------------------------------------------------------+ +---------------+--------------------------------------------------------------------------------------------------------------------------+
| Field | Value | | Field | Value |
@ -89,6 +95,8 @@ The following four scheduler filters should be configured in nova.conf:
| user_id | | | user_id | |
+---------------+--------------------------------------------------------------------------------------------------------------------------+ +---------------+--------------------------------------------------------------------------------------------------------------------------+
..
2. Check leases: 2. Check leases:
.. sourcecode:: console .. sourcecode:: console
@ -97,7 +105,9 @@ The following four scheduler filters should be configured in nova.conf:
.. ..
Result:: Result:
.. sourcecode:: console
+--------------------------------------+---------+----------------------------+----------------------------+ +--------------------------------------+---------+----------------------------+----------------------------+
| id | name | start_date | end_date | | id | name | start_date | end_date |
@ -105,18 +115,22 @@ The following four scheduler filters should be configured in nova.conf:
| becf2f3b-0177-4c0f-a7e7-0123370849a3 | lease-1 | 2020-07-24T20:00:00.000000 | 2020-08-09T21:00:00.000000 | | becf2f3b-0177-4c0f-a7e7-0123370849a3 | lease-1 | 2020-07-24T20:00:00.000000 | 2020-08-09T21:00:00.000000 |
+--------------------------------------+---------+----------------------------+----------------------------+ +--------------------------------------+---------+----------------------------+----------------------------+
..
3. Use the leased resources 3. Use the leased resources
--------------------------- ---------------------------
While the reservation you created is active you can see and use the flavor of your reservation. While the reservation you created is active you can see and use the flavor of your reservation.
.. sourcecode:: condole .. sourcecode:: console
openstack flavor list openstack flavor list
.. ..
Result:: Result:
.. sourcecode:: console
+--------------------------------------+--------------------------------------------------+-----------+------+-----------+------+-------+-------------+-----------+ +--------------------------------------+--------------------------------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
@ -134,6 +148,8 @@ While the reservation you created is active you can see and use the flavor of yo
| db83d6fd-c69c-4259-92cf-012db2e55a58 | reservation:db83d6fd-c69c-4259-92cf-012db2e55a58 | 1024 | 20 | 0 | | 1 | 1.0 | False | | db83d6fd-c69c-4259-92cf-012db2e55a58 | reservation:db83d6fd-c69c-4259-92cf-012db2e55a58 | 1024 | 20 | 0 | | 1 | 1.0 | False |
+--------------------------------------+--------------------------------------------------+-----------+------+-----------+------+-------+-------------+-----------+ +--------------------------------------+--------------------------------------------------+-----------+------+-----------+------+-------+-------------+-----------+
..
1. Create a server: Please specify the flavor of the reservation and group_id as a scheduler hint. 1. Create a server: Please specify the flavor of the reservation and group_id as a scheduler hint.
.. sourcecode:: console .. sourcecode:: console

View File

@ -37,6 +37,8 @@ extensions = ['sphinx.ext.autodoc',
'sphinx.ext.viewcode', 'sphinx.ext.viewcode',
'wsmeext.sphinxext', 'wsmeext.sphinxext',
'openstackdocstheme', 'openstackdocstheme',
'oslo_config.sphinxext',
'oslo_config.sphinxconfiggen',
] ]
# openstackdocstheme options # openstackdocstheme options
@ -44,6 +46,10 @@ repository_name = 'openstack/blazar'
bug_project = 'blazar' bug_project = 'blazar'
bug_tag = '' bug_tag = ''
# oslo_config.sphinxconfiggen options
config_generator_config_file = '../../etc/blazar/blazar-config-generator.conf'
sample_config_basename = '_static/blazar'
wsme_protocols = ['restjson', 'restxml'] wsme_protocols = ['restjson', 'restxml']
# The suffix of source filenames. # The suffix of source filenames.

View File

@ -0,0 +1,6 @@
===========
blazar.conf
===========
.. show-options::
:config-file: etc/blazar/blazar-config-generator.conf

View File

@ -0,0 +1,5 @@
========
Policies
========
Please see a sample policy file: :doc:`/configuration/samples/blazar-policy`.

View File

@ -0,0 +1,39 @@
==============================
Blazar Configuration Reference
==============================
Configuration
-------------
Reference
^^^^^^^^^
.. toctree::
blazar-conf.rst
nova-conf.rst
Sample Files
^^^^^^^^^^^^
.. toctree::
samples/blazar-conf.rst
Policy
------
Reference
^^^^^^^^^
.. toctree::
blazar-policy.rst
Sample Files
^^^^^^^^^^^^
.. toctree::
samples/blazar-policy.rst

View File

@ -0,0 +1,14 @@
=========
nova.conf
=========
Please add the following lines to the nova.conf configuration file:
.. sourcecode:: console
[filter_scheduler]
available_filters = nova.scheduler.filters.all_filters
available_filters = blazarnova.scheduler.filters.blazar_filter.BlazarFilter
enabled_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,AggregateInstanceExtraSpecsFilter,AggregateMultiTenancyIsolation,ServerGroupAntiAffinityFilter,BlazarFilter
..

View File

@ -0,0 +1,7 @@
==================
Sample blazar.conf
==================
The following is a sample blazar configuration.
.. literalinclude:: ../../_static/blazar.conf.sample

View File

@ -0,0 +1,7 @@
==================
Sample Policy File
==================
The following is a sample policy file.
.. literalinclude:: ../../../../etc/policy.json

View File

@ -1,3 +1,4 @@
=================
How to contribute How to contribute
================= =================
@ -9,7 +10,7 @@ Getting started
* Login to `OpenStack Gerrit <https://review.openstack.org/>`_ using your * Login to `OpenStack Gerrit <https://review.openstack.org/>`_ using your
Launchpad ID Launchpad ID
* Sign up your `OpenStack Individual Contributor License Agreement * Sign the `OpenStack Individual Contributor License Agreement
<https://review.openstack.org/#/settings/agreements>`_ <https://review.openstack.org/#/settings/agreements>`_
* Check that your email is listed in `Gerrit identities * Check that your email is listed in `Gerrit identities
<https://review.openstack.org/#/settings/web-identities>`_ <https://review.openstack.org/#/settings/web-identities>`_
@ -17,7 +18,8 @@ Getting started
* Subscribe to Blazar-related projects on * Subscribe to Blazar-related projects on
`OpenStack Gerrit <https://review.openstack.org/>`_. Go to your `OpenStack Gerrit <https://review.openstack.org/>`_. Go to your
settings and in the watched projects add *openstack/blazar*, settings and in the watched projects add *openstack/blazar*,
*openstack/blazar-nova* and *openstack/python-blazarclient* *openstack/blazar-nova*, *openstack/python-blazarclient* and
*openstack/blazar-dashboard*.
As all bugs/blueprints are listed in `Blazar Launchpad As all bugs/blueprints are listed in `Blazar Launchpad
<https://launchpad.net/blazar/>`_, you may keep track on them and choose some <https://launchpad.net/blazar/>`_, you may keep track on them and choose some
@ -26,26 +28,27 @@ to work on.
How to keep in touch with community How to keep in touch with community
----------------------------------- -----------------------------------
* If you're not subscribed to `OpenStack general mailing list * If you're not yet subscribed to the `OpenStack general mailing list
<http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>`_ or to <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>`_ or to the
`OpenStack development mailing list `OpenStack development mailing list
<http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev>`_, do <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev>`_, please
that. Blazar-related emails must be send with **[blazar]** in its subject do. Blazar-related emails must be send with **[blazar]** in the subject.
* All questions may be asked on our IRC channel #openstack-blazar on * All questions may be asked on our IRC channel #openstack-blazar on
`freenode <http://freenode.net>`_ `freenode <http://freenode.net>`_.
* We also have weekly meetings on #openstack-meeting-alt. Please check * We also have weekly meetings on #openstack-meeting-alt. Please check
`meeting details <https://wiki.openstack.org/wiki/Meetings/Blazar>`_ `meeting details <https://wiki.openstack.org/wiki/Meetings/Blazar>`_.
Your first commit to Blazar Your first commit to Blazar
---------------------------- ----------------------------
* Read the `OpenStack development workflow documentation * Read the `OpenStack development workflow documentation
<https://docs.openstack.org/infra/manual/developers.html#development-workflow>`_ <https://docs.openstack.org/infra/manual/developers.html#development-workflow>`_
* Checkout corresponding Blazar repository: * Clone the corresponding Blazar repository:
`blazar <https://git.openstack.org/openstack/blazar>`_, `blazar <https://git.openstack.org/openstack/blazar>`_,
`blazar-nova <https://git.openstack.org/openstack/blazar-nova>`_, `blazar-nova <https://git.openstack.org/openstack/blazar-nova>`_,
`client <https://git.openstack.org/openstack/python-blazarclient>`_ `client <https://git.openstack.org/openstack/python-blazarclient>`_,
`blazar-dashboard <https://git.openstack.org/openstack/blazar-dashboard>`_
* Apply and commit your changes * Apply and commit your changes
* Make sure all code checkings and tests have passed * Make sure all code checks and tests have passed
* Send your patch to the review * Send your patch for review
* Monitor status of your change on https://review.openstack.org/#/ * Monitor the status of your change on https://review.openstack.org/

View File

@ -1,10 +1,11 @@
======================
Development guidelines Development guidelines
====================== ======================
Coding Guidelines Coding Guidelines
----------------- -----------------
`PEP8 <http://legacy.python.org/dev/peps/pep-0008/>`_ checking should pass for `PEP8 <http://legacy.python.org/dev/peps/pep-0008/>`_ checks should pass for
all Blazar code. You may check it using the following command: all Blazar code. You may check it using the following command:
.. sourcecode:: console .. sourcecode:: console
@ -13,7 +14,7 @@ all Blazar code. You may check it using the following command:
.. ..
Also you should keep your code clear using more code style checkings via Also you should keep your code clear using more code style checks via
`pylint <http://www.pylint.org>`_: `pylint <http://www.pylint.org>`_:
.. sourcecode:: console .. sourcecode:: console
@ -22,8 +23,8 @@ Also you should keep your code clear using more code style checkings via
.. ..
If you see any pep8/pylint errors in your code, it's mandatory to fix them If you see any pep8/pylint errors in your code, it is mandatory to fix them
before sending your change on review. before sending your change for review.
Testing Guidelines Testing Guidelines
------------------ ------------------
@ -43,7 +44,7 @@ via the commands:
.. ..
for Python 2.7, Python 3.4, and Python 3.5 accordingly. for Python 2.7 and Python 3.5 accordingly.
Note that the Blazar code base is not yet compatible with Python 3, so tests Note that the Blazar code base is not yet compatible with Python 3, so tests
will be failing. will be failing.
@ -66,6 +67,5 @@ To build Sphinx / RST docs locally run the following command:
.. ..
After it you can access generated docs in *doc/build/* directory, for example, Then you can access generated docs in the *doc/build/* directory, for example,
main page - *doc/build/html/index.html*. the main page would be *doc/build/html/index.html*.

View File

@ -0,0 +1,8 @@
=================
Contributor Guide
=================
.. toctree::
contribution
development

View File

@ -1,5 +1,5 @@
Welcome to Blazar! Blazar, the OpenStack Reservation Service
=================== =========================================
Blazar is an OpenStack service to provide resource reservations in the Blazar is an OpenStack service to provide resource reservations in the
OpenStack cloud for different resource types - both virtual (instances, OpenStack cloud for different resource types - both virtual (instances,
@ -14,47 +14,55 @@ Overview
introduction introduction
architecture architecture
User guide Installation Guide
---------- ------------------
**Installation**
.. toctree::
:maxdepth: 1
userdoc/installation.guide
**APIs**
.. toctree::
:maxdepth: 1
restapi/index
**Using Blazar**
.. toctree::
:maxdepth: 1
userdoc/using.host-reservation
userdoc/using.instance-reservation
Development guide
-----------------
.. toctree::
:maxdepth: 1
devref/how.to.contribute
devref/development.guidelines
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
devref/spec install/index
Release note Configuration Reference
------------ -----------------------
.. toctree::
:maxdepth: 2
`Release note <https://wiki.openstack.org/wiki/Blazar/Release_Notes>`_ configuration/index
CLI Reference
-------------
.. toctree::
:maxdepth: 2
cli/index
API Reference
-------------
.. toctree::
:maxdepth: 2
restapi/index
For Contributors
----------------
.. toctree::
:maxdepth: 2
contributor/index
Specs
-----
.. toctree::
:maxdepth: 2
specs/index
Indices and tables
------------------
* :ref:`genindex`
* :ref:`search`

View File

@ -0,0 +1,8 @@
=========================
Blazar Installation Guide
=========================
.. toctree::
install-using-devstack.rst
install-without-devstack.rst

View File

@ -0,0 +1,57 @@
===========================
Installation using DevStack
===========================
This section includes instructions for Blazar installation using DevStack.
DevStack configures both the host reservation and the instance reservation.
1. Download DevStack:
.. sourcecode:: console
git clone https://git.openstack.org/openstack-dev/devstack.git
..
2. Create a local.conf file in the devstack directory. You can use the
following sample local.conf:
.. sourcecode:: console
[[local|localrc]]
ADMIN_PASSWORD=password
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
DEST=/opt/stack/
LOGFILE=$DEST/logs/stack.sh.log
HOST_IP=127.0.0.1
GIT_BASE=https://git.openstack.org/
RECLONE=yes
enable_plugin blazar https://git.openstack.org/openstack/blazar
..
3. Run DevStack as the stack user:
.. sourcecode:: console
./stack.sh
..
4. Source the admin credentials:
.. sourcecode:: console
. openrc admin admin
..
5. Now you can add hosts to Blazar:
.. sourcecode:: console
blazar host-create hostname
..

View File

@ -1,60 +1,4 @@
Installation using DevStack =============================
===========================
This section includes instructions for Blazar installation using DevStack.
DevStack configures both the host reservation and the instance reservation.
1. Download DevStack:
.. sourcecode:: console
git clone https://git.openstack.org/openstack-dev/devstack.git
..
2. Create a local.conf file in the devstack directory. You can use the
following sample local.conf:
.. sourcecode:: console
[[local|localrc]]
ADMIN_PASSWORD=password
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
DEST=/opt/stack/
LOGFILE=$DEST/logs/stack.sh.log
HOST_IP=127.0.0.1
GIT_BASE=https://git.openstack.org/
RECLONE=yes
enable_plugin blazar https://git.openstack.org/openstack/blazar
..
3. Run DevStack as the stack user:
.. sourcecode:: console
./stack.sh
..
4. Source the admin credentials:
.. sourcecode:: console
. openrc admin admin
..
5. Now you can add hosts to Blazar:
.. sourcecode:: console
blazar host-create hostname
..
Installation without DevStack Installation without DevStack
============================= =============================
@ -157,9 +101,10 @@ Next you need to configure Nova. Please add the following lines to nova.conf fil
.. sourcecode:: console .. sourcecode:: console
scheduler_available_filters = nova.scheduler.filters.all_filters [filter_scheduler]
scheduler_available_filters = blazarnova.scheduler.filters.blazar_filter.BlazarFilter available_filters = nova.scheduler.filters.all_filters
scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,AggregateInstanceExtraSpecsFilter,AggregateMultiTenancyIsolation,ServerGroupAntiAffinityFilter,BlazarFilter available_filters = blazarnova.scheduler.filters.blazar_filter.BlazarFilter
enabled_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,AggregateInstanceExtraSpecsFilter,AggregateMultiTenancyIsolation,ServerGroupAntiAffinityFilter,BlazarFilter
.. ..
@ -213,4 +158,3 @@ To start Blazar services use:
.. ..
Now you can use python-blazarclient to communicate with Blazar. Now you can use python-blazarclient to communicate with Blazar.

View File

@ -1,3 +1,4 @@
============
Introduction Introduction
============ ============

View File

@ -0,0 +1,5 @@
==========
References
==========
None

View File

@ -1,9 +1,9 @@
====================
Blazar REST API v1.0 Blazar REST API v1.0
********************* ====================
1 General API information 1 General API information
========================= -------------------------
This section contains base information about the Blazar REST API design, This section contains base information about the Blazar REST API design,
including operations with different Blazar resource types and examples of including operations with different Blazar resource types and examples of
@ -27,7 +27,7 @@ or
2 Leases 2 Leases
======== --------
**Description** **Description**
@ -52,7 +52,7 @@ are mentioned.
+--------+-----------------------+-------------------------------------------------------------------------------+ +--------+-----------------------+-------------------------------------------------------------------------------+
2.1 List all leases 2.1 List all leases
------------------- ^^^^^^^^^^^^^^^^^^^
.. http:get:: /v1/leases .. http:get:: /v1/leases
@ -141,7 +141,7 @@ are mentioned.
} }
2.2 Create new lease 2.2 Create new lease
-------------------- ^^^^^^^^^^^^^^^^^^^^
.. http:post:: /v1/leases .. http:post:: /v1/leases
@ -250,7 +250,7 @@ are mentioned.
2.3 Show info about lease 2.3 Show info about lease
------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^
.. http:get:: /v1/leases/{lease_id} .. http:get:: /v1/leases/{lease_id}
@ -338,7 +338,7 @@ are mentioned.
} }
2.4 Update existing lease 2.4 Update existing lease
------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^
.. http:put:: /v1/leases/{lease_id} .. http:put:: /v1/leases/{lease_id}
@ -439,7 +439,7 @@ are mentioned.
} }
2.5 Delete existing lease 2.5 Delete existing lease
------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^
.. http:delete:: /v1/leases/{lease_id} .. http:delete:: /v1/leases/{lease_id}
@ -462,7 +462,7 @@ are mentioned.
3 Hosts 3 Hosts
======= -------
**Description** **Description**
@ -493,7 +493,7 @@ user query.
+--------+------------------------+---------------------------------------------------------------------------------+ +--------+------------------------+---------------------------------------------------------------------------------+
3.1 List all hosts 3.1 List all hosts
------------------ ^^^^^^^^^^^^^^^^^^
.. http:get:: /v1/os-hosts .. http:get:: /v1/os-hosts
@ -569,7 +569,7 @@ user query.
} }
3.2 Create host 3.2 Create host
--------------- ^^^^^^^^^^^^^^^
.. http:post:: /v1/os-hosts .. http:post:: /v1/os-hosts
@ -628,7 +628,7 @@ user query.
} }
3.3 Show info about host 3.3 Show info about host
------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^
.. http:get:: /v1/os-hosts/{host_id} .. http:get:: /v1/os-hosts/{host_id}
@ -681,7 +681,7 @@ user query.
} }
3.4 Update existing host 3.4 Update existing host
------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^
.. http:put:: /v1/os-hosts/{host_id} .. http:put:: /v1/os-hosts/{host_id}
@ -737,7 +737,7 @@ user query.
} }
3.5 Delete existing host 3.5 Delete existing host
------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^
.. http:delete:: /v1/os-hosts/{host_id} .. http:delete:: /v1/os-hosts/{host_id}
@ -759,7 +759,7 @@ user query.
Content-Type: application/json Content-Type: application/json
4 Plugins 4 Plugins
========= ---------
**Description** **Description**

View File

@ -1,9 +1,11 @@
Blazar REST API v2 ===============================
********************* Blazar REST API v2 (deprecated)
===============================
**NOTE**: This version is deprecated. Please use the Blazar REST API v1.
1 General API information 1 General API information
========================= -------------------------
This section contains base information about the Blazar REST API design, This section contains base information about the Blazar REST API design,
including operations with different Blazar resource types and examples of including operations with different Blazar resource types and examples of
@ -27,7 +29,7 @@ or
2 Leases 2 Leases
======= --------
**Description** **Description**
@ -43,7 +45,7 @@ are mentioned.
3 Hosts 3 Hosts
======= -------
**Description** **Description**

View File

@ -1,10 +1,9 @@
====================
Blazar REST API docs Blazar REST API docs
********************* ====================
This page includes documentation for Blazar APIs.
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
rest_api_v1.0 api-v1
rest_api_v2 api-v2

View File

@ -1,3 +1,4 @@
============
Blazar Specs Blazar Specs
============ ============
@ -11,7 +12,7 @@ This section has a list of specs for Queens release.
:maxdepth: 1 :maxdepth: 1
:glob: :glob:
specs/queens/* queens/*
Pike Pike
---- ----
@ -23,4 +24,4 @@ This section has a list of specs for Pike release.
:maxdepth: 1 :maxdepth: 1
:glob: :glob:
specs/pike/* pike/*

View File

@ -355,7 +355,7 @@ Request Example:
"memory_mb": 4096, "memory_mb": 4096,
"disk_gb": 10, "disk_gb": 10,
"amount": 5, "amount": 5,
"affinity": False "affinity": false
} }
], ],
"start": "2017-05-17 09:07" "start": "2017-05-17 09:07"
@ -369,7 +369,7 @@ Response Example:
.. sourcecode:: json .. sourcecode:: json
{ {
"leases": { "lease": {
"reservations": [ "reservations": [
{ {
"id": "reservation-id", "id": "reservation-id",
@ -381,7 +381,7 @@ Response Example:
"memory_mb": 4096, "memory_mb": 4096,
"disk_gb": 10, "disk_gb": 10,
"amount": 5, "amount": 5,
"affinity": False, "affinity": false,
"created_at": "2017-05-01 10:00:00", "created_at": "2017-05-01 10:00:00",
"updated_at": "2017-05-01 11:00:00", "updated_at": "2017-05-01 11:00:00",
}], }],

View File

@ -0,0 +1,9 @@
==========
User Guide
==========
.. toctree::
:maxdepth: 2
../cli/index
../restapi/index