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
new ComputeClusterHostGroup(name: string, args: ComputeClusterHostGroupArgs, opts?: CustomResourceOptions);def ComputeClusterHostGroup(resource_name, opts=None, compute_cluster_id=None, host_system_ids=None, name=None, __props__=None);func NewComputeClusterHostGroup(ctx *Context, name string, args ComputeClusterHostGroupArgs, opts ...ResourceOption) (*ComputeClusterHostGroup, error)public ComputeClusterHostGroup(string name, ComputeClusterHostGroupArgs args, CustomResourceOptions? opts = null)- 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:
- Compute
Cluster stringId The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.
- Host
System List<string>Ids 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 stringId The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.
- Host
System []stringIds 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 stringId The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.
- host
System string[]Ids 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_ strid The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.
- host_
system_ List[str]ids 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:
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.
public static get(name: string, id: Input<ID>, state?: ComputeClusterHostGroupState, opts?: CustomResourceOptions): ComputeClusterHostGroupstatic 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)public static ComputeClusterHostGroup Get(string name, Input<string> id, ComputeClusterHostGroupState? state, CustomResourceOptions? opts = null)- 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:
- Compute
Cluster stringId The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.
- Host
System List<string>Ids 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 stringId The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.
- Host
System []stringIds 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 stringId The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.
- host
System string[]Ids 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_ strid The managed object reference ID of the cluster to put the group in. Forces a new resource if changed.
- host_
system_ List[str]ids 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
vsphereTerraform Provider.