Package com.morpheusdata.request
Class AddHostRequest
java.lang.Object
com.morpheusdata.request.AddHostRequest
Request object for adding a single host to a cloud via
MorpheusComputeServerService.addHost(com.morpheusdata.model.Cloud, com.morpheusdata.request.AddHostRequest).- Since:
- 1.4.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionAdditional provider-specific configuration passed straight through to the provisioner.Optional hostname for the new host.booleanWhether to perform license and connectivity checks before provisioning.Network interfaces to provision on the new host.The service plan (sizing) to provision the host with.Optional resource pool/cluster to provision the host into.Ids of security groups to apply to the new host.Optional display name for the new host.The type of host to provision.Optional id of the group/site to provision the host into.Storage volumes to provision and attach to the new host. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serverType
The type of host to provision. Resolved byidto a persistedComputeServerType; pass a reference carrying at least the id. Required. -
serverName
Optional display name for the new host. If not provided, a name is auto-generated. -
hostname
Optional hostname for the new host. Defaults toserverNameif not provided. -
plan
The service plan (sizing) to provision the host with. Passed through byidas a reference to a persistedServicePlan. -
config
Additional provider-specific configuration passed straight through to the provisioner. May include settings such ascustomOptions, or a nestedservermap whose entries are applied directly onto the server config. Free-form; not schema-validated. -
siteId
Optional id of the group/site to provision the host into.nulllets the cloud choose its default placement. -
volumes
Storage volumes to provision and attach to the new host.These are typed configuration templates, not references to persisted
StorageVolumerows: only the descriptive fields are read (name,rootVolume,maxStorage, and thetype/datastoreids) to describe the volumes the provisioner should create. No existing StorageVolume record is looked up or required for the volume itself. -
networkInterfaces
Network interfaces to provision on the new host.Like
volumes, these are typed configuration templates rather than persistedComputeServerInterfacerows: only the descriptive fields are read (name,ipMode, any staticaddresses, and thenetwork/networkGroup/networkPoolids) to describe the NICs the provisioner should create. No existing ComputeServerInterface record is looked up or required for the interface itself. -
securityGroupIds
Ids of security groups to apply to the new host. Each id is passed through to the provisioner as a reference to a persisted security group. -
licenseCheck
public boolean licenseCheckWhether to perform license and connectivity checks before provisioning. Set tofalseto skip these checks. Defaults totrue. -
pool
Optional resource pool/cluster to provision the host into. Passed through byidas a reference to a persistedCloudPool.nullis valid for clouds that do not scope hosts to a resource pool/cluster.
-
-
Constructor Details
-
AddHostRequest
public AddHostRequest()
-