com.vmware.esx.settings package¶
Subpackages¶
- com.vmware.esx.settings.clusters package
- Subpackages
- com.vmware.esx.settings.clusters.configuration package
- com.vmware.esx.settings.clusters.enablement package
- com.vmware.esx.settings.clusters.policies package
- com.vmware.esx.settings.clusters.software package
- Subpackages
- Submodules
- com.vmware.esx.settings.clusters.software.drafts_client module
- com.vmware.esx.settings.clusters.software.reports_client module
- Submodules
- com.vmware.esx.settings.clusters.configuration_client module
- com.vmware.esx.settings.clusters.enablement_client module
- com.vmware.esx.settings.clusters.policies_client module
- com.vmware.esx.settings.clusters.software_client module
- Subpackages
- com.vmware.esx.settings.defaults package
- com.vmware.esx.settings.depot_content package
- com.vmware.esx.settings.depots package
- com.vmware.esx.settings.hardware_support package
- com.vmware.esx.settings.hosts package
Submodules¶
com.vmware.esx.settings.clusters_client module¶
The com.vmware.esx.settings.clusters_client module provides classes to
manage desired state configuration and software for a cluster of ESX hosts.
-
class
com.vmware.esx.settings.clusters_client.Configuration(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Configurationclass provides methods to manage desired configuration of an ESX cluster. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
ApplyResult(status=None, commit=None, software_commit=None, host_info=None, host_status=None, successful_hosts=None, failed_hosts=None, skipped_hosts=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Configuration.ApplyResultclass contains attributes that describe the result of anConfiguration.apply()method. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
status (
com.vmware.esx.settings.clusters.configuration_client.HostStatusorNone) – Specifies the aggregated status of theConfiguration.apply()method. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. None if theConfiguration.apply()method is in progress.commit (
str) – The identifier of the commit used to fetch the desired configuration document to be applied to all hosts within the cluster. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. 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.software_commit (
str) – The current commit ID for the software associated with the cluster. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. 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 (
dictofstrandcom.vmware.esx.settings_client.HostInfo) – Information of the hosts in this cluster to which the desired configuration document specified by theConfiguration.ApplyResult.commitshould be applied to. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:HostSystem. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:HostSystem.host_status (
dictofstrandcom.vmware.esx.settings.clusters.configuration_client.HostStatus) – Status of the hosts in this cluster to which the desired configuration specified by theConfiguration.ApplyResult.commitwas applied to. Hosts on which theConfiguration.apply()method was successful are specified byConfiguration.ApplyResult.successful_hosts. Hosts on which the apply method failed are specified byConfiguration.ApplyResult.failed_hosts. Hosts which were skipped by theConfiguration.apply()method are specified byConfiguration.ApplyResult.skipped_hosts. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:HostSystem. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:HostSystem.successful_hosts (
setofstr) – Hosts in this cluster to which the desired configuration specified by theConfiguration.ApplyResult.commithas been successfully applied to. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem.failed_hosts (
setofstr) – Hosts in this cluster to which the desired configuration specified by theConfiguration.ApplyResult.commitfailed to be applied. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem.skipped_hosts (
setofstr) – Hosts in this cluster that were skipped by theConfiguration.apply()method. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem.
-
class
ApplySpec(commit=None, hosts=None, apply_policy_spec=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Configuration.ApplySpecclass contains attributes that describe the specification to be used for applying the desired configuration to a cluster. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
commit (
strorNone) – The minimum commit identifier of the desired configuration to be used during theConfiguration.apply()method. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. 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. if None or empty the apply method will use the latest commit to fetch the desired configuration.hosts (
setofstrorNone) – The specific hosts within the cluster to be considered during theConfiguration.apply()method. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem. if None or empty theConfiguration.apply()method will remediate all hosts within the cluster.apply_policy_spec (
com.vmware.esx.settings.clusters.policies.apply_client.Effective.EffectivePolicySpecorNone) – The parameter can be used to override the default remediation policies for the task. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. if None the default cluster remediation policies are used.
-
class
ImportSpec(config=None, description=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Configuration.ImportSpecclass contains the desired configuration for a cluster and an optional short description of this version of the configuration. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
config (
str) – The cluster configuration, encoded as JSON. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.description (
strorNone) – A description of this version of the configuration. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
-
class
Info(metadata=None, host_info=None, config=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Configuration.Infoclass defines the information about configuration commit. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
metadata (
Configuration.Metadata) – Metadata about the configuration commit. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.host_info (
dictofstrandcom.vmware.esx.settings_client.HostInfo) – A mapping of BIOS UUIDs for every host in the cluster to information about that host. The host-specific/host-override sections of the configuration use BIOS UUIDs to identify hosts, so this information can be useful to get details about hosts mentioned there. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.config (
str) – Configuration specification associated with the commit, encoded as JSON. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
-
class
Metadata(id=None, author=None, creation_time=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Configuration.Metadataclass defines the metadata information about configuration commit. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
id (
str) – The identifier of the commit. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. 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.author (
str) – Author of the configuration commit. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.creation_time (
datetime.datetime) – Creation time of the configuration commit. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
-
apply_task(cluster, spec)¶ - Parameters
cluster (
str) – The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Configuration.ApplySpec) –
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
-
check_compliance_task(cluster)¶ Check all the hosts in the cluster for compliance with the desired document. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
cluster (
str) – Identifier of the cluster The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.ErrorIf an internal error occurred. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf API is called on a cluster that is not managed by desired configuration management platform.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no cluster associated withcluster- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.TimedOutIf the API timed out before completion.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.
-
export_config(cluster)¶ This API will export the configuration associated with the cluster. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
cluster (
str) – Identifier of the cluster on which operation should be performed. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
com.vmware.esx.settings.clusters.configuration_client.ExportResult- Returns
This output structure of type com.vmware.esx.settings.clusters.Configuration#ExportResult contains the configuration document encoded as JSON.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some other unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster is not found in 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.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.ClusterConfiguration.Export.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.ClusterConfiguration.Export.
-
get(cluster, commit=None, doc_structure=None)¶ Get the cluster configuration and related metadata. The configuration returned by this API only contains the user-visible configuration properties available for a the cluster. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
cluster (
str) – Identifier of the cluster The parameter must be an identifier for the resource type:ClusterComputeResource.commit (
strorNone) – Identifier of the commit to get. The parameter must be an identifier for the resource type:ClusterComputeResource.doc_structure (
com.vmware.esx.settings.clusters.configuration_client.DocumentStructureorNone) –
- Return type
- Returns
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is 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 cluster associated withclusteror no commit associated withcommitin 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.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.ClusterConfiguration.View.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.ClusterConfiguration.View.
-
import_config_task(cluster, spec)¶ This API replaces the existing desired configuration of the cluster with the configuration provided in the input parameter document. The API will internally validate the input configuration against the configuration schema derived from the cluster software specification associated with the cluster. If the input configuration document passes validation, then it will be the desired configuration of the cluster. The result will specify whether the input document was import successfully. The result will also list the validation errors in case the import operation failed. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
cluster (
str) – The cluster on which this operation must be performed. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Configuration.ImportSpec) – AnConfiguration.ImportSpecthat contains the new desired configuration for the cluster.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some other unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster is not found in 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.
-
precheck_task(cluster)¶ This API will perform precheck of the desired cluster configuration on each of the hosts in the cluster. The API will check against the desired image schema whether the desired configuration has added any requirements for the host to be put in maintenance mode or to be rebooted. The API will also invoke plugins provided by the configuration owner to detect if the host needs to be put in maintenance mode or to be rebooted. If any host needs to be put in maintenance mode or rebooted, prechecks will be performed at the cluster and host level. The result will specify the validation errors if the desired configuration is not valid on the host. If valid, the result will specify host impact of the desired configuration, and list the configurations that will change on applying the desired configuration. If host impact is maintenance mode or reboot, precheck results will also be specified in the result. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
cluster (
str) – The cluster on which to perform precheck. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf API is called on a cluster that is not managed by desired configuration management platform.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster is not found in the system.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.TimedOutIf the API timed out before completion.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.
-
validate_task(cluster)¶ - Parameters
cluster (
str) – The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
-
class
com.vmware.esx.settings.clusters_client.DepotOverrides(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
DepotOverridesclass provides methods to manage software depots overriden for a given cluster. In general ESX servers reach out to vCenter (VUM) to fetch the metadata and payloads required for lifecycle operations. But in ROBO environments ESX clusters can’t (or because of bandwidth requirements shouldn’t) reach out to vCenter to fetch payloads and metadata. This class allows setting cluster level overrides for depots. If any depots are provided for a cluster, then vCenter level depots are not used for that cluster’s remediation. These are not synced periodically at vCenter and are only used by ESXs for lifecycle operations.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
Depot(location=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
DepotOverrides.Depotclass defines the information regarding a particular depot override for a given cluster.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
location (
str) – Location of the depot override. This could be a location of zip file or location to an index.xml file.
-
class
Info(depots=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
DepotOverrides.Infoclass defines the information regarding depot overrides for a given cluster.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
depots (
listofDepotOverrides.Depot) – List of the depot overrides.
-
add(cluster, depot)¶ Adds a new depot override to the list of currently configured depot overrides for a given cluster.
- Parameters
cluster (
str) – Identifier for the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.depot (
DepotOverrides.Depot) – Information of a depot override.
- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf an invalid location is provided.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no cluster associated withclusterin the system.- Raise
com.vmware.vapi.std.errors_client.AlreadyExistsif depot override with given information already exists.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Write.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.lifecycleSettings.Write.
-
get(cluster)¶ Returns the information about currently configured depot overrides for a given cluster.
- Parameters
cluster (
str) – Identifier for the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- Returns
Information about currently configured depot overrides for a given cluster.
- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no cluster associated withclusterin the system.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.lifecycleSettings.Read.
-
remove(cluster, depot)¶ Removes a depot override from the list of currently configured depot overrides for a given cluster.
- Parameters
cluster (
str) – Identifier for the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.depot (
DepotOverrides.Depot) – Information of the depot override to be removed.
- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no depot override with given information or no cluster associated with identifier {param.name cluster} in the system.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Write.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.lifecycleSettings.Write.
-
class
com.vmware.esx.settings.clusters_client.Software(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Softwareclass provides methods to manage desired software specification of an ESX cluster.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
ApplyResult(status=None, commit=None, host_info=None, host_status=None, successful_hosts=None, failed_hosts=None, skipped_hosts=None, notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.ApplyResultclass contains attributes that describe the result of anSoftware.apply()method.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
status (
Software.ApplyStatusorNone) – Specifies the aggregated status of theSoftware.apply()method. None if theSoftware.apply()method is in progress.commit (
str) – The identifier of the commit used to fetch the desired software document to be applied to all hosts within the cluster. 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 (
dictofstrandcom.vmware.esx.settings_client.HostInfo) – Information of the hosts in this cluster to which the desired software document specified by theSoftware.ApplyResult.commitshould be applied to. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:HostSystem. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:HostSystem.host_status (
dictofstrandSoftware.ApplyStatus) – Status of the hosts in this cluster to which the desired software document specified by theSoftware.ApplyResult.commitwas applied to. Hosts on which theSoftware.apply()method was successful are specified bySoftware.ApplyResult.successful_hosts. Hosts on which the apply method failed are specified bySoftware.ApplyResult.failed_hosts. Hosts which were skipped by theSoftware.apply()method are specified bySoftware.ApplyResult.skipped_hosts. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:HostSystem. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:HostSystem.successful_hosts (
setofstr) – Hosts in this cluster to which the desired software document specified by theSoftware.ApplyResult.commithas been successfully applied to. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem.failed_hosts (
setofstr) – Hosts in this cluster to which the desired software document specified by theSoftware.ApplyResult.commitfailed to be applied to. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem.skipped_hosts (
setofstr) – Hosts in this cluster that were skipped by theSoftware.apply()method. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem.notifications (
com.vmware.esx.settings_client.NotificationsorNone) – Notifications providing additional information forSoftware.apply()method. These notifications are mutually exclusive with the notifications inSoftware.ApplyStatus. This attribute was added in vSphere API 7.0.2.1. This attribute is optional because it was added in a newer version than its parent node.
-
class
ApplySpec(commit=None, hosts=None, accept_eula=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.ApplySpecclass contains attributes that describe the specification to be used for applying the desired software document to a cluster.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
commit (
strorNone) – The minimum commit identifier of the desired software document to be used during theSoftware.apply()method. 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. if None or empty the apply method will use the latest commit to fetch the desired state document.hosts (
setofstrorNone) – The specific hosts within the cluster to be considered during theSoftware.apply()method. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem. if None or empty theSoftware.apply()method will remediate all hosts within the cluster.accept_eula (
boolorNone) – Accept the VMware End User License Agreement (EULA) before starting theSoftware.apply()method. The VMware EULA is available for download at, https://www.vmware.com/download/eula.html if None theSoftware.apply()method could fail due to the EULA not being accepted.
-
class
ApplyStatus(status=None, progress=None, start_time=None, end_time=None, notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.ApplyStatusclass contains attributes that describe the status of anSoftware.apply()method.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
status (
Software.ApplyStatus.Status) – The status of the method.progress (
com.vmware.cis.task_client.ProgressorNone) – Progress of the operation. This attribute was added in vSphere API 7.0.2.1. None for cluster ApplyStatusstart_time (
datetime.datetime) – Time when the method started.end_time (
datetime.datetime) – Time when the method completed.notifications (
com.vmware.esx.settings_client.Notifications) – Notifications providing additional information about the status of the method.
-
class
Status(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Software.ApplyStatus.Statusclass contains the possible different status codes that can be returned while trying toSoftware.apply()the desired software specification to hosts within the cluster.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.
-
OK= Status(string='OK')¶ The method completed successfully.
-
RETRY_PENDING= Status(string='RETRY_PENDING')¶ The method is being scheduled for retry. This class attribute was added in vSphere API 7.0.2.1.
-
RUNNING= Status(string='RUNNING')¶ The method is in progress. This class attribute was added in vSphere API 7.0.1.0.
-
SKIPPED= Status(string='SKIPPED')¶ The method was skipped.
-
TIMED_OUT= Status(string='TIMED_OUT')¶ The method timed out.
-
class
CheckInfo(check=None, name=None, description=None, originator=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.CheckInfoclass contains attributes that describe a particular check.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
check (
str) – The check identifier.name (
com.vmware.vapi.std_client.LocalizableMessage) – The check name.description (
com.vmware.vapi.std_client.LocalizableMessage) – Human-readable check description.originator (
strorNone) – The service that performed the check. This attribute was added in vSphere API 7.0.2.0. 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 what was the issue containing as much user-relevant context as possible. The user should be able to understand which sub-system failed and why. This attribute was added in vSphere API 7.0.2.0.resolution (
com.vmware.vapi.std_client.LocalizableMessageorNone) – Possible resolution for the issue. This should contain actionable information that the user can use to resolve the issue. This attribute was added in vSphere API 7.0.2.0. 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_results=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.CheckResultclass contains attributes that describe aggregated status of all checks performed.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
status (
Software.Status) – Aggregated status from all checks performed.start_time (
datetime.datetime) – Time when the operation started.end_time (
datetime.datetime) – Time when the operation completed.commit (
str) – The identifier of the commit on which checks have been run. 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 (
dictofstrandcom.vmware.esx.settings_client.HostInfo) – Information about the hosts in this cluster for which checks have been requested to be run. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:HostSystem. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:HostSystem.entity_results (
listofSoftware.EntityCheckResult) – List ofSoftware.EntityCheckResultfor all entities for which checks have been run.
-
class
CheckSpec(commit=None, hosts=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.CheckSpecclass contains attributes that describe the specification to be used for running checks on the cluster before theSoftware.apply()method.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
commit (
strorNone) – The minimum commit identifier of the desired software document to be used during the check method. 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. if None or empty the check opertion will use the latest commit to fetch the desired state document.hosts (
setofstrorNone) – The specific hosts for which checks need to be performed When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem. if None or empty checks are run for all hosts within the cluster.
-
class
CheckStatus(check=None, status=None, issues=None, check_issues=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.CheckStatusclass contains attributes that describe a check result.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
check (
Software.CheckInfo) – Information about this check.status (
Software.Status) – The status of this check.issues (
listofcom.vmware.vapi.std_client.LocalizableMessage) – The issues encountered while running this check.check_issues (
listofSoftware.CheckIssueorNone) – List ofSoftware.CheckIssue`s that the check reported. This attribute was added in vSphere API 7.0.2.0. If not :class:`set, the service is still using the {#member issues}.
-
class
EntityCheckResult(type=None, cluster=None, host=None, status=None, check_statuses=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.EntityCheckResultclass contains attributes that describe aggregated status of all checks performed on a specific entity.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
type (
Software.EntityCheckResult.EntityType) – The entity type for which these checks are being run.cluster (
str) – If the entity type is CLUSTER then the cluster identifier for which the checks have been run. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:ClusterComputeResource. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:ClusterComputeResource. This attribute is optional and it is only relevant when the value oftypeisSoftware.EntityCheckResult.EntityType.CLUSTER.host (
str) – If the entity type is HOST then the host identifier for which the checks have been run. 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 oftypeisSoftware.EntityCheckResult.EntityType.HOST.status (
Software.Status) – Aggregated status from all checks performed on this entity.check_statuses (
listofSoftware.CheckStatus) – List ofSoftware.CheckStatusfor all checks performed.
-
class
EntityType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Software.EntityCheckResult.EntityTypeclass contains the entitites on which checks can be performed.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.
-
CLUSTER= EntityType(string='CLUSTER')¶ Entity type Cluster
-
HOST= EntityType(string='HOST')¶ Entity type Host
-
class
ExportSpec(export_software_spec=None, export_iso_image=None, export_offline_bundle=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.ExportSpecclass contains information describing how a software specification or image should be exported.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
export_software_spec (
bool) – Whether to export software specification document.export_iso_image (
bool) – Whether to export ISO image.export_offline_bundle (
bool) – Whether to export offline bundle.
-
class
ExportType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Software.ExportTypeclass defines the formats in which software specification document or image can be exported.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 theExportTypeinstance.
-
ISO_IMAGE= ExportType(string='ISO_IMAGE')¶ Export ISO image.
-
OFFLINE_BUNDLE= ExportType(string='OFFLINE_BUNDLE')¶ Export offline bundle.
-
SOFTWARE_SPEC= ExportType(string='SOFTWARE_SPEC')¶ Export software specification document.
-
class
StageResult(status=None, commit=None, host_info=None, host_status=None, successful_hosts=None, failed_hosts=None, skipped_hosts=None, notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.StageResultclass contains attributes that describe the result of aSoftware.stage()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 (
Software.StageStatusorNone) – Specifies the aggregated status of theSoftware.stage()method. This attribute was added in vSphere API 8.0.0.1. None if theSoftware.stage()method is in progress.commit (
str) – The identifier of the commit used to fetch the desired software document to be staged to all hosts within the cluster. 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 (
dictofstrandcom.vmware.esx.settings_client.HostInfo) – Information of the hosts in this cluster to which the desired software document specified by theSoftware.StageResult.commitshould be staged to. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:HostSystem. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:HostSystem.host_status (
dictofstrandSoftware.StageStatus) – Status of the hosts in this cluster to which the desired software document specified by theSoftware.StageResult.commitwas staged to. Hosts on which theSoftware.stage()method was successful are specified bySoftware.StageResult.successful_hosts. Hosts on which the stage method failed are specified bySoftware.StageResult.failed_hosts. Hosts which were skipped by theSoftware.stage()method are specified bySoftware.StageResult.skipped_hosts. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:HostSystem. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:HostSystem.successful_hosts (
setofstr) – Hosts in this cluster to which the desired software document specified by theSoftware.StageResult.commithas been successfully staged to. 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 contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem.failed_hosts (
setofstr) – Hosts in this cluster to which the desired software document specified by theSoftware.StageResult.commitfailed to be staged to. 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 contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem.skipped_hosts (
setofstr) – Hosts in this cluster that were skipped by theSoftware.stage()method. For example hosts which are compliant, or are previously staged shall be skipped. 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 contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem.notifications (
com.vmware.esx.settings_client.NotificationsorNone) – Notifications providing additional information forSoftware.stage()method. These notifications are mutually exclusive with the notifications inSoftware.StageStatus. This attribute was added in vSphere API 8.0.0.1.
-
class
StageSpec(commit=None, hosts=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.StageSpecclass contains attributes that describe the specification to be used for staging the desired software document to a cluster. 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
commit (
strorNone) – The minimum commit identifier of the desired software document to be used during theSoftware.stage()method. 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. if None or empty the stage method will use the latest commit to fetch the desired state document.hosts (
setofstrorNone) – The specific hosts within the cluster to be considered during theSoftware.stage()method. 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 contain identifiers for the resource type:HostSystem. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:HostSystem. if None or empty theSoftware.stage()method will stage all hosts within the cluster.
-
class
StageStatus(status=None, progress=None, start_time=None, end_time=None, notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.StageStatusclass contains attributes that describe the status of aSoftware.stage()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 (
Software.StageStatus.Status) – The status of the method. This attribute was added in vSphere API 8.0.0.1.progress (
com.vmware.cis.task_client.ProgressorNone) – Progress of the operation. This attribute was added in vSphere API 8.0.0.1. None for cluster StageStatusstart_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
Software.StageStatus.Statusclass contains the possible different status codes that can be returned while trying toSoftware.stage()the desired software specification to hosts within the cluster. 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.
-
RETRY_PENDING= Status(string='RETRY_PENDING')¶ The method is being scheduled for retry. This class attribute was added in vSphere API 8.0.0.1.
-
RUNNING= Status(string='RUNNING')¶ The method is in progress. 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.
-
class
Status(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Software.Statusclass defines the status result for a particular check.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.
-
OK= Status(string='OK')¶ The check indicates a success.
-
RETRY= Status(string='RETRY')¶ The check failed because of an intermittent error, for example a service is overloaded. The client can choose to retry the health check before considering the check as failed. This class attribute was added in vSphere API 7.0.2.0.
-
TIMEOUT= Status(string='TIMEOUT')¶ The check did not return in a timely manner.
-
WARNING= Status(string='WARNING')¶ The check indicates a warning.
-
apply_task(cluster, spec)¶ Applies the desired software document associated with the given cluster to hosts within the cluster. If
commitattribute isset, it implies the minimum commit that theSoftware.apply()method should use, however if subsequent commits have been made to the desired state document the apply method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Software.ApplySpec) – Apply specification.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.AlreadyInDesiredStateIf the cluster is already at specified commit as described in the apply specification.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is an unknown internal error or if the EULA has not been accepted. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf thecommitattribute ofspecspecifies an invalid commit, or thehostsattribute ofspecspecifies an invalid host or a host not part of the cluster, or theclusteris not managed with a single software specification.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateIf there is another operation in progress.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no cluster associated withclusterin the system or if desired software document is not found.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.TimedOutIf the operation times out.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.
-
check_task(cluster, spec)¶ Runs checks on the cluster before applying the desired software document across all hosts in the cluster. Checks if all hosts in the cluster are in a good state to be updated with the desired software document. If
commitattribute issetit implies the minimum commit that the check method should use, however if subsequent commits have been made to the desired state document the check method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Software.CheckSpec) – Check specification.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf thecommitattribute ofspecspecifies an invalid commit, or thehostsattribute ofspecspecifies an invalid host or a host not part of the cluster.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateIf there is another operation in progress or if thecommitattribute ofspecspecifies a commit that has already been applied.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no cluster associated withclusterin the system.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.TimedOutIf the operation times out.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.
-
export(cluster, spec)¶ Exports the desired software specification document and/or image. This API will not export the solution section of the desired software specification.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Software.ExportSpec) –
- Return type
dictofSoftware.ExportTypeandstr- Returns
A map from export type to URL of the exported data for that type.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is am 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 cluster associated withclusterin the system or if desired software document is not found.- 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.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSoftwareSpecification.Read.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.lifecycleSoftwareSpecification.Read.
-
get(cluster)¶ Returns the complete desired software specification.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- Returns
Cluster software specification.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is 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 cluster associated withclusterin 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.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSoftwareSpecification.Read.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.lifecycleSoftwareSpecification.Read.
-
scan_task(cluster)¶ Scans all the hosts in the cluster against the cluster’s desired state. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is 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 cluster associated withclusterin the system or if desired software document is not found.- 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.
-
stage_task(cluster, spec)¶ Stages the desired software document associated with the given cluster to hosts within the cluster. If
commitattribute isset, it implies the minimum commit that theSoftware.stage()method should use, however if subsequent commits have been made to the desired state document the stage method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation. This method was added in vSphere API 8.0.0.1.- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Software.StageSpec) – stage specification.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- 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.InvalidArgumentIf thecommitattribute ofspecspecifies an invalid commit, or thehostsattribute ofspecspecifies an invalid host or a host not part of the cluster, or theclusteris not managed with a single software specification.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateIf there is another operation in progress.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no cluster associated withclusterin the system or if desired software document is not found.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.TimedOutIf the operation times out.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.
-
class
com.vmware.esx.settings.clusters_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.defaults_client module¶
The com.vmware.esx.settings.defaults_client module provides classes to
manage defaults that affect management of desired state configuration and
software for ESXi clusters and hosts.
-
class
com.vmware.esx.settings.defaults_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.depot_content_client module¶
The com.vmware.esx.settings.depot_content_client module provides classes to
retrieve contents from the depot.
-
class
com.vmware.esx.settings.depot_content_client.AddOns(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
AddOnsclass provides methods to get OEM add-ons from the sync’ed and imported depots.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
AddOnVersionSummary(version=None, display_version=None, summary=None, category=None, kb=None, release_date=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
AddOns.AddOnVersionSummaryclass defines the summary information regarding a version of an OEM add-on.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – Version of the OEM add-on.display_version (
str) – Human readable version of the OEM add-on.summary (
str) – Summary of the OEM add-on version.category (
AddOns.CategoryType) – Category of the OEM add-on version.kb (
str) – Link to kb article related to this the OEM add-on version.release_date (
datetime.datetime) – Release date of the OEM add-on version.
-
class
CategoryType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
AddOns.CategoryTypeclass defines possible values of categories for a OEM add-on.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 theCategoryTypeinstance.
-
BUGFIX= CategoryType(string='BUGFIX')¶ Bugfix
-
ENHANCEMENT= CategoryType(string='ENHANCEMENT')¶ Enhancement
-
SECURITY= CategoryType(string='SECURITY')¶ Security
-
class
FilterSpec(vendors=None, names=None, versions=None, min_version=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
AddOns.FilterSpecclass contains attributes used to filter the results when listing OEM add-ons, seeAddOns.list()).Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
vendors (
setofstrorNone) – Vendors that an add-on must have to match the filter. If None or empty, add-ons from any vendor will match the filter.names (
setofstrorNone) – Names that an add-on must have to match the filter. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:com.vmware.esx.settings.add_on. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:com.vmware.esx.settings.add_on. If None or empty, add-ons with any name will match the filter.versions (
setofstrorNone) – Versions that an add-on must have to match the filter. If None or empty, add-ons with any version will match the filter.min_version (
strorNone) – Minimum version of an add-on that can match the filter. Ifset, only OEM add-ons with version greater than or equal to this will be returned.
-
RESOURCE_TYPE= 'com.vmware.esx.settings.add_on'¶ Resource type for add-on resource
-
class
Summary(name=None, display_name=None, vendor=None, versions=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
AddOns.Summaryclass defines the summary information regarding a OEM add-on.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
name (
str) – Name of the OEM add-on. 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.add_on. 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.add_on.display_name (
str) – Display name of the OEM add-on.vendor (
str) – Vendor of the OEM add-on.versions (
listofAddOns.AddOnVersionSummary) – Summary information about the versions of this addon. These are sorted by the version.
-
list(filter=None)¶ Returns a list of currently available OEM add-ons in the depot.
- Parameters
filter (
AddOns.FilterSpecorNone) – The specification of matching OEM add-ons. If None, the behavior is equivalent to aAddOns.FilterSpecwith all attributes None, which means all OEM add-ons match the filter.- Return type
- Returns
List of OEM add-ons in the depot.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.- 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.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
class
com.vmware.esx.settings.depot_content_client.BaseImages(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
BaseImagesclass provides methods to get base-images from the sync’ed and imported depots.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
CategoryType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
BaseImages.CategoryTypeclass defines possible values of categories for a base-image.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 theCategoryTypeinstance.
-
BUGFIX= CategoryType(string='BUGFIX')¶ Bugfix
-
ENHANCEMENT= CategoryType(string='ENHANCEMENT')¶ Enhancement
-
SECURITY= CategoryType(string='SECURITY')¶ Security
-
class
FilterSpec(min_version=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
BaseImages.FilterSpecclass contains attributes used to filter the results when listing base-images, seeBaseImages.list()).Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
min_version (
strorNone) – Minimum version of a base-image that can match the filter. Ifset, only base-images with version greater than or equal to this version will be returned.
-
RESOURCE_TYPE= 'com.vmware.esx.settings.base_image'¶ Resource type for add-on resource
-
class
Summary(display_name=None, version=None, display_version=None, summary=None, category=None, kb=None, release_date=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
BaseImages.Summaryclass defines the summary information regarding a base-image.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
display_name (
str) – Display name of the base-image.version (
str) – Version of the base-image. 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.base_image. 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.base_image.display_version (
str) – Human readable version of the base-image.summary (
str) – Summary of the base-image.category (
BaseImages.CategoryType) – Category of the base-image.kb (
str) – Link to kb article related to this the base-image.release_date (
datetime.datetime) – Release date of the base-image.
-
list(filter=None)¶ Returns a list of currently available base-images in the depot.
- Parameters
filter (
BaseImages.FilterSpecorNone) – The specification of matching base-images. If None, the behavior is equivalent to aBaseImages.FilterSpecwith all attributes None, which means all base-images match the filter.- Return type
- Returns
List of base-images in the depot. These will be sorted by the version of the base-image.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.- 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.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
class
com.vmware.esx.settings.depot_content_client.Components(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Componentsclass provides methods to get Components from the sync’ed and imported depots.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
CategoryType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Components.CategoryTypeclass defines possible values of categories for a component.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 theCategoryTypeinstance.
-
BUGFIX= CategoryType(string='BUGFIX')¶ Bugfix
-
ENHANCEMENT= CategoryType(string='ENHANCEMENT')¶ Enhancement
-
GENERAL= CategoryType(string='GENERAL')¶ General
-
INFO= CategoryType(string='INFO')¶ Info
-
MISC= CategoryType(string='MISC')¶ Misc
-
RECALL= CategoryType(string='RECALL')¶ Recall
-
RECALL_FIX= CategoryType(string='RECALL_FIX')¶ Recall-fix
-
SECURITY= CategoryType(string='SECURITY')¶ Security
-
class
ComponentBundleType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Components.ComponentBundleTypeclass defines possible ways components are bundled.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 theComponentBundleTypeinstance.
-
ADD_ON= ComponentBundleType(string='ADD_ON')¶ Components bundled in add-ons
-
BASE_IMAGE= ComponentBundleType(string='BASE_IMAGE')¶ Components bundled in base-images
-
INDEPENDENT= ComponentBundleType(string='INDEPENDENT')¶ Components not bundled in base-images or add-ons
-
class
ComponentVersionSummary(version=None, display_version=None, summary=None, category=None, urgency=None, kb=None, release_date=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Components.ComponentVersionSummaryclass defines the summary information regarding a version of a component.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – Version of the component.display_version (
str) – Human readable version of the component.summary (
str) – Summary of the component version.category (
Components.CategoryType) – Category of the component version.urgency (
Components.UrgencyType) – Urgency of the component version.kb (
str) – Link to kb article related to this the component version.release_date (
datetime.datetime) – Release date of the component version.
-
class
FilterSpec(vendors=None, names=None, versions=None, min_version=None, bundle_types=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Components.FilterSpecclass contains attributes used to filter the results when listing components, seeComponents.list()).Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
vendors (
setofstrorNone) – Vendors that a component must have to match the filter. If None or empty, components with any vendor name match the filter.names (
setofstrorNone) – Names that a component must have to match the filter. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:com.vmware.esx.settings.component. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:com.vmware.esx.settings.component. If None or empty, components with any name will match the filter.versions (
setofstrorNone) – Versions that a component must have to match the filter. If None or empty, components with any version will match the filter.min_version (
strorNone) – Minimum version of the component that can match the filter. Ifset, only components with version greater than or equal to the given version match the filter.bundle_types (
setofComponents.ComponentBundleTypeorNone) – Component bundle types that a component must have to match the filter. If None or empty, all components will match the filter.
-
RESOURCE_TYPE= 'com.vmware.esx.settings.component'¶ Resource type for add-on resource
-
class
Summary(name=None, display_name=None, vendor=None, versions=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Components.Summaryclass defines the summary information regarding a component.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
name (
str) – Name of the Component. 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.component. 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.component.display_name (
str) – Display name of the component.vendor (
str) – Vendor of the component.versions (
listofComponents.ComponentVersionSummary) – Summary information about the versions of this component. These are sorted by the version.
-
class
UrgencyType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Components.UrgencyTypeclass defines possible values of urgencies for a component.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 theUrgencyTypeinstance.
-
CRITICAL= UrgencyType(string='CRITICAL')¶ Critical
-
GENERAL= UrgencyType(string='GENERAL')¶ General
-
IMPORTANT= UrgencyType(string='IMPORTANT')¶ Important
-
LOW= UrgencyType(string='LOW')¶ Low
-
MODERATE= UrgencyType(string='MODERATE')¶ Moderate
-
list(filter=None)¶ Returns a list of currently available components in the depot.
- Parameters
filter (
Components.FilterSpecorNone) – The specification of matching components. If None, the behavior is equivalent to aComponents.FilterSpecwith all attributes None, which means ALL components match the filter.- Return type
- Returns
List of components in the depot.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.- 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.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
class
com.vmware.esx.settings.depot_content_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.depots_client module¶
The com.vmware.esx.settings.depots_client module provides classes to manage
VUM compatible ESX Depots.
-
class
com.vmware.esx.settings.depots_client.AddonSummary(display_name=None, vendor=None, versions=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
AddonSummaryclass contains fields that describe the summary of an addon. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
display_name (
str) – Human readable name of the addon. This attribute was added in vSphere API 7.0.3.0.vendor (
str) – Vendor of the addon. This attribute was added in vSphere API 7.0.3.0. 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.depots.vendor. 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.depots.vendor.versions (
listofAddonVersion) – Different versions of the addon. This attribute was added in vSphere API 7.0.3.0.
-
class
com.vmware.esx.settings.depots_client.AddonVersion(version=None, display_version=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
AddonVersionclass contains fields that describe a specific version of an addon. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – Version of the addon. This attribute was added in vSphere API 7.0.3.0.display_version (
str) – Human readable version of the addon. This attribute was added in vSphere API 7.0.3.0.
-
class
com.vmware.esx.settings.depots_client.AffectedBaselineInfo(baseline=None, id=None, affected_updates=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
AffectedBaselineInfoclass contains the fields that describe which updates (bulletins) in the baseline will be affected by the depot to be deleted or disabled. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
baseline (
str) – Name of the baseline affected. This attribute was added in vSphere API 7.0.3.0.id (
long) – Identifier of the baseline affected. This attribute was added in vSphere API 7.0.3.0.affected_updates (
dictofstrandUpdateSummary) – Updates (bulletins) affected. They key is identifier of the update (bulletin). The value is summary of the update (bulletin). This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.settings.depots.bulletin. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.settings.depots.bulletin.
-
class
com.vmware.esx.settings.depots_client.AffectedDesiredStateInfo(cluster_name=None, cluster_id=None, affected_base_image=None, affected_addon=None, affected_solutions=None, affected_hardware_support=None, affected_independent_components=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
AffectedDesiredStateInfoclass contains the fields that describe which release units in the desired state will be affected by the depot to be deleted or disabled. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
cluster_name (
str) – Name of the cluster the affected desired state belongs to. This attribute was added in vSphere API 7.0.3.0.cluster_id (
str) – Identified of the cluster the affected desired state belongs to. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:ClusterComputeResource. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:ClusterComputeResource.affected_base_image (
BaseImageVersionorNone) – Affected base image of the desired state. This attribute was added in vSphere API 7.0.3.0. If None, no base image of the desired state will be affected.affected_addon ((
dictofstrandAddonSummary) orNone) – Affected addon of the desired state. The key is name of addon. Note: there is at most one addon affected. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.settings.add_on. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.settings.add_on. If None, no addon of the desired state will be affected.affected_solutions ((
dictofstrandSolutionSummary) orNone) – Affected solutions of the desired state. The key is name of solution. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.settings.solution. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.settings.solution. If None, no solution of the desired state will be affected.affected_hardware_support ((
dictofstrandHardwareSupportManagerSummary) orNone) – Affected hardware support of the desired state. The key is HSM name. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.setting.hardware_support.manager. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.setting.hardware_support.manager. If None, no hadrware support of the desired state will be affected.affected_independent_components ((
dictofstrandComponentSummary) orNone) – Affected independent components of the desired state. The components belongs to other base images, addons, solutions and hardware support packages are not counted. The ksy is name of component. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.settings.component. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.settings.component. If None, no independent components of the desired state will be affected.
-
class
com.vmware.esx.settings.depots_client.BaseImageVersion(version=None, display_name=None, display_version=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
BaseImageVersionclass contains fields that describe a specific ESXi base image. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – Version of the base image. This attribute was added in vSphere API 7.0.3.0.display_name (
str) – Human readable name of the base image. This attribute was added in vSphere API 7.0.3.0.display_version (
str) – Human readable version of the base image. This attribute was added in vSphere API 7.0.3.0.
-
class
com.vmware.esx.settings.depots_client.ComponentSummary(display_name=None, versions=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
ComponentSummaryclass contains fields that describe the summary of a component. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
display_name (
str) – Human readable name of the component. This attribute was added in vSphere API 7.0.3.0.versions (
listofComponentVersion) – Different versions of the component. This attribute was added in vSphere API 7.0.3.0.
-
class
com.vmware.esx.settings.depots_client.ComponentVersion(version=None, display_version=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
ComponentVersionclass contains fields that describe a specific version of a component. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – Version of the component. This attribute was added in vSphere API 7.0.3.0.display_version (
str) – Human readable version of the component. This attribute was added in vSphere API 7.0.3.0.
-
class
com.vmware.esx.settings.depots_client.HardwareSupportManagerSummary(display_name=None, packages=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
HardwareSupportManagerSummaryclass contains fields that describe the summary of a hardware support manager (HSM). This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
display_name (
str) – UI label for HSM, derived from HSM extension’s description’s ‘label’ field. This attribute was added in vSphere API 7.0.3.0.packages (
dictofstrandHardwareSupportPackageSummary) – Different hardware support packages (HSP) published by the HSM. The key is name of HSP. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.setting.hardware_support.package. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.setting.hardware_support.package.
-
class
com.vmware.esx.settings.depots_client.HardwareSupportPackageSummary(versions=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
HardwareSupportPackageSummaryclass contains fields that describe the summary of a hardware support package (HSP). This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
versions (
listofHardwareSupportPackageVersion) – Different versions of the HSP. This attribute was added in vSphere API 7.0.3.0.
-
class
com.vmware.esx.settings.depots_client.HardwareSupportPackageVersion(version=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
HardwareSupportPackageVersionclass contains fields that describe a specific version of a hardware support package (HSP). This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – Version of the HSP. This attribute was added in vSphere API 7.0.3.0.
-
class
com.vmware.esx.settings.depots_client.MetadataInfo(file_name=None, base_images=None, addons=None, solutions=None, hardware_support=None, independent_components=None, updates=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
MetadataInfoclass contains fields that show the content of a metadata bundle. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
file_name (
str) – File name of the metadata bundle. This attribute was added in vSphere API 7.0.3.0.base_images (
listofBaseImageVersionorNone) – All the base images contained in the metadata bundle. This attribute was added in vSphere API 7.0.3.0. If None, the metadata bundle contains no base image.addons ((
dictofstrandAddonSummary) orNone) – All the addons contained in the metadata bundle. The key is name of addon. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.settings.add_on. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.settings.add_on. If None, the metadata bundle contains no addon.solutions ((
dictofstrandSolutionSummary) orNone) – All the solutions contained in the metadata bundle. The key is name of solution. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.settings.solution. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.settings.solution. If None, the metadata bundle contains no solution.hardware_support ((
dictofstrandHardwareSupportManagerSummary) orNone) – All the HSMs and their HSPs contained in the metadata bundle. The key is name of HSM. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.setting.hardware_support.manager. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.setting.hardware_support.manager. If None, the metadata bundle contains no hardware support manager.independent_components ((
dictofstrandComponentSummary) orNone) – All the independent components contained in the metadata bundle. The components belongs to other base images, addons, solutions and hardware support packages are not counted. The ksy is name of component. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.settings.component. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.settings.component. If None, the metadata bundle contains no inpendent component.updates ((
dictofstrandUpdateSummary) orNone) – All the updates (bulletins) contained in the metadata bundle. They key is identifier of the update (bulletin). The value is summary of the update (bulletin). This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.settings.depots.bulletin. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.settings.depots.bulletin. If None, the metadata bundle contains no update (bulletin).
-
class
com.vmware.esx.settings.depots_client.Offline(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Offlineclass provides methods to manage offline software depots used during ESX lifecycle management.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
ConnectionSpec(auth_type=None, host_credential=None, host=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.ConnectionSpecclass contains attributes that describe the specification to be used for connecting to the host during theOffline.create_from_host()method. This class was added in vSphere API 7.0.2.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
auth_type (
Offline.ConnectionSpec.AuthenticationType) – Specifies what type of authentication (USERNAME_PASSWORD, EXISTING) is to be used when connecting with the host. USERNAME_PASSWORD is intended to be used when connecting to a host that is not currently part of the vCenter inventory. EXISTING is intented for hosts that are in vCenter inventory, in which case, HostServiceTicket will be used to connect to the host. This attribute was added in vSphere API 7.0.2.0.host_credential (
Offline.HostCredentials) – Specifies the host details to be used during theOffline.create_from_host()method. This attribute was added in vSphere API 7.0.2.0. This attribute is optional and it is only relevant when the value ofauthTypeisOffline.ConnectionSpec.AuthenticationType.USERNAME_PASSWORD.host (
str) – Specifies the host Managed Object ID to be used during theOffline.create_from_host()method. This attribute was added in vSphere API 7.0.2.0. 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 ofauthTypeisOffline.ConnectionSpec.AuthenticationType.EXISTING.
-
class
AuthenticationType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Offline.ConnectionSpec.AuthenticationTypeclass defines the possible types of authentication supported when connecting to the host. This enumeration was added in vSphere API 7.0.2.0.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 theAuthenticationTypeinstance.
-
EXISTING= AuthenticationType(string='EXISTING')¶ Connect to the host using service ticket. Note: This is supported only for hosts present in the VC inventory. This class attribute was added in vSphere API 7.0.2.0.
-
USERNAME_PASSWORD= AuthenticationType(string='USERNAME_PASSWORD')¶ Connect to host using host’s credentials class. This class attribute was added in vSphere API 7.0.2.0.
-
class
CreateResult(depot=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.CreateResultclass defines the result information for a new offline depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
depot (
str) – Identifier of the offline depot. 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.depots.offline. 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.depots.offline.
-
class
CreateSpec(description=None, source_type=None, location=None, file_id=None, ownerdata=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.CreateSpecclass defines the information used to create a depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
description (
strorNone) – Description of the depot. If None, the description will be empty.source_type (
Offline.SourceType) – Type of the source from which offline bundle is obtained.location (
str) – Location of the depot from which content should be retrieved. This attribute is optional and it is only relevant when the value ofsourceTypeisOffline.SourceType.PULL.file_id (
str) – File identifier returned by the file upload endpoint after file is uploaded. This attribute is optional and it is only relevant when the value ofsourceTypeisOffline.SourceType.PUSH.ownerdata (
strorNone) – Private data saved by theOffline.Info.ownerof the depot. It is opaque to vLCM. This attribute was added in vSphere API 7.0.3.0. If None, no ownerdata will be saved.
-
class
DeleteResult(notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.DeleteResultclass contains a field that lists all the errors encountered after starting the task ofOffline.delete()method. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
notifications (
com.vmware.esx.settings_client.NotificationsorNone) – Notifications returned byOffline.delete()method. This attribute was added in vSphere API 7.0.3.0. If None, no notification is returned.
-
class
DepotExtractInfo(notifications=None, software_spec=None, result=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.DepotExtractInfoclass contains attributes that describe the extracted depot. This class was added in vSphere API 7.0.2.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
notifications (
com.vmware.esx.settings_client.Notifications) – Notifications returned by the extractDepot operation. This attribute was added in vSphere API 7.0.2.0.software_spec (
com.vmware.esx.settings_client.SoftwareSpec) – Software specification of the extracted depot. This attribute was added in vSphere API 7.0.2.0.result (
Offline.CreateResult) – The information about the created offline depot. Empty \@name{result} \@term{string} indicates that the depot contents are already present in VC cache. This attribute was added in vSphere API 7.0.2.0.
-
class
HostCredentials(host_name=None, user_name=None, password=None, port=None, ssl_thumb_print=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.HostCredentialsclass contains attributes that describe the host’s username, password, port number and ssl thumbprint to be used when connecting to the host using USERNAME_PASSWORD option in the class. This class was added in vSphere API 7.0.2.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
host_name (
str) – The IP address or DNS resolvable name of the host. This attribute was added in vSphere API 7.0.2.0.user_name (
str) – Specifies the username to be used during theOffline.create_from_host()method. This attribute was added in vSphere API 7.0.2.0.password (
str) – Specifies the password to be used during theOffline.create_from_host()method. This attribute was added in vSphere API 7.0.2.0.port (
longorNone) – Specifies the port number of the host to be used duringOffline.create_from_host()method. This attribute was added in vSphere API 7.0.2.0. If None, port number is set to 443.ssl_thumb_print (
strorNone) – Specifies the sslThumbPrint of the host to be used duringOffline.create_from_host()method SHA1 hash of the host’s SSL certificate. This attribute was added in vSphere API 7.0.2.0. If None,Offline.create_from_host()method throws UnverifiedPeer with the expected thumbprint as data.
-
class
Info(description=None, source_type=None, location=None, file_id=None, create_time=None, owner=None, ownerdata=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.Infoclass defines the information regarding an offline depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
description (
str) – Description of the depot. If not set during import, it will be empty.source_type (
Offline.SourceType) – Type of the source from which offline depot is obtained.location (
str) – Location of the depot from which content is retrieved. This attribute is optional and it is only relevant when the value ofsourceTypeisOffline.SourceType.PULL.file_id (
str) – File identifier returned by the file upload endpoint after file is uploaded. This attribute is optional and it is only relevant when the value ofsourceTypeisOffline.SourceType.PUSH.create_time (
datetime.datetime) – Time when the depot was created.owner (
strorNone) – Name of the user creating the depot. This attribute was added in vSphere API 7.0.3.0. This attribute is optional because it was added in a newer version than its parent node.ownerdata (
strorNone) – Private data saved by theownerof depot. It is opaque to vLCM. This attribute was added in vSphere API 7.0.3.0. This attribute is optional because it was added in a newer version than its parent node.
-
class
PrecheckResult(affected_baselines=None, affected_desired_states=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.PrecheckResultclass contains the fields that show the details of affected baselines and desired states found inOffline.delete()method. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
affected_baselines (
listofAffectedBaselineInfoorNone) – Baselines affected. This attribute was added in vSphere API 7.0.3.0. If None, no baseline is affected.affected_desired_states (
listofAffectedDesiredStateInfoorNone) – Desired states affected. This attribute was added in vSphere API 7.0.3.0. If None, no desired state is affected.
-
RESOURCE_TYPE= 'com.vmware.esx.settings.depots.offline'¶ Resource type for depots resource
-
class
SourceType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Offline.SourceTypeclass defines possible values of sources for the offline depot.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 theSourceTypeinstance.
-
PULL= SourceType(string='PULL')¶ Content is pulled from the URL location. The URL scheme of the value in {\@link CreateSpec#location) can be http, https or file.
-
PUSH= SourceType(string='PUSH')¶ Content was previously uploaded using the file upload enpoint present on vCenter appliance. This endpoint is present at https://VCENTERFQDN:9087/vum-fileupload URL.
-
class
Summary(description=None, source_type=None, location=None, file_id=None, owner=None, ownerdata=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.Summaryclass defines the summary information regarding an offline depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
description (
str) – Description of the depot. If not set during import, it will be empty.source_type (
Offline.SourceType) – Type of the source from which offline depot is obtained.location (
str) – Location of the depot from which content is retrieved. This attribute is optional and it is only relevant when the value ofsourceTypeisOffline.SourceType.PULL.file_id (
str) – File identifier returned by the file upload endpoint after file is uploaded. This attribute is optional and it is only relevant when the value ofsourceTypeisOffline.SourceType.PUSH.owner (
strorNone) – Name of the user creating the depot. This attribute was added in vSphere API 7.0.3.0. This attribute is optional because it was added in a newer version than its parent node.ownerdata (
strorNone) – Private data saved by theownerof depot. It is opaque to vLCM. This attribute was added in vSphere API 7.0.3.0. This attribute is optional because it was added in a newer version than its parent node.
-
create_from_host_task(spec)¶ Extract the current software specification applied to the host and import it into the depot. Returns details about the current software specification applied to the host. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation. This method was added in vSphere API 7.0.2.0.
- Parameters
spec (
Offline.ConnectionSpec) – ConnectionSpec connection spec for the host.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf theOffline.HostCredentials.host_nameattribute ofspecis invalid.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is noOffline.HostCredentials.host_nameattribute associated with host id in 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.UnverifiedPeerIf the SSL certificate of the target node cannot be validated by comparing with the thumbprint provided inOffline.HostCredentials.ssl_thumb_print.
-
create_task(spec)¶ Imports a new offline software depot. This will also import the metadata and payloads from this offline depot. The returned task will fail and no offline depot would be created if there are any issues during import. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.
- Parameters
spec (
Offline.CreateSpec) – Specification to import an offline depot.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf an invalidOffline.CreateSpec.locationis provided.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.AlreadyExistsIf the depot content already exists. The value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be a class that contains existing depot identifier as part of depot attribute defined inOffline.CreateResult.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.
-
delete(depot)¶ The task-based
deletemethod removes content of an imported offline depot from vLCM completely. Note: The non task-baseddeletemethod has been deprecated. It deletes only the record of depot from the list of imported offline software depots, instead of removing the depot’s content from vLCM.- Parameters
depot (
str) – Identifier of the depot to be removed. The parameter must be an identifier for the resource type:com.vmware.esx.settings.depots.offline.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the given depot is system-defined. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no depot associated with parameterdepotin the system.- Raise
com.vmware.vapi.std.errors_client.ResourceInUseIf the content of depot to be deleted is used in some baseline or desired state. The value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the PrecheckResult class that lists the information of affected baselines and desired states. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there some unknown internal error. The accompanying error message will give more details about the failure. For task-baseddeletemethod, once the task is started, it does NOT stop if encountering an error. Instead, it will continuously run to completion. In this case, the value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the DeleteResult class that lists all the errors encountered.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleDepots.Delete.
-
delete_task(depot)¶ The task-based
deletemethod removes content of an imported offline depot from vLCM completely. Note: The non task-baseddeletemethod has been deprecated. It deletes only the record of depot from the list of imported offline software depots, instead of removing the depot’s content from vLCM.- Parameters
depot (
str) – Identifier of the depot to be removed. The parameter must be an identifier for the resource type:com.vmware.esx.settings.depots.offline.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the given depot is system-defined. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no depot associated with parameterdepotin the system.- Raise
com.vmware.vapi.std.errors_client.ResourceInUseIf the content of depot to be deleted is used in some baseline or desired state. The value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the PrecheckResult class that lists the information of affected baselines and desired states. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there some unknown internal error. The accompanying error message will give more details about the failure. For task-baseddeletemethod, once the task is started, it does NOT stop if encountering an error. Instead, it will continuously run to completion. In this case, the value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the DeleteResult class that lists all the errors encountered.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleDepots.Delete.
-
get(depot)¶ Gets the information about an imported offline software depot.
- Parameters
depot (
str) – Identifier for the depot. The parameter must be an identifier for the resource type:com.vmware.esx.settings.depots.offline.- Return type
- Returns
Information about the imported offline software depot.
- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no depot with given identifierdepotin the system.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
list()¶ Returns currently imported offline software depots.
- Return type
dictofstrandOffline.Summary- Returns
Map of currently imported offline software depots keyed by their identifier. The key in the return value
dictwill be an identifier for the resource type:com.vmware.esx.settings.depots.offline.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
class
com.vmware.esx.settings.depots_client.Online(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Onlineclass provides methods to manage online software depots used during ESX lifecycle management.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
CreateSpec(description=None, location=None, enabled=None, ownerdata=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Online.CreateSpecclass defines the information used to create a depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
description (
strorNone) – Description of the depot. If None, the description will be empty.location (
str) – Location of the depot. It should be the location to the index.xml for the depot.enabled (
boolorNone) – Flag indicating whether this depot is enabled or not. Disabling the depot doesn’t delete its cached metadata and payloads. It will not be refreshed next time depots are re-synced. If None, the depot will be enabled.ownerdata (
strorNone) – Private data saved by theOnline.Info.ownerof the depot. It is opaque to vLCM. This attribute was added in vSphere API 7.0.3.0. If None, no ownerdata will be saved.
-
class
DeleteResult(notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Online.DeleteResultclass contains a field that lists all the errors encountered after starting the task ofOnline.delete()method. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
notifications (
com.vmware.esx.settings_client.NotificationsorNone) – Notifications returned byOnline.delete()method. This attribute was added in vSphere API 7.0.3.0. If None, no notification is returned.
-
class
FlushResult(notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Online.FlushResultclass contains a field that lists all the errors encountered after starting the task ofOnline.flush()method. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
notifications (
com.vmware.esx.settings_client.NotificationsorNone) – Notifications returned byOnline.flush()method. This attribute was added in vSphere API 7.0.3.0. If None, no notification is returned.
-
class
Info(description=None, location=None, enabled=None, system_defined=None, owner=None, ownerdata=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Online.Infoclass defines the information regarding a depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
description (
str) – Description of the depot. It will be an empty string if no description was provided during create.location (
str) – Location of the depot.enabled (
bool) – Flag indicating whether this depot is enabled or not.system_defined (
bool) – Flag to indicate if the depot is system defined. System defined depot can not be deleted.owner (
strorNone) – Name of the user creating the depot. This attribute was added in vSphere API 7.0.3.0. This attribute is optional because it was added in a newer version than its parent node.ownerdata (
strorNone) – Private data saved by theownerof depot. It is opaque to vLCM. This attribute was added in vSphere API 7.0.3.0. This attribute is optional because it was added in a newer version than its parent node.
-
class
PrecheckResult(affected_baselines=None, affected_desired_states=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Online.PrecheckResultclass contains the fields that show the details of affected baselines and desired states found inOnline.delete()orOnline.flush()operation. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
affected_baselines (
listofAffectedBaselineInfoorNone) – Baselines affected. This attribute was added in vSphere API 7.0.3.0. If None, no baseline is affected.affected_desired_states (
listofAffectedDesiredStateInfoorNone) – Desired states affected. This attribute was added in vSphere API 7.0.3.0. If None, no desired state is affected.
-
RESOURCE_TYPE= 'com.vmware.esx.settings.depots.online'¶ Resource type for depots resource
-
class
Summary(description=None, location=None, enabled=None, system_defined=None, owner=None, ownerdata=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Online.Summaryclass defines the summary information regarding a depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
description (
str) – Description of the depot. It will be an empty string if no description was provided during create.location (
str) – Location of the depot.enabled (
bool) – Flag indicating whether this depot is enabled or not.system_defined (
bool) – Flag to indicate if the depot is system defined. System defined depot can not be deleted.owner (
strorNone) – Name of the user creating the depot. This attribute was added in vSphere API 7.0.3.0. This attribute is optional because it was added in a newer version than its parent node.ownerdata (
strorNone) – Private data saved by theownerof depot. It is opaque to vLCM. This attribute was added in vSphere API 7.0.3.0. This attribute is optional because it was added in a newer version than its parent node.
-
class
UpdateSpec(enabled=None, description=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Online.UpdateSpecclass defines the information used to update the depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
enabled (
boolorNone) – Flag indicating whether this depot is enabled or not. Disabling the depot doesn’t delete its cached metadata and payloads. It will not be refreshed next time depots are re-synced. If None, enabled flag is not updated.description (
strorNone) – Description of the depot. If None, description is not updated.
-
create(spec)¶ Adds a new online software depot to the list of currently configured online software depots.
- Parameters
spec (
Online.CreateSpec) – Depot information.- Return type
str- Returns
Identifier of the currently configured online depot. The return value will be an identifier for the resource type:
com.vmware.esx.settings.depots.online.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf an invalid location is provided.- Raise
com.vmware.vapi.std.errors_client.AlreadyExistsIf depot with given location already exists.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Write.
-
delete(depot)¶ The task-based
deletemethod removes content of a user-imported online depot from vLCM completely. As a result, the URL of the user-imported online depot will also be removed. Note: 1. To remove content of system-defined online depots, useflushmethod. 2. The non task-baseddeletemethod has been deprecated. It only deletes the record of depot from the list of imported online software depots, instead of removing the depot’s content from the system.- Parameters
depot (
str) – Identifier of the depot to be removed. The parameter must be an identifier for the resource type:com.vmware.esx.settings.depots.online.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the given depot is system-defined. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no depot associated with parameterdepotin the system.- Raise
com.vmware.vapi.std.errors_client.ResourceInUseIf the content of depot to be deleted is used in some baseline or desired state. The value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the PrecheckResult class that lists the information of affected baselines and desired states. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there some unknown internal error. The accompanying error message will give more details about the failure. For task-baseddeletemethod, once the task is started, it does NOT stop if encountering an error. Instead, it will continuously run to completion. In this case, the value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the DeleteResult class that lists all the errors encountered.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleDepots.Delete.
-
delete_task(depot)¶ The task-based
deletemethod removes content of a user-imported online depot from vLCM completely. As a result, the URL of the user-imported online depot will also be removed. Note: 1. To remove content of system-defined online depots, useflushmethod. 2. The non task-baseddeletemethod has been deprecated. It only deletes the record of depot from the list of imported online software depots, instead of removing the depot’s content from the system.- Parameters
depot (
str) – Identifier of the depot to be removed. The parameter must be an identifier for the resource type:com.vmware.esx.settings.depots.online.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the given depot is system-defined. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no depot associated with parameterdepotin the system.- Raise
com.vmware.vapi.std.errors_client.ResourceInUseIf the content of depot to be deleted is used in some baseline or desired state. The value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the PrecheckResult class that lists the information of affected baselines and desired states. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there some unknown internal error. The accompanying error message will give more details about the failure. For task-baseddeletemethod, once the task is started, it does NOT stop if encountering an error. Instead, it will continuously run to completion. In this case, the value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the DeleteResult class that lists all the errors encountered.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleDepots.Delete.
-
flush_task(depot)¶ The task-based
flushmethod removes content of a system-defined online depot from vLCM completely. As a result, the system-defined online depot will be disabled. Note: To remove content of user-imported online depots, use the task-baseddeletemethod.- Parameters
depot (
str) – Identifier of the depot to be removed. The parameter must be an identifier for the resource type:com.vmware.esx.settings.depots.online.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the given depot is NOT system-defined.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no depot associated with parameterdepotin the system.- Raise
com.vmware.vapi.std.errors_client.ResourceInUseIf the content of depot to be deleted is used in some baseline or desired state. The value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the PrecheckResult class that lists the information of affected baselines and desired states.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there some unknown internal error. The accompanying error message will give more details about the failure.flushis a task-based method. Once the task is started, it does NOT stop if encountering an error. Instead, it will continuously run to completion. In this case, the value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the FlushResult class that lists all the errors encountered.
-
get(depot)¶ Gets the information about a currently configured online software depot.
- Parameters
depot (
str) – Identifier for the depot. The parameter must be an identifier for the resource type:com.vmware.esx.settings.depots.online.- Return type
- Returns
Information of the currently configured online software depot.
- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no depot with given identifierdepotin the system.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
list()¶ Returns a list of currently configured online software depots.
- Return type
dictofstrandOnline.Summary- Returns
Map of currently configured online software depots keyed by their identifiers. The key in the return value
dictwill be an identifier for the resource type:com.vmware.esx.settings.depots.online.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
update(depot, spec)¶ Updates the configuration of a currently configured online software depot.
- Parameters
depot (
str) – Identifier of the depot to be updated. The parameter must be an identifier for the resource type:com.vmware.esx.settings.depots.online.spec (
Online.UpdateSpec) – Update specification.
- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf given depot is system defined.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no depot associated with parameterdepotin the system.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Write.
-
class
com.vmware.esx.settings.depots_client.SolutionSummary(display_name=None, versions=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
SolutionSummaryclass contains fields that describe the summary of a solution. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
display_name (
str) – Human readable name of the solution. This attribute was added in vSphere API 7.0.3.0.versions (
listofSolutionVersion) – Different versions of the solution. This attribute was added in vSphere API 7.0.3.0.
-
class
com.vmware.esx.settings.depots_client.SolutionVersion(version=None, display_version=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
SolutionVersionclass contains fields that describe a specific version of a solution. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – Version of the solution. This attribute was added in vSphere API 7.0.3.0.display_version (
str) – Human readable version of the solution. This attribute was added in vSphere API 7.0.3.0.
-
class
com.vmware.esx.settings.depots_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
-
class
com.vmware.esx.settings.depots_client.SyncSchedule(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
SyncScheduleclass provides methods to manage Schedule of Online Software Depot sync.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
DayOfWeek(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
SyncSchedule.DayOfWeekclass contains the supported days of the week.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 theDayOfWeekinstance.
-
FRIDAY= DayOfWeek(string='FRIDAY')¶ Friday.
-
MONDAY= DayOfWeek(string='MONDAY')¶ Monday.
-
SATURDAY= DayOfWeek(string='SATURDAY')¶ Saturday.
-
SUNDAY= DayOfWeek(string='SUNDAY')¶ Sunday.
-
THURSDAY= DayOfWeek(string='THURSDAY')¶ Thursday.
-
TUESDAY= DayOfWeek(string='TUESDAY')¶ Tuesday.
-
WEDNESDAY= DayOfWeek(string='WEDNESDAY')¶ Wednesday.
-
class
Recurrence(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
SyncSchedule.Recurrenceclass contains the supported values for how often to sync from online or UMDS depots.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 theRecurrenceinstance.
-
DAILY= Recurrence(string='DAILY')¶ Daily.
-
HOURLY= Recurrence(string='HOURLY')¶ Hourly.
-
MONTHLY_BY_DAY= Recurrence(string='MONTHLY_BY_DAY')¶ Monthly by day.
-
WEEKLY= Recurrence(string='WEEKLY')¶ Weekly.
-
class
Schedule(type=None, skip=None, minute=None, hour=None, day_of_month=None, day_of_week=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
SyncSchedule.Scheduleclass defines a schedule.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
type (
SyncSchedule.Recurrence) – Frequency of the schedule.skip (
longorNone) – This determines the units ofSyncSchedule.Recurrenceto skip before the scheduled task runs again. For example, value of 1 for HOURLY type means the scheduled task runs every 2 hours. The value must be within the range 0 to 998. If None, no unit is skipped.minute (
long) – Minute at which schedule should be run. The value must be within the range 0 to 59. This attribute is optional and it is only relevant when the value oftypeis one ofSyncSchedule.Recurrence.HOURLY,SyncSchedule.Recurrence.DAILY,SyncSchedule.Recurrence.WEEKLY, orSyncSchedule.Recurrence.MONTHLY_BY_DAY.hour (
long) – Hour at which schedule should be run. The value must be within the range 0 to 23. This attribute is optional and it is only relevant when the value oftypeis one ofSyncSchedule.Recurrence.DAILY,SyncSchedule.Recurrence.WEEKLY, orSyncSchedule.Recurrence.MONTHLY_BY_DAY.day_of_month (
long) – Day at which schedule should be run. The value must be within the range 1 to 31. If the value exceeds the total number of days in the month, the schedule will run on the last day of the month. This attribute is optional and it is only relevant when the value oftypeisSyncSchedule.Recurrence.MONTHLY_BY_DAY.day_of_week (
SyncSchedule.DayOfWeek) – Day of the week when schedule should be run This attribute is optional and it is only relevant when the value oftypeisSyncSchedule.Recurrence.WEEKLY.
-
class
Spec(enabled=None, schedule=None, email_addresses=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
SyncSchedule.Specclass defines the information regarding the sync schedule.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
enabled (
bool) – Flag indicating whether automatic sync is enabled or notschedule (
SyncSchedule.ScheduleorNone) – The schedule to check for new updates. If None the schedule must be disabled.email_addresses (
listofstr) – Email addresses to which the notification will be sent. If empty, no notification is sent.
-
get()¶ Returns the currently configured software depot sync schedule.
- Return type
- Returns
Currently configured sync schedule.
- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
set(spec=None)¶ Sets the software depot sync schedule.
- Parameters
spec (
SyncSchedule.SpecorNone) – Information of the software depot sync schedule. If None, it will be reset to the default schedule, which is daily at a random hour chosen when this API is called.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIfSyncSchedule.Spec.scheduleis unset whileSyncSchedule.Spec.enabledis set to true or if any of the values is not within valid range.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Write.
-
class
com.vmware.esx.settings.depots_client.Umds(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Umdsclass provides methods to manage the VMware vSphere Update Manager Download Service (UMDS) software depot used during ESX lifecycle management. This is the depot downloaded using UMDS. If the UMDS depot is specified, then online depots are ignored and data is downloaded only from the UMDS depot.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
DeleteResult(notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Umds.DeleteResultclass contains a field that lists all the errors encountered after starting the task ofUmds.delete()method. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
notifications (
com.vmware.esx.settings_client.NotificationsorNone) – Notifications returned byUmds.delete()method. This attribute was added in vSphere API 7.0.3.0. If None, no notification is returned.
-
class
Info(description=None, enabled=None, location=None, owner=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Umds.Infoclass defines the information regarding the UMDS Depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
description (
str) – Description of the depot. It will be an empty string if no description was provided during create.enabled (
bool) – Flag indicating whether or not this depot is enabled.location (
str) – Location of the depot.owner (
strorNone) – Name of the user creating the depot. This attribute was added in vSphere API 7.0.3.0. This attribute is optional because it was added in a newer version than its parent node.
-
class
PrecheckResult(affected_baselines=None, affected_desired_states=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Umds.PrecheckResultclass contains the fields that show the details of affected baselines and desired states found inUmds.delete()method. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
affected_baselines (
listofAffectedBaselineInfoorNone) – Baselines affected. This attribute was added in vSphere API 7.0.3.0. If None, no baseline is affected.affected_desired_states (
listofAffectedDesiredStateInfoorNone) – Desired states affected. This attribute was added in vSphere API 7.0.3.0. If None, no desired state is affected.
-
class
SetSpec(description=None, enabled=None, location=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Umds.SetSpecclass defines the information of an UMDS depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
description (
strorNone) – Description of the depot. If None, the description will be empty.enabled (
boolorNone) – Flag indicating whether or not this depot should be enabled. Disabling the depot doesn’t delete its cached metadata and payloads. It will not be refreshed next time depots are re-synced. If None, the depot will be enabled.location (
str) – Location of the depot. It should be the location to the index.xml for the depot.
-
class
UpdateSpec(enabled=None, description=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Umds.UpdateSpecclass defines the information used to update the UMDS depot.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
enabled (
boolorNone) – Flag indicating whether or not this depot is enabled. Disabling the depot doesn’t delete its cached metadata and payloads. It will not be refreshed next time depots are re-synced. If None, the enabled flag is not updated.description (
strorNone) – Description of the depot. If None, the description is not updated.
-
delete()¶ The task-based
deletemethod removes content of the UMDS depot from vLCM completely. Note: The non task-baseddeletemethod has been deprecated. It deletes only the record of UMDS depot from database, instead of removing the content of UMDS depot from vLCM.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no UMDS depot configured in the system.- Raise
com.vmware.vapi.std.errors_client.ResourceInUseIf the content of UMDS depot to be deleted is used in some baseline or desired state. The value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the PrecheckResult class that lists the information of affected baselines and desired states. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there some unknown internal error. The accompanying error message will give more details about the failure. For task-baseddeletemethod, once the task is started, it does NOT stop if encountering an error. Instead, it will continuously run to completion. In this case, the value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the DeleteResult class that lists all the errors encountered.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleDepots.Delete.
-
delete_task()¶ The task-based
deletemethod removes content of the UMDS depot from vLCM completely. Note: The non task-baseddeletemethod has been deprecated. It deletes only the record of UMDS depot from database, instead of removing the content of UMDS depot from vLCM.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no UMDS depot configured in the system.- Raise
com.vmware.vapi.std.errors_client.ResourceInUseIf the content of UMDS depot to be deleted is used in some baseline or desired state. The value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the PrecheckResult class that lists the information of affected baselines and desired states. This error is applicable to the task-baseddeletemethod only.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there some unknown internal error. The accompanying error message will give more details about the failure. For task-baseddeletemethod, once the task is started, it does NOT stop if encountering an error. Instead, it will continuously run to completion. In this case, the value of the data attribute ofcom.vmware.vapi.std.errors_client.Errorwill be the DeleteResult class that lists all the errors encountered.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleDepots.Delete.
-
get()¶ Gets the information about a currently configured UMDS software depot.
- Return type
- Returns
Information of the currently configured UMDS software depot.
- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no UMDS software depot set.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
set(spec)¶ Sets or overwrites information about the UMDS software depot.
- Parameters
spec (
Umds.SetSpec) – Specification to set the UMDS depot.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf an invalid location is provided.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Write.
-
update(spec)¶ Updates the configuration of a currently configured UMDS software depot.
- Parameters
spec (
Umds.UpdateSpec) – Update specification.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no UMDS depot configured.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Write.
-
class
com.vmware.esx.settings.depots_client.UpdateSummary(summary=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
UpdateSummaryclass contains a fieldsthat describes the summary of an update (bulletin). This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
summary (
str) – Summary of the update (bulletin). This attribute was added in vSphere API 7.0.3.0.
com.vmware.esx.settings.hardware_support_client module¶
-
class
com.vmware.esx.settings.hardware_support_client.Managers(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Managersclass provides methods to list Hardware Support Manager (HSM) for a given vCenter.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
HardwareSupportManagerInfo(manager=None, description=None, display_name=None, vendor=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Managers.HardwareSupportManagerInfoclass contains attributes that describe a particular 3rd party Hardware Support Manager (HSM)Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
manager (
str) – Name of the Hardware Support Manager (HSM) (e.g. “Frobozz Hardware Support Manager”) When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.esx.setting.hardware_support.manager. 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.setting.hardware_support.manager.description (
str) – User-intelligible description of the HSM (e.g. “Front end for Frobozz so-and-so management system”)display_name (
str) – UI label for HSM, derived from HSM extension’s description’s ‘label’ field. (e.g. “Frobozz Free Management System”)vendor (
str) – Company providing the Hardware Support Manager (HSM) (e.g. “Frobozz Magic Software Company”)
-
list()¶ Returns the list of registered Hardware Support Managers (HSMs) in the system.
- Return type
- Returns
List of currently registered Hardware Support Manager (HSMs)
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.- 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.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.lifecycleSettings.Read.
-
class
com.vmware.esx.settings.hardware_support_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_client module¶
The com.vmware.esx.settings.hosts_client module provides classes to manage
desired state configuration and software for a standalone ESX host.
-
class
com.vmware.esx.settings.hosts_client.Configuration(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Configurationclass provides methods to manage configuration of a ESX host. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
ExtractResult(config=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Infoclass defines the information about configuration extracted from a ESXi host. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
config (
str) – ESXi host configuration encoded as JSON. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
-
extract(host)¶ Extracts a configuration document from the ESXi host,. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
host (
str) – Identifier of the host. The parameter must be an identifier for the resource type:HostSystem.- Return type
- Returns
The result contains the configuration of the ESXi host encoded as JSON.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is 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.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.ClusterConfiguration.Modify.The resource
HostSystemreferenced by the parameterhostrequiresVcIntegrity.ClusterConfiguration.Modify.
-
class
com.vmware.esx.settings.hosts_client.Software(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Softwareclass provides methods to manage desired software specification of a standalone ESX host.- 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
Software.ApplyResultclass contains attributes that describe the result of anSoftware.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 (
Software.ApplyStatusorNone) – Specifies the aggregated status of theSoftware.apply()method. This attribute was added in vSphere API 8.0.0.1. None if theSoftware.apply()method is in progress.commit (
str) – The identifier of the commit used to fetch the desired software document to be applied to 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 theSoftware.ApplyResult.commitwas applied. This attribute was added in vSphere API 8.0.0.1.notifications (
com.vmware.esx.settings_client.NotificationsorNone) – Notifications providing additional information forSoftware.apply()method. These notifications are mutually exclusive with the notifications inSoftware.ApplyStatus. This attribute was added in vSphere API 8.0.0.1.
-
class
ApplySpec(commit=None, accept_eula=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.ApplySpecclass contains attributes that describe the specification to be used for applying the desired software document to a host. 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
commit (
strorNone) – The minimum commit identifier of the desired software document to be used during theSoftware.apply()method. 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. if None or empty the apply method will use the latest commit to fetch the desired state document.accept_eula (
boolorNone) – Accept the VMware End User License Agreement (EULA) before starting theSoftware.apply()method. The VMware EULA is available for download at, https://www.vmware.com/download/eula.html. This attribute was added in vSphere API 8.0.0.1. if None theSoftware.apply()method could fail due to the EULA not being accepted.
-
class
ApplyStatus(status=None, progress=None, start_time=None, end_time=None, notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.ApplyStatusclass contains attributes that describe the status of anSoftware.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 (
Software.ApplyStatus.Status) – The status of the method. This attribute was added in vSphere API 8.0.0.1.progress (
com.vmware.cis.task_client.ProgressorNone) – Progress of the operation. This attribute was added in vSphere API 8.0.0.1. None for host ApplyStatusstart_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
Software.ApplyStatus.Statusclass contains the possible different status codes that can be returned while trying toSoftware.apply()the desired software specification to 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.
-
RETRY_PENDING= Status(string='RETRY_PENDING')¶ The method is being scheduled for retry. This class attribute was added in vSphere API 8.0.0.1.
-
RUNNING= Status(string='RUNNING')¶ The method is in progress. 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.
-
class
CheckInfo(check=None, name=None, description=None, originator=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.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 what was the issue containing as much user-relevant context as possible. The user should be able to understand which sub-system failed and why. This attribute was added in vSphere API 8.0.0.1.resolution (
com.vmware.vapi.std_client.LocalizableMessageorNone) – Possible resolution for the issue. This should contain actionable information that the user can use to resolve 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
Software.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 (
Software.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 (
Software.EntityCheckResult) – List ofSoftware.EntityCheckResultfor all entities for which checks have been run. This attribute was added in vSphere API 8.0.0.1.
-
class
CheckSpec(commit=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.CheckSpecclass contains attributes that describe the specification to be used for running checks on the host before theSoftware.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
commit (
strorNone) – The minimum commit identifier of the desired software document to be used during the check method. 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. if None or empty the check opertion will use the latest commit to fetch the desired state document.
-
class
CheckStatus(check=None, status=None, check_issues=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.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 (
Software.CheckInfo) – Information about this check. This attribute was added in vSphere API 8.0.0.1.status (
Software.Status) – The status of this check. This attribute was added in vSphere API 8.0.0.1.check_issues (
listofSoftware.CheckIssueorNone) – List ofSoftware.CheckIssue`s that the check reported. This attribute was added in vSphere API 8.0.0.1. If not :class:`set, the service is still using the {#member issues}.
-
class
EntityCheckResult(type=None, host=None, status=None, check_statuses=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.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 (
Software.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 oftypeisSoftware.EntityCheckResult.EntityType.HOST.status (
Software.Status) – Aggregated status from all checks performed on this entity. This attribute was added in vSphere API 8.0.0.1.check_statuses (
listofSoftware.CheckStatus) – List ofSoftware.CheckStatusfor all checks performed. This attribute was added in vSphere API 8.0.0.1.
-
class
EntityType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Software.EntityCheckResult.EntityTypeclass contains the entitites 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
ExportSpec(export_software_spec=None, export_iso_image=None, export_offline_bundle=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.ExportSpecclass contains information describing how a software specification or image should be exported. 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
export_software_spec (
bool) – Whether to export software specification document. This attribute was added in vSphere API 8.0.0.1.export_iso_image (
bool) – Whether to export ISO image. This attribute was added in vSphere API 8.0.0.1.export_offline_bundle (
bool) – Whether to export offline bundle. This attribute was added in vSphere API 8.0.0.1.
-
class
ExportType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Software.ExportTypeclass defines the formats in which software specification document or image can be exported. 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 theExportTypeinstance.
-
ISO_IMAGE= ExportType(string='ISO_IMAGE')¶ Export ISO image. This class attribute was added in vSphere API 8.0.0.1.
-
OFFLINE_BUNDLE= ExportType(string='OFFLINE_BUNDLE')¶ Export offline bundle. This class attribute was added in vSphere API 8.0.0.1.
-
SOFTWARE_SPEC= ExportType(string='SOFTWARE_SPEC')¶ Export software specification document. This class attribute was added in vSphere API 8.0.0.1.
-
class
StageResult(status=None, commit=None, host_info=None, notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.StageResultclass contains attributes that describe the result of aSoftware.stage()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 (
Software.StageStatusorNone) – Specifies the status of theSoftware.stage()method on the specifiedSoftware.StageResult.commitof the desired software document. This attribute was added in vSphere API 8.0.0.1. None if theSoftware.stage()method is in progress.commit (
str) – The identifier of the commit used to fetch the desired software document to be staged to a 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 theSoftware.StageResult.commitwas staged. This attribute was added in vSphere API 8.0.0.1.notifications (
com.vmware.esx.settings_client.NotificationsorNone) – Notifications providing additional information forSoftware.stage()method. These notifications are mutually exclusive with the notifications inSoftware.StageStatus. This attribute was added in vSphere API 8.0.0.1.
-
class
StageSpec(commit=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.StageSpecclass contains attributes that describe the specification to be used for staging the desired software document to a host. 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
commit (
strorNone) – The minimum commit identifier of the desired software document to be used during theSoftware.stage()method. 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. if None or empty the stage method will use the latest commit to fetch the desired state document.
-
class
StageStatus(status=None, progress=None, start_time=None, end_time=None, notifications=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Software.StageStatusclass contains attributes that describe the status of aSoftware.stage()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 (
Software.StageStatus.Status) – The status of the method. This attribute was added in vSphere API 8.0.0.1.progress (
com.vmware.cis.task_client.ProgressorNone) – Progress of the operation. This attribute was added in vSphere API 8.0.0.1. None for host StageStatusstart_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
Software.StageStatus.Statusclass contains the possible different status codes that can be returned while trying toSoftware.stage()the desired software specification to a 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.
-
RETRY_PENDING= Status(string='RETRY_PENDING')¶ The method is being scheduled for retry. This class attribute was added in vSphere API 8.0.0.1.
-
RUNNING= Status(string='RUNNING')¶ The method is in progress. 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.
-
class
Status(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Software.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.
-
RETRY= Status(string='RETRY')¶ The check failed because of an intermittent error, for example a service is overloaded. The client can choose to retry the health check before considering the check as failed. 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.
-
apply_task(host, spec)¶ Applies the desired software document associated with the given host. If
commitattribute isset, it implies the minimum commit that theSoftware.apply()method should use, however if subsequent commits have been made to the desired state document the apply method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation. This method was added in vSphere API 8.0.0.1.- Parameters
host (
str) – Identifier of the host. The parameter must be an identifier for the resource type:HostSystem.spec (
Software.ApplySpec) – Apply specification.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.AlreadyInDesiredStateIf the host is already at specified commit as described in the apply specification.- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is an unknown internal error or if the EULA has not been accepted. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf thecommitattribute ofspecspecifies an invalid commit.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateIf there is another operation in progress.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no host associated withhostin the system or if desired software document is not found.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.TimedOutIf the operation times out.- 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.
-
check_task(host, spec)¶ Runs checks on the host before applying the desired software document. Checks if host is in a good state to be updated with the desired software document. If
commitattribute issetit implies the minimum commit that the check method should use, however if subsequent commits have been made to the desired state document the check method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation. This method was added in vSphere API 8.0.0.1.- Parameters
host (
str) – Identifier of the host. The parameter must be an identifier for the resource type:HostSystem.spec (
Software.CheckSpec) – Check specification.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf thecommitattribute ofspecspecifies an invalid commit.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateIf there is another operation in progress or if thecommitattribute ofspecspecifies a commit that has already been applied.- 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.TimedOutIf the operation times out.- 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.
-
export(host, spec)¶ Exports the desired software specification document and/or image. This API will not export the solution section of the desired software specification. This method was added in vSphere API 8.0.0.1.
- Parameters
host (
str) – Identifier of the host. The parameter must be an identifier for the resource type:HostSystem.spec (
Software.ExportSpec) –
- Return type
dictofSoftware.ExportTypeandstr- Returns
A map from export type to URL of the exported data for that type.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is am 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 or if desired software document is not found.- 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.lifecycleSoftwareSpecification.Read.The resource
HostSystemreferenced by the parameterhostrequiresVcIntegrity.lifecycleSoftwareSpecification.Read.
-
get(host)¶ Returns the complete desired software specification. This method was added in vSphere API 8.0.0.1.
- Parameters
host (
str) – Identifier of the host. The parameter must be an identifier for the resource type:HostSystem.- Return type
- Returns
Host software specification.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is 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.lifecycleSoftwareSpecification.Read.The resource
HostSystemreferenced by the parameterhostrequiresVcIntegrity.lifecycleSoftwareSpecification.Read.
-
scan_task(host)¶ Scans the host against the host’s desired state.. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.
- Parameters
host (
str) – Identifier of the host. The parameter must be an identifier for the resource type:HostSystem.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is 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 or if desired software document is not found.- 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.
-
stage_task(host, spec)¶ Stages the desired software document associated with the given host. If
commitattribute isset, it implies the minimum commit that theSoftware.stage()method should use, however if subsequent commits have been made to the desired state document the stage method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation. This method was added in vSphere API 8.0.0.1.- Parameters
host (
str) – Identifier of the host. The parameter must be an identifier for the resource type:HostSystem.spec (
Software.StageSpec) – stage specification.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- 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.InvalidArgumentIf thecommitattribute ofspecspecifies an invalid commit, or theStageSpec#hostsattribute ofspecspecifies an invalid host or thehostis not managed with a single software specification.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateIf there is another operation in progress.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no host associated withhostin the system or if desired software document is not found.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.- Raise
com.vmware.vapi.std.errors_client.TimedOutIf the operation times out.- 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
-
class
com.vmware.esx.settings.hosts_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance