Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 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 = "Eureka",
            ClusterVersion = "EUREKA_1_9_3",
            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("Eureka"),
			ClusterVersion:       pulumi.String("EUREKA_1_9_3"),
			InstanceCount:        pulumi.Int(1),
			NetType:              pulumi.String("privatenet"),
			PubNetworkFlow:       pulumi.String("1"),
			VswitchId:            pulumi.String("vsw-123456"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

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="Eureka",
    cluster_version="EUREKA_1_9_3",
    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: "Eureka",
    clusterVersion: "EUREKA_1_9_3",
    instanceCount: 1,
    netType: "privatenet",
    pubNetworkFlow: "1",
    vswitchId: "vsw-123456",
});

Coming soon!

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,
            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".

AclEntryLists List<string>

The whitelist.

ClusterAliasName string

The alias of MSE Cluster.

DiskType string

The type of Disk.

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.

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".

AclEntryLists []string

The whitelist.

ClusterAliasName string

The alias of MSE Cluster.

DiskType string

The type of Disk.

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.

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".

aclEntryLists List

The whitelist.

clusterAliasName String

The alias of MSE Cluster.

diskType String

The type of Disk.

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.

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".

aclEntryLists string[]

The whitelist.

clusterAliasName string

The alias of MSE Cluster.

diskType string

The type of Disk.

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.

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".

acl_entry_lists Sequence[str]

The whitelist.

cluster_alias_name str

The alias of MSE Cluster.

disk_type str

The type of Disk.

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.

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".

aclEntryLists List

The whitelist.

clusterAliasName String

The alias of MSE Cluster.

diskType String

The type of Disk.

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.

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:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of MSE Cluster.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of MSE Cluster.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of MSE Cluster.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of MSE Cluster.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of MSE 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_specification: Optional[str] = None,
        cluster_type: Optional[str] = None,
        cluster_version: Optional[str] = None,
        disk_type: Optional[str] = None,
        instance_count: Optional[int] = 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.

ClusterAliasName string

The alias of MSE 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.

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.

ClusterAliasName string

The alias of MSE 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.

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

The whitelist.

clusterAliasName String

The alias of MSE 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.

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.

clusterAliasName string

The alias of MSE 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.

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.

cluster_alias_name str

The alias of MSE 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.

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

The whitelist.

clusterAliasName String

The alias of MSE 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.

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.