com.vmware.esx.settings.hosts.software package¶
Subpackages¶
Submodules¶
com.vmware.esx.settings.hosts.software.drafts_client module¶
The com.vmware.esx.settings.hosts.software.drafts_client module provides
classes to manage software drafts for ESX host.
-
class
com.vmware.esx.settings.hosts.software.drafts_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
com.vmware.esx.settings.hosts.software.reports_client module¶
The com.vmware.esx.settings.hosts.software.reports_client module provides
classes to manage reports pertaining to the desired state software for
standalone ESXi hosts.
-
class
com.vmware.esx.settings.hosts.software.reports_client.ApplyImpact(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
ApplyImpactclass provides methods to get the impact of an apply method on a standalone ESXi host. This class was added in vSphere API 8.0.0.1.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
HostImpact(impact=None, commit=None, host_info=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
ApplyImpact.HostImpactclass contains attributes that describe the summary of how the standalone ESXi host will be impacted during an apply method. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
impact (
listofApplyImpact.Impact) – Impact of steps performed during the apply method. This attribute was added in vSphere API 8.0.0.1.commit (
str) – Identifier of the commit on which the impact is generated. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.esx.settings.commit. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.esx.settings.commit.host_info (
com.vmware.esx.settings_client.HostInfo) – Information of the host. This attribute was added in vSphere API 8.0.0.1.
-
class
Impact(message=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
ApplyImpact.Impactclass contains attributes that describe what the impact is of a particular step during the apply method. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
message (
com.vmware.vapi.std_client.LocalizableMessage) – Description of the impact. This attribute was added in vSphere API 8.0.0.1.
-
get(host)¶ Returns a summary of how a standalone ESXi host will be impacted during an apply method. The impact is generated from the compliance information obtained from
com.vmware.esx.settings.hosts.software_client.Compliance.get(). This method was added in vSphere API 8.0.0.1.- Parameters
host (
str) – The host identifier. The parameter must be an identifier for the resource type:HostSystem.- Return type
- Returns
Summary of how hosts will be impacted during an apply method
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is an unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no host associated withhostin the system.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.UnsupportedIf the host is not a vLCM managed standlone host.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSoftwareRemediation.Read.The resource
HostSystemreferenced by the parameterhostrequiresVcIntegrity.lifecycleSoftwareRemediation.Read.
-
class
com.vmware.esx.settings.hosts.software.reports_client.LastApplyResult(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
LastApplyResultclass provides methods to get the most recent available result of applying the desired software document to a standalone ESXi host. This class was added in vSphere API 8.0.0.1.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
ApplyResult(status=None, commit=None, host_info=None, notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
LastApplyResult.ApplyResultclass contains attributes that describe the result of an apply method. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
status (
LastApplyResult.ApplyStatusorNone) – Specifies the status of the apply method. This attribute was added in vSphere API 8.0.0.1. None if the apply method is in progress.commit (
str) – The identifier of the commit used to fetch the desired software document to be applied to the standalone host. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.esx.settings.commit. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.esx.settings.commit.host_info (
com.vmware.esx.settings_client.HostInfo) – Information of the host to which the desired software document specified by theLastApplyResult.ApplyResult.commitneeds to be applied to. This attribute was added in vSphere API 8.0.0.1.notifications (
com.vmware.esx.settings_client.NotificationsorNone) – Notifications providing additional information forcom.vmware.esx.settings.hosts_client.Software.apply()method. These notifications are mutually exclusive with the notifications inLastApplyResult.ApplyStatus. This attribute was added in vSphere API 8.0.0.1.
-
class
ApplyStatus(status=None, start_time=None, end_time=None, notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
LastApplyResult.ApplyStatusclass contains attributes that describe the status of an apply method. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
status (
LastApplyResult.ApplyStatus.Status) – The status of the method. This attribute was added in vSphere API 8.0.0.1.start_time (
datetime.datetime) – Time when the method started. This attribute was added in vSphere API 8.0.0.1.end_time (
datetime.datetime) – Time when the method completed. This attribute was added in vSphere API 8.0.0.1.notifications (
com.vmware.esx.settings_client.Notifications) – Notifications providing additional information about the status of the method. This attribute was added in vSphere API 8.0.0.1.
-
class
Status(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
LastApplyResult.ApplyStatus.Statusclass contains the possible different status codes that can be returned while trying to apply the desired software specification to a standalone host. This enumeration was added in vSphere API 8.0.0.1.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters
string (
str) – String value for theStatusinstance.
-
ERROR= Status(string='ERROR')¶ The method encountered an unspecified error. This class attribute was added in vSphere API 8.0.0.1.
-
OK= Status(string='OK')¶ The method completed successfully. This class attribute was added in vSphere API 8.0.0.1.
-
SKIPPED= Status(string='SKIPPED')¶ The method was skipped. This class attribute was added in vSphere API 8.0.0.1.
-
TIMED_OUT= Status(string='TIMED_OUT')¶ The method timed out. This class attribute was added in vSphere API 8.0.0.1.
-
get(host)¶ Returns the most recent available result of applying the desired software document to the standalone ESXi host. This method was added in vSphere API 8.0.0.1.
- Parameters
host (
str) – the host identifier. The parameter must be an identifier for the resource type:HostSystem.- Return type
- Returns
Most recent available result of applying the desired software document to the standalone ESXi host.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is an unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no standalone host associated withhostin the system or if there is no result associated with the hosthost- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.UnsupportedIf the host is not a vLCM managed standlone host.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSoftwareRemediation.Read.The resource
HostSystemreferenced by the parameterhostrequiresVcIntegrity.lifecycleSoftwareRemediation.Read.
-
class
com.vmware.esx.settings.hosts.software.reports_client.LastCheckResult(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
LastCheckResultclass provides methods to get the most recent available result of the checks that have been run on the standalone host before the application of the desired software document to the host. This class was added in vSphere API 8.0.0.1.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
CheckInfo(check=None, name=None, description=None, originator=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
LastCheckResult.CheckInfoclass contains attributes that describe a particular check. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
check (
str) – The check identifier. This attribute was added in vSphere API 8.0.0.1.name (
com.vmware.vapi.std_client.LocalizableMessage) – The check name. This attribute was added in vSphere API 8.0.0.1.description (
com.vmware.vapi.std_client.LocalizableMessage) – Human-readable check description. This attribute was added in vSphere API 8.0.0.1.originator (
strorNone) – The service that performed the check. This attribute was added in vSphere API 8.0.0.1. Onlysetif there is an originator available for this check.
-
class
CheckIssue(description=None, resolution=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructTip
The arguments are used to initialize data attributes with the same names.
- Parameters
description (
com.vmware.vapi.std_client.LocalizableMessage) – Description of the issue encountered. This attribute was added in vSphere API 8.0.0.1.resolution (
com.vmware.vapi.std_client.LocalizableMessageorNone) – Possible resolution for the issue. This attribute was added in vSphere API 8.0.0.1. Can be left None if no meaningful resolution exists.
-
class
CheckResult(status=None, start_time=None, end_time=None, commit=None, host_info=None, entity_result=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
LastCheckResult.CheckResultclass contains attributes that describe aggregated status of all checks performed. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
status (
LastCheckResult.Status) – Aggregated status from all checks performed. This attribute was added in vSphere API 8.0.0.1.start_time (
datetime.datetime) – Time when the operation started. This attribute was added in vSphere API 8.0.0.1.end_time (
datetime.datetime) – Time when the operation completed. This attribute was added in vSphere API 8.0.0.1.commit (
str) – The identifier of the commit on which checks have been run. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.esx.settings.commit. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.esx.settings.commit.host_info (
com.vmware.esx.settings_client.HostInfo) – Information about the host for which checks have been requested to be run. This attribute was added in vSphere API 8.0.0.1.entity_result (
LastCheckResult.EntityCheckResult) – List ofLastCheckResult.EntityCheckResultfor all entities for which checks have been run. This attribute was added in vSphere API 8.0.0.1.
-
class
CheckStatus(check=None, status=None, check_issues=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
LastCheckResult.CheckStatusclass contains attributes that describe a check result. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
check (
LastCheckResult.CheckInfo) – Information about this check. This attribute was added in vSphere API 8.0.0.1.status (
LastCheckResult.Status) – The status of this check. This attribute was added in vSphere API 8.0.0.1.check_issues (
listofLastCheckResult.CheckIssueorNone) – The issues encountered while running this check. This attribute was added in vSphere API 8.0.0.1.
-
class
EntityCheckResult(type=None, host=None, status=None, check_statuses=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
LastCheckResult.EntityCheckResultclass contains attributes that describe aggregated status of all checks performed on a specific entity. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
type (
LastCheckResult.EntityCheckResult.EntityType) – The entity type for which these checks are being run. This attribute was added in vSphere API 8.0.0.1.host (
str) – If the entity type is HOST then the host identifier for which the checks have been run. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:HostSystem. This attribute is optional and it is only relevant when the value oftypeisLastCheckResult.EntityCheckResult.EntityType.HOST.status (
LastCheckResult.Status) – Aggregated status from all checks performed on this entity. This attribute was added in vSphere API 8.0.0.1.check_statuses (
listofLastCheckResult.CheckStatus) – List ofLastCheckResult.CheckStatusfor all checks performed. This attribute was added in vSphere API 8.0.0.1.
-
class
EntityType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
LastCheckResult.EntityCheckResult.EntityTypeclass contains the entities on which checks can be performed. This enumeration was added in vSphere API 8.0.0.1.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters
string (
str) – String value for theEntityTypeinstance.
-
HOST= EntityType(string='HOST')¶ Entity type Host. This class attribute was added in vSphere API 8.0.0.1.
-
class
Status(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
LastCheckResult.Statusclass defines the status result for a particular check. This enumeration was added in vSphere API 8.0.0.1.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters
string (
str) – String value for theStatusinstance.
-
ERROR= Status(string='ERROR')¶ The check indicates an error. This class attribute was added in vSphere API 8.0.0.1.
-
OK= Status(string='OK')¶ The check indicates a success. This class attribute was added in vSphere API 8.0.0.1.
-
TIMEOUT= Status(string='TIMEOUT')¶ The check did not return in a timely manner. This class attribute was added in vSphere API 8.0.0.1.
-
WARNING= Status(string='WARNING')¶ The check indicates a warning. This class attribute was added in vSphere API 8.0.0.1.
-
get(host)¶ Returns the most recent available result of checks run on the standalone host before the application of the desired software document to the host. This method was added in vSphere API 8.0.0.1.
- Parameters
host (
str) – The host identifier. The parameter must be an identifier for the resource type:HostSystem.- Return type
- Returns
Most recent available result of the checks run on the host.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is an unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no standalone host associated withhostin the system or if there is no result associated with the hosthost.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.UnsupportedIf the host is not a vLCM managed standlone host.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSoftwareRemediation.Read.The resource
HostSystemreferenced by the parameterhostrequiresVcIntegrity.lifecycleSoftwareRemediation.Read.
-
class
com.vmware.esx.settings.hosts.software.reports_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance