The sushy.resources.sessionservice.sessionservice Module

The sushy.resources.sessionservice.sessionservice Module

class sushy.resources.sessionservice.sessionservice.SessionService(connector, identity, redfish_version=None, registries=None)

Bases: sushy.resources.base.ResourceBase

close_session(session_uri)

This function is for closing a session based on its id.

Raises:ServerSideError
create_session(username, password, target_uri=None)

This function will try to create a session.

Parameters:
  • username – the username of the user requesting a new session
  • password – the password associated to the user requesting a new session
  • target_uri – the “Sessions” uri, usually in the form: ‘/redfish/v1/SessionService/Sessions’
Returns:

A session key and uri in the form of a tuple

Raises:

MissingXAuthToken

Raises:

ConnectionError

Raises:

AccessError

Raises:

HTTPError

description = <sushy.resources.base.Field object>

The session service description

identity = <sushy.resources.base.Field object>

The session service identify string

name = <sushy.resources.base.Field object>

The session service name

service_enabled = <sushy.resources.base.Field object>

Tells us if session service is enabled

session_timeout = <sushy.resources.base.Field object>

The session service timeout

sessions

Property to provide reference to the SessionCollection instance

It is calculated once when the first time it is queried. On refresh, this property gets reset.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.