ironicclient.v1.client module

class ironicclient.v1.client.Client(endpoint_override: str | None = None, *args: Any, **kwargs: Any)[source]

Bases: object

Client for the Ironic v1 API.

Parameters:
  • endpoint_override (string) – A user-supplied endpoint URL for the ironic service.

  • session – A keystoneauth Session object (must be provided as a keyword argument).

property current_api_version: str | list[str]

Return the current API version in use.

This returns the version of the REST API that the API client is presently set to request. This value may change as a result of API version negotiation.

property is_api_version_negotiated: bool

Returns True if microversion negotiation has occurred.

negotiate_api_version() str[source]

Triggers negotiation with the remote API endpoint.

Returns:

the negotiated API version.