Merge "api-ref: complete verification of baremetal api"
This commit is contained in:
commit
813787644b
@ -1,25 +1,27 @@
|
|||||||
.. -*- rst -*-
|
.. -*- rst -*-
|
||||||
.. needs:parameter_verification
|
|
||||||
.. needs:example_verification
|
|
||||||
.. needs:body_verification
|
|
||||||
|
|
||||||
=======================================
|
=======================================
|
||||||
Bare metal nodes (os-baremetal-nodes)
|
Bare metal nodes (os-baremetal-nodes)
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
Bare metal nodes.
|
.. warning::
|
||||||
|
|
||||||
|
These APIs are proxy calls to the Ironic service. They exist for
|
||||||
|
legacy compatibility, but no new applications should use them.
|
||||||
|
|
||||||
|
Bare metal nodes.
|
||||||
|
|
||||||
List Bare Metal Nodes
|
List Bare Metal Nodes
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
.. rest_method:: GET /v2.1/{tenant_id}/servers/{server_id}/os-baremetal-nodes
|
.. rest_method:: GET /v2.1/{tenant_id}/os-baremetal-nodes
|
||||||
|
|
||||||
Lists the bare metal nodes that are associated with a server.
|
Lists the bare metal nodes known by the compute environment.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), notImplemented(501)
|
Error response codes: unauthorized(401), forbidden(403),
|
||||||
|
notImplemented(501)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -27,12 +29,22 @@ Request
|
|||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- tenant_id: tenant_id
|
- tenant_id: tenant_id
|
||||||
- server_id: server_id
|
|
||||||
|
|
||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**Example List Bare Metal Nodes: JSON response**
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- nodes: baremetal_nodes
|
||||||
|
- id: baremetal_id
|
||||||
|
- interfaces: baremetal_interfaces
|
||||||
|
- host: baremetal_host
|
||||||
|
- task_state: baremetal_taskstate
|
||||||
|
- cpus: baremetal_cpus
|
||||||
|
- memory_mb: baremetal_mem
|
||||||
|
- disk_gb: baremetal_disk
|
||||||
|
|
||||||
|
**Example List Bare Metal Nodes**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-baremetal-nodes/baremetal-node-list-resp.json
|
.. literalinclude:: ../../doc/api_samples/os-baremetal-nodes/baremetal-node-list-resp.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -40,17 +52,14 @@ Response
|
|||||||
Show Bare Metal Node Details
|
Show Bare Metal Node Details
|
||||||
============================
|
============================
|
||||||
|
|
||||||
.. rest_method:: GET /v2.1/{tenant_id}/servers/{server_id}/os-baremetal-nodes/{node_id}
|
.. rest_method:: GET /v2.1/{tenant_id}/os-baremetal-nodes/{node_id}
|
||||||
|
|
||||||
Shows details for a bare metal node.
|
Shows details for a bare metal node.
|
||||||
|
|
||||||
Preconditions
|
|
||||||
|
|
||||||
The bare metal node must be associated with the server.
|
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), notImplemented(501)
|
Error response codes: unauthorized(401), forbidden(403),
|
||||||
|
itemNotFound(404), notImplemented(501)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -58,13 +67,24 @@ Request
|
|||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- tenant_id: tenant_id
|
- tenant_id: tenant_id
|
||||||
- server_id: server_id
|
|
||||||
- node_id: node_id
|
- node_id: node_id
|
||||||
|
|
||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**Example Show Bare Metal Node Details: JSON response**
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- node: baremetal_node
|
||||||
|
- id: baremetal_id
|
||||||
|
- instance_uuid: baremetal_instance_uuid
|
||||||
|
- interfaces: baremetal_interfaces
|
||||||
|
- host: baremetal_host
|
||||||
|
- task_state: baremetal_taskstate
|
||||||
|
- cpus: baremetal_cpus
|
||||||
|
- memory_mb: baremetal_mem
|
||||||
|
- disk_gb: baremetal_disk
|
||||||
|
|
||||||
|
**Example Show Bare Metal Node Details**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-baremetal-nodes/baremetal-node-get-resp.json
|
.. literalinclude:: ../../doc/api_samples/os-baremetal-nodes/baremetal-node-get-resp.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
@ -721,6 +721,71 @@ availability_zone:
|
|||||||
in: body
|
in: body
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
baremetal_cpus:
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
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:
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
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:
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
description: |
|
||||||
|
This will always have the value "IRONIC MANAGED".
|
||||||
|
baremetal_id:
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
description: |
|
||||||
|
UUID of baremetal node
|
||||||
|
baremetal_instance_uuid:
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
description: |
|
||||||
|
UUID of server instance on this node
|
||||||
|
baremetal_interfaces:
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: array
|
||||||
|
description: |
|
||||||
|
A list of interface objects for active interfaces on the baremetal
|
||||||
|
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
|
||||||
|
required: true
|
||||||
|
type: array
|
||||||
|
description: |
|
||||||
|
An array of baremetal node objects
|
||||||
|
baremetal_taskstate:
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
description: |
|
||||||
|
The Ironic task state for the node. See Ironic project for more
|
||||||
|
details.
|
||||||
binary:
|
binary:
|
||||||
description: |
|
description: |
|
||||||
The binary name of the service.
|
The binary name of the service.
|
||||||
|
Loading…
Reference in New Issue
Block a user