ironic.api.controllers.v1.port Module¶ironic.api.controllers.v1.port.Port(**kwargs)[source]¶Bases: ironic.api.controllers.base.APIBase
API representation of a port.
This class enforces type checking and value constraints, and converts between the internal object model and the API representation of a port.
ironic.api.controllers.v1.port.PortCollection(**kwargs)[source]¶Bases: ironic.api.controllers.v1.collection.Collection
API representation of a collection of ports.
ironic.api.controllers.v1.port.PortsController(node_ident=None, portgroup_ident=None)[source]¶Bases: pecan.rest.RestController
REST controller for Ports.
delete(*args, **kwargs)[source]¶Delete a port.
| Parameters: | port_uuid – UUID of a port. |
|---|---|
| Raises: | OperationNotPermitted, HTTPNotFound |
detail(*args, **kwargs)[source]¶Retrieve a list of ports with detail.
Note that the ‘node_uuid’ interface is deprecated in favour of the ‘node’ interface
| Parameters: |
|
|---|---|
| Raises: | NotAcceptable, HTTPNotFound |
get_all(*args, **kwargs)[source]¶Retrieve a list of ports.
Note that the ‘node_uuid’ interface is deprecated in favour of the ‘node’ interface
| Parameters: |
|
|---|---|
| Raises: | NotAcceptable, HTTPNotFound |
get_one(*args, **kwargs)[source]¶Retrieve information about the given port.
| Parameters: |
|
|---|---|
| Raises: | NotAcceptable, HTTPNotFound |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.