diff options
author | Yolanda Robla <yroblamo@redhat.com> | 2018-07-24 13:40:44 +0200 |
---|---|---|
committer | Yolanda Robla <yroblamo@redhat.com> | 2018-07-27 13:23:37 +0200 |
commit | 95a449357cbbaf5c34b810a470a5bfda447a15f5 (patch) | |
tree | 21785e04cf67f4177a30cbdf8358641a399d7ec6 /api-ref/source | |
parent | 40af9848ac9d739632a780d178dd8912e58f0264 (diff) | |
download | ironic-95a449357cbbaf5c34b810a470a5bfda447a15f5.tar.gz |
Add documentation for BIOS settings
Update api-ref documentation, to add the BIOS
settings.
Change-Id: Ic592b5fa39f0d19d5676906ecd5c8fcbebf8e25f
Diffstat (limited to 'api-ref/source')
-rw-r--r-- | api-ref/source/baremetal-api-v1-nodes-bios.inc | 84 | ||||
-rw-r--r-- | api-ref/source/index.rst | 1 | ||||
-rw-r--r-- | api-ref/source/parameters.yaml | 32 | ||||
-rw-r--r-- | api-ref/source/samples/node-bios-detail-response.json | 18 | ||||
-rw-r--r-- | api-ref/source/samples/node-bios-list-response.json | 20 |
5 files changed, 155 insertions, 0 deletions
diff --git a/api-ref/source/baremetal-api-v1-nodes-bios.inc b/api-ref/source/baremetal-api-v1-nodes-bios.inc new file mode 100644 index 000000000..4602b134b --- /dev/null +++ b/api-ref/source/baremetal-api-v1-nodes-bios.inc @@ -0,0 +1,84 @@ +.. -*- rst -*- + +================= +Node Bios (nodes) +================= + +.. versionadded:: 1.40 + +Given a Node identifier (``uuid`` or ``name``), the API exposes the list of +all Bios settings associated with that Node. + +These endpoints do not allow modification of the Bios settings; that should be +done by using ``clean steps``. + +List all Bios settings by Node +============================== + +.. rest_method:: GET /v1/nodes/{node_ident}/bios + +Return a list of Bios settings associated with ``node_ident``. + +Normal response code: 200 + +Error codes: 404 + +Request +------- + +.. rest_parameters:: parameters.yaml + + - node_ident: node_ident + +Response +-------- + +.. rest_parameters:: parameters.yaml + + - bios: bios_settings + - created_at: created_at + - updated_at: updated_at + - links: links + - name: bios_setting_name + - value: bios_setting_value + +**Example list of a Node's Bios settings:** + +.. literalinclude:: samples/node-bios-list-response.json + + +Show single Bios setting of a Node +================================== + +.. rest_method:: GET /v1/nodes/{node_ident}/bios/{bios_setting} + +Return the content of the specific bios ``bios_setting`` associated with +``node_ident``. + +Normal response code: 200 + +Error codes: 404 + +Request +------- + +.. rest_parameters:: parameters.yaml + + - node_ident: node_ident + - bios_setting: bios_setting + +Response +-------- + +.. rest_parameters:: parameters.yaml + + - <key>: d_bios_setting + - created_at: created_at + - updated_at: updated_at + - links: links + - name: bios_setting_name + - value: bios_setting_value + +**Example details of a Node's Bios setting details:** + +.. literalinclude:: samples/node-bios-detail-response.json diff --git a/api-ref/source/index.rst b/api-ref/source/index.rst index e58a9d92e..c47f178bc 100644 --- a/api-ref/source/index.rst +++ b/api-ref/source/index.rst @@ -23,4 +23,5 @@ .. include:: baremetal-api-v1-driver-passthru.inc .. include:: baremetal-api-v1-chassis.inc .. include:: baremetal-api-v1-misc.inc +.. include:: baremetal-api-v1-nodes-bios.inc diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index f3f2eb6dc..a25962e8a 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -38,6 +38,12 @@ x-openstack-ironic-api-version: type: string # variables in path +bios_setting: + description: | + The name of the Bios setting. + in: path + required: true + type: string chassis_ident: description: | The UUID of the chassis. @@ -343,6 +349,25 @@ agent_node: type: JSON # variables in the API body +bios_setting_name: + description: | + The name of a Bios setting for a Node, eg. "virtualization". + in: body + required: true + type: string +bios_setting_value: + description: | + The value of a Bios setting for a Node, eg. "on". + in: body + required: true + type: string +bios_settings: + description: | + Optional list of one or more Bios settings. It includes following fields + "created_at", "updated_at", "links", "name", "value". + in: body + required: true + type: array boot_device: description: | The boot device for a Node, eg. "pxe" or "disk". @@ -409,6 +434,13 @@ created_at: in: body required: true type: string +d_bios_setting: + description: | + Dictionary containing the definition of a Bios setting. It includes the + following fields "created_at", "updated_at", "links", "name", "value". + in: body + required: true + type: dictionary default_boot_interface: description: | The default boot interface used for a node with a dynamic driver, if no diff --git a/api-ref/source/samples/node-bios-detail-response.json b/api-ref/source/samples/node-bios-detail-response.json new file mode 100644 index 000000000..a7b01028c --- /dev/null +++ b/api-ref/source/samples/node-bios-detail-response.json @@ -0,0 +1,18 @@ +{ + "virtualization": { + "created_at": "2016-08-18T22:28:49.653974+00:00", + "updated_at": "2016-08-18T22:28:49.653974+00:00", + "links": [ + { + "href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/bios/virtualization", + "rel": "self" + }, + { + "href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/bios/virtualization", + "rel": "bookmark" + } + ], + "name": "virtualization", + "value": "on" + } +} diff --git a/api-ref/source/samples/node-bios-list-response.json b/api-ref/source/samples/node-bios-list-response.json new file mode 100644 index 000000000..87d5e9c89 --- /dev/null +++ b/api-ref/source/samples/node-bios-list-response.json @@ -0,0 +1,20 @@ +{ + "bios": [ + { + "created_at": "2016-08-18T22:28:49.653974+00:00", + "updated_at": "2016-08-18T22:28:49.653974+00:00", + "links": [ + { + "href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/bios/virtualization", + "rel": "self" + }, + { + "href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/bios/virtualization", + "rel": "bookmark" + } + ], + "name": "virtualization", + "value": "on" + } + ] +} |