ComputeClusterHostGroup

The vsphere..ComputeClusterHostGroup resource can be used to manage groups of hosts in a cluster, either created by the vsphere..ComputeCluster resource or looked up by the vsphere..ComputeCluster data source.

This resource mainly serves as an input to the vsphere..ComputeClusterVmHostRule resource - see the documentation for that resource for further details on how to use host groups.

NOTE: This resource requires vCenter and is not available on direct ESXi connections.

NOTE: vSphere DRS requires a vSphere Enterprise Plus license.

Create a ComputeClusterHostGroup Resource

def ComputeClusterHostGroup(resource_name, opts=None, compute_cluster_id=None, host_system_ids=None, name=None, __props__=None);
name string
The unique name of the resource.
args ComputeClusterHostGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ComputeClusterHostGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ComputeClusterHostGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ComputeClusterHostGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ComputeClusterHostGroup resource accepts the following input properties:

ComputeClusterId string

The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.

HostSystemIds List<string>

The managed object IDs of the hosts to put in the cluster.

Name string

The name of the host group. This must be unique in the cluster. Forces a new resource if changed.

ComputeClusterId string

The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.

HostSystemIds []string

The managed object IDs of the hosts to put in the cluster.

Name string

The name of the host group. This must be unique in the cluster. Forces a new resource if changed.

computeClusterId string

The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.

hostSystemIds string[]

The managed object IDs of the hosts to put in the cluster.

name string

The name of the host group. This must be unique in the cluster. Forces a new resource if changed.

compute_cluster_id str

The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.

host_system_ids List[str]

The managed object IDs of the hosts to put in the cluster.

name str

The name of the host group. This must be unique in the cluster. Forces a new resource if changed.

Outputs

All input properties are implicitly available as output properties. Additionally, the ComputeClusterHostGroup resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ComputeClusterHostGroup Resource

Get an existing ComputeClusterHostGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, compute_cluster_id=None, host_system_ids=None, name=None, __props__=None);
func GetComputeClusterHostGroup(ctx *Context, name string, id IDInput, state *ComputeClusterHostGroupState, opts ...ResourceOption) (*ComputeClusterHostGroup, error)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

ComputeClusterId string

The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.

HostSystemIds List<string>

The managed object IDs of the hosts to put in the cluster.

Name string

The name of the host group. This must be unique in the cluster. Forces a new resource if changed.

ComputeClusterId string

The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.

HostSystemIds []string

The managed object IDs of the hosts to put in the cluster.

Name string

The name of the host group. This must be unique in the cluster. Forces a new resource if changed.

computeClusterId string

The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.

hostSystemIds string[]

The managed object IDs of the hosts to put in the cluster.

name string

The name of the host group. This must be unique in the cluster. Forces a new resource if changed.

compute_cluster_id str

The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.

host_system_ids List[str]

The managed object IDs of the hosts to put in the cluster.

name str

The name of the host group. This must be unique in the cluster. Forces a new resource if changed.

Package Details

Repository
https://github.com/pulumi/pulumi-vsphere
License
Apache-2.0
Notes
This Pulumi package is based on the vsphere Terraform Provider.