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.VapiInterface
The
LastApplyResult
class 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.Error
If there is an unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFound
If there is no cluster associated withcluster
in the system or if there is no result associated with the clustercluster
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
If the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthenticated
if the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorized
if the caller does not have the necessary privileges to perform the request.- Raise
com.vmware.vapi.std.errors_client.Unauthorized
if you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.ClusterConfiguration.View
.The resource
ClusterComputeResource
referenced by the parametercluster
requiresVcIntegrity.ClusterConfiguration.View
.
-
class
com.vmware.esx.settings.clusters.configuration.reports_client.
LastComplianceResult
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
The
LastComplianceResult
class 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.Error
If there is unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFound
If there is no cluster associated withcluster
or no last compliance result was found.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
If the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthenticated
If the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorized
if you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.ClusterConfiguration.View
.The resource
ClusterComputeResource
referenced by the parametercluster
requiresVcIntegrity.ClusterConfiguration.View
.
-
class
com.vmware.esx.settings.clusters.configuration.reports_client.
LastPrecheckResult
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
The
LastPrecheckResult
class 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.Error
If there is unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFound
If there is no cluster associated withcluster
in the system or if there is no result associated with the clustercluster
.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
If the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthenticated
If the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorized
if the caller does not have the necessary privileges to perform the request.- Raise
com.vmware.vapi.std.errors_client.Unauthorized
if you do not have all of the privileges described as follows:Method execution requires
VcIntegrity.ClusterConfiguration.View
.The resource
ClusterComputeResource
referenced by the parametercluster
requiresVcIntegrity.ClusterConfiguration.View
.
-
class
com.vmware.esx.settings.clusters.configuration.reports_client.
RecentTasks
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
The
RecentTasks
class 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.VapiStruct
The
RecentTasks.DraftTasks
class 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 (
str
orNone
) – 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.VapiStruct
The
RecentTasks.Info
class 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 (
str
orNone
) – 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 (
str
orNone
) – 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 (
dict
ofstr
andRecentTasks.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 attributedict
must 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 attributedict
will be an identifier for the resource type:com.vmware.esx.settings.draft
.apply (
str
orNone
) – 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.Error
If there is unknown internal error. The accompanying error message will give more details about the failure.- Raise
com.vmware.vapi.std.errors_client.NotFound
If there is no cluster associated withcluster
in the system.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
If the service is not available.- Raise
com.vmware.vapi.std.errors_client.Unauthenticated
If the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorized
if 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.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance