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.
Retrieve a generator of chassis.
| Parameters: |
|
|---|---|
| Returns: | A generator of chassis instances. |
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 a single chassis.
| Parameters: |
|
|---|---|
| Returns: | One Chassis object or None. |
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 a chassis.
| Parameters: |
|
|---|---|
| Returns: | The updated chassis. |
| Return type: |
Delete a chassis.
| Parameters: |
|
|---|---|
| Returns: | The instance of the chassis which was deleted. |
| Return type: |
Retrieve a generator of drivers.
| Returns: | A generator of driver instances. |
|---|
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. |
Retrieve a generator of nodes.
| Parameters: |
|
|---|---|
| Returns: | A generator of node instances. |
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 a single node.
| Parameters: |
|
|---|---|
| Returns: | One Node object or None. |
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 a node.
| Parameters: |
|
|---|---|
| Returns: | The updated node. |
| Return type: |
Delete a node.
| Parameters: |
|
|---|---|
| Returns: | The instance of the node which was deleted. |
| Return type: | Node. |
Retrieve a generator of ports.
| Parameters: |
|
|---|---|
| Returns: | A generator of port instances. |
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 a single port.
| Parameters: |
|
|---|---|
| Returns: | One Port object or None. |
Get a specific port.
| Parameters: |
|
|---|---|
| Returns: | One Port |
| Raises: | ResourceNotFound when no port matching the name or ID could be found. |
Update a port.
| Parameters: |
|
|---|---|
| Returns: | The updated port. |
| Return type: |
Delete a port.
| Parameters: |
|
|---|---|
| Returns: | The instance of the port which was deleted. |
| Return type: | Port. |
Retrieve a generator of portgroups.
| Parameters: |
|
|---|---|
| Returns: | A generator of portgroup instances. |
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 a single portgroup.
| Parameters: |
|
|---|---|
| Returns: | One PortGroup object or None. |
Get a specific portgroup.
| Parameters: |
|
|---|---|
| Returns: | One PortGroup |
| Raises: | ResourceNotFound when no portgroup matching the name or ID could be found. |
Update a portgroup.
| Parameters: |
|
|---|---|
| Returns: | The updated portgroup. |
| Return type: | PortGroup |
Delete a portgroup.
| Parameters: |
|
|---|---|
| Returns: | The instance of the portgroup which was deleted. |
| Return type: | PortGroup. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.