1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eflo
  5. Cluster
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.eflo.Cluster

Explore with Pulumi AI

Provides a Eflo Cluster resource.

Large computing cluster.

For information about Eflo Cluster and how to use it, see What is Cluster.

NOTE: Available since v1.246.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.resourcemanager.getResourceGroups({});
const createVpc = new alicloud.vpc.Network("create_vpc", {
    cidrBlock: "192.168.0.0/16",
    vpcName: "cluster-resoure-example",
});
const createVswitch = new alicloud.vpc.Switch("create_vswitch", {
    vpcId: createVpc.id,
    zoneId: "cn-hangzhou-b",
    cidrBlock: "192.168.0.0/24",
    vswitchName: "cluster-resoure-example",
});
const createSecurityGroup = new alicloud.ecs.SecurityGroup("create_security_group", {
    description: "sg",
    securityGroupName: "cluster-resoure-example",
    securityGroupType: "normal",
    vpcId: createVpc.id,
});
const defaultCluster = new alicloud.eflo.Cluster("default", {
    clusterDescription: "cluster-resource-example",
    openEniJumboFrame: false,
    hpnZone: "B1",
    nimizVswitches: ["1111"],
    ignoreFailedNodeTasks: true,
    resourceGroupId: _default.then(_default => _default.ids?.[1]),
    nodeGroups: [{
        imageId: "i198448731735114628708",
        zoneId: "cn-hangzhou-b",
        nodeGroupName: "cluster-resource-example",
        nodeGroupDescription: "cluster-resource-example",
        machineType: "efg2.C48cA3sen",
    }],
    networks: {
        tailIpVersion: "ipv4",
        newVpdInfo: {
            monitorVpcId: createVpc.id,
            monitorVswitchId: createVswitch.id,
            cenId: "11111",
            cloudLinkId: "1111",
            vpdCidr: "111",
            vpdSubnets: [{
                zoneId: "1111",
                subnetCidr: "111",
                subnetType: "111",
            }],
            cloudLinkCidr: "169.254.128.0/23",
        },
        securityGroupId: createSecurityGroup.id,
        vswitchZoneId: "cn-hangzhou-b",
        vpcId: createVpc.id,
        vswitchId: createVswitch.id,
        vpdInfo: {
            vpdId: "111",
            vpdSubnets: ["111"],
        },
        ipAllocationPolicies: [{
            bondPolicy: {
                bondDefaultSubnet: "111",
                bonds: [{
                    name: "111",
                    subnet: "111",
                }],
            },
            machineTypePolicies: [{
                bonds: [{
                    name: "111",
                    subnet: "111",
                }],
                machineType: "111",
            }],
            nodePolicies: [{
                bonds: [{
                    name: "111",
                    subnet: "111",
                }],
                nodeId: "111",
            }],
        }],
    },
    clusterName: "tfacceflo7165",
    clusterType: "Lite",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
default = alicloud.resourcemanager.get_resource_groups()
create_vpc = alicloud.vpc.Network("create_vpc",
    cidr_block="192.168.0.0/16",
    vpc_name="cluster-resoure-example")
create_vswitch = alicloud.vpc.Switch("create_vswitch",
    vpc_id=create_vpc.id,
    zone_id="cn-hangzhou-b",
    cidr_block="192.168.0.0/24",
    vswitch_name="cluster-resoure-example")
create_security_group = alicloud.ecs.SecurityGroup("create_security_group",
    description="sg",
    security_group_name="cluster-resoure-example",
    security_group_type="normal",
    vpc_id=create_vpc.id)
default_cluster = alicloud.eflo.Cluster("default",
    cluster_description="cluster-resource-example",
    open_eni_jumbo_frame=False,
    hpn_zone="B1",
    nimiz_vswitches=["1111"],
    ignore_failed_node_tasks=True,
    resource_group_id=default.ids[1],
    node_groups=[{
        "image_id": "i198448731735114628708",
        "zone_id": "cn-hangzhou-b",
        "node_group_name": "cluster-resource-example",
        "node_group_description": "cluster-resource-example",
        "machine_type": "efg2.C48cA3sen",
    }],
    networks={
        "tail_ip_version": "ipv4",
        "new_vpd_info": {
            "monitor_vpc_id": create_vpc.id,
            "monitor_vswitch_id": create_vswitch.id,
            "cen_id": "11111",
            "cloud_link_id": "1111",
            "vpd_cidr": "111",
            "vpd_subnets": [{
                "zone_id": "1111",
                "subnet_cidr": "111",
                "subnet_type": "111",
            }],
            "cloud_link_cidr": "169.254.128.0/23",
        },
        "security_group_id": create_security_group.id,
        "vswitch_zone_id": "cn-hangzhou-b",
        "vpc_id": create_vpc.id,
        "vswitch_id": create_vswitch.id,
        "vpd_info": {
            "vpd_id": "111",
            "vpd_subnets": ["111"],
        },
        "ip_allocation_policies": [{
            "bond_policy": {
                "bond_default_subnet": "111",
                "bonds": [{
                    "name": "111",
                    "subnet": "111",
                }],
            },
            "machine_type_policies": [{
                "bonds": [{
                    "name": "111",
                    "subnet": "111",
                }],
                "machine_type": "111",
            }],
            "node_policies": [{
                "bonds": [{
                    "name": "111",
                    "subnet": "111",
                }],
                "node_id": "111",
            }],
        }],
    },
    cluster_name="tfacceflo7165",
    cluster_type="Lite")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eflo"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
		if err != nil {
			return err
		}
		createVpc, err := vpc.NewNetwork(ctx, "create_vpc", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("192.168.0.0/16"),
			VpcName:   pulumi.String("cluster-resoure-example"),
		})
		if err != nil {
			return err
		}
		createVswitch, err := vpc.NewSwitch(ctx, "create_vswitch", &vpc.SwitchArgs{
			VpcId:       createVpc.ID(),
			ZoneId:      pulumi.String("cn-hangzhou-b"),
			CidrBlock:   pulumi.String("192.168.0.0/24"),
			VswitchName: pulumi.String("cluster-resoure-example"),
		})
		if err != nil {
			return err
		}
		createSecurityGroup, err := ecs.NewSecurityGroup(ctx, "create_security_group", &ecs.SecurityGroupArgs{
			Description:       pulumi.String("sg"),
			SecurityGroupName: pulumi.String("cluster-resoure-example"),
			SecurityGroupType: pulumi.String("normal"),
			VpcId:             createVpc.ID(),
		})
		if err != nil {
			return err
		}
		_, err = eflo.NewCluster(ctx, "default", &eflo.ClusterArgs{
			ClusterDescription: pulumi.String("cluster-resource-example"),
			OpenEniJumboFrame:  pulumi.Bool(false),
			HpnZone:            pulumi.String("B1"),
			NimizVswitches: pulumi.StringArray{
				pulumi.String("1111"),
			},
			IgnoreFailedNodeTasks: pulumi.Bool(true),
			ResourceGroupId:       pulumi.String(_default.Ids[1]),
			NodeGroups: eflo.ClusterNodeGroupArray{
				&eflo.ClusterNodeGroupArgs{
					ImageId:              pulumi.String("i198448731735114628708"),
					ZoneId:               pulumi.String("cn-hangzhou-b"),
					NodeGroupName:        pulumi.String("cluster-resource-example"),
					NodeGroupDescription: pulumi.String("cluster-resource-example"),
					MachineType:          pulumi.String("efg2.C48cA3sen"),
				},
			},
			Networks: &eflo.ClusterNetworksArgs{
				TailIpVersion: pulumi.String("ipv4"),
				NewVpdInfo: &eflo.ClusterNetworksNewVpdInfoArgs{
					MonitorVpcId:     createVpc.ID(),
					MonitorVswitchId: createVswitch.ID(),
					CenId:            pulumi.String("11111"),
					CloudLinkId:      pulumi.String("1111"),
					VpdCidr:          pulumi.String("111"),
					VpdSubnets: eflo.ClusterNetworksNewVpdInfoVpdSubnetArray{
						&eflo.ClusterNetworksNewVpdInfoVpdSubnetArgs{
							ZoneId:     pulumi.String("1111"),
							SubnetCidr: pulumi.String("111"),
							SubnetType: pulumi.String("111"),
						},
					},
					CloudLinkCidr: pulumi.String("169.254.128.0/23"),
				},
				SecurityGroupId: createSecurityGroup.ID(),
				VswitchZoneId:   pulumi.String("cn-hangzhou-b"),
				VpcId:           createVpc.ID(),
				VswitchId:       createVswitch.ID(),
				VpdInfo: &eflo.ClusterNetworksVpdInfoArgs{
					VpdId: pulumi.String("111"),
					VpdSubnets: pulumi.StringArray{
						pulumi.String("111"),
					},
				},
				IpAllocationPolicies: eflo.ClusterNetworksIpAllocationPolicyArray{
					&eflo.ClusterNetworksIpAllocationPolicyArgs{
						BondPolicy: &eflo.ClusterNetworksIpAllocationPolicyBondPolicyArgs{
							BondDefaultSubnet: pulumi.String("111"),
							Bonds: eflo.ClusterNetworksIpAllocationPolicyBondPolicyBondArray{
								&eflo.ClusterNetworksIpAllocationPolicyBondPolicyBondArgs{
									Name:   pulumi.String("111"),
									Subnet: pulumi.String("111"),
								},
							},
						},
						MachineTypePolicies: eflo.ClusterNetworksIpAllocationPolicyMachineTypePolicyArray{
							&eflo.ClusterNetworksIpAllocationPolicyMachineTypePolicyArgs{
								Bonds: eflo.ClusterNetworksIpAllocationPolicyMachineTypePolicyBondArray{
									&eflo.ClusterNetworksIpAllocationPolicyMachineTypePolicyBondArgs{
										Name:   pulumi.String("111"),
										Subnet: pulumi.String("111"),
									},
								},
								MachineType: pulumi.String("111"),
							},
						},
						NodePolicies: eflo.ClusterNetworksIpAllocationPolicyNodePolicyArray{
							&eflo.ClusterNetworksIpAllocationPolicyNodePolicyArgs{
								Bonds: eflo.ClusterNetworksIpAllocationPolicyNodePolicyBondArray{
									&eflo.ClusterNetworksIpAllocationPolicyNodePolicyBondArgs{
										Name:   pulumi.String("111"),
										Subnet: pulumi.String("111"),
									},
								},
								NodeId: pulumi.String("111"),
							},
						},
					},
				},
			},
			ClusterName: pulumi.String("tfacceflo7165"),
			ClusterType: pulumi.String("Lite"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "terraform-example";
    var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();

    var createVpc = new AliCloud.Vpc.Network("create_vpc", new()
    {
        CidrBlock = "192.168.0.0/16",
        VpcName = "cluster-resoure-example",
    });

    var createVswitch = new AliCloud.Vpc.Switch("create_vswitch", new()
    {
        VpcId = createVpc.Id,
        ZoneId = "cn-hangzhou-b",
        CidrBlock = "192.168.0.0/24",
        VswitchName = "cluster-resoure-example",
    });

    var createSecurityGroup = new AliCloud.Ecs.SecurityGroup("create_security_group", new()
    {
        Description = "sg",
        SecurityGroupName = "cluster-resoure-example",
        SecurityGroupType = "normal",
        VpcId = createVpc.Id,
    });

    var defaultCluster = new AliCloud.Eflo.Cluster("default", new()
    {
        ClusterDescription = "cluster-resource-example",
        OpenEniJumboFrame = false,
        HpnZone = "B1",
        NimizVswitches = new[]
        {
            "1111",
        },
        IgnoreFailedNodeTasks = true,
        ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[1])),
        NodeGroups = new[]
        {
            new AliCloud.Eflo.Inputs.ClusterNodeGroupArgs
            {
                ImageId = "i198448731735114628708",
                ZoneId = "cn-hangzhou-b",
                NodeGroupName = "cluster-resource-example",
                NodeGroupDescription = "cluster-resource-example",
                MachineType = "efg2.C48cA3sen",
            },
        },
        Networks = new AliCloud.Eflo.Inputs.ClusterNetworksArgs
        {
            TailIpVersion = "ipv4",
            NewVpdInfo = new AliCloud.Eflo.Inputs.ClusterNetworksNewVpdInfoArgs
            {
                MonitorVpcId = createVpc.Id,
                MonitorVswitchId = createVswitch.Id,
                CenId = "11111",
                CloudLinkId = "1111",
                VpdCidr = "111",
                VpdSubnets = new[]
                {
                    new AliCloud.Eflo.Inputs.ClusterNetworksNewVpdInfoVpdSubnetArgs
                    {
                        ZoneId = "1111",
                        SubnetCidr = "111",
                        SubnetType = "111",
                    },
                },
                CloudLinkCidr = "169.254.128.0/23",
            },
            SecurityGroupId = createSecurityGroup.Id,
            VswitchZoneId = "cn-hangzhou-b",
            VpcId = createVpc.Id,
            VswitchId = createVswitch.Id,
            VpdInfo = new AliCloud.Eflo.Inputs.ClusterNetworksVpdInfoArgs
            {
                VpdId = "111",
                VpdSubnets = new[]
                {
                    "111",
                },
            },
            IpAllocationPolicies = new[]
            {
                new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyArgs
                {
                    BondPolicy = new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyBondPolicyArgs
                    {
                        BondDefaultSubnet = "111",
                        Bonds = new[]
                        {
                            new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyBondPolicyBondArgs
                            {
                                Name = "111",
                                Subnet = "111",
                            },
                        },
                    },
                    MachineTypePolicies = new[]
                    {
                        new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyMachineTypePolicyArgs
                        {
                            Bonds = new[]
                            {
                                new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyMachineTypePolicyBondArgs
                                {
                                    Name = "111",
                                    Subnet = "111",
                                },
                            },
                            MachineType = "111",
                        },
                    },
                    NodePolicies = new[]
                    {
                        new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyNodePolicyArgs
                        {
                            Bonds = new[]
                            {
                                new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyNodePolicyBondArgs
                                {
                                    Name = "111",
                                    Subnet = "111",
                                },
                            },
                            NodeId = "111",
                        },
                    },
                },
            },
        },
        ClusterName = "tfacceflo7165",
        ClusterType = "Lite",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.eflo.Cluster;
import com.pulumi.alicloud.eflo.ClusterArgs;
import com.pulumi.alicloud.eflo.inputs.ClusterNodeGroupArgs;
import com.pulumi.alicloud.eflo.inputs.ClusterNetworksArgs;
import com.pulumi.alicloud.eflo.inputs.ClusterNetworksNewVpdInfoArgs;
import com.pulumi.alicloud.eflo.inputs.ClusterNetworksVpdInfoArgs;
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 config = ctx.config();
        final var name = config.get("name").orElse("terraform-example");
        final var default = ResourcemanagerFunctions.getResourceGroups();

        var createVpc = new Network("createVpc", NetworkArgs.builder()
            .cidrBlock("192.168.0.0/16")
            .vpcName("cluster-resoure-example")
            .build());

        var createVswitch = new Switch("createVswitch", SwitchArgs.builder()
            .vpcId(createVpc.id())
            .zoneId("cn-hangzhou-b")
            .cidrBlock("192.168.0.0/24")
            .vswitchName("cluster-resoure-example")
            .build());

        var createSecurityGroup = new SecurityGroup("createSecurityGroup", SecurityGroupArgs.builder()
            .description("sg")
            .securityGroupName("cluster-resoure-example")
            .securityGroupType("normal")
            .vpcId(createVpc.id())
            .build());

        var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
            .clusterDescription("cluster-resource-example")
            .openEniJumboFrame("false")
            .hpnZone("B1")
            .nimizVswitches("1111")
            .ignoreFailedNodeTasks("true")
            .resourceGroupId(default_.ids()[1])
            .nodeGroups(ClusterNodeGroupArgs.builder()
                .imageId("i198448731735114628708")
                .zoneId("cn-hangzhou-b")
                .nodeGroupName("cluster-resource-example")
                .nodeGroupDescription("cluster-resource-example")
                .machineType("efg2.C48cA3sen")
                .build())
            .networks(ClusterNetworksArgs.builder()
                .tailIpVersion("ipv4")
                .newVpdInfo(ClusterNetworksNewVpdInfoArgs.builder()
                    .monitorVpcId(createVpc.id())
                    .monitorVswitchId(createVswitch.id())
                    .cenId("11111")
                    .cloudLinkId("1111")
                    .vpdCidr("111")
                    .vpdSubnets(ClusterNetworksNewVpdInfoVpdSubnetArgs.builder()
                        .zoneId("1111")
                        .subnetCidr("111")
                        .subnetType("111")
                        .build())
                    .cloudLinkCidr("169.254.128.0/23")
                    .build())
                .securityGroupId(createSecurityGroup.id())
                .vswitchZoneId("cn-hangzhou-b")
                .vpcId(createVpc.id())
                .vswitchId(createVswitch.id())
                .vpdInfo(ClusterNetworksVpdInfoArgs.builder()
                    .vpdId("111")
                    .vpdSubnets("111")
                    .build())
                .ipAllocationPolicies(ClusterNetworksIpAllocationPolicyArgs.builder()
                    .bondPolicy(ClusterNetworksIpAllocationPolicyBondPolicyArgs.builder()
                        .bondDefaultSubnet("111")
                        .bonds(ClusterNetworksIpAllocationPolicyBondPolicyBondArgs.builder()
                            .name("111")
                            .subnet("111")
                            .build())
                        .build())
                    .machineTypePolicies(ClusterNetworksIpAllocationPolicyMachineTypePolicyArgs.builder()
                        .bonds(ClusterNetworksIpAllocationPolicyMachineTypePolicyBondArgs.builder()
                            .name("111")
                            .subnet("111")
                            .build())
                        .machineType("111")
                        .build())
                    .nodePolicies(ClusterNetworksIpAllocationPolicyNodePolicyArgs.builder()
                        .bonds(ClusterNetworksIpAllocationPolicyNodePolicyBondArgs.builder()
                            .name("111")
                            .subnet("111")
                            .build())
                        .nodeId("111")
                        .build())
                    .build())
                .build())
            .clusterName("tfacceflo7165")
            .clusterType("Lite")
            .build());

    }
}
Copy
configuration:
  # Before executing this example, you need to confirm with the product team whether the resources are sufficient or you will get an error message with "Failure to check order before create instance"
  name:
    type: string
    default: terraform-example
resources:
  createVpc:
    type: alicloud:vpc:Network
    name: create_vpc
    properties:
      cidrBlock: 192.168.0.0/16
      vpcName: cluster-resoure-example
  createVswitch:
    type: alicloud:vpc:Switch
    name: create_vswitch
    properties:
      vpcId: ${createVpc.id}
      zoneId: cn-hangzhou-b
      cidrBlock: 192.168.0.0/24
      vswitchName: cluster-resoure-example
  createSecurityGroup:
    type: alicloud:ecs:SecurityGroup
    name: create_security_group
    properties:
      description: sg
      securityGroupName: cluster-resoure-example
      securityGroupType: normal
      vpcId: ${createVpc.id}
  defaultCluster:
    type: alicloud:eflo:Cluster
    name: default
    properties:
      clusterDescription: cluster-resource-example
      openEniJumboFrame: 'false'
      hpnZone: B1
      nimizVswitches:
        - '1111'
      ignoreFailedNodeTasks: 'true'
      resourceGroupId: ${default.ids[1]}
      nodeGroups:
        - imageId: i198448731735114628708
          zoneId: cn-hangzhou-b
          nodeGroupName: cluster-resource-example
          nodeGroupDescription: cluster-resource-example
          machineType: efg2.C48cA3sen
      networks:
        tailIpVersion: ipv4
        newVpdInfo:
          monitorVpcId: ${createVpc.id}
          monitorVswitchId: ${createVswitch.id}
          cenId: '11111'
          cloudLinkId: '1111'
          vpdCidr: '111'
          vpdSubnets:
            - zoneId: '1111'
              subnetCidr: '111'
              subnetType: '111'
          cloudLinkCidr: 169.254.128.0/23
        securityGroupId: ${createSecurityGroup.id}
        vswitchZoneId: cn-hangzhou-b
        vpcId: ${createVpc.id}
        vswitchId: ${createVswitch.id}
        vpdInfo:
          vpdId: '111'
          vpdSubnets:
            - '111'
        ipAllocationPolicies:
          - bondPolicy:
              bondDefaultSubnet: '111'
              bonds:
                - name: '111'
                  subnet: '111'
            machineTypePolicies:
              - bonds:
                  - name: '111'
                    subnet: '111'
                machineType: '111'
            nodePolicies:
              - bonds:
                  - name: '111'
                    subnet: '111'
                nodeId: '111'
      clusterName: tfacceflo7165
      clusterType: Lite
variables:
  default:
    fn::invoke:
      function: alicloud:resourcemanager:getResourceGroups
      arguments: {}
Copy

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: Optional[ClusterArgs] = None,
            opts: Optional[ResourceOptions] = None)

