vmc.Cluster
Explore with Pulumi AI
Provides a resource to manage clusters.
Note: Cluster resource implicitly depends on SDDC resource creation. SDDC must be provisioned before a cluster can be created.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vmc from "@pulumi/vmc";
const cluster_1 = new vmc.Cluster("cluster-1", {
sddcId: vmc_sddc.sddc_1.id,
numHosts: _var.num_hosts,
microsoftLicensingConfigs: [{
mssqlLicensing: "DISABLED",
windowsLicensing: "ENABLED",
}],
});
import pulumi
import pulumi_vmc as vmc
cluster_1 = vmc.Cluster("cluster-1",
sddc_id=vmc_sddc["sddc_1"]["id"],
num_hosts=var["num_hosts"],
microsoft_licensing_configs=[{
"mssql_licensing": "DISABLED",
"windows_licensing": "ENABLED",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vmc/vmc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vmc.NewCluster(ctx, "cluster-1", &vmc.ClusterArgs{
SddcId: pulumi.Any(vmc_sddc.Sddc_1.Id),
NumHosts: pulumi.Any(_var.Num_hosts),
MicrosoftLicensingConfigs: vmc.ClusterMicrosoftLicensingConfigArray{
&vmc.ClusterMicrosoftLicensingConfigArgs{
MssqlLicensing: pulumi.String("DISABLED"),
WindowsLicensing: pulumi.String("ENABLED"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vmc = Pulumi.Vmc;
return await Deployment.RunAsync(() =>
{
var cluster_1 = new Vmc.Cluster("cluster-1", new()
{
SddcId = vmc_sddc.Sddc_1.Id,
NumHosts = @var.Num_hosts,
MicrosoftLicensingConfigs = new[]
{
new Vmc.Inputs.ClusterMicrosoftLicensingConfigArgs
{
MssqlLicensing = "DISABLED",
WindowsLicensing = "ENABLED",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vmc.Cluster;
import com.pulumi.vmc.ClusterArgs;
import com.pulumi.vmc.inputs.ClusterMicrosoftLicensingConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cluster_1 = new Cluster("cluster-1", ClusterArgs.builder()
.sddcId(vmc_sddc.sddc_1().id())
.numHosts(var_.num_hosts())
.microsoftLicensingConfigs(ClusterMicrosoftLicensingConfigArgs.builder()
.mssqlLicensing("DISABLED")
.windowsLicensing("ENABLED")
.build())
.build());
}
}
resources:
cluster-1:
type: vmc:Cluster
properties:
sddcId: ${vmc_sddc.sddc_1.id}
numHosts: ${var.num_hosts}
microsoftLicensingConfigs:
- mssqlLicensing: DISABLED
windowsLicensing: ENABLED
Modifying an Elastic DRS Policy
For a new cluster, elastic DRS uses the Default Storage Scale-Out policy, adding hosts only when storage utilization exceeds the threshold of 75%.
You can select a different policy if it provides better support for your workload VMs by updating the resource using the following arguments:
edrs_policy_type
- (Optional) The EDRS policy type. This can either becost
,performance
,storage-scaleup
orrapid-scaleup
. Defaults tostorage-scaleup
.enable_edrs
- (Optional) Enable EDRS.min_hosts
- (Optional) The minimum number of ESX hosts that the cluster can scale in to.max_hosts
- (Optional) The maximum number of ESX hosts that the cluster can scale out to.
Note: When the EDRS policy is disabled (i.e.,
enable_edrs = false
) forperformance
,cost
orrapid-scaleup
, the policy type changes to the default,storage-scaleup
.
Note: The EDRS policy properties can be modified only after a cluster has been created.
Example
import * as pulumi from "@pulumi/pulumi";
import * as vmc from "@pulumi/vmc";
const myAccounts = vmc.getConnectedAccounts({
accountNumber: _var.aws_account_number,
});
const mySubnets = myAccounts.then(myAccounts => vmc.getCustomerSubnets({
connectedAccountId: myAccounts.id,
region: _var.sddc_region,
}));
const cluster_1 = new vmc.Cluster("cluster-1", {
sddcId: vmc_sddc.sddc_1.id,
numHosts: _var.num_hosts,
edrsPolicyType: "cost",
enableEdrs: true,
minHosts: 3,
maxHosts: 8,
});
import pulumi
import pulumi_vmc as vmc
my_accounts = vmc.get_connected_accounts(account_number=var["aws_account_number"])
my_subnets = vmc.get_customer_subnets(connected_account_id=my_accounts.id,
region=var["sddc_region"])
cluster_1 = vmc.Cluster("cluster-1",
sddc_id=vmc_sddc["sddc_1"]["id"],
num_hosts=var["num_hosts"],
edrs_policy_type="cost",
enable_edrs=True,
min_hosts=3,
max_hosts=8)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vmc/vmc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myAccounts, err := vmc.GetConnectedAccounts(ctx, &vmc.GetConnectedAccountsArgs{
AccountNumber: _var.Aws_account_number,
}, nil)
if err != nil {
return err
}
_, err = vmc.GetCustomerSubnets(ctx, &vmc.GetCustomerSubnetsArgs{
ConnectedAccountId: pulumi.StringRef(myAccounts.Id),
Region: _var.Sddc_region,
}, nil)
if err != nil {
return err
}
_, err = vmc.NewCluster(ctx, "cluster-1", &vmc.ClusterArgs{
SddcId: pulumi.Any(vmc_sddc.Sddc_1.Id),
NumHosts: pulumi.Any(_var.Num_hosts),
EdrsPolicyType: pulumi.String("cost"),
EnableEdrs: pulumi.Bool(true),
MinHosts: pulumi.Float64(3),
MaxHosts: pulumi.Float64(8),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vmc = Pulumi.Vmc;
return await Deployment.RunAsync(() =>
{
var myAccounts = Vmc.GetConnectedAccounts.Invoke(new()
{
AccountNumber = @var.Aws_account_number,
});
var mySubnets = Vmc.GetCustomerSubnets.Invoke(new()
{
ConnectedAccountId = myAccounts.Apply(getConnectedAccountsResult => getConnectedAccountsResult.Id),
Region = @var.Sddc_region,
});
var cluster_1 = new Vmc.Cluster("cluster-1", new()
{
SddcId = vmc_sddc.Sddc_1.Id,
NumHosts = @var.Num_hosts,
EdrsPolicyType = "cost",
EnableEdrs = true,
MinHosts = 3,
MaxHosts = 8,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vmc.VmcFunctions;
import com.pulumi.vmc.inputs.GetConnectedAccountsArgs;
import com.pulumi.vmc.inputs.GetCustomerSubnetsArgs;
import com.pulumi.vmc.Cluster;
import com.pulumi.vmc.ClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var myAccounts = VmcFunctions.getConnectedAccounts(GetConnectedAccountsArgs.builder()
.accountNumber(var_.aws_account_number())
.build());
final var mySubnets = VmcFunctions.getCustomerSubnets(GetCustomerSubnetsArgs.builder()
.connectedAccountId(myAccounts.applyValue(getConnectedAccountsResult -> getConnectedAccountsResult.id()))
.region(var_.sddc_region())
.build());
var cluster_1 = new Cluster("cluster-1", ClusterArgs.builder()
.sddcId(vmc_sddc.sddc_1().id())
.numHosts(var_.num_hosts())
.edrsPolicyType("cost")
.enableEdrs(true)
.minHosts(3)
.maxHosts(8)
.build());
}
}
resources:
cluster-1:
type: vmc:Cluster
properties:
sddcId: ${vmc_sddc.sddc_1.id}
numHosts: ${var.num_hosts}
edrsPolicyType: cost
enableEdrs: true
minHosts: 3
maxHosts: 8
variables:
myAccounts:
fn::invoke:
function: vmc:getConnectedAccounts
arguments:
accountNumber: ${var.aws_account_number}
mySubnets:
fn::invoke:
function: vmc:getCustomerSubnets
arguments:
connectedAccountId: ${myAccounts.id}
region: ${var.sddc_region}
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
num_hosts: Optional[float] = None,
sddc_id: Optional[str] = None,
cluster_id: Optional[str] = None,
edrs_policy_type: Optional[str] = None,
enable_edrs: Optional[bool] = None,
host_cpu_cores_count: Optional[float] = None,
host_instance_type: Optional[str] = None,
max_hosts: Optional[float] = None,
microsoft_licensing_configs: Optional[Sequence[ClusterMicrosoftLicensingConfigArgs]] = None,
min_hosts: Optional[float] = None,
timeouts: Optional[ClusterTimeoutsArgs] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: vmc:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var clusterResource = new Vmc.Cluster("clusterResource", new()
{
NumHosts = 0,
SddcId = "string",
ClusterId = "string",
EdrsPolicyType = "string",
EnableEdrs = false,
HostCpuCoresCount = 0,
HostInstanceType = "string",
MaxHosts = 0,
MicrosoftLicensingConfigs = new[]
{
new Vmc.Inputs.ClusterMicrosoftLicensingConfigArgs
{
AcademicLicense = false,
MssqlLicensing = "string",
WindowsLicensing = "string",
},
},
MinHosts = 0,
Timeouts = new Vmc.Inputs.ClusterTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := vmc.NewCluster(ctx, "clusterResource", &vmc.ClusterArgs{
NumHosts: pulumi.Float64(0),
SddcId: pulumi.String("string"),
ClusterId: pulumi.String("string"),
EdrsPolicyType: pulumi.String("string"),
EnableEdrs: pulumi.Bool(false),
HostCpuCoresCount: pulumi.Float64(0),
HostInstanceType: pulumi.String("string"),
MaxHosts: pulumi.Float64(0),
MicrosoftLicensingConfigs: vmc.ClusterMicrosoftLicensingConfigArray{
&vmc.ClusterMicrosoftLicensingConfigArgs{
AcademicLicense: pulumi.Bool(false),
MssqlLicensing: pulumi.String("string"),
WindowsLicensing: pulumi.String("string"),
},
},
MinHosts: pulumi.Float64(0),
Timeouts: &vmc.ClusterTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var clusterResource = new Cluster("clusterResource", ClusterArgs.builder()
.numHosts(0)
.sddcId("string")
.clusterId("string")
.edrsPolicyType("string")
.enableEdrs(false)
.hostCpuCoresCount(0)
.hostInstanceType("string")
.maxHosts(0)
.microsoftLicensingConfigs(ClusterMicrosoftLicensingConfigArgs.builder()
.academicLicense(false)
.mssqlLicensing("string")
.windowsLicensing("string")
.build())
.minHosts(0)
.timeouts(ClusterTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
cluster_resource = vmc.Cluster("clusterResource",
num_hosts=0,
sddc_id="string",
cluster_id="string",
edrs_policy_type="string",
enable_edrs=False,
host_cpu_cores_count=0,
host_instance_type="string",
max_hosts=0,
microsoft_licensing_configs=[{
"academic_license": False,
"mssql_licensing": "string",
"windows_licensing": "string",
}],
min_hosts=0,
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const clusterResource = new vmc.Cluster("clusterResource", {
numHosts: 0,
sddcId: "string",
clusterId: "string",
edrsPolicyType: "string",
enableEdrs: false,
hostCpuCoresCount: 0,
hostInstanceType: "string",
maxHosts: 0,
microsoftLicensingConfigs: [{
academicLicense: false,
mssqlLicensing: "string",
windowsLicensing: "string",
}],
minHosts: 0,
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: vmc:Cluster
properties:
clusterId: string
edrsPolicyType: string
enableEdrs: false
hostCpuCoresCount: 0
hostInstanceType: string
maxHosts: 0
microsoftLicensingConfigs:
- academicLicense: false
mssqlLicensing: string
windowsLicensing: string
minHosts: 0
numHosts: 0
sddcId: string
timeouts:
create: string
delete: string
update: string
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Cluster resource accepts the following input properties:
- Num
Hosts double - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- Sddc
Id string - SDDC identifier.
- Cluster
Id string - The cluster identifier.
- Edrs
Policy stringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- Enable
Edrs bool - True if EDRS is enabled
- Host
Cpu doubleCores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- Host
Instance stringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - Max
Hosts double - The maximum number of hosts that the cluster can scale out to.
- Microsoft
Licensing List<ClusterConfigs Microsoft Licensing Config> - Indicates the desired licensing support, if any, of Microsoft software.
- Min
Hosts double - The minimum number of hosts that the cluster can scale in to.
- Timeouts
Cluster
Timeouts
- Num
Hosts float64 - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- Sddc
Id string - SDDC identifier.
- Cluster
Id string - The cluster identifier.
- Edrs
Policy stringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- Enable
Edrs bool - True if EDRS is enabled
- Host
Cpu float64Cores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- Host
Instance stringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - Max
Hosts float64 - The maximum number of hosts that the cluster can scale out to.
- Microsoft
Licensing []ClusterConfigs Microsoft Licensing Config Args - Indicates the desired licensing support, if any, of Microsoft software.
- Min
Hosts float64 - The minimum number of hosts that the cluster can scale in to.
- Timeouts
Cluster
Timeouts Args
- num
Hosts Double - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- sddc
Id String - SDDC identifier.
- cluster
Id String - The cluster identifier.
- edrs
Policy StringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- enable
Edrs Boolean - True if EDRS is enabled
- host
Cpu DoubleCores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- host
Instance StringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - max
Hosts Double - The maximum number of hosts that the cluster can scale out to.
- microsoft
Licensing List<ClusterConfigs Microsoft Licensing Config> - Indicates the desired licensing support, if any, of Microsoft software.
- min
Hosts Double - The minimum number of hosts that the cluster can scale in to.
- timeouts
Cluster
Timeouts
- num
Hosts number - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- sddc
Id string - SDDC identifier.
- cluster
Id string - The cluster identifier.
- edrs
Policy stringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- enable
Edrs boolean - True if EDRS is enabled
- host
Cpu numberCores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- host
Instance stringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - max
Hosts number - The maximum number of hosts that the cluster can scale out to.
- microsoft
Licensing ClusterConfigs Microsoft Licensing Config[] - Indicates the desired licensing support, if any, of Microsoft software.
- min
Hosts number - The minimum number of hosts that the cluster can scale in to.
- timeouts
Cluster
Timeouts
- num_
hosts float - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- sddc_
id str - SDDC identifier.
- cluster_
id str - The cluster identifier.
- edrs_
policy_ strtype - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- enable_
edrs bool - True if EDRS is enabled
- host_
cpu_ floatcores_ count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- host_
instance_ strtype - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - max_
hosts float - The maximum number of hosts that the cluster can scale out to.
- microsoft_
licensing_ Sequence[Clusterconfigs Microsoft Licensing Config Args] - Indicates the desired licensing support, if any, of Microsoft software.
- min_
hosts float - The minimum number of hosts that the cluster can scale in to.
- timeouts
Cluster
Timeouts Args
- num
Hosts Number - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- sddc
Id String - SDDC identifier.
- cluster
Id String - The cluster identifier.
- edrs
Policy StringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- enable
Edrs Boolean - True if EDRS is enabled
- host
Cpu NumberCores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- host
Instance StringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - max
Hosts Number - The maximum number of hosts that the cluster can scale out to.
- microsoft
Licensing List<Property Map>Configs - Indicates the desired licensing support, if any, of Microsoft software.
- min
Hosts Number - The minimum number of hosts that the cluster can scale in to.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Cluster
Info Dictionary<string, string> - Information about cluster such as name, state, host instance type, and cluster identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cluster
Info map[string]string - Information about cluster such as name, state, host instance type, and cluster identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- cluster
Info Map<String,String> - Information about cluster such as name, state, host instance type, and cluster identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- cluster
Info {[key: string]: string} - Information about cluster such as name, state, host instance type, and cluster identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- cluster_
info Mapping[str, str] - Information about cluster such as name, state, host instance type, and cluster identifier.
- id str
- The provider-assigned unique ID for this managed resource.
- cluster
Info Map<String> - Information about cluster such as name, state, host instance type, and cluster identifier.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Cluster Resource
Get an existing Cluster 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?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cluster_info: Optional[Mapping[str, str]] = None,
edrs_policy_type: Optional[str] = None,
enable_edrs: Optional[bool] = None,
host_cpu_cores_count: Optional[float] = None,
host_instance_type: Optional[str] = None,
max_hosts: Optional[float] = None,
microsoft_licensing_configs: Optional[Sequence[ClusterMicrosoftLicensingConfigArgs]] = None,
min_hosts: Optional[float] = None,
num_hosts: Optional[float] = None,
sddc_id: Optional[str] = None,
timeouts: Optional[ClusterTimeoutsArgs] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
resources: _: type: vmc:Cluster get: id: ${id}
- 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.
- 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.
- Cluster
Id string - The cluster identifier.
- Cluster
Info Dictionary<string, string> - Information about cluster such as name, state, host instance type, and cluster identifier.
- Edrs
Policy stringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- Enable
Edrs bool - True if EDRS is enabled
- Host
Cpu doubleCores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- Host
Instance stringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - Max
Hosts double - The maximum number of hosts that the cluster can scale out to.
- Microsoft
Licensing List<ClusterConfigs Microsoft Licensing Config> - Indicates the desired licensing support, if any, of Microsoft software.
- Min
Hosts double - The minimum number of hosts that the cluster can scale in to.
- Num
Hosts double - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- Sddc
Id string - SDDC identifier.
- Timeouts
Cluster
Timeouts
- Cluster
Id string - The cluster identifier.
- Cluster
Info map[string]string - Information about cluster such as name, state, host instance type, and cluster identifier.
- Edrs
Policy stringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- Enable
Edrs bool - True if EDRS is enabled
- Host
Cpu float64Cores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- Host
Instance stringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - Max
Hosts float64 - The maximum number of hosts that the cluster can scale out to.
- Microsoft
Licensing []ClusterConfigs Microsoft Licensing Config Args - Indicates the desired licensing support, if any, of Microsoft software.
- Min
Hosts float64 - The minimum number of hosts that the cluster can scale in to.
- Num
Hosts float64 - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- Sddc
Id string - SDDC identifier.
- Timeouts
Cluster
Timeouts Args
- cluster
Id String - The cluster identifier.
- cluster
Info Map<String,String> - Information about cluster such as name, state, host instance type, and cluster identifier.
- edrs
Policy StringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- enable
Edrs Boolean - True if EDRS is enabled
- host
Cpu DoubleCores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- host
Instance StringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - max
Hosts Double - The maximum number of hosts that the cluster can scale out to.
- microsoft
Licensing List<ClusterConfigs Microsoft Licensing Config> - Indicates the desired licensing support, if any, of Microsoft software.
- min
Hosts Double - The minimum number of hosts that the cluster can scale in to.
- num
Hosts Double - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- sddc
Id String - SDDC identifier.
- timeouts
Cluster
Timeouts
- cluster
Id string - The cluster identifier.
- cluster
Info {[key: string]: string} - Information about cluster such as name, state, host instance type, and cluster identifier.
- edrs
Policy stringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- enable
Edrs boolean - True if EDRS is enabled
- host
Cpu numberCores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- host
Instance stringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - max
Hosts number - The maximum number of hosts that the cluster can scale out to.
- microsoft
Licensing ClusterConfigs Microsoft Licensing Config[] - Indicates the desired licensing support, if any, of Microsoft software.
- min
Hosts number - The minimum number of hosts that the cluster can scale in to.
- num
Hosts number - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- sddc
Id string - SDDC identifier.
- timeouts
Cluster
Timeouts
- cluster_
id str - The cluster identifier.
- cluster_
info Mapping[str, str] - Information about cluster such as name, state, host instance type, and cluster identifier.
- edrs_
policy_ strtype - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- enable_
edrs bool - True if EDRS is enabled
- host_
cpu_ floatcores_ count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- host_
instance_ strtype - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - max_
hosts float - The maximum number of hosts that the cluster can scale out to.
- microsoft_
licensing_ Sequence[Clusterconfigs Microsoft Licensing Config Args] - Indicates the desired licensing support, if any, of Microsoft software.
- min_
hosts float - The minimum number of hosts that the cluster can scale in to.
- num_
hosts float - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- sddc_
id str - SDDC identifier.
- timeouts
Cluster
Timeouts Args
- cluster
Id String - The cluster identifier.
- cluster
Info Map<String> - Information about cluster such as name, state, host instance type, and cluster identifier.
- edrs
Policy StringType - The EDRS policy type. This can either be 'cost', 'performance', 'storage-scaleup' or 'rapid-scaleup'. Default : storage-scaleup.
- enable
Edrs Boolean - True if EDRS is enabled
- host
Cpu NumberCores Count - Customize CPU cores on ESX hosts in a cluster. Specify number of cores to be enabled on ESX hosts in a cluster.
- host
Instance StringType - The instance type for the ESX hosts added to
this cluster. Allowed values include:
I3_METAL
,I3EN_METAL
,I4I_METAL
, andR5_METAL
. Defaults toI3_METAL
. - max
Hosts Number - The maximum number of hosts that the cluster can scale out to.
- microsoft
Licensing List<Property Map>Configs - Indicates the desired licensing support, if any, of Microsoft software.
- min
Hosts Number - The minimum number of hosts that the cluster can scale in to.
- num
Hosts Number - Number of ESX hosts in the cluster. The number of ESX hosts must be between 2-16 hosts for a cluster.
- sddc
Id String - SDDC identifier.
- timeouts Property Map
Supporting Types
ClusterMicrosoftLicensingConfig, ClusterMicrosoftLicensingConfigArgs
- Academic
License bool - Flag to identify if it is Academic Standard or Commercial Standard License.
- Mssql
Licensing string - The status of MSSQL licensing for this SDDC’s clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- Windows
Licensing string - The status of Windows licensing for this SDDC's clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- Academic
License bool - Flag to identify if it is Academic Standard or Commercial Standard License.
- Mssql
Licensing string - The status of MSSQL licensing for this SDDC’s clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- Windows
Licensing string - The status of Windows licensing for this SDDC's clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- academic
License Boolean - Flag to identify if it is Academic Standard or Commercial Standard License.
- mssql
Licensing String - The status of MSSQL licensing for this SDDC’s clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- windows
Licensing String - The status of Windows licensing for this SDDC's clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- academic
License boolean - Flag to identify if it is Academic Standard or Commercial Standard License.
- mssql
Licensing string - The status of MSSQL licensing for this SDDC’s clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- windows
Licensing string - The status of Windows licensing for this SDDC's clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- academic_
license bool - Flag to identify if it is Academic Standard or Commercial Standard License.
- mssql_
licensing str - The status of MSSQL licensing for this SDDC’s clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- windows_
licensing str - The status of Windows licensing for this SDDC's clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- academic
License Boolean - Flag to identify if it is Academic Standard or Commercial Standard License.
- mssql
Licensing String - The status of MSSQL licensing for this SDDC’s clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
- windows
Licensing String - The status of Windows licensing for this SDDC's clusters. Possible values : enabled, ENABLED, disabled, DISABLED.
ClusterTimeouts, ClusterTimeoutsArgs
Import
Import the using the id
and sddc_id
.
$ pulumi import vmc:index/cluster:Cluster cluster_1 id,sddc_id`
For example:
$ pulumi import vmc:index/cluster:Cluster cluster_1 afe7a0fd-3f0a-48b2-9ddb-0489c22732ae,45495963-d24d-469b-830a-9003bfe132b5`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vmc vmware/terraform-provider-vmc
- License
- Notes
- This Pulumi package is based on the
vmc
Terraform Provider.