For details on how to use bare_metal, see Using OpenStack Bare Metal
The bare_metal high-level interface is available through the bare_metal
member of a Connection object.
The bare_metal member will only be added if the service is detected.
openstack.bare_metal.v1._proxy.Proxy(session)¶chassis(details=False, **query)¶Retrieve a generator of chassis.
| Parameters: |
|
|---|---|
| Returns: | A generator of chassis instances. |
create_chassis(**attrs)¶Create a new chassis from attributes.
| Parameters: | attrs (dict) – Keyword arguments that will be used to create a
Chassis, it comprised
of the properties on the Chassis class. |
|---|---|
| Returns: | The results of chassis creation. |
| Return type: | Chassis. |
find_chassis(name_or_id, ignore_missing=True)¶Find a single chassis.
| Parameters: | |
|---|---|
| Returns: | One |
get_chassis(chassis)¶Get a specific chassis.
| Parameters: | chassis – The value can be the name or ID of a chassis or a
Chassis instance. |
|---|---|
| Returns: | One Chassis |
| Raises: | ResourceNotFound when no
chassis matching the name or ID could be found. |
update_chassis(chassis, **attrs)¶Update a chassis.
| Parameters: | |
|---|---|
| Returns: | The updated chassis. |
| Return type: |
delete_chassis(chassis, ignore_missing=True)¶Delete a chassis.
| Parameters: |
|
|---|---|
| Returns: | The instance of the chassis which was deleted. |
| Return type: |
drivers()¶Retrieve a generator of drivers.
| Returns: | A generator of driver instances. |
|---|
get_driver(driver)¶Get a specific driver.
| Parameters: | driver – The value can be the name of a driver or a
Driver instance. |
|---|---|
| Returns: | One Driver |
| Raises: | ResourceNotFound when no
driver matching the name could be found. |
nodes(details=False, **query)¶Retrieve a generator of nodes.
| Parameters: |
|
|---|---|
| Returns: | A generator of node instances. |
create_node(**attrs)¶Create a new node from attributes.
| Parameters: | attrs (dict) – Keyword arguments that will be used to create a
Node, it comprised
of the properties on the Node class. |
|---|---|
| Returns: | The results of node creation. |
| Return type: | Node. |
find_node(name_or_id, ignore_missing=True)¶Find a single node.
| Parameters: | |
|---|---|
| Returns: | One |
get_node(node)¶Get a specific node.
| Parameters: | node – The value can be the name or ID of a chassis or a
Node instance. |
|---|---|
| Returns: | One Node |
| Raises: | ResourceNotFound when no
node matching the name or ID could be found. |
update_node(node, **attrs)¶Update a node.
| Parameters: | |
|---|---|
| Returns: | The updated node. |
| Return type: |
delete_node(node, ignore_missing=True)¶Delete a node.
| Parameters: | |
|---|---|
| Returns: | The instance of the node which was deleted. |
| Return type: |
|
ports(details=False, **query)¶Retrieve a generator of ports.
| Parameters: |
|
|---|---|
| Returns: | A generator of port instances. |
create_port(**attrs)¶Create a new port from attributes.
| Parameters: | attrs (dict) – Keyword arguments that will be used to create a
Port, it comprises of the
properties on the Port class. |
|---|---|
| Returns: | The results of port creation. |
| Return type: | Port. |
find_port(name_or_id, ignore_missing=True)¶Find a single port.
| Parameters: | |
|---|---|
| Returns: | One |
get_port(port, **query)¶Get a specific port.
| Parameters: |
|
|---|---|
| Returns: | One |
| Raises: |
|
update_port(port, **attrs)¶Update a port.
| Parameters: | |
|---|---|
| Returns: | The updated port. |
| Return type: |
delete_port(port, ignore_missing=True)¶Delete a port.
| Parameters: | |
|---|---|
| Returns: | The instance of the port which was deleted. |
| Return type: |
|
portgroups(details=False, **query)¶Retrieve a generator of portgroups.
| Parameters: |
|
|---|---|
| Returns: | A generator of portgroup instances. |
create_portgroup(**attrs)¶Create a new portgroup from attributes.
| Parameters: | attrs (dict) – Keyword arguments that will be used to create a
PortGroup, it
comprises of the properties on the PortGroup class. |
|---|---|
| Returns: | The results of portgroup creation. |
| Return type: | PortGroup. |
find_portgroup(name_or_id, ignore_missing=True)¶Find a single portgroup.
| Parameters: | |
|---|---|
| Returns: | One |
get_portgroup(portgroup, **query)¶Get a specific portgroup.
| Parameters: |
|
|---|---|
| Returns: | One |
| Raises: |
|
update_portgroup(portgroup, **attrs)¶Update a portgroup.
| Parameters: |
|
|---|---|
| Returns: | The updated portgroup. |
| Return type: |
|
delete_portgroup(portgroup, ignore_missing=True)¶Delete a portgroup.
| Parameters: |
|
|---|---|
| Returns: | The instance of the portgroup which was deleted. |
| Return type: |
|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.