com.vmware.esx.settings.clusters.configuration package¶
Submodules¶
com.vmware.esx.settings.clusters.configuration.reports_client module¶
-
class
com.vmware.esx.settings.clusters.configuration.reports_client.LastApplyResult(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
LastApplyResultclass provides methods to get the most recent available result of applying the configuration to all hosts within a cluster. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
get(cluster)¶ Returns the most recent available result of applying the configuration document to all hosts within the cluster. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
cluster (
str) – The cluster identifier. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
com.vmware.esx.settings.clusters_client.Configuration.ApplyResult- Returns
Most recent available result of applying the desired configuration to all hosts within the cluster.
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is an unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no cluster associated withclusterin the system or if there is no result associated with the clustercluster- 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 the caller does not have the necessary privileges to perform the request.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.ClusterConfiguration.View.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.ClusterConfiguration.View.
-
class
com.vmware.esx.settings.clusters.configuration.reports_client.LastComplianceResult(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
LastComplianceResultclass provides methods to get the last available check compliance result for the cluster. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
get(cluster)¶ This API provides results from the last completed Check Compliance operation on the cluster. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
cluster (
str) – Identifier of the cluster The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
com.vmware.esx.settings.clusters.configuration_client.ClusterCompliance- Returns
- Raise
com.vmware.vapi.std.errors_client.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf there is no cluster associated withclusteror no last compliance result was 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.ClusterConfiguration.View.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.ClusterConfiguration.View.
-
class
com.vmware.esx.settings.clusters.configuration.reports_client.LastPrecheckResult(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
LastPrecheckResultclass provides methods to get the most recent available result of Precheck. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
get(cluster)¶ This API returns results from the last Precheck operation on the cluster. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
cluster (
str) – Identifier of the cluster The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
com.vmware.esx.settings.clusters.configuration_client.ClusterPrecheckResult- Returns
Most recent available result of Precheck.
- 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 there is no result associated with the clustercluster.- 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 the caller does not have the necessary privileges to perform the request.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.ClusterConfiguration.View.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresVcIntegrity.ClusterConfiguration.View.
-
class
com.vmware.esx.settings.clusters.configuration.reports_client.RecentTasks(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
RecentTasksclass provides methods to get the most recent configuration-related tasks. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
DraftTasks(precheck=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
RecentTasks.DraftTasksclass contains attributes that specify the ID of the latest task to be executed for various operations on a draft. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
precheck (
strorNone) – The ID of the last precheck task to be executed for this draft. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.cis.task. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.cis.task.
-
class
Info(check_compliance=None, precheck=None, draft_tasks=None, apply=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
RecentTasks.Infoclass contains attributes that specify the ID of the latest task to be executed for various operations. If a task is currently running, that ID will be returned, otherwise the most recently finished task will be returned. Warning: This class is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
check_compliance (
strorNone) – The ID of the last check-compliance task to be executed. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.cis.task. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.cis.task.precheck (
strorNone) – The ID of the last precheck task to be executed. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.cis.task. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.cis.task.draft_tasks (
dictofstrandRecentTasks.DraftTasks) – Map of draft IDs to the latest tasks executed for that draft. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the key in the attributedictmust be an identifier for the resource type:com.vmware.esx.settings.draft. When methods return a value of this class as a return value, the key in the attributedictwill be an identifier for the resource type:com.vmware.esx.settings.draft.apply (
strorNone) – The ID of the last apply task to be executed. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.cis.task. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.cis.task.
-
get(cluster)¶ This API returns the IDs of the configuration tasks most recently executed on this cluster. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
- Parameters
cluster (
str) – Identifier of the cluster The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- Returns
A structure containing the most recent executions of draft- related tasks.
- 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 the caller does not have the necessary privileges to perform the request.
-
class
com.vmware.esx.settings.clusters.configuration.reports_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance