vcenter VM: compute placement spec
The
compute_placement_spec
structure contains information used to place a virtual machine on compute resources.Representation:
{
"cluster" : "obj-103",
"host" : "obj-103",
"resource_pool" : "obj-103"
}
"cluster" : "obj-103",
"host" : "obj-103",
"resource_pool" : "obj-103"
}
Attributes:
Name | Type | Description |
---|---|---|
Optional | ||
resource_pool | string | Resource pool into which the virtual machine should be placed. Optional. This field is currently required if both host and cluster are unset. In the future, if this field is unset, the system will attempt to choose a suitable resource pool for the virtual machine; if a resource pool cannot be chosen, the virtual machine creation operation will fail.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: ResourcePool . When operations return a value of this structure as a result, the field will be an identifier for the resource type: ResourcePool . |
host | string | Host onto which the virtual machine should be placed. If If resource_pool or cluster is specified. If unset, the system will attempt to choose a suitable host for the virtual machine; if a host cannot be chosen, the virtual machine creation operation will fail.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: HostSystem . When operations return a value of this structure as a result, the field will be an identifier for the resource type: HostSystem . |
cluster | string | Cluster into which the virtual machine should be placed. If If resource_pool or host is specified, it is recommended that this field be unset.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: ClusterComputeResource . When operations return a value of this structure as a result, the field will be an identifier for the resource type: ClusterComputeResource . |