Bases: object
Based on data source get data and parse to JSON
Sets mandatory connection parameters
connector – A Connector instance
path – path of the resource
Bases: collections.abc.Mapping
, sushy.resources.base.Field
Base class for fields consisting of several sub-fields.
Bases: sushy.resources.base.Field
Base class for fields consisting of dictionary of several sub-fields.
Bases: object
Definition for fields fetched from JSON.
Bases: object
Contains data to be used when constructing Fields
The headers
The parsed JSON body
The status code
Bases: sushy.resources.base.AbstractDataReader
Gets the data from JSON file in archive
Gets JSON file from archive. Currently supporting ZIP only
Bases: sushy.resources.base.AbstractDataReader
Gets the data from HTTP response given by path
Gets JSON file from URI directly
Bases: sushy.resources.base.AbstractDataReader
Gets the data from packaged file given by path
Gets JSON file from packaged file denoted by path
Bases: sushy.resources.base.AbstractDataReader
Loads the data from the Internet
Get JSON file from full URI
Bases: sushy.resources.base.CompositeField
Reference to linked resources.
Bases: sushy.resources.base.Field
Base class for fields consisting of a list of several sub-fields.
Bases: sushy.resources.base.Field
Field taking real value from a mapping.
Bases: sushy.resources.base.Field
Field taking a list of values with a mapping for the values
Given JSON {‘field’:[‘xxx’, ‘yyy’]}, a sushy resource definition and mapping {‘xxx’:’a’, ‘yyy’:’b’}, the sushy object to come out will be like resource.field = [‘a’, ‘b’]
Bases: sushy.resources.base.ListField
List of messages with details of settings update status
Human readable message, if provided
List of message substitution arguments for the message referenced by message_id from the message registry
The key for this message which can be used to look up the message in a message registry
Used to provide suggestions on how to resolve the situation that caused the error
Severity of the error
Bases: sushy.resources.base.ResourceCollectionBase
Delete the given member of the collection.
Bases: object
Instantiate given resource using existing BMC connection context
Get the OEM extension instance for this resource by OEM vendor
vendor – the OEM vendor string which is the vendor-specific
extensibility identifier. Examples are ‘Contoso’, ‘Hpe’.
Possible value can be got from oem_vendors
attribute.
the Redfish resource OEM extension instance.
OEMExtensionNotFoundError
Mark the resource as stale, prompting refresh() before getting used.
If force_refresh
is set to True, then it invokes refresh()
on the resource.
force_refresh – will invoke refresh on the resource, if set to True.
ResourceNotFoundError
ConnectionError
HTTPError
The Redfish version
Refresh the resource
Freshly retrieves/fetches the resource attributes and invokes
_parse_attributes()
method on successful retrieval.
It is recommended not to override this method in concrete ResourceBase
classes. Resource classes can place their refresh specific operations
in _do_refresh()
method, if needed. This method represents the
template method in the paradigm of Template design pattern.
force – if set to False, will only refresh if the resource is marked as stale, otherwise neither it nor its subresources will be refreshed.
json_doc – parsed JSON document in form of Python types.
ResourceNotFoundError
ConnectionError
HTTPError
Bases: sushy.resources.base.ResourceLinksBase
A tuple with the members identities
The name of the collection
Bases: sushy.resources.base.ResourceBase
Given the identity return a _resource_type
object
identity – The identity of the _resource_type
The _resource_type
object
ResourceNotFoundError
Return a list of _resource_type
objects present in collection
A list of _resource_type
objects
A sequence with members identities
Create and configure the reader.
connector – A Connector instance
path – sub-URI path to the resource.
reader – Reader to use to fetch JSON data.
the reader
Bases: sushy.resources.base.CompositeField
Bases: sushy.resources.base.CompositeField
Reference to the resource odata identity field.
The unique identifier for a resource
Bases: sushy.resources.base.ListField
This type describes any additional identifiers for a resource.
This indicates the world wide, persistent name of the resource.
This represents the format of the DurableName property.
Bases: sushy.resources.common.ActionField
Bases: sushy.resources.base.CompositeField
The expiry time of maintenance window in seconds
The start time of a maintenance window
The types of apply times that the client is allowed request when performing a create, delete, or action operation returned as a mapped list
The types of apply times that the client is allowed request when performing a create, delete, or action operation returned as an unmapped list
Deprecated: Use mapped_supported_values.
Bases: sushy.resources.common.ActionField
Bases: sushy.resources.base.CompositeField
This Field describes the status of a resource and its children.
This field shall contain any state or health properties of a resource.
Represents health of resource w/o considering its dependent resources
Represents health state of resource and its dependent resources
Indicates the known state of the resource, such as if it is enabled.
Bases: enum.Enum
Apply time constants
Apply during a maintenance window as specified by an administrator.
Apply immediately.
Apply after a reset but within maintenance window as specified by an administrator.
Apply on a reset.
Bases: enum.Enum
Durable name format constants
The IEEE-defined 64-bit Extended Unique Identifier (EUI).
The Fibre Channel (FC) World Wide Name (WWN).
The Name Address Authority (NAA) format.
The Namespace Globally Unique Identifier (NGUID).
The NVMe Qualified Name (NQN).
The NVM Namespace Identifier (NSID).
The Universally Unique Identifier (UUID).
The iSCSI Qualified Name (iQN).
Bases: enum.Enum
Health related constants.
A critical condition requires immediate attention.
Normal.
A condition requires attention.
Bases: enum.Enum
Indicator LED Constants
The Indicator LED is blinking
The Indicator LED is lit
The Indicator LED is off
The state of the Indicator LED cannot be determine
Bases: enum.Enum
System PowerState constants
The resource is powered off, although some components may continue to have AUX power such as management controller
The resource is powered on
The resource is paused.
A temporary state between On and Off. The power off action can take time while the OS is in the shutdown process
A temporary state between Off and On. This temporary state can be very short
Bases: enum.Enum
Protocol type constants
Advanced Host Controller Interface (AHCI).
DisplayPort.
Ethernet.
Fibre Channel.
Fibre Channel Protocol for SCSI.
Fibre Channel over Ethernet (FCoE).
FIbre CONnection (FICON).
File Transfer Protocol (FTP).
GenZ.
HDMI.
Hypertext Transport Protocol (HTTP).
Hypertext Transfer Protocol Secure (HTTPS).
Inter-Integrated Circuit Bus.
InfiniBand.
Multiple Protocols.
Network File System (NFS) version 3.
Network File System (NFS) version 4.
NVLink.
Non-Volatile Memory Express (NVMe).
NVMe over Fabrics.
OEM-specific.
PCI Express.
RDMA over Converged Ethernet Protocol.
RDMA over Converged Ethernet Protocol Version 2.
Serial Attached SCSI.
Serial AT Attachment.
SSH File Transfer Protocol (SFTP).
Server Message Block (SMB). Also known as the Common Internet File System (CIFS).
Transmission Control Protocol (TCP).
Trivial File Transfer Protocol (TFTP).
User Datagram Protocol (UDP).
Universal Host Controller Interface (UHCI).
Universal Serial Bus (USB).
VGA.
Internet SCSI.
Internet Wide Area RDMA Protocol (iWARP).
Bases: enum.Enum
Reset action constants
Turn off the unit immediately (non-graceful shutdown).
Turn on the unit immediately.
Shut down immediately and non-gracefully and restart the system.
Shut down gracefully and restart the system.
Shut down gracefully and power off.
Generate a diagnostic interrupt, which is usually an NMI on x86 systems, to stop normal operations, complete diagnostic actions, and, typically, halt the system.
Turn on the unit.
Pause execution on the unit but do not remove power. This is typically a feature of virtual machine hypervisors.
Power cycle the unit. Behaves like a full power removal, followed by a power restore to the resource.
Simulate the pressing of the physical power button on this unit.
Resume execution on the paused unit. This is typically a feature of virtual machine hypervisors.
Write the state of the unit to disk before powering off. This allows for the state to be restored when powered back on.
alias of sushy.resources.constants.Health
Bases: enum.Enum
State related constants.
This function or resource is either not present or detected.
The element does not process any commands but queues new requests.
This function or resource is disabled.
This function or resource is enabled.
This function or resource is undergoing testing, or is in the process of capturing information for debugging.
The element quality is within the acceptable range of operation.
The element is enabled but only processes a restricted set of commands.
This function or resource is enabled but awaits an external action to activate it.
This function or resource is part of a redundancy set and awaits a failover or other external action to activate it.
This function or resource is starting.
This function or resource is present but cannot be used.
The element is updating and might be unavailable or degraded.
Bases: enum.Enum
An enumeration.
This address is currently within its valid lifetime but is now outside its RFC4862-defined preferred lifetime.
This address has failed Duplicate Address Detection (DAD) testing, as defined in RFC4862, section 5.4, and is not currently in use.
This address is currently within both its RFC4862-defined valid and preferred lifetimes.
This address is currently undergoing Duplicate Address Detection (DAD) testing, as defined in RFC4862, section 5.4.
Bases: enum.Enum
An enumeration.
A BOOTP service-provided address.
A DHCPv4 service-provided address.
The address is valid for only this network segment, or link.
A user-configured static address.
Bases: enum.Enum
An enumeration.
A DHCPv6 service-provided address.
The address is valid for only this network segment, or link.
A stateless autoconfiguration (SLAAC) service-provided address.
A static user-configured address.
Bases: sushy.resources.base.CompositeField
The expiry time of maintenance window in seconds
The start time of a maintenance window
No updates made
Bases: sushy.resources.base.CompositeField
When the future configuration should be applied
The list of allowable ApplyTime values
The expiry time of maintenance window in seconds
The start time of a maintenance window
Bases: sushy.resources.base.CompositeField
The settings of a resource
Represents the future state and configuration of the resource. The field is added to resources that support future state and configuration.
This field includes several properties to help clients monitor when the resource is consumed by the service and determine the results of applying the values, which may or may not have been successful.
Commits new settings values
The new values will be applied when the system or a service restarts.
connector – A Connector instance
value – Value representing JSON whose structure is specific to each resource and the caller must format it correctly
Determines the status of last update based
Uses message id-s and severity to determine the status.
registries – registries to use to parse message
SettingsUpdate
object containing status
and any messages
MaintenanceWindow field
Indicates if a given resource has a maintenance window assignment for applying settings or operations
Represents the results of the last time the values of the Settings resource were applied to the server
OperationApplyTimeSupport field
Indicates if a client is allowed to request for a specific apply time of a create, delete, or action operation of a given resource
Indicates the time the settings were applied to the server
Bases: object
Contains Settings update status and details of the update
List of MessageListField
with messages from the update
The status of the update
Update encountered errors
Update waiting for being applied
Update was successful
Update status unknown
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.