com.vmware.esx.settings package¶
Subpackages¶
- com.vmware.esx.settings.clusters package
- Subpackages
 - 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
 
 - com.vmware.esx.settings.defaults package
 - com.vmware.esx.settings.depot_content package
 - com.vmware.esx.settings.hardware_support 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.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)¶ 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.
- 
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.1.0. 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.
- 
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 
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.
- 
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.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.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.host_credential (
Offline.HostCredentials) – Specifies the host details to be used during theOffline.create_from_host()method. 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. 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.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.
- 
USERNAME_PASSWORD= AuthenticationType(string='USERNAME_PASSWORD')¶ Connect to host using host’s credentials class.
- 
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)¶ 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.
- 
class 
DepotExtractInfo(notifications=None, software_spec=None, result=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Offline.DepotExtractInfoclass contains attributes that describe the extracted depot.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.software_spec (
com.vmware.esx.settings_client.SoftwareSpec) – Software specification of the extracted depot.result (
Offline.CreateResult) – The information about the created offline depot.
- 
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.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.user_name (
str) – Specifies the username to be used during theOffline.create_from_host()method.password (
str) – Specifies the password to be used during theOffline.create_from_host()method.port (
longorNone) – Specifies the port number of the host to be used duringOffline.create_from_host()method. 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. 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)¶ 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.
- 
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)¶ 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.
- 
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.
- 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.lifecycleSettings.Write.
- 
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.lifecycleSettings.Write.
- 
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)¶ 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.
- 
class 
Info(description=None, location=None, enabled=None, system_defined=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.
- 
RESOURCE_TYPE= 'com.vmware.esx.settings.depots.online'¶ Resource type for depots resource
- 
class 
Summary(description=None, location=None, enabled=None, system_defined=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.
- 
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.lifecycleSettings.Write.
- 
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.lifecycleSettings.Write.
- 
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.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 
Info(description=None, enabled=None, location=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.
- 
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.lifecycleSettings.Write.
- 
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.lifecycleSettings.Write.
- 
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.
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.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.
- 
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 standlone host, but instead part of a cluster.
- 
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