Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

Cluster

Provides a MSE Cluster resource. It is a one-stop microservice platform for the industry’s mainstream open source microservice frameworks Spring Cloud and Dubbo, providing governance center, managed registry and managed configuration center.

NOTE: Available in 1.94.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.Mse.Cluster("example", new AliCloud.Mse.ClusterArgs
        {
            AclEntryLists = 
            {
                "127.0.0.1/32",
            },
            ClusterAliasName = "tf-testAccMseCluster",
            ClusterSpecification = "MSE_SC_1_2_200_c",
            ClusterType = "Nacos-Ans",
            ClusterVersion = "NACOS_ANS_1_2_1",
            InstanceCount = 1,
            NetType = "privatenet",
            PubNetworkFlow = "1",
            VswitchId = "vsw-123456",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/mse"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mse.NewCluster(ctx, "example", &mse.ClusterArgs{
			AclEntryLists: pulumi.StringArray{
				pulumi.String("127.0.0.1/32"),
			},
			ClusterAliasName:     pulumi.String("tf-testAccMseCluster"),
			ClusterSpecification: pulumi.String("MSE_SC_1_2_200_c"),
			ClusterType:          pulumi.String("Nacos-Ans"),
			ClusterVersion:       pulumi.String("NACOS_ANS_1_2_1"),
			InstanceCount:        pulumi.Int(1),
			NetType:              pulumi.String("privatenet"),
			PubNetworkFlow:       pulumi.String("1"),
			VswitchId:            pulumi.String("vsw-123456"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.mse.Cluster;
import com.pulumi.alicloud.mse.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) {
        var example = new Cluster("example", ClusterArgs.builder()        
            .aclEntryLists("127.0.0.1/32")
            .clusterAliasName("tf-testAccMseCluster")
            .clusterSpecification("MSE_SC_1_2_200_c")
            .clusterType("Nacos-Ans")
            .clusterVersion("NACOS_ANS_1_2_1")
            .instanceCount(1)
            .netType("privatenet")
            .pubNetworkFlow("1")
            .vswitchId("vsw-123456")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.mse.Cluster("example",
    acl_entry_lists=["127.0.0.1/32"],
    cluster_alias_name="tf-testAccMseCluster",
    cluster_specification="MSE_SC_1_2_200_c",
    cluster_type="Nacos-Ans",
    cluster_version="NACOS_ANS_1_2_1",
    instance_count=1,
    net_type="privatenet",
    pub_network_flow="1",
    vswitch_id="vsw-123456")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.mse.Cluster("example", {
    aclEntryLists: ["127.0.0.1/32"],
    clusterAliasName: "tf-testAccMseCluster",
    clusterSpecification: "MSE_SC_1_2_200_c",
    clusterType: "Nacos-Ans",
    clusterVersion: "NACOS_ANS_1_2_1",
    instanceCount: 1,
    netType: "privatenet",
    pubNetworkFlow: "1",
    vswitchId: "vsw-123456",
});
resources:
  example:
    type: alicloud:mse:Cluster
    properties:
      aclEntryLists:
        - 127.0.0.1/32
      clusterAliasName: tf-testAccMseCluster
      clusterSpecification: MSE_SC_1_2_200_c
      clusterType: Nacos-Ans
      clusterVersion: NACOS_ANS_1_2_1
      instanceCount: 1
      netType: privatenet
      pubNetworkFlow: 1
      vswitchId: vsw-123456

Create a Cluster Resource

new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            acl_entry_lists: Optional[Sequence[str]] = None,
            cluster_alias_name: Optional[str] = None,
            cluster_specification: Optional[str] = None,
            cluster_type: Optional[str] = None,
            cluster_version: Optional[str] = None,
            disk_type: Optional[str] = None,
            instance_count: Optional[int] = None,
            mse_version: Optional[str] = None,
            net_type: Optional[str] = None,
            private_slb_specification: Optional[str] = None,
            pub_network_flow: Optional[str] = None,
            pub_slb_specification: Optional[str] = None,
            vswitch_id: Optional[str] = None)
@overload
def Cluster(resource_name: str,
            args: ClusterArgs,
            opts: Optional[ResourceOptions] = 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: alicloud:mse:Cluster
properties: # The arguments to resource properties.
options: # 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.
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.

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

The Cluster resource accepts the following input properties:

ClusterSpecification string

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

ClusterType string

The type of MSE Cluster.

ClusterVersion string

The version of MSE Cluster.

InstanceCount int

The count of instance.

NetType string

The type of network. Valid values: "privatenet" and "pubnet".

PubNetworkFlow string

The public network bandwidth. 0 means no access to the public network.

AclEntryLists List<string>

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

ClusterAliasName string

The alias of MSE Cluster.

DiskType string

The type of Disk.

MseVersion string

The version of MSE. Valid values: mse_basic or mse_pro.

PrivateSlbSpecification string

The specification of private network SLB.

PubSlbSpecification string

The specification of public network SLB.

VswitchId string

The id of VSwitch.

ClusterSpecification string

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

ClusterType string

The type of MSE Cluster.

ClusterVersion string

The version of MSE Cluster.

InstanceCount int

The count of instance.

NetType string

The type of network. Valid values: "privatenet" and "pubnet".

PubNetworkFlow string

The public network bandwidth. 0 means no access to the public network.

AclEntryLists []string

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

ClusterAliasName string

The alias of MSE Cluster.

DiskType string

The type of Disk.

MseVersion string

The version of MSE. Valid values: mse_basic or mse_pro.

PrivateSlbSpecification string

The specification of private network SLB.

PubSlbSpecification string

The specification of public network SLB.

VswitchId string

The id of VSwitch.

clusterSpecification String

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

clusterType String

The type of MSE Cluster.

clusterVersion String

The version of MSE Cluster.

instanceCount Integer

The count of instance.

netType String

The type of network. Valid values: "privatenet" and "pubnet".

pubNetworkFlow String

The public network bandwidth. 0 means no access to the public network.

aclEntryLists List<String>

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

clusterAliasName String

The alias of MSE Cluster.

diskType String

The type of Disk.

mseVersion String

The version of MSE. Valid values: mse_basic or mse_pro.

privateSlbSpecification String

The specification of private network SLB.

pubSlbSpecification String

The specification of public network SLB.

vswitchId String

The id of VSwitch.

clusterSpecification string

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

clusterType string

The type of MSE Cluster.

clusterVersion string

The version of MSE Cluster.

instanceCount number

The count of instance.

netType string

The type of network. Valid values: "privatenet" and "pubnet".

pubNetworkFlow string

The public network bandwidth. 0 means no access to the public network.

aclEntryLists string[]

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

clusterAliasName string

The alias of MSE Cluster.

diskType string

The type of Disk.

mseVersion string

The version of MSE. Valid values: mse_basic or mse_pro.

privateSlbSpecification string

The specification of private network SLB.

pubSlbSpecification string

The specification of public network SLB.

vswitchId string

The id of VSwitch.

cluster_specification str

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

cluster_type str

The type of MSE Cluster.

cluster_version str

The version of MSE Cluster.

instance_count int

The count of instance.

net_type str

The type of network. Valid values: "privatenet" and "pubnet".

pub_network_flow str

The public network bandwidth. 0 means no access to the public network.

acl_entry_lists Sequence[str]

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

cluster_alias_name str

The alias of MSE Cluster.

disk_type str

The type of Disk.

mse_version str

The version of MSE. Valid values: mse_basic or mse_pro.

private_slb_specification str

The specification of private network SLB.

pub_slb_specification str

The specification of public network SLB.

vswitch_id str

The id of VSwitch.

clusterSpecification String

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

clusterType String

The type of MSE Cluster.

clusterVersion String

The version of MSE Cluster.

instanceCount Number

The count of instance.

netType String

The type of network. Valid values: "privatenet" and "pubnet".

pubNetworkFlow String

The public network bandwidth. 0 means no access to the public network.

aclEntryLists List<String>

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

clusterAliasName String

The alias of MSE Cluster.

diskType String

The type of Disk.

mseVersion String

The version of MSE. Valid values: mse_basic or mse_pro.

privateSlbSpecification String

The specification of private network SLB.

pubSlbSpecification String

The specification of public network SLB.

vswitchId String

The id of VSwitch.

Outputs

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

ClusterId string

(Available in v1.162.0+) The id of Cluster.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of MSE Cluster.

ClusterId string

(Available in v1.162.0+) The id of Cluster.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of MSE Cluster.

clusterId String

(Available in v1.162.0+) The id of Cluster.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of MSE Cluster.

clusterId string

(Available in v1.162.0+) The id of Cluster.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of MSE Cluster.

cluster_id str

(Available in v1.162.0+) The id of Cluster.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of MSE Cluster.

clusterId String

(Available in v1.162.0+) The id of Cluster.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of MSE Cluster.

Look up an 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,
        acl_entry_lists: Optional[Sequence[str]] = None,
        cluster_alias_name: Optional[str] = None,
        cluster_id: Optional[str] = None,
        cluster_specification: Optional[str] = None,
        cluster_type: Optional[str] = None,
        cluster_version: Optional[str] = None,
        disk_type: Optional[str] = None,
        instance_count: Optional[int] = None,
        mse_version: Optional[str] = None,
        net_type: Optional[str] = None,
        private_slb_specification: Optional[str] = None,
        pub_network_flow: Optional[str] = None,
        pub_slb_specification: Optional[str] = None,
        status: Optional[str] = None,
        vswitch_id: Optional[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)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
AclEntryLists List<string>

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

ClusterAliasName string

The alias of MSE Cluster.

ClusterId string

(Available in v1.162.0+) The id of Cluster.

ClusterSpecification string

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

ClusterType string

The type of MSE Cluster.

ClusterVersion string

The version of MSE Cluster.

DiskType string

The type of Disk.

InstanceCount int

The count of instance.

MseVersion string

The version of MSE. Valid values: mse_basic or mse_pro.

NetType string

The type of network. Valid values: "privatenet" and "pubnet".

PrivateSlbSpecification string

The specification of private network SLB.

PubNetworkFlow string

The public network bandwidth. 0 means no access to the public network.

PubSlbSpecification string

The specification of public network SLB.

Status string

The status of MSE Cluster.

VswitchId string

The id of VSwitch.

AclEntryLists []string

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

ClusterAliasName string

The alias of MSE Cluster.

ClusterId string

(Available in v1.162.0+) The id of Cluster.

ClusterSpecification string

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

ClusterType string

The type of MSE Cluster.

ClusterVersion string

The version of MSE Cluster.

DiskType string

The type of Disk.

InstanceCount int

The count of instance.

MseVersion string

The version of MSE. Valid values: mse_basic or mse_pro.

NetType string

The type of network. Valid values: "privatenet" and "pubnet".

PrivateSlbSpecification string

The specification of private network SLB.

PubNetworkFlow string

The public network bandwidth. 0 means no access to the public network.

PubSlbSpecification string

The specification of public network SLB.

Status string

The status of MSE Cluster.

VswitchId string

The id of VSwitch.

aclEntryLists List<String>

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

clusterAliasName String

The alias of MSE Cluster.

clusterId String

(Available in v1.162.0+) The id of Cluster.

clusterSpecification String

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

clusterType String

The type of MSE Cluster.

clusterVersion String

The version of MSE Cluster.

diskType String

The type of Disk.

instanceCount Integer

The count of instance.

mseVersion String

The version of MSE. Valid values: mse_basic or mse_pro.

netType String

The type of network. Valid values: "privatenet" and "pubnet".

privateSlbSpecification String

The specification of private network SLB.

pubNetworkFlow String

The public network bandwidth. 0 means no access to the public network.

pubSlbSpecification String

The specification of public network SLB.

status String

The status of MSE Cluster.

vswitchId String

The id of VSwitch.

aclEntryLists string[]

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

clusterAliasName string

The alias of MSE Cluster.

clusterId string

(Available in v1.162.0+) The id of Cluster.

clusterSpecification string

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

clusterType string

The type of MSE Cluster.

clusterVersion string

The version of MSE Cluster.

diskType string

The type of Disk.

instanceCount number

The count of instance.

mseVersion string

The version of MSE. Valid values: mse_basic or mse_pro.

netType string

The type of network. Valid values: "privatenet" and "pubnet".

privateSlbSpecification string

The specification of private network SLB.

pubNetworkFlow string

The public network bandwidth. 0 means no access to the public network.

pubSlbSpecification string

The specification of public network SLB.

status string

The status of MSE Cluster.

vswitchId string

The id of VSwitch.

acl_entry_lists Sequence[str]

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

cluster_alias_name str

The alias of MSE Cluster.

cluster_id str

(Available in v1.162.0+) The id of Cluster.

cluster_specification str

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

cluster_type str

The type of MSE Cluster.

cluster_version str

The version of MSE Cluster.

disk_type str

The type of Disk.

instance_count int

The count of instance.

mse_version str

The version of MSE. Valid values: mse_basic or mse_pro.

net_type str

The type of network. Valid values: "privatenet" and "pubnet".

private_slb_specification str

The specification of private network SLB.

pub_network_flow str

The public network bandwidth. 0 means no access to the public network.

pub_slb_specification str

The specification of public network SLB.

status str

The status of MSE Cluster.

vswitch_id str

The id of VSwitch.

aclEntryLists List<String>

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

clusterAliasName String

The alias of MSE Cluster.

clusterId String

(Available in v1.162.0+) The id of Cluster.

clusterSpecification String

The engine specification of MSE Cluster. Valid values: MSE_SC_1_2_200_c:1C2G MSE_SC_2_4_200_c:2C4G MSE_SC_4_8_200_c:4C8G MSE_SC_8_16_200_c:8C16G

clusterType String

The type of MSE Cluster.

clusterVersion String

The version of MSE Cluster.

diskType String

The type of Disk.

instanceCount Number

The count of instance.

mseVersion String

The version of MSE. Valid values: mse_basic or mse_pro.

netType String

The type of network. Valid values: "privatenet" and "pubnet".

privateSlbSpecification String

The specification of private network SLB.

pubNetworkFlow String

The public network bandwidth. 0 means no access to the public network.

pubSlbSpecification String

The specification of public network SLB.

status String

The status of MSE Cluster.

vswitchId String

The id of VSwitch.

Import

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

 $ pulumi import alicloud:mse/cluster:Cluster example mse-cn-0d9xxxx

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.