api-ref, os-availability-zone.inc

Verified parameters, body text, examples.
-Added brief howto for creating an AZ and linked
to Host Aggregates developer documentation.
-Added new hosts object with details about service
 states.
Change-Id: I721628f95d8623591447f88fa68a0f7601823308
This commit is contained in:
Karen Bradshaw 2016-05-26 16:48:31 -04:00
parent 95ed8cdb4c
commit a7fa4f426e
2 changed files with 131 additions and 68 deletions

View File

@ -1,20 +1,24 @@
.. -*- rst -*- .. -*- rst -*-
.. needs:parameter_verification
.. needs:example_verification
.. needs:body_verification
=========================================== ===========================================
Availability zones (os-availability-zone) Availability zones (os-availability-zone)
=========================================== ===========================================
Shows availability zone information. Lists and gets detailed availability zone information.
An availability zone is created or updated by setting the
availability_zone parameter in the ``create``, ``update``, or
``create or update`` methods of the Host Aggregates API.
See `Host Aggregates <http://docs.openstack.org/developer/nova/aggregates.html>`_
for more details.
Get Availability Zone Information Get Availability Zone Information
================================= =================================
.. rest_method:: GET /os-availability-zone .. rest_method:: GET /os-availability-zone
Gets availability zone information. Lists availability zone information.
Normal response codes: 200 Normal response codes: 200
@ -23,7 +27,17 @@ Error response codes: unauthorized(401), forbidden(403)
Response Response
-------- --------
**Example Get availability zone information: JSON response** .. rest_parameters:: parameters.yaml
- availabilityZoneInfo: availability_zone_info
- hosts: hosts.availability_zone
- zoneName: OS-EXT-AZ:availability_zone
- zoneState: availability_zone_state
- available: available
|
**Example Get availability zone information**
.. literalinclude:: ../../doc/api_samples/os-availability-zone/availability-zone-list-resp.json .. literalinclude:: ../../doc/api_samples/os-availability-zone/availability-zone-list-resp.json
:language: javascript :language: javascript
@ -34,7 +48,8 @@ Get Detailed Availability Zone Information
.. rest_method:: GET /os-availability-zone/detail .. rest_method:: GET /os-availability-zone/detail
Gets detailed availability zone information. Gets detailed availability zone information.
Policy defaults enable only users with the administrative role to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file. Policy defaults enable only users with the administrative role to perform this operation.
Cloud providers can change these permissions through the ``policy.json`` file.
Normal response codes: 200 Normal response codes: 200
@ -43,7 +58,17 @@ Error response codes: unauthorized(401), forbidden(403)
Response Response
-------- --------
**Example Get detailed availability zone information: JSON response** .. rest_parameters:: parameters.yaml
- availabilityZoneInfo: availability_zone_info
- hosts: hosts.availability_zone
- zoneName: OS-EXT-AZ:availability_zone
- zoneState: availability_zone_state
- available: available
|
**Example Get detailed availability zone information**
.. literalinclude:: ../../doc/api_samples/os-availability-zone/availability-zone-detail-resp.json .. literalinclude:: ../../doc/api_samples/os-availability-zone/availability-zone-detail-resp.json
:language: javascript :language: javascript

View File

