vSAN Management API
|
| Local Properties | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |
Data Object - VirtualMachineExtensionCompatibilityConstraint(vim.vm.ExtensionCompatibilityConstraint)
- Property of
- VirtualMachineExtensionCompatibilityConstraintSet
- Extends
- DynamicData
- Since
- vSphere API Release 9.1.2.0
Data Object Description
A compatibility constraint declared by a managing extension on a virtual machine it manages.Constraints let a managing extension (identified by managedBy) tell vCenter which properties of a managed virtual machine must be protected during operations that would change them (for example, relocate or reconfigure). vCenter enforces the constraints in the compatibility-check pipeline so that operations which would break the extension's assumptions are rejected.
Enforcement is a vCenter mechanism. Operations invoked directly against an ESXi host bypass vCenter's compatibility-check pipeline, so these constraints are not evaluated on that path.
A constraint has two orthogonal dimensions:
- constraintType identifies what property is constrained (for example, the resource pool or the storage policy).
- constraintKind identifies how the constraint is evaluated (for example, the property must not change).
Within a single virtual machine, a constraint's identity is the combination of its constraintType and constraintKind; that pair is what vCenter evaluates against. A virtual machine may carry at most one constraint per (constraintType, constraintKind): supplying more than one with the same pair is rejected as invalid input rather than silently collapsed. constraintName plays no part in this identity.
Properties
| Name | Type | Description |
|---|---|---|
| constraintKind | xsd:string |
How the constraint is evaluated. The only kind defined today is
ConstraintKind#INVARIANT, which asserts that the
constraintType must not change from the virtual
machine's current value. This field is required and must be set
explicitly so that a constraint's (constraintType, constraintKind)
identity is always unambiguous. An unrecognized value causes the create
or reconfigure operation that registers the constraint to fail.
|
| constraintName* | xsd:string |
An optional descriptive label for the constraint, chosen by the managing
extension (for example, "pool-invariant"), used for identification and
diagnostics such as constraint reads and violation messages.
The name is descriptive only. It is not required to be unique (extensions
typically reuse the same names across all the virtual machines they
manage) and it is not used to evaluate or identify the constraint; the
constraint's identity is its constraintType and
constraintKind.
|
| constraintType | xsd:string |
The property that this constraint protects. The values defined today are
enumerated by ConstraintType (for example,
ConstraintType#POOL). An unrecognized value causes the create or
reconfigure operation that registers the constraint to fail.
|
| Properties inherited from DynamicData | ||
| None | ||
Show WSDL type definition
| Top of page | Local Properties | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |