hpeOneView package
Subpackages
- hpeOneView.resources package
- Subpackages
- hpeOneView.resources.activity package
- hpeOneView.resources.data_services package
- hpeOneView.resources.facilities package
- hpeOneView.resources.fc_sans package
- hpeOneView.resources.hypervisors package
- hpeOneView.resources.networking package
- Submodules
- hpeOneView.resources.networking.connection_templates module
- hpeOneView.resources.networking.ethernet_networks module
- hpeOneView.resources.networking.fabrics module
- hpeOneView.resources.networking.fc_networks module
- hpeOneView.resources.networking.fcoe_networks module
- hpeOneView.resources.networking.interconnect_link_topologies module
- hpeOneView.resources.networking.interconnect_types module
- hpeOneView.resources.networking.interconnects module
- hpeOneView.resources.networking.internal_link_sets module
- hpeOneView.resources.networking.logical_downlinks module
- hpeOneView.resources.networking.logical_interconnect_groups module
- hpeOneView.resources.networking.logical_interconnects module
- hpeOneView.resources.networking.logical_switch_groups module
- hpeOneView.resources.networking.logical_switches module
- hpeOneView.resources.networking.network_sets module
- hpeOneView.resources.networking.sas_interconnect_types module
- hpeOneView.resources.networking.sas_interconnects module
- hpeOneView.resources.networking.sas_logical_interconnect_groups module
- hpeOneView.resources.networking.sas_logical_interconnects module
- hpeOneView.resources.networking.switch_types module
- hpeOneView.resources.networking.switches module
- hpeOneView.resources.networking.uplink_sets module
- Module contents
- hpeOneView.resources.search package
- hpeOneView.resources.security package
- Submodules
- hpeOneView.resources.security.certificate_authority module
- hpeOneView.resources.security.certificate_rabbitmq module
- hpeOneView.resources.security.certificates_server module
- hpeOneView.resources.security.login_details module
- hpeOneView.resources.security.roles module
- hpeOneView.resources.security.users module
- Module contents
- hpeOneView.resources.servers package
- Submodules
- hpeOneView.resources.servers.connections module
- hpeOneView.resources.servers.enclosure_groups module
- hpeOneView.resources.servers.enclosures module
- hpeOneView.resources.servers.id_pools module
- hpeOneView.resources.servers.id_pools_ipv4_ranges module
- hpeOneView.resources.servers.id_pools_ipv4_subnets module
- hpeOneView.resources.servers.id_pools_ranges module
- hpeOneView.resources.servers.logical_enclosures module
- hpeOneView.resources.servers.migratable_vc_domains module
- hpeOneView.resources.servers.rack_manager module
- hpeOneView.resources.servers.server_hardware module
- hpeOneView.resources.servers.server_hardware_types module
- hpeOneView.resources.servers.server_profile_templates module
- hpeOneView.resources.servers.server_profiles module
- Module contents
- hpeOneView.resources.settings package
- Submodules
- hpeOneView.resources.settings.appliance_configuration_timeconfig module
- hpeOneView.resources.settings.appliance_device_read_community module
- hpeOneView.resources.settings.appliance_device_snmp_v1_trap_destinations module
- hpeOneView.resources.settings.appliance_device_snmp_v3_trap_destinations module
- hpeOneView.resources.settings.appliance_device_snmp_v3_users module
- hpeOneView.resources.settings.appliance_health_status module
- hpeOneView.resources.settings.appliance_network_interfaces module
- hpeOneView.resources.settings.appliance_node_information module
- hpeOneView.resources.settings.appliance_proxy_configuration module
- hpeOneView.resources.settings.appliance_ssh_access module
- hpeOneView.resources.settings.appliance_time_and_locale_configuration module
- hpeOneView.resources.settings.backups module
- hpeOneView.resources.settings.firmware_bundles module
- hpeOneView.resources.settings.firmware_drivers module
- hpeOneView.resources.settings.ha_nodes module
- hpeOneView.resources.settings.licenses module
- hpeOneView.resources.settings.repositories module
- hpeOneView.resources.settings.restores module
- hpeOneView.resources.settings.scopes module
- hpeOneView.resources.settings.versions module
- Module contents
- hpeOneView.resources.storage package
- Submodules
- hpeOneView.resources.storage.drive_enclosures module
- hpeOneView.resources.storage.sas_logical_jbod_attachments module
- hpeOneView.resources.storage.sas_logical_jbods module
- hpeOneView.resources.storage.storage_pools module
- hpeOneView.resources.storage.storage_systems module
- hpeOneView.resources.storage.storage_volume_attachments module
- hpeOneView.resources.storage.storage_volume_templates module
- hpeOneView.resources.storage.volumes module
- Module contents
- hpeOneView.resources.uncategorized package
- Submodules
- hpeOneView.resources.resource module
EnsureResourceClient
Resource
Resource.DEFAULT_VALUES
Resource.UNIQUE_IDENTIFIERS
Resource.URI
Resource.create()
Resource.delete()
Resource.ensure_resource_data()
Resource.get_all()
Resource.get_by()
Resource.get_by_field()
Resource.get_by_id()
Resource.get_by_name()
Resource.get_by_uri()
Resource.new()
Resource.refresh()
Resource.update()
ResourceClient
ResourceClient.build_query_uri()
ResourceClient.build_subresource_uri()
ResourceClient.build_uri()
ResourceClient.create()
ResourceClient.create_report()
ResourceClient.create_with_zero_body()
ResourceClient.delete()
ResourceClient.delete_all()
ResourceClient.download()
ResourceClient.get()
ResourceClient.get_all()
ResourceClient.get_by()
ResourceClient.get_by_name()
ResourceClient.get_collection()
ResourceClient.get_schema()
ResourceClient.get_utilization()
ResourceClient.merge_default_values()
ResourceClient.patch()
ResourceClient.patch_request()
ResourceClient.update()
ResourceClient.update_with_zero_body()
ResourceClient.upload()
ResourceFileHandlerMixin
ResourceHelper
ResourceHelper.add_new_fields()
ResourceHelper.build_query_uri()
ResourceHelper.build_subresource_uri()
ResourceHelper.build_uri()
ResourceHelper.build_uri_with_query_string()
ResourceHelper.create()
ResourceHelper.create_report()
ResourceHelper.delete()
ResourceHelper.delete_all()
ResourceHelper.do_get()
ResourceHelper.do_post()
ResourceHelper.do_put()
ResourceHelper.do_requests_to_getall()
ResourceHelper.get_all()
ResourceHelper.get_collection()
ResourceHelper.get_members()
ResourceHelper.get_next_page()
ResourceHelper.make_query_filter()
ResourceHelper.update()
ResourceHelper.update_resource_fields()
ResourceHelper.update_with_zero_body()
ResourceHelper.validate_resource_uri()
ResourcePatchMixin
ResourceSchemaMixin
ResourceUtilizationMixin
ResourceZeroBodyMixin
ensure_resource_client
extract_id_from_uri()
merge_default_values()
merge_resources()
transform_list_to_dict()
unavailable_method()
- hpeOneView.resources.task_monitor module
- Module contents
- Subpackages
Submodules
hpeOneView.connection module
connection.py
This module maintains communication with the appliance.
- class hpeOneView.connection.connection(applianceIp, api_version=None, sslBundle=False, timeout=None, proxy=None)[source]
Bases:
object
- disable_etag_validation()[source]
Disable the concurrency control for the PUT and DELETE requests. The requests will be forced without specifying an explicit ETag. This method sets an If-Match header of “*”.
- enable_etag_validation()[source]
Enable the concurrency control for the PUT and DELETE requests, in which the requests are conditionally processed only if the provided entity tag in the body matches the latest entity tag stored for the resource.
The eTag validation is enabled by default.
hpeOneView.exceptions module
- exception hpeOneView.exceptions.HPEOneViewException(data, error=None)[source]
Bases:
Exception
OneView base Exception.
- msg
Exception message.
- Type
str
- oneview_response
OneView rest response.
- Type
dict
- exception hpeOneView.exceptions.HPEOneViewInvalidResource(data, error=None)[source]
Bases:
HPEOneViewException
OneView Invalid Resource Exception.
- msg
Exception message.
- Type
str
- exception hpeOneView.exceptions.HPEOneViewMissingUniqueIdentifiers(data, error=None)[source]
Bases:
HPEOneViewException
OneView Missing Unique Identifiers Exception. The exception is raised when unique identifiers are missing for the resource
- msg
Exception message.
- Type
str
- exception hpeOneView.exceptions.HPEOneViewResourceNotFound(data, error=None)[source]
Bases:
HPEOneViewException
OneView Resource Not Found Exception. The exception is raised when an associated resource was not found.
- msg
Exception message.
- Type
str
- exception hpeOneView.exceptions.HPEOneViewTaskError(msg, error_code=None)[source]
Bases:
HPEOneViewException
OneView Task Error Exception.
- msg
Exception message.
- Type
str
- error_code
A code which uniquely identifies the specific error.
- Type
str
- exception hpeOneView.exceptions.HPEOneViewTimeout(data, error=None)[source]
Bases:
HPEOneViewException
OneView Timeout Exception.
- msg
Exception message.
- Type
str
Bases:
HPEOneViewException
OneView Unavailable Method Exception. The exception is raised when a method is not available for the resource class.
Exception message.
- Type
str
- exception hpeOneView.exceptions.HPEOneViewUnknownType(data, error=None)[source]
Bases:
HPEOneViewException
OneView Unknown Type Error.
- msg
Exception message.
- Type
str
- exception hpeOneView.exceptions.HPEOneViewValueError(data, error=None)[source]
Bases:
HPEOneViewException
OneView Value Error. The exception is raised when the data contains an inappropriate value.
- msg
Exception message.
- Type
str
hpeOneView.oneview_client module
This module implements a common client for HPE OneView REST API.
- class hpeOneView.oneview_client.OneViewClient(config, sessionID=None)[source]
Bases:
object
- property api_version
Gets the OneView API Version.
- Returns
API Version.
- Return type
int
- property appliance_configuration_timeconfig
Gets the ApplianceConfigurationTimeconfig API client.
- Return type
- property appliance_device_read_community
Gets the ApplianceDeviceReadCommunity API client.
- Return type
- property appliance_device_snmp_v1_trap_destinations
Gets the ApplianceDeviceSNMPv1TrapDestinations API client.
- Return type
- property appliance_device_snmp_v3_trap_destinations
Gets the ApplianceDeviceSNMPv3TrapDestinations API client.
- Return type
- property appliance_device_snmp_v3_users
Gets the ApplianceDeviceSNMPv3Users API client.
- Return type
- property appliance_health_status
Gets the ApplianceHealthStatus API client.
- Return type
- property appliance_network_interfaces
Gets the ApplianceNetworkInterfaces API client.
- Return type
- property appliance_node_information
Gets the ApplianceNodeInformation API client.
- Return type
- property appliance_proxy_configuration
Gets the ApplianceProxyConfiguration API client.
- Return type
- property appliance_ssh_access
Gets the ApplianceSshAccess API client.
- Return type
- property appliance_time_and_locale_configuration
Gets the ApplianceTimeAndLocaleConfiguration API client.
- Return type
- property certificate_authority
Gets the Certificate Authority API client.
- Return type
- property certificate_rabbitmq
Gets the Certificate RabbitMQ API client.
- Return type
- property certificates_server
Gets the Certificates Server API client.
- Return type
Server Certificate
- property connection
Gets the underlying HPE OneView connection used by the OneViewClient.
- Return type
- property connection_templates
Gets the ConnectionTemplates API client.
- Return type
- property connections
Gets the Connections API client.
- Return type
- property datacenters
Gets the Datacenters API client.
- Return type
- property drive_enclosures
Gets the Drive Enclosures API client.
- Return type
- property enclosure_groups
Gets the EnclosureGroups API client.
- Return type
- property enclosures
Gets the Enclosures API client.
- Return type
- property ethernet_networks
Gets the EthernetNetworks API client.
- Return type
- property fc_networks
Gets the FcNetworks API client.
- Return type
- property fcoe_networks
Gets the FcoeNetworks API client.
- Return type
- property firmware_bundles
Gets the FirmwareBundles API client.
- Return type
- property firmware_drivers
Gets the FirmwareDrivers API client.
- Return type
- classmethod from_environment_variables(session_id=None)[source]
Construct OneViewClient using environment variables.
Allowed variables: ONEVIEWSDK_IP (required), ONEVIEWSDK_USERNAME (required), ONEVIEWSDK_PASSWORD (required), ONEVIEWSDK_AUTH_LOGIN_DOMAIN, ONEVIEWSDK_API_VERSION, ONEVIEWSDK_SESSIONID, ONEVIEWSDK_SSL_CERTIFICATE, ONEVIEWSDK_CONNECTION_TIMEOUT and ONEVIEWSDK_PROXY.
- Return type
- classmethod from_json_file(file_name, sessionID=None)[source]
Construct OneViewClient using a json file.
- Parameters
file_name – json full path.
- Return type
- property hypervisor_cluster_profiles
Gets the Hypervisor Cluster Profiles API client.
- Return type
Hypervisor Cluster Profiles
- property hypervisor_managers
Gets the Hypervisor Managers API client.
- Returns
HypervisorManagers
- property id_pools_ipv4_ranges
Gets the IdPoolsIpv4Ranges API client.
- Return type
- property id_pools_ipv4_subnets
Gets the IdPoolsIpv4Subnets API client.
- Return type
- property id_pools_vmac_ranges
Gets the IdPoolsRanges API Client for VMAC Ranges.
- Return type
- property id_pools_vsn_ranges
Gets the IdPoolsRanges API Client for VSN Ranges.
- Return type
- property id_pools_vwwn_ranges
Gets the IdPoolsRanges API Client for VWWN Ranges.
- Return type
- property index_resources
Gets the Index Resources API client.
- Return type
- property interconnect_link_topologies
Gets the InterconnectLinkTopologies API client.
- Return type
- property interconnect_types
Gets the InterconnectTypes API client.
- Return type
- property interconnects
Gets the Interconnects API client.
- Return type
- property internal_link_sets
Gets the InternalLinkSets API client.
- Return type
- property licenses
Gets all the licenses Returns: List of licenses
- property logical_downlinks
Gets the LogicalDownlinks API client.
- Return type
- property logical_enclosures
Gets the LogicalEnclosures API client.
- Return type
- property logical_interconnect_groups
Gets the LogicalInterconnectGroups API client.
- Return type
- property logical_interconnects
Gets the LogicalInterconnects API client.
- Return type
- property logical_switch_groups
Gets the LogicalSwitchGroups API client.
- Return type
- property logical_switches
Gets the LogicalSwitches API client.
- Return type
- property login_details
Gets the login details
Returns: List of login details
- property managed_sans
Gets the Managed SANs API client.
- Return type
- property metric_streaming
Gets the MetricStreaming API client.
- Return type
- property migratable_vc_domains
Gets the VC Migration Manager API client.
- Return type
- property network_sets
Gets the NetworkSets API client.
- Return type
- property power_devices
Gets the PowerDevices API client.
- Return type
- property rack_managers
Gets the Rack Manager API client.
- Return type
- property repositories
Gets the Repositories API client.
- Return type
- property san_managers
Gets the Repositories API client.
- Return type
- property san_providers
Gets the Repositories API client.
- Return type
- property sas_interconnect_types
Gets the SasInterconnectTypes API client.
- Return type
- property sas_interconnects
Gets the SAS Interconnects API client.
- Return type
- property sas_logical_interconnect_groups
Gets the SasLogicalInterconnectGroups API client.
- Return type
- property sas_logical_interconnects
Gets the SasLogicalInterconnects API client.
- Return type
- property sas_logical_jbod_attachments
Gets the SAS Logical JBOD Attachments client.
- Return type
- property sas_logical_jbods
Gets the SAS Logical JBODs API client.
- Return type
SasLogicalJbod
- property server_hardware
Gets the ServerHardware API client.
- Return type
- property server_hardware_types
Gets the ServerHardwareTypes API client.
- Return type
- property server_profile_templates
Gets the ServerProfileTemplate API client.
- Return type
- property server_profiles
Gets the ServerProfiles API client.
- Return type
- property storage_pools
Gets the StoragePools API client.
- Return type
- property storage_systems
Gets the StorageSystems API client.
- Return type
- property storage_volume_attachments
Gets the StorageVolumeAttachments API client.
- Return type
- property storage_volume_templates
Gets the StorageVolumeTemplates API client.
- Return type
- property switch_types
Gets the SwitchTypes API client.
- Return type
- property unmanaged_devices
Gets the Unmanaged Devices API client.
- Return type
- property uplink_sets
Gets the UplinkSets API client.
- Return type
- property versions
Gets the Version API client.
- Return type
Version
Module contents
HPE OneView Library
hpeOneView is a library for interfacing with HPE OneView Management Appliance.