Class 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.
Inherited Members
Namespace: Pulumi.VSphere
Assembly: Pulumi.VSphere.dll
Syntax
public class ComputeClusterHostGroup : CustomResource
Constructors
View SourceComputeClusterHostGroup(String, ComputeClusterHostGroupArgs, CustomResourceOptions)
Create a ComputeClusterHostGroup resource with the given unique name, arguments, and options.
Declaration
public ComputeClusterHostGroup(string name, ComputeClusterHostGroupArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ComputeClusterHostGroupArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceComputeClusterId
The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.
Declaration
public Output<string> ComputeClusterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
HostSystemIds
The managed object IDs of the hosts to put in the cluster.
Declaration
public Output<ImmutableArray<string>> HostSystemIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Name
The name of the host group. This must be unique in the cluster. Forces a new resource if changed.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ComputeClusterHostGroupState, CustomResourceOptions)
Get an existing ComputeClusterHostGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ComputeClusterHostGroup Get(string name, Input<string> id, ComputeClusterHostGroupState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ComputeClusterHostGroupState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ComputeClusterHostGroup |