com.vmware.vcenter.compute.policies.capabilities package
Subpackages
- com.vmware.vcenter.compute.policies.capabilities.vm package- Subpackages
- Submodules
- com.vmware.vcenter.compute.policies.capabilities.vm.evacuation_client module
- com.vmware.vcenter.compute.policies.capabilities.vm.placement_client module
 
Submodules
com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_client module
The
com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_client
module provides classes for the Scale-In Ignore Virtual Machine Capabilities
capability offered by vCenter in VMware Cloud on AWS. Usage beyond VMware Cloud
on AWS is not supported.
- class com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_client.CreateSpec(vm_tag=None, vm_capabilities=None, capability='com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities', name=None, description=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - CreateSpecclass contains information used to create a new policy to ignore virtual machine capabilities when scaling-in a cluster, see- com.vmware.vcenter.compute_client.Policies.create(). When considering scaling-in a cluster, policies that have been created with one of the listed- CreateSpec.vm_capabilitiesare ignored for virtual machines that have the tag indicated by- CreateSpec.vm_tagin VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – When considering scaling-in a cluster, policies that have been created with one of the listed- CreateSpec.vm_capabilitiesare ignored for virtual machines that have this tag. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- vm_capabilities ( - setof- str) – When considering scaling-in a cluster, policies that have been created with one of these capabilities are ignored for virtual machines that have the tag indicated by- CreateSpec.vm_tag. This- setmust contain at least one item. Currently, the only allowed capability identifier is- com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client. In the future, other capabilities may be specified. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:- com.vmware.vcenter.compute.policies.Capability:VirtualMachine. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:- com.vmware.vcenter.compute.policies.Capability:VirtualMachine.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
- name ( - str) – Name of the policy. The name needs to be unique within this vCenter server.
- description ( - str) – Description of the policy.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_client.Info(vm_tag=None, vm_capabilities=None, name=None, description=None, capability=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - Infoclass contains information about a policy to ignore virtual machine capabilities when scaling-in a cluster, see- com.vmware.vcenter.compute_client.Policies.get(). When considering scaling-in a cluster, policies that have been created with one of the listed- Info.vm_capabilitiesare ignored for virtual machines that have the tag indicated by- Info.vm_tagin VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – When considering scaling-in a cluster, policies that have been created with one of the listed- Info.vm_capabilitiesare ignored for virtual machines that have this tag. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- vm_capabilities ( - setof- str) – When considering scaling-in a cluster, policies that have been created with one of these capabilities are ignored for virtual machines that have the tag indicated by- Info.vm_tag. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:- com.vmware.vcenter.compute.policies.Capability:VirtualMachine. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:- com.vmware.vcenter.compute.policies.Capability:VirtualMachine.
- name ( - str) – Name of the policy.
- description ( - str) – Description of the policy.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_client.StubFactory(stub_config)
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
 
com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client module
The
com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client
module provides classes for the Disable DRS vMotion capability offered by
vCenter in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not
supported.
- class com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.CreateSpec(vm_tag=None, capability='com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion', name=None, description=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - CreateSpecclass contains information used to create a new DisableDrsVmotion policy, see- com.vmware.vcenter.compute_client.Policies.create(), in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will not be migrated away from the host on which they are powered on, except when the host is put into maintenance mode or failed over. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
- name ( - str) – Name of the policy. The name needs to be unique within this vCenter server.
- description ( - str) – Description of the policy.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.Info(vm_tag=None, name=None, description=None, capability=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - Infoclass contains information about a DisableDrsVmotion policy, see- com.vmware.vcenter.compute_client.Policies.get()in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will not be migrated away from the host on which they are powered on, except when the host is put into maintenance mode or failed over. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- name ( - str) – Name of the policy.
- description ( - str) – Description of the policy.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.StubFactory(stub_config)
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
 
com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client module
The
com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client
module provides classes for the VM Host affinity capability offered by vCenter
in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported.
- class com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.CreateSpec(vm_tag=None, host_tag=None, capability='com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity', name=None, description=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - CreateSpecclass contains information used to create a new virtual machine to host affinity policy, see- com.vmware.vcenter.compute_client.Policies.create(). Virtual machines that have the tag indicated by- CreateSpec.vm_tagwill be affine to hosts that have the tag indicated by- CreateSpec.host_tagin VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be affine to the hosts indicated by- CreateSpec.host_tag. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- host_tag ( - str) – Identifier of a tag that can be associated with a host. Virtual machines indicated by- CreateSpec.vm_tagwill be affine to hosts with this tag. 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.tagging.Tag:HostSystem. 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.tagging.Tag:HostSystem.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
- name ( - str) – Name of the policy. The name needs to be unique within this vCenter server.
- description ( - str) – Description of the policy.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.Info(vm_tag=None, host_tag=None, name=None, description=None, capability=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - Infoclass contains information about a virtual machine to host affinity policy, see- com.vmware.vcenter.compute_client.Policies.get(). Virtual machines that have the tag indicated by- Info.vm_tagwill be affine to hosts that have the tag indicated by- Info.host_tagin VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be affine to the hosts indicated by- Info.host_tag. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- host_tag ( - str) – Identifier of a tag that can be associated with a host. Virtual machines indicated by- Info.vm_tagwill be affine to hosts with this tag. 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.tagging.Tag:HostSystem. 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.tagging.Tag:HostSystem.
- name ( - str) – Name of the policy.
- description ( - str) – Description of the policy.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.StubFactory(stub_config)
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
 
com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client module
The
com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client
module provides classes for the VM Host anti-affinity capability offered by
vCenter in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not
supported.
- class com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client.CreateSpec(vm_tag=None, host_tag=None, capability='com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity', name=None, description=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - CreateSpecclass contains information used to create a new virtual machine to host anti-affinity policy, see- com.vmware.vcenter.compute_client.Policies.create(). Virtual machines that have the tag indicated by- CreateSpec.vm_tagwill be anti-affine to hosts that have the tag indicated by- CreateSpec.host_tagin VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be anti-affine to the hosts indicated by- CreateSpec.host_tag. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- host_tag ( - str) – Identifier of a tag that can be associated with a host. Virtual machines indicated by- CreateSpec.vm_tagwill be anti-affine to hosts with this tag. 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.tagging.Tag:HostSystem. 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.tagging.Tag:HostSystem.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
- name ( - str) – Name of the policy. The name needs to be unique within this vCenter server.
- description ( - str) – Description of the policy.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client.Info(vm_tag=None, host_tag=None, name=None, description=None, capability=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - Infoclass contains information about a virtual machine to host anti-affinity policy, see- com.vmware.vcenter.compute_client.Policies.get(). Virtual machines that have the tag indicated by- Info.vm_tagwill be anti-affine to hosts that have the tag indicated by- Info.host_tagin VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be anti-affine to the hosts indicated by- Info.host_tag. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- host_tag ( - str) – Identifier of a tag that can be associated with a host. Virtual machines indicated by- Info.vm_tagwill be anti-affine to hosts with this tag. 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.tagging.Tag:HostSystem. 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.tagging.Tag:HostSystem.
- name ( - str) – Name of the policy.
- description ( - str) – Description of the policy.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client.StubFactory(stub_config)
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
 
com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client module
The com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client
module provides classes for the VM-VM affinity capability offered by vCenter in
VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported.
- class com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.CreateSpec(vm_tag=None, capability='com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity', name=None, description=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - CreateSpecclass contains information used to create a new VM-VM affinity policy, see- com.vmware.vcenter.compute_client.Policies.create(). All virtual machines that share the tag indicated by- CreateSpec.vm_tagwill be affined to each other in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be affined to each other. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
- name ( - str) – Name of the policy. The name needs to be unique within this vCenter server.
- description ( - str) – Description of the policy.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.Info(vm_tag=None, name=None, description=None, capability=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - Infoclass contains information about a VM-VM affinity policy, see- com.vmware.vcenter.compute_client.Policies.get(). All virtual machines that share the tag indicated by- Info.vm_tagare affined to each other in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be affined to each other. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- name ( - str) – Name of the policy.
- description ( - str) – Description of the policy.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.StubFactory(stub_config)
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
 
com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client module
The
com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client
module provides classes for the VM VM anti-affinity capability offered by
vCenter in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not
supported.
- class com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.CreateSpec(vm_tag=None, capability='com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity', name=None, description=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - CreateSpecclass contains information used to create a new VM-VM anti-affinity policy, see- com.vmware.vcenter.compute_client.Policies.create(). All virtual machines that share the tag indicated by- CreateSpec.vm_tagwill be anti-affine to each other in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be anti-affine to each other. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
- name ( - str) – Name of the policy. The name needs to be unique within this vCenter server.
- description ( - str) – Description of the policy.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.Info(vm_tag=None, name=None, description=None, capability=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - Infoclass contains information about a VM-VM anti-affinity policy, see- com.vmware.vcenter.compute_client.Policies.get(). All virtual machines that share the tag indicated by- Info.vm_tagare anti-affine to each other in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. 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
- vm_tag ( - str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag are anti-affine to each other. 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.tagging.Tag:VirtualMachine. 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.tagging.Tag:VirtualMachine.
- name ( - str) – Name of the policy.
- description ( - str) – Description of the policy.
- capability ( - str) – Identifier of the capability this policy is based on. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.compute.policies.Capability.
 
 - property capability
- Return the discriminator value 
 
- class com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.StubFactory(stub_config)
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance