Merge "Improve ports API reference"

This commit is contained in:
Jenkins
2017-07-21 10:34:53 +00:00
committed by Gerrit Code Review
3 changed files with 61 additions and 26 deletions

View File

@@ -18,6 +18,15 @@ List Ports by Node
Return a list of bare metal Ports associated with ``node_ident``. Return a list of bare metal Ports associated with ``node_ident``.
API microversion 1.8 added the ``fields`` request parameter. When specified,
this causes the content of the response to include only the specified fields,
rather than the default set.
API microversion 1.19 added the ``pxe_enabled`` and ``local_link_connection``
fields.
API microversion 1.24 added the ``portgroup_uuid`` field.
API microversion 1.34 added the ``physical_network`` field. API microversion 1.34 added the ``physical_network`` field.
Normal response code: 200 Normal response code: 200
@@ -58,6 +67,11 @@ List detailed Ports by Node
Return a detailed list of bare metal Ports associated with ``node_ident``. Return a detailed list of bare metal Ports associated with ``node_ident``.
API microversion 1.19 added the ``pxe_enabled`` and ``local_link_connection``
fields.
API microversion 1.24 added the ``portgroup_uuid`` field.
API microversion 1.34 added the ``physical_network`` field. API microversion 1.34 added the ``physical_network`` field.
Normal response code: 200 Normal response code: 200

View File

@@ -10,9 +10,9 @@ of, and details of, all Ports associated with that Portgroup.
These endpoints do not allow modification of the Ports; that should be done These endpoints do not allow modification of the Ports; that should be done
by accessing the Port resources under the ``/v1/ports`` endpoint. by accessing the Port resources under the ``/v1/ports`` endpoint.
``/v1/portgroups/{portgroup_ident}/ports`` endpoint was added in API API microversion 1.24 added the ``/v1/portgroups/{portgroup_ident}/ports``
microversion 1.24, if using older version, all the requests return endpoint. If using an older version, all requests to this endpoint will return
``Not Found (404)`` error code. a ``Not Found (404)`` error code.
List Ports by Portgroup List Ports by Portgroup
@@ -22,6 +22,9 @@ List Ports by Portgroup
Return a list of bare metal Ports associated with ``portgroup_ident``. Return a list of bare metal Ports associated with ``portgroup_ident``.
When specified, the ``fields`` request parameter causes the content of the
Response to include only the specified fields, rather than the default set.
API microversion 1.34 added the ``physical_network`` field. API microversion 1.34 added the ``physical_network`` field.
Normal response code: 200 Normal response code: 200

View File

@@ -9,9 +9,9 @@ resources are done through the ``ports`` resource.
All Ports must be associated to a Node when created. This association All Ports must be associated to a Node when created. This association
can be changed, though the request may be rejected if either the current can be changed, though the request may be rejected if either the current
or destination Node are in a transitive state (eg, in the process of deploying) or destination Node are in a transitive state (e.g., in the process of
or are in a state that would be non-deterministically affected by such a change deploying) or are in a state that would be non-deterministically affected by
(e.g., there is an active user instance on the Node). such a change (e.g., there is an active user instance on the Node).
List Ports List Ports
@@ -24,20 +24,18 @@ some parameters with the request.
By default, this query will return the uuid and address for each Port. By default, this query will return the uuid and address for each Port.
``node`` query parameter was added in API microversion 1.6. If both API microversion 1.6 added the ``node`` query parameter. If both ``node_uuid``
``node_uuid`` and ``node`` are specified in the request, ``node_uuid`` and ``node`` are specified in the request, ``node_uuid`` will be used to filter
will be used to filter results. results.
API microversion 1.8 added the ``fields`` Request parameter. When specified, API microversion 1.8 added the ``fields`` request parameter. When specified,
this causes the content of the Response to include only the specified fields, this causes the content of the response to include only the specified fields,
rather than the default set. rather than the default set.
API microversion 1.19 added the ``pxe_enabled`` and ``local_link_connection`` API microversion 1.19 added the ``pxe_enabled`` and ``local_link_connection``
fields. fields.
.. TODO: add pxe_enabled and local_link_connection to all sample files API microversion 1.24 added the ``portgroup_uuid`` field.
API microversion 1.24 added the portgroup_uuid field.
API microversion 1.34 added the ``physical_network`` field. API microversion 1.34 added the ``physical_network`` field.
@@ -84,7 +82,13 @@ Creates a new Port resource.
This method requires a Node UUID and the physical hardware address for the Port This method requires a Node UUID and the physical hardware address for the Port
(MAC address in most cases). (MAC address in most cases).
``physical_network`` response field was added in API microversion 1.34. API microversion 1.19 added the ``pxe_enabled`` and ``local_link_connection``
request and response fields.
API microversion 1.24 added the ``portgroup_uuid`` request and response fields.
API microversion 1.34 added the ``physical_network`` request and response
fields.
Normal response code: 201 Normal response code: 201
@@ -95,7 +99,11 @@ Request
- node_uuid: node_uuid - node_uuid: node_uuid
- address: port_address - address: port_address
- portgroup_uuid: portgroup_uuid
- local_link_connection: local_link_connection
- pxe_enabled: pxe_enabled
- physical_network: physical_network - physical_network: physical_network
- extra: extra
**Example Port creation request:** **Example Port creation request:**
@@ -133,14 +141,17 @@ List Detailed Ports
Return a list of bare metal Ports, with detailed information. Return a list of bare metal Ports, with detailed information.
``node`` query parameter was added in API microversion 1.6. If both API microversion 1.6 added the ``node`` query parameter. If both ``node_uuid``
``node_uuid`` and ``node`` are specified in the request, ``node_uuid`` and ``node`` are specified in the request, ``node_uuid`` will be used to filter
will be used to filter results. results.
``portgroup`` query parameter and ``portgroup_uuid`` response field API microversion 1.19 added the ``pxe_enabled`` and ``local_link_connection``
were added in API microversion 1.24. response fields.
``physical_network`` response field was added in API microversion 1.34. API microversion 1.24 added the ``portgroup`` query parameter and
``portgroup_uuid`` response field.
API microversion 1.34 added the ``physical_network`` response field.
Normal response code: 200 Normal response code: 200
@@ -190,14 +201,16 @@ Show Port Details
Show details for the given Port. Show details for the given Port.
API microversion 1.8 added the ``fields`` Request parameter. When specified, API microversion 1.8 added the ``fields`` request parameter. When specified,
this causes the content of the Response to include only the specified fields, this causes the content of the response to include only the specified fields,
rather than the default set. rather than the default set.
``portgroup`` query parameter and ``portgroup_uuid`` response field API microversion 1.19 added the ``pxe_enabled`` and ``local_link_connection``
were added in API microversion 1.24. response fields.
``physical_network`` response field was added in API microversion 1.34. API microversion 1.24 added the ``portgroup_uuid`` response field.
API microversion 1.34 added the ``physical_network`` response field.
Normal response code: 200 Normal response code: 200
@@ -240,6 +253,11 @@ Update a Port
Update a Port. Update a Port.
API microversion 1.19 added the ``pxe_enabled`` and ``local_link_connection``
fields.
API microversion 1.24 added the ``portgroup_uuid`` field.
API microversion 1.34 added the ``physical_network`` field. API microversion 1.34 added the ``physical_network`` field.
Normal response code: 200 Normal response code: 200