@overload
def Cluster(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            cluster_description: Optional[str] = None,
            cluster_name: Optional[str] = None,
            cluster_type: Optional[str] = None,
            components: Optional[Sequence[ClusterComponentArgs]] = None,
            hpn_zone: Optional[str] = None,
            ignore_failed_node_tasks: Optional[bool] = None,
            networks: Optional[ClusterNetworksArgs] = None,
            nimiz_vswitches: Optional[Sequence[str]] = None,
            node_groups: Optional[Sequence[ClusterNodeGroupArgs]] = None,
            open_eni_jumbo_frame: Optional[bool] = None,
            resource_group_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)
func NewCluster(ctx *Context, name string, args *ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs? args = null, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: alicloud:eflo:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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 exampleclusterResourceResourceFromEflocluster = new AliCloud.Eflo.Cluster("exampleclusterResourceResourceFromEflocluster", new()
{
    ClusterDescription = "string",
    ClusterName = "string",
    ClusterType = "string",
    Components = new[]
    {
        new AliCloud.Eflo.Inputs.ClusterComponentArgs
        {
            ComponentConfig = new AliCloud.Eflo.Inputs.ClusterComponentComponentConfigArgs
            {
                BasicArgs = "string",
                NodeUnits = new[]
                {
                    "string",
                },
            },
            ComponentType = "string",
        },
    },
    HpnZone = "string",
    IgnoreFailedNodeTasks = false,
    Networks = new AliCloud.Eflo.Inputs.ClusterNetworksArgs
    {
        IpAllocationPolicies = new[]
        {
            new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyArgs
            {
                BondPolicy = new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyBondPolicyArgs
                {
                    BondDefaultSubnet = "string",
                    Bonds = new[]
                    {
                        new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyBondPolicyBondArgs
                        {
                            Name = "string",
                            Subnet = "string",
                        },
                    },
                },
                MachineTypePolicies = new[]
                {
                    new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyMachineTypePolicyArgs
                    {
                        Bonds = new[]
                        {
                            new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyMachineTypePolicyBondArgs
                            {
                                Name = "string",
                                Subnet = "string",
                            },
                        },
                        MachineType = "string",
                    },
                },
                NodePolicies = new[]
                {
                    new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyNodePolicyArgs
                    {
                        Bonds = new[]
                        {
                            new AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicyNodePolicyBondArgs
                            {
                                Name = "string",
                                Subnet = "string",
                            },
                        },
                        NodeId = "string",
                    },
                },
            },
        },
        NewVpdInfo = new AliCloud.Eflo.Inputs.ClusterNetworksNewVpdInfoArgs
        {
            CenId = "string",
            CloudLinkCidr = "string",
            CloudLinkId = "string",
            MonitorVpcId = "string",
            MonitorVswitchId = "string",
            VpdCidr = "string",
            VpdSubnets = new[]
            {
                new AliCloud.Eflo.Inputs.ClusterNetworksNewVpdInfoVpdSubnetArgs
                {
                    SubnetCidr = "string",
                    SubnetType = "string",
                    ZoneId = "string",
                },
            },
        },
        SecurityGroupId = "string",
        TailIpVersion = "string",
        VpcId = "string",
        VpdInfo = new AliCloud.Eflo.Inputs.ClusterNetworksVpdInfoArgs
        {
            VpdId = "string",
            VpdSubnets = new[]
            {
                "string",
            },
        },
        VswitchId = "string",
        VswitchZoneId = "string",
    },
    NimizVswitches = new[]
    {
        "string",
    },
    NodeGroups = new[]
    {
        new AliCloud.Eflo.Inputs.ClusterNodeGroupArgs
        {
            ImageId = "string",
            MachineType = "string",
            NodeGroupDescription = "string",
            NodeGroupName = "string",
            Nodes = new[]
            {
                new AliCloud.Eflo.Inputs.ClusterNodeGroupNodeArgs
                {
                    Hostname = "string",
                    LoginPassword = "string",
                    NodeId = "string",
                    VpcId = "string",
                    VswitchId = "string",
                },
            },
            UserData = "string",
            ZoneId = "string",
        },
    },
    OpenEniJumboFrame = false,
    ResourceGroupId = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := eflo.NewCluster(ctx, "exampleclusterResourceResourceFromEflocluster", &eflo.ClusterArgs{
	ClusterDescription: pulumi.String("string"),
	ClusterName:        pulumi.String("string"),
	ClusterType:        pulumi.String("string"),
	Components: eflo.ClusterComponentArray{
		&eflo.ClusterComponentArgs{
			ComponentConfig: &eflo.ClusterComponentComponentConfigArgs{
				BasicArgs: pulumi.String("string"),
				NodeUnits: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
			ComponentType: pulumi.String("string"),
		},
	},
	HpnZone:               pulumi.String("string"),
	IgnoreFailedNodeTasks: pulumi.Bool(false),
	Networks: &eflo.ClusterNetworksArgs{
		IpAllocationPolicies: eflo.ClusterNetworksIpAllocationPolicyArray{
			&eflo.ClusterNetworksIpAllocationPolicyArgs{
				BondPolicy: &eflo.ClusterNetworksIpAllocationPolicyBondPolicyArgs{
					BondDefaultSubnet: pulumi.String("string"),
					Bonds: eflo.ClusterNetworksIpAllocationPolicyBondPolicyBondArray{
						&eflo.ClusterNetworksIpAllocationPolicyBondPolicyBondArgs{
							Name:   pulumi.String("string"),
							Subnet: pulumi.String("string"),
						},
					},
				},
				MachineTypePolicies: eflo.ClusterNetworksIpAllocationPolicyMachineTypePolicyArray{
					&eflo.ClusterNetworksIpAllocationPolicyMachineTypePolicyArgs{
						Bonds: eflo.ClusterNetworksIpAllocationPolicyMachineTypePolicyBondArray{
							&eflo.ClusterNetworksIpAllocationPolicyMachineTypePolicyBondArgs{
								Name:   pulumi.String("string"),
								Subnet: pulumi.String("string"),
							},
						},
						MachineType: pulumi.String("string"),
					},
				},
				NodePolicies: eflo.ClusterNetworksIpAllocationPolicyNodePolicyArray{
					&eflo.ClusterNetworksIpAllocationPolicyNodePolicyArgs{
						Bonds: eflo.ClusterNetworksIpAllocationPolicyNodePolicyBondArray{
							&eflo.ClusterNetworksIpAllocationPolicyNodePolicyBondArgs{
								Name:   pulumi.String("string"),
								Subnet: pulumi.String("string"),
							},
						},
						NodeId: pulumi.String("string"),
					},
				},
			},
		},
		NewVpdInfo: &eflo.ClusterNetworksNewVpdInfoArgs{
			CenId:            pulumi.String("string"),
			CloudLinkCidr:    pulumi.String("string"),
			CloudLinkId:      pulumi.String("string"),
			MonitorVpcId:     pulumi.String("string"),
			MonitorVswitchId: pulumi.String("string"),
			VpdCidr:          pulumi.String("string"),
			VpdSubnets: eflo.ClusterNetworksNewVpdInfoVpdSubnetArray{
				&eflo.ClusterNetworksNewVpdInfoVpdSubnetArgs{
					SubnetCidr: pulumi.String("string"),
					SubnetType: pulumi.String("string"),
					ZoneId:     pulumi.String("string"),
				},
			},
		},
		SecurityGroupId: pulumi.String("string"),
		TailIpVersion:   pulumi.String("string"),
		VpcId:           pulumi.String("string"),
		VpdInfo: &eflo.ClusterNetworksVpdInfoArgs{
			VpdId: pulumi.String("string"),
			VpdSubnets: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		VswitchId:     pulumi.String("string"),
		VswitchZoneId: pulumi.String("string"),
	},
	NimizVswitches: pulumi.StringArray{
		pulumi.String("string"),
	},
	NodeGroups: eflo.ClusterNodeGroupArray{
		&eflo.ClusterNodeGroupArgs{
			ImageId:              pulumi.String("string"),
			MachineType:          pulumi.String("string"),
			NodeGroupDescription: pulumi.String("string"),
			NodeGroupName:        pulumi.String("string"),
			Nodes: eflo.ClusterNodeGroupNodeArray{
				&eflo.ClusterNodeGroupNodeArgs{
					Hostname:      pulumi.String("string"),
					LoginPassword: pulumi.String("string"),
					NodeId:        pulumi.String("string"),
					VpcId:         pulumi.String("string"),
					VswitchId:     pulumi.String("string"),
				},
			},
			UserData: pulumi.String("string"),
			ZoneId:   pulumi.String("string"),
		},
	},
	OpenEniJumboFrame: pulumi.Bool(false),
	ResourceGroupId:   pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var exampleclusterResourceResourceFromEflocluster = new Cluster("exampleclusterResourceResourceFromEflocluster", ClusterArgs.builder()
    .clusterDescription("string")
    .clusterName("string")
    .clusterType("string")
    .components(ClusterComponentArgs.builder()
        .componentConfig(ClusterComponentComponentConfigArgs.builder()
            .basicArgs("string")
            .nodeUnits("string")
            .build())
        .componentType("string")
        .build())
    .hpnZone("string")
    .ignoreFailedNodeTasks(false)
    .networks(ClusterNetworksArgs.builder()
        .ipAllocationPolicies(ClusterNetworksIpAllocationPolicyArgs.builder()
            .bondPolicy(ClusterNetworksIpAllocationPolicyBondPolicyArgs.builder()
                .bondDefaultSubnet("string")
                .bonds(ClusterNetworksIpAllocationPolicyBondPolicyBondArgs.builder()
                    .name("string")
                    .subnet("string")
                    .build())
                .build())
            .machineTypePolicies(ClusterNetworksIpAllocationPolicyMachineTypePolicyArgs.builder()
                .bonds(ClusterNetworksIpAllocationPolicyMachineTypePolicyBondArgs.builder()
                    .name("string")
                    .subnet("string")
                    .build())
                .machineType("string")
                .build())
            .nodePolicies(ClusterNetworksIpAllocationPolicyNodePolicyArgs.builder()
                .bonds(ClusterNetworksIpAllocationPolicyNodePolicyBondArgs.builder()
                    .name("string")
                    .subnet("string")
                    .build())
                .nodeId("string")
                .build())
            .build())
        .newVpdInfo(ClusterNetworksNewVpdInfoArgs.builder()
            .cenId("string")
            .cloudLinkCidr("string")
            .cloudLinkId("string")
            .monitorVpcId("string")
            .monitorVswitchId("string")
            .vpdCidr("string")
            .vpdSubnets(ClusterNetworksNewVpdInfoVpdSubnetArgs.builder()
                .subnetCidr("string")
                .subnetType("string")
                .zoneId("string")
                .build())
            .build())
        .securityGroupId("string")
        .tailIpVersion("string")
        .vpcId("string")
        .vpdInfo(ClusterNetworksVpdInfoArgs.builder()
            .vpdId("string")
            .vpdSubnets("string")
            .build())
        .vswitchId("string")
        .vswitchZoneId("string")
        .build())
    .nimizVswitches("string")
    .nodeGroups(ClusterNodeGroupArgs.builder()
        .imageId("string")
        .machineType("string")
        .nodeGroupDescription("string")
        .nodeGroupName("string")
        .nodes(ClusterNodeGroupNodeArgs.builder()
            .hostname("string")
            .loginPassword("string")
            .nodeId("string")
            .vpcId("string")
            .vswitchId("string")
            .build())
        .userData("string")
        .zoneId("string")
        .build())
    .openEniJumboFrame(false)
    .resourceGroupId("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
examplecluster_resource_resource_from_eflocluster = alicloud.eflo.Cluster("exampleclusterResourceResourceFromEflocluster",
    cluster_description="string",
    cluster_name="string",
    cluster_type="string",
    components=[{
        "component_config": {
            "basic_args": "string",
            "node_units": ["string"],
        },
        "component_type": "string",
    }],
    hpn_zone="string",
    ignore_failed_node_tasks=False,
    networks={
        "ip_allocation_policies": [{
            "bond_policy": {
                "bond_default_subnet": "string",
                "bonds": [{
                    "name": "string",
                    "subnet": "string",
                }],
            },
            "machine_type_policies": [{
                "bonds": [{
                    "name": "string",
                    "subnet": "string",
                }],
                "machine_type": "string",
            }],
            "node_policies": [{
                "bonds": [{
                    "name": "string",
                    "subnet": "string",
                }],
                "node_id": "string",
            }],
        }],
        "new_vpd_info": {
            "cen_id": "string",
            "cloud_link_cidr": "string",
            "cloud_link_id": "string",
            "monitor_vpc_id": "string",
            "monitor_vswitch_id": "string",
            "vpd_cidr": "string",
            "vpd_subnets": [{
                "subnet_cidr": "string",
                "subnet_type": "string",
                "zone_id": "string",
            }],
        },
        "security_group_id": "string",
        "tail_ip_version": "string",
        "vpc_id": "string",
        "vpd_info": {
            "vpd_id": "string",
            "vpd_subnets": ["string"],
        },
        "vswitch_id": "string",
        "vswitch_zone_id": "string",
    },
    nimiz_vswitches=["string"],
    node_groups=[{
        "image_id": "string",
        "machine_type": "string",
        "node_group_description": "string",
        "node_group_name": "string",
        "nodes": [{
            "hostname": "string",
            "login_password": "string",
            "node_id": "string",
            "vpc_id": "string",
            "vswitch_id": "string",
        }],
        "user_data": "string",
        "zone_id": "string",
    }],
    open_eni_jumbo_frame=False,
    resource_group_id="string",
    tags={
        "string": "string",
    })
Copy
const exampleclusterResourceResourceFromEflocluster = new alicloud.eflo.Cluster("exampleclusterResourceResourceFromEflocluster", {
    clusterDescription: "string",
    clusterName: "string",
    clusterType: "string",
    components: [{
        componentConfig: {
            basicArgs: "string",
            nodeUnits: ["string"],
        },
        componentType: "string",
    }],
    hpnZone: "string",
    ignoreFailedNodeTasks: false,
    networks: {
        ipAllocationPolicies: [{
            bondPolicy: {
                bondDefaultSubnet: "string",
                bonds: [{
                    name: "string",
                    subnet: "string",
                }],
            },
            machineTypePolicies: [{
                bonds: [{
                    name: "string",
                    subnet: "string",
                }],
                machineType: "string",
            }],
            nodePolicies: [{
                bonds: [{
                    name: "string",
                    subnet: "string",
                }],
                nodeId: "string",
            }],
        }],
        newVpdInfo: {
            cenId: "string",
            cloudLinkCidr: "string",
            cloudLinkId: "string",
            monitorVpcId: "string",
            monitorVswitchId: "string",
            vpdCidr: "string",
            vpdSubnets: [{
                subnetCidr: "string",
                subnetType: "string",
                zoneId: "string",
            }],
        },
        securityGroupId: "string",
        tailIpVersion: "string",
        vpcId: "string",
        vpdInfo: {
            vpdId: "string",
            vpdSubnets: ["string"],
        },
        vswitchId: "string",
        vswitchZoneId: "string",
    },
    nimizVswitches: ["string"],
    nodeGroups: [{
        imageId: "string",
        machineType: "string",
        nodeGroupDescription: "string",
        nodeGroupName: "string",
        nodes: [{
            hostname: "string",
            loginPassword: "string",
            nodeId: "string",
            vpcId: "string",
            vswitchId: "string",
        }],
        userData: "string",
        zoneId: "string",
    }],
    openEniJumboFrame: false,
    resourceGroupId: "string",
    tags: {
        string: "string",
    },
});
Copy
type: alicloud:eflo:Cluster
properties:
    clusterDescription: string
    clusterName: string
    clusterType: string
    components:
        - componentConfig:
            basicArgs: string
            nodeUnits:
                - string
          componentType: string
    hpnZone: string
    ignoreFailedNodeTasks: false
    networks:
        ipAllocationPolicies:
            - bondPolicy:
                bondDefaultSubnet: string
                bonds:
                    - name: string
                      subnet: string
              machineTypePolicies:
                - bonds:
                    - name: string
                      subnet: string
                  machineType: string
              nodePolicies:
                - bonds:
                    - name: string
                      subnet: string
                  nodeId: string
        newVpdInfo:
            cenId: string
            cloudLinkCidr: string
            cloudLinkId: string
            monitorVpcId: string
            monitorVswitchId: string
            vpdCidr: string
            vpdSubnets:
                - subnetCidr: string
                  subnetType: string
                  zoneId: string
        securityGroupId: string
        tailIpVersion: string
        vpcId: string
        vpdInfo:
            vpdId: string
            vpdSubnets:
                - string
        vswitchId: string
        vswitchZoneId: string
    nimizVswitches:
        - string
    nodeGroups:
        - imageId: string
          machineType: string
          nodeGroupDescription: string
          nodeGroupName: string
          nodes:
            - hostname: string
              loginPassword: string
              nodeId: string
              vpcId: string
              vswitchId: string
          userData: string
          zoneId: string
    openEniJumboFrame: false
    resourceGroupId: string
    tags:
        string: string
Copy

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:

ClusterDescription Changes to this property will trigger replacement. string
cluster description
ClusterName Changes to this property will trigger replacement. string
ClusterName
ClusterType Changes to this property will trigger replacement. string
cluster type
Components List<Pulumi.AliCloud.Eflo.Inputs.ClusterComponent>
Component (software instance) See components below.
HpnZone string
Cluster Number
IgnoreFailedNodeTasks bool
Whether to allow skipping failed nodes. Default value: False
Networks Pulumi.AliCloud.Eflo.Inputs.ClusterNetworks
Network Information See networks below.
NimizVswitches List<string>
Node virtual switch
NodeGroups List<Pulumi.AliCloud.Eflo.Inputs.ClusterNodeGroup>
Node Group List See node_groups below.
OpenEniJumboFrame bool
Whether the network interface supports jumbo frames
ResourceGroupId string
The ID of the resource group
Tags Dictionary<string, string>
tag
ClusterDescription Changes to this property will trigger replacement. string
cluster description
ClusterName Changes to this property will trigger replacement. string
ClusterName
ClusterType Changes to this property will trigger replacement. string
cluster type
Components []ClusterComponentArgs
Component (software instance) See components below.
HpnZone string
Cluster Number
IgnoreFailedNodeTasks bool
Whether to allow skipping failed nodes. Default value: False
Networks ClusterNetworksArgs
Network Information See networks below.
NimizVswitches []string
Node virtual switch
NodeGroups []ClusterNodeGroupArgs
Node Group List See node_groups below.
OpenEniJumboFrame bool
Whether the network interface supports jumbo frames
ResourceGroupId string
The ID of the resource group
Tags map[string]string
tag
clusterDescription Changes to this property will trigger replacement. String
cluster description
clusterName Changes to this property will trigger replacement. String
ClusterName
clusterType Changes to this property will trigger replacement. String
cluster type
components List<ClusterComponent>
Component (software instance) See components below.
hpnZone String
Cluster Number
ignoreFailedNodeTasks Boolean
Whether to allow skipping failed nodes. Default value: False
networks ClusterNetworks
Network Information See networks below.
nimizVswitches List<String>
Node virtual switch
nodeGroups List<ClusterNodeGroup>
Node Group List See node_groups below.
openEniJumboFrame Boolean
Whether the network interface supports jumbo frames
resourceGroupId String
The ID of the resource group
tags Map<String,String>
tag
clusterDescription Changes to this property will trigger replacement. string
cluster description
clusterName Changes to this property will trigger replacement. string
ClusterName
clusterType Changes to this property will trigger replacement. string
cluster type
components ClusterComponent[]
Component (software instance) See components below.
hpnZone string
Cluster Number
ignoreFailedNodeTasks boolean
Whether to allow skipping failed nodes. Default value: False
networks ClusterNetworks
Network Information See networks below.
nimizVswitches string[]
Node virtual switch
nodeGroups ClusterNodeGroup[]
Node Group List See node_groups below.
openEniJumboFrame boolean
Whether the network interface supports jumbo frames
resourceGroupId string
The ID of the resource group
tags {[key: string]: string}
tag
cluster_description Changes to this property will trigger replacement. str
cluster description
cluster_name Changes to this property will trigger replacement. str
ClusterName
cluster_type Changes to this property will trigger replacement. str
cluster type
components Sequence[ClusterComponentArgs]
Component (software instance) See components below.
hpn_zone str
Cluster Number
ignore_failed_node_tasks bool
Whether to allow skipping failed nodes. Default value: False
networks ClusterNetworksArgs
Network Information See networks below.
nimiz_vswitches Sequence[str]
Node virtual switch
node_groups Sequence[ClusterNodeGroupArgs]
Node Group List See node_groups below.
open_eni_jumbo_frame bool
Whether the network interface supports jumbo frames
resource_group_id str
The ID of the resource group
tags Mapping[str, str]
tag
clusterDescription Changes to this property will trigger replacement. String
cluster description
clusterName Changes to this property will trigger replacement. String
ClusterName
clusterType Changes to this property will trigger replacement. String
cluster type
components List<Property Map>
Component (software instance) See components below.
hpnZone String
Cluster Number
ignoreFailedNodeTasks Boolean
Whether to allow skipping failed nodes. Default value: False
networks Property Map
Network Information See networks below.
nimizVswitches List<String>
Node virtual switch
nodeGroups List<Property Map>
Node Group List See node_groups below.
openEniJumboFrame Boolean
Whether the network interface supports jumbo frames
resourceGroupId String
The ID of the resource group
tags Map<String>
tag

Outputs

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

CreateTime string
The creation time of the resource
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the resource
CreateTime string
The creation time of the resource
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the resource
createTime String
The creation time of the resource
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the resource
createTime string
The creation time of the resource
id string
The provider-assigned unique ID for this managed resource.
status string
The status of the resource
create_time str
The creation time of the resource
id str
The provider-assigned unique ID for this managed resource.
status str
The status of the resource
createTime String
The creation time of the resource
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the 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_description: Optional[str] = None,
        cluster_name: Optional[str] = None,
        cluster_type: Optional[str] = None,
        components: Optional[Sequence[ClusterComponentArgs]] = None,
        create_time: Optional[str] = None,
        hpn_zone: Optional[str] = None,
        ignore_failed_node_tasks: Optional[bool] = None,
        networks: Optional[ClusterNetworksArgs] = None,
        nimiz_vswitches: Optional[Sequence[str]] = None,
        node_groups: Optional[Sequence[ClusterNodeGroupArgs]] = None,
        open_eni_jumbo_frame: Optional[bool] = None,
        resource_group_id: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = 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: alicloud:eflo:Cluster    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ClusterDescription Changes to this property will trigger replacement. string
cluster description
ClusterName Changes to this property will trigger replacement. string
ClusterName
ClusterType Changes to this property will trigger replacement. string
cluster type
Components List<Pulumi.AliCloud.Eflo.Inputs.ClusterComponent>
Component (software instance) See components below.
CreateTime string
The creation time of the resource
HpnZone string
Cluster Number
IgnoreFailedNodeTasks bool
Whether to allow skipping failed nodes. Default value: False
Networks Pulumi.AliCloud.Eflo.Inputs.ClusterNetworks
Network Information See networks below.
NimizVswitches List<string>
Node virtual switch
NodeGroups List<Pulumi.AliCloud.Eflo.Inputs.ClusterNodeGroup>
Node Group List See node_groups below.
OpenEniJumboFrame bool
Whether the network interface supports jumbo frames
ResourceGroupId string
The ID of the resource group
Status string
The status of the resource
Tags Dictionary<string, string>
tag
ClusterDescription Changes to this property will trigger replacement. string
cluster description
ClusterName Changes to this property will trigger replacement. string
ClusterName
ClusterType Changes to this property will trigger replacement. string
cluster type
Components []ClusterComponentArgs
Component (software instance) See components below.
CreateTime string
The creation time of the resource
HpnZone string
Cluster Number
IgnoreFailedNodeTasks bool
Whether to allow skipping failed nodes. Default value: False
Networks ClusterNetworksArgs
Network Information See networks below.
NimizVswitches []string
Node virtual switch
NodeGroups []ClusterNodeGroupArgs
Node Group List See node_groups below.
OpenEniJumboFrame bool
Whether the network interface supports jumbo frames
ResourceGroupId string
The ID of the resource group
Status string
The status of the resource
Tags map[string]string
tag
clusterDescription Changes to this property will trigger replacement. String
cluster description
clusterName Changes to this property will trigger replacement. String
ClusterName
clusterType Changes to this property will trigger replacement. String
cluster type
components List<ClusterComponent>
Component (software instance) See components below.
createTime String
The creation time of the resource
hpnZone String
Cluster Number
ignoreFailedNodeTasks Boolean
Whether to allow skipping failed nodes. Default value: False
networks ClusterNetworks
Network Information See networks below.
nimizVswitches List<String>
Node virtual switch
nodeGroups List<ClusterNodeGroup>
Node Group List See node_groups below.
openEniJumboFrame Boolean
Whether the network interface supports jumbo frames
resourceGroupId String
The ID of the resource group
status String
The status of the resource
tags Map<String,String>
tag
clusterDescription Changes to this property will trigger replacement. string
cluster description
clusterName Changes to this property will trigger replacement. string
ClusterName
clusterType Changes to this property will trigger replacement. string
cluster type
components ClusterComponent[]
Component (software instance) See components below.
createTime string
The creation time of the resource
hpnZone string
Cluster Number
ignoreFailedNodeTasks boolean
Whether to allow skipping failed nodes. Default value: False
networks ClusterNetworks
Network Information See networks below.
nimizVswitches string[]
Node virtual switch
nodeGroups ClusterNodeGroup[]
Node Group List See node_groups below.
openEniJumboFrame boolean
Whether the network interface supports jumbo frames
resourceGroupId string
The ID of the resource group
status string
The status of the resource
tags {[key: string]: string}
tag
cluster_description Changes to this property will trigger replacement. str
cluster description
cluster_name Changes to this property will trigger replacement. str
ClusterName
cluster_type Changes to this property will trigger replacement. str
cluster type
components Sequence[ClusterComponentArgs]
Component (software instance) See components below.
create_time str
The creation time of the resource
hpn_zone str
Cluster Number
ignore_failed_node_tasks bool
Whether to allow skipping failed nodes. Default value: False
networks ClusterNetworksArgs
Network Information See networks below.
nimiz_vswitches Sequence[str]
Node virtual switch
node_groups Sequence[ClusterNodeGroupArgs]
Node Group List See node_groups below.
open_eni_jumbo_frame bool
Whether the network interface supports jumbo frames
resource_group_id str
The ID of the resource group
status str
The status of the resource
tags Mapping[str, str]
tag
clusterDescription Changes to this property will trigger replacement. String
cluster description
clusterName Changes to this property will trigger replacement. String
ClusterName
clusterType Changes to this property will trigger replacement. String
cluster type
components List<Property Map>
Component (software instance) See components below.
createTime String
The creation time of the resource
hpnZone String
Cluster Number
ignoreFailedNodeTasks Boolean
Whether to allow skipping failed nodes. Default value: False
networks Property Map
Network Information See networks below.
nimizVswitches List<String>
Node virtual switch
nodeGroups List<Property Map>
Node Group List See node_groups below.
openEniJumboFrame Boolean
Whether the network interface supports jumbo frames
resourceGroupId String
The ID of the resource group
status String
The status of the resource
tags Map<String>
tag

Supporting Types

ClusterComponent
, ClusterComponentArgs

ComponentConfig Pulumi.AliCloud.Eflo.Inputs.ClusterComponentComponentConfig
Component Configuration See component_config below.
ComponentType string
Component Type
ComponentConfig ClusterComponentComponentConfig
Component Configuration See component_config below.
ComponentType string
Component Type
componentConfig ClusterComponentComponentConfig
Component Configuration See component_config below.
componentType String
Component Type
componentConfig ClusterComponentComponentConfig
Component Configuration See component_config below.
componentType string
Component Type
component_config ClusterComponentComponentConfig
Component Configuration See component_config below.
component_type str
Component Type
componentConfig Property Map
Component Configuration See component_config below.
componentType String
Component Type

ClusterComponentComponentConfig
, ClusterComponentComponentConfigArgs

BasicArgs string
Component Basic Parameters
NodeUnits List<string>
Node pool configuration, and is used to establish the corresponding relationship between node groups and node pools. When ComponentType = "ACKEdge" is required. Other values are empty.
BasicArgs string
Component Basic Parameters
NodeUnits []string
Node pool configuration, and is used to establish the corresponding relationship between node groups and node pools. When ComponentType = "ACKEdge" is required. Other values are empty.
basicArgs String
Component Basic Parameters
nodeUnits List<String>
Node pool configuration, and is used to establish the corresponding relationship between node groups and node pools. When ComponentType = "ACKEdge" is required. Other values are empty.
basicArgs string
Component Basic Parameters
nodeUnits string[]
Node pool configuration, and is used to establish the corresponding relationship between node groups and node pools. When ComponentType = "ACKEdge" is required. Other values are empty.
basic_args str
Component Basic Parameters
node_units Sequence[str]
Node pool configuration, and is used to establish the corresponding relationship between node groups and node pools. When ComponentType = "ACKEdge" is required. Other values are empty.
basicArgs String
Component Basic Parameters
nodeUnits List<String>
Node pool configuration, and is used to establish the corresponding relationship between node groups and node pools. When ComponentType = "ACKEdge" is required. Other values are empty.

ClusterNetworks
, ClusterNetworksArgs

IpAllocationPolicies List<Pulumi.AliCloud.Eflo.Inputs.ClusterNetworksIpAllocationPolicy>
IP allocation policy See ip_allocation_policy below.
NewVpdInfo Pulumi.AliCloud.Eflo.Inputs.ClusterNetworksNewVpdInfo
Vpd configuration information See new_vpd_info below.
SecurityGroupId string
Security group ID
TailIpVersion string
IP version
VpcId string
VPC ID
VpdInfo Pulumi.AliCloud.Eflo.Inputs.ClusterNetworksVpdInfo
Multiplexing VPD information See vpd_info below.
VswitchId string
Switch ID
VswitchZoneId string
Switch ZoneID
IpAllocationPolicies []ClusterNetworksIpAllocationPolicy
IP allocation policy See ip_allocation_policy below.
NewVpdInfo ClusterNetworksNewVpdInfo
Vpd configuration information See new_vpd_info below.
SecurityGroupId string
Security group ID
TailIpVersion string
IP version
VpcId string
VPC ID
VpdInfo ClusterNetworksVpdInfo
Multiplexing VPD information See vpd_info below.
VswitchId string
Switch ID
VswitchZoneId string
Switch ZoneID
ipAllocationPolicies List<ClusterNetworksIpAllocationPolicy>
IP allocation policy See ip_allocation_policy below.
newVpdInfo ClusterNetworksNewVpdInfo
Vpd configuration information See new_vpd_info below.
securityGroupId String
Security group ID
tailIpVersion String
IP version
vpcId String
VPC ID
vpdInfo ClusterNetworksVpdInfo
Multiplexing VPD information See vpd_info below.
vswitchId String
Switch ID
vswitchZoneId String
Switch ZoneID
ipAllocationPolicies ClusterNetworksIpAllocationPolicy[]
IP allocation policy See ip_allocation_policy below.
newVpdInfo ClusterNetworksNewVpdInfo
Vpd configuration information See new_vpd_info below.
securityGroupId string
Security group ID
tailIpVersion string
IP version
vpcId string
VPC ID
vpdInfo ClusterNetworksVpdInfo
Multiplexing VPD information See vpd_info below.
vswitchId string
Switch ID
vswitchZoneId string
Switch ZoneID
ip_allocation_policies Sequence[ClusterNetworksIpAllocationPolicy]
IP allocation policy See ip_allocation_policy below.
new_vpd_info ClusterNetworksNewVpdInfo
Vpd configuration information See new_vpd_info below.
security_group_id str
Security group ID
tail_ip_version str
IP version
vpc_id str
VPC ID
vpd_info ClusterNetworksVpdInfo
Multiplexing VPD information See vpd_info below.
vswitch_id str
Switch ID
vswitch_zone_id str
Switch ZoneID
ipAllocationPolicies List<Property Map>
IP allocation policy See ip_allocation_policy below.
newVpdInfo Property Map
Vpd configuration information See new_vpd_info below.
securityGroupId String
Security group ID
tailIpVersion String
IP version
vpcId String
VPC ID
vpdInfo Property Map
Multiplexing VPD information See vpd_info below.
vswitchId String
Switch ID
vswitchZoneId String
Switch ZoneID

ClusterNetworksIpAllocationPolicy
, ClusterNetworksIpAllocationPolicyArgs

BondPolicy ClusterNetworksIpAllocationPolicyBondPolicy
Bond policy See bond_policy below.
MachineTypePolicies []ClusterNetworksIpAllocationPolicyMachineTypePolicy
Model Assignment Policy See machine_type_policy below.
NodePolicies []ClusterNetworksIpAllocationPolicyNodePolicy
Node allocation policy See node_policy below.
bondPolicy ClusterNetworksIpAllocationPolicyBondPolicy
Bond policy See bond_policy below.
machineTypePolicies List<ClusterNetworksIpAllocationPolicyMachineTypePolicy>
Model Assignment Policy See machine_type_policy below.
nodePolicies List<ClusterNetworksIpAllocationPolicyNodePolicy>
Node allocation policy See node_policy below.
bondPolicy ClusterNetworksIpAllocationPolicyBondPolicy
Bond policy See bond_policy below.
machineTypePolicies ClusterNetworksIpAllocationPolicyMachineTypePolicy[]
Model Assignment Policy See machine_type_policy below.
nodePolicies ClusterNetworksIpAllocationPolicyNodePolicy[]
Node allocation policy See node_policy below.
bond_policy ClusterNetworksIpAllocationPolicyBondPolicy
Bond policy See bond_policy below.
machine_type_policies Sequence[ClusterNetworksIpAllocationPolicyMachineTypePolicy]
Model Assignment Policy See machine_type_policy below.
node_policies Sequence[ClusterNetworksIpAllocationPolicyNodePolicy]
Node allocation policy See node_policy below.
bondPolicy Property Map
Bond policy See bond_policy below.
machineTypePolicies List<Property Map>
Model Assignment Policy See machine_type_policy below.
nodePolicies List<Property Map>
Node allocation policy See node_policy below.

ClusterNetworksIpAllocationPolicyBondPolicy
, ClusterNetworksIpAllocationPolicyBondPolicyArgs

BondDefaultSubnet string
Default bond cluster subnet
Bonds []ClusterNetworksIpAllocationPolicyBondPolicyBond
Bond information See bonds below.
bondDefaultSubnet String
Default bond cluster subnet
bonds List<ClusterNetworksIpAllocationPolicyBondPolicyBond>
Bond information See bonds below.
bondDefaultSubnet string
Default bond cluster subnet
bonds ClusterNetworksIpAllocationPolicyBondPolicyBond[]
Bond information See bonds below.
bond_default_subnet str
Default bond cluster subnet
bonds Sequence[ClusterNetworksIpAllocationPolicyBondPolicyBond]
Bond information See bonds below.
bondDefaultSubnet String
Default bond cluster subnet
bonds List<Property Map>
Bond information See bonds below.

ClusterNetworksIpAllocationPolicyBondPolicyBond
, ClusterNetworksIpAllocationPolicyBondPolicyBondArgs

Name string
The bond name
Subnet string
IP source cluster subnet
Name string
The bond name
Subnet string
IP source cluster subnet
name String
The bond name
subnet String
IP source cluster subnet
name string
The bond name
subnet string
IP source cluster subnet
name str
The bond name
subnet str
IP source cluster subnet
name String
The bond name
subnet String
IP source cluster subnet

ClusterNetworksIpAllocationPolicyMachineTypePolicy
, ClusterNetworksIpAllocationPolicyMachineTypePolicyArgs

bonds List<Property Map>
Bond information See bonds below.
machineType String

ClusterNetworksIpAllocationPolicyMachineTypePolicyBond
, ClusterNetworksIpAllocationPolicyMachineTypePolicyBondArgs

Name string
The bond name
Subnet string
IP source cluster subnet
Name string
The bond name
Subnet string
IP source cluster subnet
name String
The bond name
subnet String
IP source cluster subnet
name string
The bond name
subnet string
IP source cluster subnet
name str
The bond name
subnet str
IP source cluster subnet
name String
The bond name
subnet String
IP source cluster subnet

ClusterNetworksIpAllocationPolicyNodePolicy
, ClusterNetworksIpAllocationPolicyNodePolicyArgs

Bonds []ClusterNetworksIpAllocationPolicyNodePolicyBond
Bond information See bonds below.
NodeId string
bonds ClusterNetworksIpAllocationPolicyNodePolicyBond[]
Bond information See bonds below.
nodeId string
bonds List<Property Map>
Bond information See bonds below.
nodeId String

ClusterNetworksIpAllocationPolicyNodePolicyBond
, ClusterNetworksIpAllocationPolicyNodePolicyBondArgs

Name string
The bond name
Subnet string
IP source cluster subnet
Name string
The bond name
Subnet string
IP source cluster subnet
name String
The bond name
subnet String
IP source cluster subnet
name string
The bond name
subnet string
IP source cluster subnet
name str
The bond name
subnet str
IP source cluster subnet
name String
The bond name
subnet String
IP source cluster subnet

ClusterNetworksNewVpdInfo
, ClusterNetworksNewVpdInfoArgs

CenId string
Cloud Enterprise Network ID
CloudLinkCidr string
Cloud chain cidr
CloudLinkId string
Cloud chain ID
MonitorVpcId string
Proprietary Network
MonitorVswitchId string
Proprietary network switch
VpdCidr string
Cluster network segment
VpdSubnets List<Pulumi.AliCloud.Eflo.Inputs.ClusterNetworksNewVpdInfoVpdSubnet>
List of cluster subnet ID
CenId string
Cloud Enterprise Network ID
CloudLinkCidr string
Cloud chain cidr
CloudLinkId string
Cloud chain ID
MonitorVpcId string
Proprietary Network
MonitorVswitchId string
Proprietary network switch
VpdCidr string
Cluster network segment
VpdSubnets []ClusterNetworksNewVpdInfoVpdSubnet
List of cluster subnet ID
cenId String
Cloud Enterprise Network ID
cloudLinkCidr String
Cloud chain cidr
cloudLinkId String
Cloud chain ID
monitorVpcId String
Proprietary Network
monitorVswitchId String
Proprietary network switch
vpdCidr String
Cluster network segment
vpdSubnets List<ClusterNetworksNewVpdInfoVpdSubnet>
List of cluster subnet ID
cenId string
Cloud Enterprise Network ID
cloudLinkCidr string
Cloud chain cidr
cloudLinkId string
Cloud chain ID
monitorVpcId string
Proprietary Network
monitorVswitchId string
Proprietary network switch
vpdCidr string
Cluster network segment
vpdSubnets ClusterNetworksNewVpdInfoVpdSubnet[]
List of cluster subnet ID
cen_id str
Cloud Enterprise Network ID
cloud_link_cidr str
Cloud chain cidr
cloud_link_id str
Cloud chain ID
monitor_vpc_id str
Proprietary Network
monitor_vswitch_id str
Proprietary network switch
vpd_cidr str
Cluster network segment
vpd_subnets Sequence[ClusterNetworksNewVpdInfoVpdSubnet]
List of cluster subnet ID
cenId String
Cloud Enterprise Network ID
cloudLinkCidr String
Cloud chain cidr
cloudLinkId String
Cloud chain ID
monitorVpcId String
Proprietary Network
monitorVswitchId String
Proprietary network switch
vpdCidr String
Cluster network segment
vpdSubnets List<Property Map>
List of cluster subnet ID

ClusterNetworksNewVpdInfoVpdSubnet
, ClusterNetworksNewVpdInfoVpdSubnetArgs

SubnetCidr string
Subnet cidr
SubnetType string
Subnet Type
ZoneId string
SubnetCidr string
Subnet cidr
SubnetType string
Subnet Type
ZoneId string
subnetCidr String
Subnet cidr
subnetType String
Subnet Type
zoneId String
subnetCidr string
Subnet cidr
subnetType string
Subnet Type
zoneId string
subnet_cidr str
Subnet cidr
subnet_type str
Subnet Type
zone_id str
subnetCidr String
Subnet cidr
subnetType String
Subnet Type
zoneId String

ClusterNetworksVpdInfo
, ClusterNetworksVpdInfoArgs

VpdId string
VPC ID
VpdSubnets List<string>
List of cluster subnet ID
VpdId string
VPC ID
VpdSubnets []string
List of cluster subnet ID
vpdId String
VPC ID
vpdSubnets List<String>
List of cluster subnet ID
vpdId string
VPC ID
vpdSubnets string[]
List of cluster subnet ID
vpd_id str
VPC ID
vpd_subnets Sequence[str]
List of cluster subnet ID
vpdId String
VPC ID
vpdSubnets List<String>
List of cluster subnet ID

ClusterNodeGroup
, ClusterNodeGroupArgs

ImageId string
System Image ID
MachineType string
Model
NodeGroupDescription string
Node Group Description
NodeGroupName string
Node Group Name
Nodes List<Pulumi.AliCloud.Eflo.Inputs.ClusterNodeGroupNode>
Node List See nodes below.
UserData string
Instance custom data. It needs to be encoded in Base64 mode, and the original data is at most 16KB.
ZoneId string
Zone ID
ImageId string
System Image ID
MachineType string
Model
NodeGroupDescription string
Node Group Description
NodeGroupName string
Node Group Name
Nodes []ClusterNodeGroupNode
Node List See nodes below.
UserData string
Instance custom data. It needs to be encoded in Base64 mode, and the original data is at most 16KB.
ZoneId string
Zone ID
imageId String
System Image ID
machineType String
Model
nodeGroupDescription String
Node Group Description
nodeGroupName String
Node Group Name
nodes List<ClusterNodeGroupNode>
Node List See nodes below.
userData String
Instance custom data. It needs to be encoded in Base64 mode, and the original data is at most 16KB.
zoneId String
Zone ID
imageId string
System Image ID
machineType string
Model
nodeGroupDescription string
Node Group Description
nodeGroupName string
Node Group Name
nodes ClusterNodeGroupNode[]
Node List See nodes below.
userData string
Instance custom data. It needs to be encoded in Base64 mode, and the original data is at most 16KB.
zoneId string
Zone ID
image_id str
System Image ID
machine_type str
Model
node_group_description str
Node Group Description
node_group_name str
Node Group Name
nodes Sequence[ClusterNodeGroupNode]
Node List See nodes below.
user_data str
Instance custom data. It needs to be encoded in Base64 mode, and the original data is at most 16KB.
zone_id str
Zone ID
imageId String
System Image ID
machineType String
Model
nodeGroupDescription String
Node Group Description
nodeGroupName String
Node Group Name
nodes List<Property Map>
Node List See nodes below.
userData String
Instance custom data. It needs to be encoded in Base64 mode, and the original data is at most 16KB.
zoneId String
Zone ID

ClusterNodeGroupNode
, ClusterNodeGroupNodeArgs

Hostname string
Host name
LoginPassword string
Login Password
NodeId string
VpcId string
VswitchId string
Hostname string
Host name
LoginPassword string
Login Password
NodeId string
VpcId string
VswitchId string
hostname String
Host name
loginPassword String
Login Password
nodeId String
vpcId String
vswitchId String
hostname string
Host name
loginPassword string
Login Password
nodeId string
vpcId string
vswitchId string
hostname str
Host name
login_password str
Login Password
node_id str
vpc_id str
vswitch_id str
hostname String
Host name
loginPassword String
Login Password
nodeId String
vpcId String
vswitchId String

Import

Eflo Cluster can be imported using the id, e.g.

$ pulumi import alicloud:eflo/cluster:Cluster example <id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.