@ -373,7 +373,6 @@ flavor_is_public_query:
Filters the flavor list by only public flavors. By default ``non Filters the flavor list by only public flavors. By default ``non
admin`` users only see public flavors, and ``admin`` users can see admin`` users only see public flavors, and ``admin`` users can see
additional non public flavors. additional non public flavors.
flavor_query: flavor_query:
description: | description: |
Filters the response by a flavor, as a UUID. A flavor is a combination of memory, Filters the response by a flavor, as a UUID. A flavor is a combination of memory,
@ -834,6 +833,24 @@ availability_zone:
in: body in: body
required: false required: false
type: string type: string
availability_zone_info:
description: |
The list of availability zone information.
in: body
required: true
type: array
availability_zone_state:
description: |
The current state of the availability zone.
in: body
required: true
type: object
available:
description: |
Returns true if the availability zone is available.
in: body
required: true
type: boolean
backup_name: backup_name:
description: | description: |
The name of the image to be backed up. The name of the image to be backed up.
@ -854,70 +871,73 @@ backup_type:
required: true required: true
type: string type: string
baremetal_cpus: baremetal_cpus:
description: |
Number of CPUs the node has.
.. note:: This is a JSON string, even though it will look like an int value.
in: body in: body
required: true required: true
type: string type: string
description: |
Number of cpus the node has. Note: this is json string, even
though it will look like an int value.
baremetal_disk: baremetal_disk:
description: |
Amount of disk in GiB the node has.
.. note:: This is a JSON string, even though it will look like an int value.
in: body in: body
required: true required: true
type: string type: string
description: |
Amount of disk in GiB the node has. Note: this is json string,
even though it will look like an int value.
baremetal_host: baremetal_host:
description: |
This will always have the value ``IRONIC MANAGED``.
in: body in: body
required: true required: true
type: string type: string
description: |
This will always have the value "IRONIC MANAGED".
baremetal_id: baremetal_id:
description: |
UUID of the baremetal node.
in: body in: body
required: true required: true
type: string type: string
description: |
UUID of baremetal node
baremetal_instance_uuid: baremetal_instance_uuid:
description: |
UUID of the server instance on this node.
in: body in: body
required: true required: true
type: string type: string
description: |
UUID of server instance on this node
baremetal_interfaces: baremetal_interfaces:
in: body
required: true
type: array
description: | description: |
A list of interface objects for active interfaces on the baremetal A list of interface objects for active interfaces on the baremetal
node. Each will have an ``address`` field with the address. node. Each will have an ``address`` field with the address.
baremetal_mem:
in: body
required: true
type: string
description: |
Amount of memory in MiB the node has. Note: this is json string,
even though it will look like an int value.
baremetal_node:
in: body
required: true
type: object
description: |
A baremetal node object
baremetal_nodes:
in: body in: body
required: true required: true
type: array type: array
baremetal_mem:
description: | description: |
An array of baremetal node objects Amount of memory in MiB the node has.
baremetal_taskstate:
.. note:: This is a JSON string, even though it will look like an int value.
in: body in: body
required: true required: true
type: string type: string
baremetal_node:
description: |
A baremetal node object.
in: body
required: true
type: object
baremetal_nodes:
description: |
An array of baremetal node objects.
in: body
required: true
type: array
baremetal_taskstate:
description: | description: |
The Ironic task state for the node. See Ironic project for more The Ironic task state for the node. See Ironic project for more
details. details.
in: body
required: true
type: string
binary: binary:
description: | description: |
The binary name of the service. The binary name of the service.
@ -1031,7 +1051,7 @@ console_id_in_body:
console_output: console_output:
description: | description: |
The console output as a string. Control characters will be escaped The console output as a string. Control characters will be escaped
to create a valid json string. to create a valid JSON string.
in: body in: body
required: true required: true
type: string type: string
@ -1053,6 +1073,12 @@ consoles:
in: body in: body
required: true required: true
type: array type: array
contents:
description: |
The file contents field in the personality object.
in: body
required: true
type: string
cores: cores:
description: | description: |
The number of allowed instance cores for each tenant. The number of allowed instance cores for each tenant.
@ -1368,7 +1394,7 @@ flavor_cpus:
required: true required: true
type: int type: int
description: | description: |
The number of virtual cpus that will be allocated to the server. The number of virtual CPUs that will be allocated to the server.
flavor_disabled: flavor_disabled:
in: body in: body
required: false required: false
@ -1410,61 +1436,61 @@ flavor_id_body:
required: true required: true
type: string type: string
flavor_is_public: flavor_is_public:
description: |
Whether the flavor is public (available to all projects) or scoped
to a set of projects. Default is True if not specified.
in: body in: body
required: true required: true
type: boolean type: boolean
description: |
Wheter the flavor is public (available to all projects) or scoped
to a set of projects. Default is True if not specified.
flavor_is_public_in: flavor_is_public_in:
description: |
Whether the flavor is public (available to all projects) or scoped
to a set of projects. Default is True if not specified.
in: body in: body
required: false required: false
type: boolean type: boolean
description: |
Wheter the flavor is public (available to all projects) or scoped
to a set of projects. Default is True if not specified.
flavor_name: flavor_name:
description: |
The display name of a flavor.
in: body in: body
required: true required: true
type: string type: string
description: |
The display name of a flavor.
flavor_ram: flavor_ram:
in: body
required: true
type: int
description: | description: |
The amount of RAM a flavor has, in MiB. The amount of RAM a flavor has, in MiB.
in: body
required: true
type: int
flavor_rxtx_factor: flavor_rxtx_factor:
in: body
required: true
type: float
description: | description: |
The receive / transimit factor (as a float) that will be set on The receive / transimit factor (as a float) that will be set on
ports if the network backend supports the QOS extension. ports if the network backend supports the QOS extension.
Otherwise it will be ignored. It defaults to 1.0. Otherwise it will be ignored. It defaults to 1.0.
in: body
required: true
type: float
flavor_rxtx_factor_in: flavor_rxtx_factor_in:
in: body
required: false
type: float
description: | description: |
The receive / transimit factor (as a float) that will be set on The receive / transimit factor (as a float) that will be set on
ports if the network backend supports the QOS extension. ports if the network backend supports the QOS extension.
Otherwise it will be ignored. It defaults to 1.0. Otherwise it will be ignored. It defaults to 1.0.
in: body
required: false
type: float
flavor_swap: flavor_swap:
description: |
The size of a dedicated swap disk that will be allocated, in
GiB. If 0 (the default), no dedicated swap disk will be created.
in: body in: body
required: true required: true
type: int type: int
flavor_swap_in:
description: | description: |
The size of a dedicated swap disk that will be allocated, in The size of a dedicated swap disk that will be allocated, in
GiB. If 0 (the default), no dedicated swap disk will be created. GiB. If 0 (the default), no dedicated swap disk will be created.
flavor_swap_in:
in: body in: body
required: false required: false
type: int type: int
description: |
The size of a dedicated swap disk that will be allocated, in
GiB. If 0 (the default), no dedicated swap disk will be created.
flavorRef: flavorRef:
description: | description: |
The flavor reference, as a UUID or full URL, for the flavor for your server instance. The flavor reference, as a UUID or full URL, for the flavor for your server instance.
@ -1652,7 +1678,7 @@ host_resource_array:
type: array type: array
host_service: host_service:
description: | description: |
The service name which is running on the host. The name of the service which is running on the host.
in: body in: body
required: true required: true
type: string type: string
@ -1693,10 +1719,18 @@ hostId:
type: string type: string
hosts: hosts:
description: | description: |
An array of host information An array of host information.
in: body in: body
required: true required: true
type: array type: array
hosts.availability_zone:
description: |
An object containing a list of host information. The host information is comprised
of host and service objects. The service object returns three parameters representing
the states of the service: ``active``, ``available``, and ``updated_at``.
in: body
required: true
type: object
hypervisor: hypervisor:
description: | description: |
The hypervisor object. The hypervisor object.
@ -2435,7 +2469,7 @@ OS-DCF:diskConfig:
type: string type: string
OS-EXT-AZ:availability_zone: OS-EXT-AZ:availability_zone:
description: | description: |
The availability zone. The availability zone name.
in: body in: body
required: true required: true
type: string type: string
@ -2552,9 +2586,7 @@ OS-SRV-USG:terminated_at:
CCYY-MM-DDThh:mm:ss±hh:mm CCYY-MM-DDThh:mm:ss±hh:mm
For example, ``2015-08-27T09:49:58-05:00``. For example, ``2015-08-27T09:49:58-05:00``.
The ``±hh:mm`` value, if included, is the time zone as an offset from UTC. The ``±hh:mm`` value, if included, is the time zone as an offset from UTC.
If the ``deleted_at`` date and time stamp is not set, its value is ``null``. If the ``deleted_at`` date and time stamp is not set, its value is ``null``.
in: body in: body
required: true required: true
@ -2590,6 +2622,12 @@ password:
in: body in: body
required: false required: false
type: string type: string
path:
description: |
The path field in the personality object.
in: body
required: false
type: string
pause: pause:
description: | description: |
The action. The action.