The baremetal introspection high-level interface is available through
the baremetal_introspection
member of a
Connection
object.
The baremetal_introspection
member will only be added if the service is
detected.
openstack.baremetal_introspection.v1._proxy.
Proxy
(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)¶introspections
(**query)¶Retrieve a generator of introspection records.
Parameters: | query (dict) – Optional query parameters to be sent to restrict the records to be returned. Available parameters include:
|
---|---|
Returns: | A generator of Introspection
objects |
get_introspection
(introspection)¶Get a specific introspection.
Parameters: | introspection – The value can be the name or ID of an
introspection (matching bare metal node name or ID) or
an Introspection instance. |
---|---|
Returns: | Introspection instance. |
Raises: | ResourceNotFound when no
introspection matching the name or ID could be found. |
get_introspection_data
(introspection)¶Get introspection data.
Parameters: | introspection – The value can be the name or ID of an
introspection (matching bare metal node name or ID) or
an Introspection instance. |
---|---|
Returns: | introspection data from the most recent successful run. |
Return type: | dict |
start_introspection
(node)¶Create a new introspection from attributes.
Parameters: | node – The value can be either the name or ID of a node or
a Node instance. |
---|---|
Returns: | Introspection instance. |
wait_for_introspection
(introspection, timeout=None, ignore_error=False)¶Wait for the introspection to finish.
Parameters: |
|
---|---|
Returns: |
|
Raises: |
|
Raises: |
|
abort_introspection
(introspection, ignore_missing=True)¶Abort an introspection.
Note that the introspection is not aborted immediately, you may use wait_for_introspection with ignore_error=True.
Parameters: |
|
---|---|
Returns: | nothing |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.