mse

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	// The whitelist. **NOTE:** This attribute is invalid when the value of `pubNetworkFlow` is `0` and the value of `netType` is `privatenet`.
	AclEntryLists pulumi.StringArrayOutput `pulumi:"aclEntryLists"`
	// The alias of MSE Cluster.
	ClusterAliasName pulumi.StringPtrOutput `pulumi:"clusterAliasName"`
	// (Available in v1.162.0+)  The id of Cluster.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The engine specification of MSE Cluster. **NOTE:** From version 1.188.0, `clusterSpecification` can be modified. Valid values:
	// - `MSE_SC_1_2_60_c`: 1C2G
	// - `MSE_SC_2_4_60_c`: 2C4G
	// - `MSE_SC_4_8_60_c`: 4C8G
	// - `MSE_SC_8_16_60_c`: 8C16G
	ClusterSpecification pulumi.StringOutput `pulumi:"clusterSpecification"`
	// The type of MSE Cluster.
	ClusterType pulumi.StringOutput `pulumi:"clusterType"`
	// The version of MSE Cluster. See [details](https://www.alibabacloud.com/help/en/microservices-engine/latest/api-doc-mse-2019-05-31-api-doc-createcluster)
	ClusterVersion pulumi.StringOutput `pulumi:"clusterVersion"`
	// The connection type. Valid values: `slb`.
	ConnectionType pulumi.StringOutput `pulumi:"connectionType"`
	// The type of Disk.
	DiskType pulumi.StringPtrOutput `pulumi:"diskType"`
	// The count of instance. **NOTE:** From version 1.188.0, `instanceCount` can be modified.
	InstanceCount pulumi.IntOutput `pulumi:"instanceCount"`
	// The version of MSE. Valid values: `mseDev` or `msePro`.
	MseVersion pulumi.StringOutput `pulumi:"mseVersion"`
	// The type of network. Valid values: "privatenet" and "pubnet".
	NetType pulumi.StringOutput `pulumi:"netType"`
	// The specification of private network SLB.
	PrivateSlbSpecification pulumi.StringPtrOutput `pulumi:"privateSlbSpecification"`
	// The public network bandwidth. `0` means no access to the public network.
	PubNetworkFlow pulumi.StringOutput `pulumi:"pubNetworkFlow"`
	// The specification of public network SLB.
	PubSlbSpecification pulumi.StringPtrOutput `pulumi:"pubSlbSpecification"`
	// The extended request parameters in the JSON format.
	RequestPars pulumi.StringPtrOutput `pulumi:"requestPars"`
	// The status of MSE Cluster.
	Status pulumi.StringOutput `pulumi:"status"`
	// The id of the VPC.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
	// The id of VSwitch.
	VswitchId pulumi.StringPtrOutput `pulumi:"vswitchId"`
}

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

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/mse"

)

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),
			MseVersion:           pulumi.String("mse_dev"),
			NetType:              pulumi.String("privatenet"),
			PubNetworkFlow:       pulumi.String("1"),
			VswitchId:            pulumi.String("vsw-123456"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

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

```

func GetCluster

func GetCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)

GetCluster gets an existing Cluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCluster

func NewCluster(ctx *pulumi.Context,
	name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

NewCluster registers a new resource with the given unique name, arguments, and options.

func (*Cluster) ElementType

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext

func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

type ClusterArgs

type ClusterArgs struct {
	// The whitelist. **NOTE:** This attribute is invalid when the value of `pubNetworkFlow` is `0` and the value of `netType` is `privatenet`.
	AclEntryLists pulumi.StringArrayInput
	// The alias of MSE Cluster.
	ClusterAliasName pulumi.StringPtrInput
	// The engine specification of MSE Cluster. **NOTE:** From version 1.188.0, `clusterSpecification` can be modified. Valid values:
	// - `MSE_SC_1_2_60_c`: 1C2G
	// - `MSE_SC_2_4_60_c`: 2C4G
	// - `MSE_SC_4_8_60_c`: 4C8G
	// - `MSE_SC_8_16_60_c`: 8C16G
	ClusterSpecification pulumi.StringInput
	// The type of MSE Cluster.
	ClusterType pulumi.StringInput
	// The version of MSE Cluster. See [details](https://www.alibabacloud.com/help/en/microservices-engine/latest/api-doc-mse-2019-05-31-api-doc-createcluster)
	ClusterVersion pulumi.StringInput
	// The connection type. Valid values: `slb`.
	ConnectionType pulumi.StringPtrInput
	// The type of Disk.
	DiskType pulumi.StringPtrInput
	// The count of instance. **NOTE:** From version 1.188.0, `instanceCount` can be modified.
	InstanceCount pulumi.IntInput
	// The version of MSE. Valid values: `mseDev` or `msePro`.
	MseVersion pulumi.StringPtrInput
	// The type of network. Valid values: "privatenet" and "pubnet".
	NetType pulumi.StringInput
	// The specification of private network SLB.
	PrivateSlbSpecification pulumi.StringPtrInput
	// The public network bandwidth. `0` means no access to the public network.
	PubNetworkFlow pulumi.StringInput
	// The specification of public network SLB.
	PubSlbSpecification pulumi.StringPtrInput
	// The extended request parameters in the JSON format.
	RequestPars pulumi.StringPtrInput
	// The id of the VPC.
	VpcId pulumi.StringPtrInput
	// The id of VSwitch.
	VswitchId pulumi.StringPtrInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType

func (ClusterArgs) ElementType() reflect.Type

type ClusterArray

type ClusterArray []ClusterInput

func (ClusterArray) ElementType

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext

func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterArrayInput

type ClusterArrayInput interface {
	pulumi.Input

	ToClusterArrayOutput() ClusterArrayOutput
	ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput
}

ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:

ClusterArray{ ClusterArgs{...} }

type ClusterArrayOutput

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index

func (ClusterArrayOutput) ToClusterArrayOutput

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext

func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterInput

type ClusterInput interface {
	pulumi.Input

	ToClusterOutput() ClusterOutput
	ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}

type ClusterMap

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext

func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterMapInput

type ClusterMapInput interface {
	pulumi.Input

	ToClusterMapOutput() ClusterMapOutput
	ToClusterMapOutputWithContext(context.Context) ClusterMapOutput
}

ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:

ClusterMap{ "key": ClusterArgs{...} }

type ClusterMapOutput

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex

func (ClusterMapOutput) ToClusterMapOutput

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext

func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterOutput

type ClusterOutput struct{ *pulumi.OutputState }

func (ClusterOutput) AclEntryLists

func (o ClusterOutput) AclEntryLists() pulumi.StringArrayOutput

The whitelist. **NOTE:** This attribute is invalid when the value of `pubNetworkFlow` is `0` and the value of `netType` is `privatenet`.

func (ClusterOutput) ClusterAliasName

func (o ClusterOutput) ClusterAliasName() pulumi.StringPtrOutput

The alias of MSE Cluster.

func (ClusterOutput) ClusterId

func (o ClusterOutput) ClusterId() pulumi.StringOutput

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

func (ClusterOutput) ClusterSpecification

func (o ClusterOutput) ClusterSpecification() pulumi.StringOutput

The engine specification of MSE Cluster. **NOTE:** From version 1.188.0, `clusterSpecification` can be modified. Valid values: - `MSE_SC_1_2_60_c`: 1C2G - `MSE_SC_2_4_60_c`: 2C4G - `MSE_SC_4_8_60_c`: 4C8G - `MSE_SC_8_16_60_c`: 8C16G

func (ClusterOutput) ClusterType

func (o ClusterOutput) ClusterType() pulumi.StringOutput

The type of MSE Cluster.

func (ClusterOutput) ConnectionType

func (o ClusterOutput) ConnectionType() pulumi.StringOutput

The connection type. Valid values: `slb`.

func (ClusterOutput) DiskType

func (o ClusterOutput) DiskType() pulumi.StringPtrOutput

The type of Disk.

func (ClusterOutput) ElementType

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) InstanceCount

func (o ClusterOutput) InstanceCount() pulumi.IntOutput

The count of instance. **NOTE:** From version 1.188.0, `instanceCount` can be modified.

func (ClusterOutput) MseVersion

func (o ClusterOutput) MseVersion() pulumi.StringOutput

The version of MSE. Valid values: `mseDev` or `msePro`.

func (ClusterOutput) NetType

func (o ClusterOutput) NetType() pulumi.StringOutput

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

func (ClusterOutput) PrivateSlbSpecification

func (o ClusterOutput) PrivateSlbSpecification() pulumi.StringPtrOutput

The specification of private network SLB.

func (ClusterOutput) PubNetworkFlow

func (o ClusterOutput) PubNetworkFlow() pulumi.StringOutput

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

func (ClusterOutput) PubSlbSpecification

func (o ClusterOutput) PubSlbSpecification() pulumi.StringPtrOutput

The specification of public network SLB.

func (ClusterOutput) RequestPars

func (o ClusterOutput) RequestPars() pulumi.StringPtrOutput

The extended request parameters in the JSON format.

func (ClusterOutput) Status

func (o ClusterOutput) Status() pulumi.StringOutput

The status of MSE Cluster.

func (ClusterOutput) ToClusterOutput

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext

func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

func (ClusterOutput) VpcId

func (o ClusterOutput) VpcId() pulumi.StringOutput

The id of the VPC.

func (ClusterOutput) VswitchId

func (o ClusterOutput) VswitchId() pulumi.StringPtrOutput

The id of VSwitch.

type ClusterState

type ClusterState struct {
	// The whitelist. **NOTE:** This attribute is invalid when the value of `pubNetworkFlow` is `0` and the value of `netType` is `privatenet`.
	AclEntryLists pulumi.StringArrayInput
	// The alias of MSE Cluster.
	ClusterAliasName pulumi.StringPtrInput
	// (Available in v1.162.0+)  The id of Cluster.
	ClusterId pulumi.StringPtrInput
	// The engine specification of MSE Cluster. **NOTE:** From version 1.188.0, `clusterSpecification` can be modified. Valid values:
	// - `MSE_SC_1_2_60_c`: 1C2G
	// - `MSE_SC_2_4_60_c`: 2C4G
	// - `MSE_SC_4_8_60_c`: 4C8G
	// - `MSE_SC_8_16_60_c`: 8C16G
	ClusterSpecification pulumi.StringPtrInput
	// The type of MSE Cluster.
	ClusterType pulumi.StringPtrInput
	// The version of MSE Cluster. See [details](https://www.alibabacloud.com/help/en/microservices-engine/latest/api-doc-mse-2019-05-31-api-doc-createcluster)
	ClusterVersion pulumi.StringPtrInput
	// The connection type. Valid values: `slb`.
	ConnectionType pulumi.StringPtrInput
	// The type of Disk.
	DiskType pulumi.StringPtrInput
	// The count of instance. **NOTE:** From version 1.188.0, `instanceCount` can be modified.
	InstanceCount pulumi.IntPtrInput
	// The version of MSE. Valid values: `mseDev` or `msePro`.
	MseVersion pulumi.StringPtrInput
	// The type of network. Valid values: "privatenet" and "pubnet".
	NetType pulumi.StringPtrInput
	// The specification of private network SLB.
	PrivateSlbSpecification pulumi.StringPtrInput
	// The public network bandwidth. `0` means no access to the public network.
	PubNetworkFlow pulumi.StringPtrInput
	// The specification of public network SLB.
	PubSlbSpecification pulumi.StringPtrInput
	// The extended request parameters in the JSON format.
	RequestPars pulumi.StringPtrInput
	// The status of MSE Cluster.
	Status pulumi.StringPtrInput
	// The id of the VPC.
	VpcId pulumi.StringPtrInput
	// The id of VSwitch.
	VswitchId pulumi.StringPtrInput
}

func (ClusterState) ElementType

func (ClusterState) ElementType() reflect.Type

type EngineNamespace

type EngineNamespace struct {
	pulumi.CustomResourceState

	// The language type of the returned information. Valid values: `zh`, `en`.
	AcceptLanguage pulumi.StringPtrOutput `pulumi:"acceptLanguage"`
	// The id of the cluster.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The id of Namespace.
	NamespaceId pulumi.StringOutput `pulumi:"namespaceId"`
	// The name of the Engine Namespace.
	NamespaceShowName pulumi.StringOutput `pulumi:"namespaceShowName"`
}

Provides a Microservice Engine (MSE) Engine Namespace resource.

For information about Microservice Engine (MSE) Engine Namespace and how to use it, see [What is Engine Namespace](https://www.alibabacloud.com/help/zh/microservices-engine/latest/api-doc-mse-2019-05-31-api-doc-createenginenamespace).

> **NOTE:** Available in v1.166.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/mse"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId: pulumi.StringRef(defaultNetworks.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		defaultCluster, err := mse.NewCluster(ctx, "defaultCluster", &mse.ClusterArgs{
			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"),
			VswitchId:            pulumi.String(defaultSwitches.Ids[0]),
			PubNetworkFlow:       pulumi.String("1"),
			AclEntryLists: pulumi.StringArray{
				pulumi.String("127.0.0.1/32"),
			},
			ClusterAliasName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = mse.NewEngineNamespace(ctx, "example", &mse.EngineNamespaceArgs{
			ClusterId:         defaultCluster.ClusterId,
			NamespaceShowName: pulumi.String("example_value"),
			NamespaceId:       pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Microservice Engine (MSE) Engine Namespace can be imported using the id, e.g.

```sh

$ pulumi import alicloud:mse/engineNamespace:EngineNamespace example <cluster_id>:<namespace_id>

```

func GetEngineNamespace

func GetEngineNamespace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EngineNamespaceState, opts ...pulumi.ResourceOption) (*EngineNamespace, error)

GetEngineNamespace gets an existing EngineNamespace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEngineNamespace

func NewEngineNamespace(ctx *pulumi.Context,
	name string, args *EngineNamespaceArgs, opts ...pulumi.ResourceOption) (*EngineNamespace, error)

NewEngineNamespace registers a new resource with the given unique name, arguments, and options.

func (*EngineNamespace) ElementType

func (*EngineNamespace) ElementType() reflect.Type

func (*EngineNamespace) ToEngineNamespaceOutput

func (i *EngineNamespace) ToEngineNamespaceOutput() EngineNamespaceOutput

func (*EngineNamespace) ToEngineNamespaceOutputWithContext

func (i *EngineNamespace) ToEngineNamespaceOutputWithContext(ctx context.Context) EngineNamespaceOutput

type EngineNamespaceArgs

type EngineNamespaceArgs struct {
	// The language type of the returned information. Valid values: `zh`, `en`.
	AcceptLanguage pulumi.StringPtrInput
	// The id of the cluster.
	ClusterId pulumi.StringInput
	// The id of Namespace.
	NamespaceId pulumi.StringInput
	// The name of the Engine Namespace.
	NamespaceShowName pulumi.StringInput
}

The set of arguments for constructing a EngineNamespace resource.

func (EngineNamespaceArgs) ElementType

func (EngineNamespaceArgs) ElementType() reflect.Type

type EngineNamespaceArray

type EngineNamespaceArray []EngineNamespaceInput

func (EngineNamespaceArray) ElementType

func (EngineNamespaceArray) ElementType() reflect.Type

func (EngineNamespaceArray) ToEngineNamespaceArrayOutput

func (i EngineNamespaceArray) ToEngineNamespaceArrayOutput() EngineNamespaceArrayOutput

func (EngineNamespaceArray) ToEngineNamespaceArrayOutputWithContext

func (i EngineNamespaceArray) ToEngineNamespaceArrayOutputWithContext(ctx context.Context) EngineNamespaceArrayOutput

type EngineNamespaceArrayInput

type EngineNamespaceArrayInput interface {
	pulumi.Input

	ToEngineNamespaceArrayOutput() EngineNamespaceArrayOutput
	ToEngineNamespaceArrayOutputWithContext(context.Context) EngineNamespaceArrayOutput
}

EngineNamespaceArrayInput is an input type that accepts EngineNamespaceArray and EngineNamespaceArrayOutput values. You can construct a concrete instance of `EngineNamespaceArrayInput` via:

EngineNamespaceArray{ EngineNamespaceArgs{...} }

type EngineNamespaceArrayOutput

type EngineNamespaceArrayOutput struct{ *pulumi.OutputState }

func (EngineNamespaceArrayOutput) ElementType

func (EngineNamespaceArrayOutput) ElementType() reflect.Type

func (EngineNamespaceArrayOutput) Index

func (EngineNamespaceArrayOutput) ToEngineNamespaceArrayOutput

func (o EngineNamespaceArrayOutput) ToEngineNamespaceArrayOutput() EngineNamespaceArrayOutput

func (EngineNamespaceArrayOutput) ToEngineNamespaceArrayOutputWithContext

func (o EngineNamespaceArrayOutput) ToEngineNamespaceArrayOutputWithContext(ctx context.Context) EngineNamespaceArrayOutput

type EngineNamespaceInput

type EngineNamespaceInput interface {
	pulumi.Input

	ToEngineNamespaceOutput() EngineNamespaceOutput
	ToEngineNamespaceOutputWithContext(ctx context.Context) EngineNamespaceOutput
}

type EngineNamespaceMap

type EngineNamespaceMap map[string]EngineNamespaceInput

func (EngineNamespaceMap) ElementType

func (EngineNamespaceMap) ElementType() reflect.Type

func (EngineNamespaceMap) ToEngineNamespaceMapOutput

func (i EngineNamespaceMap) ToEngineNamespaceMapOutput() EngineNamespaceMapOutput

func (EngineNamespaceMap) ToEngineNamespaceMapOutputWithContext

func (i EngineNamespaceMap) ToEngineNamespaceMapOutputWithContext(ctx context.Context) EngineNamespaceMapOutput

type EngineNamespaceMapInput

type EngineNamespaceMapInput interface {
	pulumi.Input

	ToEngineNamespaceMapOutput() EngineNamespaceMapOutput
	ToEngineNamespaceMapOutputWithContext(context.Context) EngineNamespaceMapOutput
}

EngineNamespaceMapInput is an input type that accepts EngineNamespaceMap and EngineNamespaceMapOutput values. You can construct a concrete instance of `EngineNamespaceMapInput` via:

EngineNamespaceMap{ "key": EngineNamespaceArgs{...} }

type EngineNamespaceMapOutput

type EngineNamespaceMapOutput struct{ *pulumi.OutputState }

func (EngineNamespaceMapOutput) ElementType

func (EngineNamespaceMapOutput) ElementType() reflect.Type

func (EngineNamespaceMapOutput) MapIndex

func (EngineNamespaceMapOutput) ToEngineNamespaceMapOutput

func (o EngineNamespaceMapOutput) ToEngineNamespaceMapOutput() EngineNamespaceMapOutput

func (EngineNamespaceMapOutput) ToEngineNamespaceMapOutputWithContext

func (o EngineNamespaceMapOutput) ToEngineNamespaceMapOutputWithContext(ctx context.Context) EngineNamespaceMapOutput

type EngineNamespaceOutput

type EngineNamespaceOutput struct{ *pulumi.OutputState }

func (EngineNamespaceOutput) AcceptLanguage

func (o EngineNamespaceOutput) AcceptLanguage() pulumi.StringPtrOutput

The language type of the returned information. Valid values: `zh`, `en`.

func (EngineNamespaceOutput) ClusterId

The id of the cluster.

func (EngineNamespaceOutput) ElementType

func (EngineNamespaceOutput) ElementType() reflect.Type

func (EngineNamespaceOutput) NamespaceId

func (o EngineNamespaceOutput) NamespaceId() pulumi.StringOutput

The id of Namespace.

func (EngineNamespaceOutput) NamespaceShowName

func (o EngineNamespaceOutput) NamespaceShowName() pulumi.StringOutput

The name of the Engine Namespace.

func (EngineNamespaceOutput) ToEngineNamespaceOutput

func (o EngineNamespaceOutput) ToEngineNamespaceOutput() EngineNamespaceOutput

func (EngineNamespaceOutput) ToEngineNamespaceOutputWithContext

func (o EngineNamespaceOutput) ToEngineNamespaceOutputWithContext(ctx context.Context) EngineNamespaceOutput

type EngineNamespaceState

type EngineNamespaceState struct {
	// The language type of the returned information. Valid values: `zh`, `en`.
	AcceptLanguage pulumi.StringPtrInput
	// The id of the cluster.
	ClusterId pulumi.StringPtrInput
	// The id of Namespace.
	NamespaceId pulumi.StringPtrInput
	// The name of the Engine Namespace.
	NamespaceShowName pulumi.StringPtrInput
}

func (EngineNamespaceState) ElementType

func (EngineNamespaceState) ElementType() reflect.Type

type Gateway

type Gateway struct {
	pulumi.CustomResourceState

	// The backup vswitch id.
	BackupVswitchId pulumi.StringPtrOutput `pulumi:"backupVswitchId"`
	// Whether to delete the SLB purchased on behalf of the gateway at the same time.
	DeleteSlb pulumi.BoolPtrOutput `pulumi:"deleteSlb"`
	// Whether the enterprise security group type.
	EnterpriseSecurityGroup pulumi.BoolPtrOutput `pulumi:"enterpriseSecurityGroup"`
	// The name of the Gateway .
	GatewayName pulumi.StringPtrOutput `pulumi:"gatewayName"`
	// Public network SLB specifications.
	InternetSlbSpec pulumi.StringPtrOutput `pulumi:"internetSlbSpec"`
	// Number of Gateway Nodes.
	Replica pulumi.IntOutput `pulumi:"replica"`
	// A list of gateway Slb.
	SlbLists GatewaySlbListArrayOutput `pulumi:"slbLists"`
	// Private network SLB specifications.
	SlbSpec pulumi.StringPtrOutput `pulumi:"slbSpec"`
	// Gateway Node Specifications. Valid values: `MSE_GTW_2_4_200_c`, `MSE_GTW_4_8_200_c`, `MSE_GTW_8_16_200_c`, `MSE_GTW_16_32_200_c`.
	Spec pulumi.StringOutput `pulumi:"spec"`
	// The status of the gateway.
	Status pulumi.StringOutput `pulumi:"status"`
	// The ID of the vpc.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
	// The ID of the vswitch.
	VswitchId pulumi.StringOutput `pulumi:"vswitchId"`
}

Provides a Microservice Engine (MSE) Gateway resource.

For information about Microservice Engine (MSE) Gateway and how to use it, see [What is Gateway](https://help.aliyun.com/document_detail/347638.html).

> **NOTE:** Available in v1.157.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/mse"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultZones.Zones[0].Id),
		}, nil)
		if err != nil {
			return err
		}
		_, err = mse.NewGateway(ctx, "example", &mse.GatewayArgs{
			GatewayName:     pulumi.String("example_value"),
			Replica:         pulumi.Int(2),
			Spec:            pulumi.String("MSE_GTW_2_4_200_c"),
			VswitchId:       pulumi.String(defaultSwitches.Ids[0]),
			BackupVswitchId: pulumi.String(defaultSwitches.Ids[1]),
			VpcId:           pulumi.String(defaultNetworks.Ids[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Microservice Engine (MSE) Gateway can be imported using the id, e.g.

```sh

$ pulumi import alicloud:mse/gateway:Gateway example <id>

```

func GetGateway

func GetGateway(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GatewayState, opts ...pulumi.ResourceOption) (*Gateway, error)

GetGateway gets an existing Gateway resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGateway

func NewGateway(ctx *pulumi.Context,
	name string, args *GatewayArgs, opts ...pulumi.ResourceOption) (*Gateway, error)

NewGateway registers a new resource with the given unique name, arguments, and options.

func (*Gateway) ElementType

func (*Gateway) ElementType() reflect.Type

func (*Gateway) ToGatewayOutput

func (i *Gateway) ToGatewayOutput() GatewayOutput

func (*Gateway) ToGatewayOutputWithContext

func (i *Gateway) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput

type GatewayArgs

type GatewayArgs struct {
	// The backup vswitch id.
	BackupVswitchId pulumi.StringPtrInput
	// Whether to delete the SLB purchased on behalf of the gateway at the same time.
	DeleteSlb pulumi.BoolPtrInput
	// Whether the enterprise security group type.
	EnterpriseSecurityGroup pulumi.BoolPtrInput
	// The name of the Gateway .
	GatewayName pulumi.StringPtrInput
	// Public network SLB specifications.
	InternetSlbSpec pulumi.StringPtrInput
	// Number of Gateway Nodes.
	Replica pulumi.IntInput
	// Private network SLB specifications.
	SlbSpec pulumi.StringPtrInput
	// Gateway Node Specifications. Valid values: `MSE_GTW_2_4_200_c`, `MSE_GTW_4_8_200_c`, `MSE_GTW_8_16_200_c`, `MSE_GTW_16_32_200_c`.
	Spec pulumi.StringInput
	// The ID of the vpc.
	VpcId pulumi.StringInput
	// The ID of the vswitch.
	VswitchId pulumi.StringInput
}

The set of arguments for constructing a Gateway resource.

func (GatewayArgs) ElementType

func (GatewayArgs) ElementType() reflect.Type

type GatewayArray

type GatewayArray []GatewayInput

func (GatewayArray) ElementType

func (GatewayArray) ElementType() reflect.Type

func (GatewayArray) ToGatewayArrayOutput

func (i GatewayArray) ToGatewayArrayOutput() GatewayArrayOutput

func (GatewayArray) ToGatewayArrayOutputWithContext

func (i GatewayArray) ToGatewayArrayOutputWithContext(ctx context.Context) GatewayArrayOutput

type GatewayArrayInput

type GatewayArrayInput interface {
	pulumi.Input

	ToGatewayArrayOutput() GatewayArrayOutput
	ToGatewayArrayOutputWithContext(context.Context) GatewayArrayOutput
}

GatewayArrayInput is an input type that accepts GatewayArray and GatewayArrayOutput values. You can construct a concrete instance of `GatewayArrayInput` via:

GatewayArray{ GatewayArgs{...} }

type GatewayArrayOutput

type GatewayArrayOutput struct{ *pulumi.OutputState }

func (GatewayArrayOutput) ElementType

func (GatewayArrayOutput) ElementType() reflect.Type

func (GatewayArrayOutput) Index

func (GatewayArrayOutput) ToGatewayArrayOutput

func (o GatewayArrayOutput) ToGatewayArrayOutput() GatewayArrayOutput

func (GatewayArrayOutput) ToGatewayArrayOutputWithContext

func (o GatewayArrayOutput) ToGatewayArrayOutputWithContext(ctx context.Context) GatewayArrayOutput

type GatewayInput

type GatewayInput interface {
	pulumi.Input

	ToGatewayOutput() GatewayOutput
	ToGatewayOutputWithContext(ctx context.Context) GatewayOutput
}

type GatewayMap

type GatewayMap map[string]GatewayInput

func (GatewayMap) ElementType

func (GatewayMap) ElementType() reflect.Type

func (GatewayMap) ToGatewayMapOutput

func (i GatewayMap) ToGatewayMapOutput() GatewayMapOutput

func (GatewayMap) ToGatewayMapOutputWithContext

func (i GatewayMap) ToGatewayMapOutputWithContext(ctx context.Context) GatewayMapOutput

type GatewayMapInput

type GatewayMapInput interface {
	pulumi.Input

	ToGatewayMapOutput() GatewayMapOutput
	ToGatewayMapOutputWithContext(context.Context) GatewayMapOutput
}

GatewayMapInput is an input type that accepts GatewayMap and GatewayMapOutput values. You can construct a concrete instance of `GatewayMapInput` via:

GatewayMap{ "key": GatewayArgs{...} }

type GatewayMapOutput

type GatewayMapOutput struct{ *pulumi.OutputState }

func (GatewayMapOutput) ElementType

func (GatewayMapOutput) ElementType() reflect.Type

func (GatewayMapOutput) MapIndex

func (GatewayMapOutput) ToGatewayMapOutput

func (o GatewayMapOutput) ToGatewayMapOutput() GatewayMapOutput

func (GatewayMapOutput) ToGatewayMapOutputWithContext

func (o GatewayMapOutput) ToGatewayMapOutputWithContext(ctx context.Context) GatewayMapOutput

type GatewayOutput

type GatewayOutput struct{ *pulumi.OutputState }

func (GatewayOutput) BackupVswitchId

func (o GatewayOutput) BackupVswitchId() pulumi.StringPtrOutput

The backup vswitch id.

func (GatewayOutput) DeleteSlb

func (o GatewayOutput) DeleteSlb() pulumi.BoolPtrOutput

Whether to delete the SLB purchased on behalf of the gateway at the same time.

func (GatewayOutput) ElementType

func (GatewayOutput) ElementType() reflect.Type

func (GatewayOutput) EnterpriseSecurityGroup

func (o GatewayOutput) EnterpriseSecurityGroup() pulumi.BoolPtrOutput

Whether the enterprise security group type.

func (GatewayOutput) GatewayName

func (o GatewayOutput) GatewayName() pulumi.StringPtrOutput

The name of the Gateway .

func (GatewayOutput) InternetSlbSpec

func (o GatewayOutput) InternetSlbSpec() pulumi.StringPtrOutput

Public network SLB specifications.

func (GatewayOutput) Replica

func (o GatewayOutput) Replica() pulumi.IntOutput

Number of Gateway Nodes.

func (GatewayOutput) SlbLists

A list of gateway Slb.

func (GatewayOutput) SlbSpec

func (o GatewayOutput) SlbSpec() pulumi.StringPtrOutput

Private network SLB specifications.

func (GatewayOutput) Spec

Gateway Node Specifications. Valid values: `MSE_GTW_2_4_200_c`, `MSE_GTW_4_8_200_c`, `MSE_GTW_8_16_200_c`, `MSE_GTW_16_32_200_c`.

func (GatewayOutput) Status

func (o GatewayOutput) Status() pulumi.StringOutput

The status of the gateway.

func (GatewayOutput) ToGatewayOutput

func (o GatewayOutput) ToGatewayOutput() GatewayOutput

func (GatewayOutput) ToGatewayOutputWithContext

func (o GatewayOutput) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput

func (GatewayOutput) VpcId

func (o GatewayOutput) VpcId() pulumi.StringOutput

The ID of the vpc.

func (GatewayOutput) VswitchId

func (o GatewayOutput) VswitchId() pulumi.StringOutput

The ID of the vswitch.

type GatewaySlbList

type GatewaySlbList struct {
	// The associate id.
	AssociateId *string `pulumi:"associateId"`
	// The Mode of the gateway slb.
	GatewaySlbMode *string `pulumi:"gatewaySlbMode"`
	// The Status of the gateway slb.
	GatewaySlbStatus *string `pulumi:"gatewaySlbStatus"`
	// The creation time of the gateway slb.
	GmtCreate *string `pulumi:"gmtCreate"`
	// The ID of the gateway slb.
	SlbId *string `pulumi:"slbId"`
	// The ip of the gateway slb.
	SlbIp *string `pulumi:"slbIp"`
	// The port of the gateway slb.
	SlbPort *string `pulumi:"slbPort"`
	// The type of the gateway slb.
	Type *string `pulumi:"type"`
}

type GatewaySlbListArgs

type GatewaySlbListArgs struct {
	// The associate id.
	AssociateId pulumi.StringPtrInput `pulumi:"associateId"`
	// The Mode of the gateway slb.
	GatewaySlbMode pulumi.StringPtrInput `pulumi:"gatewaySlbMode"`
	// The Status of the gateway slb.
	GatewaySlbStatus pulumi.StringPtrInput `pulumi:"gatewaySlbStatus"`
	// The creation time of the gateway slb.
	GmtCreate pulumi.StringPtrInput `pulumi:"gmtCreate"`
	// The ID of the gateway slb.
	SlbId pulumi.StringPtrInput `pulumi:"slbId"`
	// The ip of the gateway slb.
	SlbIp pulumi.StringPtrInput `pulumi:"slbIp"`
	// The port of the gateway slb.
	SlbPort pulumi.StringPtrInput `pulumi:"slbPort"`
	// The type of the gateway slb.
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (GatewaySlbListArgs) ElementType

func (GatewaySlbListArgs) ElementType() reflect.Type

func (GatewaySlbListArgs) ToGatewaySlbListOutput

func (i GatewaySlbListArgs) ToGatewaySlbListOutput() GatewaySlbListOutput

func (GatewaySlbListArgs) ToGatewaySlbListOutputWithContext

func (i GatewaySlbListArgs) ToGatewaySlbListOutputWithContext(ctx context.Context) GatewaySlbListOutput

type GatewaySlbListArray

type GatewaySlbListArray []GatewaySlbListInput

func (GatewaySlbListArray) ElementType

func (GatewaySlbListArray) ElementType() reflect.Type

func (GatewaySlbListArray) ToGatewaySlbListArrayOutput

func (i GatewaySlbListArray) ToGatewaySlbListArrayOutput() GatewaySlbListArrayOutput

func (GatewaySlbListArray) ToGatewaySlbListArrayOutputWithContext

func (i GatewaySlbListArray) ToGatewaySlbListArrayOutputWithContext(ctx context.Context) GatewaySlbListArrayOutput

type GatewaySlbListArrayInput

type GatewaySlbListArrayInput interface {
	pulumi.Input

	ToGatewaySlbListArrayOutput() GatewaySlbListArrayOutput
	ToGatewaySlbListArrayOutputWithContext(context.Context) GatewaySlbListArrayOutput
}

GatewaySlbListArrayInput is an input type that accepts GatewaySlbListArray and GatewaySlbListArrayOutput values. You can construct a concrete instance of `GatewaySlbListArrayInput` via:

GatewaySlbListArray{ GatewaySlbListArgs{...} }

type GatewaySlbListArrayOutput

type GatewaySlbListArrayOutput struct{ *pulumi.OutputState }

func (GatewaySlbListArrayOutput) ElementType

func (GatewaySlbListArrayOutput) ElementType() reflect.Type

func (GatewaySlbListArrayOutput) Index

func (GatewaySlbListArrayOutput) ToGatewaySlbListArrayOutput

func (o GatewaySlbListArrayOutput) ToGatewaySlbListArrayOutput() GatewaySlbListArrayOutput

func (GatewaySlbListArrayOutput) ToGatewaySlbListArrayOutputWithContext

func (o GatewaySlbListArrayOutput) ToGatewaySlbListArrayOutputWithContext(ctx context.Context) GatewaySlbListArrayOutput

type GatewaySlbListInput

type GatewaySlbListInput interface {
	pulumi.Input

	ToGatewaySlbListOutput() GatewaySlbListOutput
	ToGatewaySlbListOutputWithContext(context.Context) GatewaySlbListOutput
}

GatewaySlbListInput is an input type that accepts GatewaySlbListArgs and GatewaySlbListOutput values. You can construct a concrete instance of `GatewaySlbListInput` via:

GatewaySlbListArgs{...}

type GatewaySlbListOutput

type GatewaySlbListOutput struct{ *pulumi.OutputState }

func (GatewaySlbListOutput) AssociateId

The associate id.

func (GatewaySlbListOutput) ElementType

func (GatewaySlbListOutput) ElementType() reflect.Type

func (GatewaySlbListOutput) GatewaySlbMode

func (o GatewaySlbListOutput) GatewaySlbMode() pulumi.StringPtrOutput

The Mode of the gateway slb.

func (GatewaySlbListOutput) GatewaySlbStatus

func (o GatewaySlbListOutput) GatewaySlbStatus() pulumi.StringPtrOutput

The Status of the gateway slb.

func (GatewaySlbListOutput) GmtCreate

The creation time of the gateway slb.

func (GatewaySlbListOutput) SlbId

The ID of the gateway slb.

func (GatewaySlbListOutput) SlbIp

The ip of the gateway slb.

func (GatewaySlbListOutput) SlbPort

The port of the gateway slb.

func (GatewaySlbListOutput) ToGatewaySlbListOutput

func (o GatewaySlbListOutput) ToGatewaySlbListOutput() GatewaySlbListOutput

func (GatewaySlbListOutput) ToGatewaySlbListOutputWithContext

func (o GatewaySlbListOutput) ToGatewaySlbListOutputWithContext(ctx context.Context) GatewaySlbListOutput

func (GatewaySlbListOutput) Type

The type of the gateway slb.

type GatewayState

type GatewayState struct {
	// The backup vswitch id.
	BackupVswitchId pulumi.StringPtrInput
	// Whether to delete the SLB purchased on behalf of the gateway at the same time.
	DeleteSlb pulumi.BoolPtrInput
	// Whether the enterprise security group type.
	EnterpriseSecurityGroup pulumi.BoolPtrInput
	// The name of the Gateway .
	GatewayName pulumi.StringPtrInput
	// Public network SLB specifications.
	InternetSlbSpec pulumi.StringPtrInput
	// Number of Gateway Nodes.
	Replica pulumi.IntPtrInput
	// A list of gateway Slb.
	SlbLists GatewaySlbListArrayInput
	// Private network SLB specifications.
	SlbSpec pulumi.StringPtrInput
	// Gateway Node Specifications. Valid values: `MSE_GTW_2_4_200_c`, `MSE_GTW_4_8_200_c`, `MSE_GTW_8_16_200_c`, `MSE_GTW_16_32_200_c`.
	Spec pulumi.StringPtrInput
	// The status of the gateway.
	Status pulumi.StringPtrInput
	// The ID of the vpc.
	VpcId pulumi.StringPtrInput
	// The ID of the vswitch.
	VswitchId pulumi.StringPtrInput
}

func (GatewayState) ElementType

func (GatewayState) ElementType() reflect.Type

type GetClustersArgs

type GetClustersArgs struct {
	// The alias name of MSE Cluster.
	ClusterAliasName *string `pulumi:"clusterAliasName"`
	EnableDetails    *bool   `pulumi:"enableDetails"`
	// A list of MSE Cluster ids.
	Ids []string `pulumi:"ids"`
	// A regex string to filter the results by the cluster alias name.
	NameRegex   *string `pulumi:"nameRegex"`
	OutputFile  *string `pulumi:"outputFile"`
	RequestPars *string `pulumi:"requestPars"`
	// The status of MSE Cluster. Valid: `DESTROY_FAILED`, `DESTROY_ING`, `DESTROY_SUCCESS`, `INIT_FAILED`, `INIT_ING`, `INIT_SUCCESS`, `INIT_TIME_OUT`, `RESTART_FAILED`, `RESTART_ING`, `RESTART_SUCCESS`, `SCALE_FAILED`, `SCALE_ING`, `SCALE_SUCCESS`
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getClusters.

type GetClustersCluster

type GetClustersCluster struct {
	// The id of acl.
	AclId string `pulumi:"aclId"`
	// The version of app.
	AppVersion string `pulumi:"appVersion"`
	// ID of the MSE Cluster.
	ClusterId string `pulumi:"clusterId"`
	// ID of the OOS Executions.
	ClusterName string `pulumi:"clusterName"`
	// The type of MSE Cluster.
	ClusterType string `pulumi:"clusterType"`
	// The num of cpu.
	Cpu int `pulumi:"cpu"`
	// The health status of MSE Cluster.
	HealthStatus string `pulumi:"healthStatus"`
	// ID of the MSE Cluster.
	Id string `pulumi:"id"`
	// Time-consuming to create.
	InitCostTime int `pulumi:"initCostTime"`
	// The count of instance.
	InstanceCount int `pulumi:"instanceCount"`
	// ID of the MSE Cluster.
	InstanceId string `pulumi:"instanceId"`
	// The list of instances.
	InstanceModels []GetClustersClusterInstanceModel `pulumi:"instanceModels"`
	// The address of public network.
	InternetAddress string `pulumi:"internetAddress"`
	// The domain of public network.
	InternetDomain string `pulumi:"internetDomain"`
	// The port of public network.
	InternetPort string `pulumi:"internetPort"`
	// The address of private network.
	IntranetAddress string `pulumi:"intranetAddress"`
	// The domain of private network.
	IntranetDomain string `pulumi:"intranetDomain"`
	// The port of private network.
	IntranetPort string `pulumi:"intranetPort"`
	// The memory size.
	MemoryCapacity int `pulumi:"memoryCapacity"`
	// The type of payment.
	PayInfo string `pulumi:"payInfo"`
	// The public network bandwidth.
	PubNetworkFlow string `pulumi:"pubNetworkFlow"`
	// The status of MSE Cluster. Valid: `DESTROY_FAILED`, `DESTROY_ING`, `DESTROY_SUCCESS`, `INIT_FAILED`, `INIT_ING`, `INIT_SUCCESS`, `INIT_TIME_OUT`, `RESTART_FAILED`, `RESTART_ING`, `RESTART_SUCCESS`, `SCALE_FAILED`, `SCALE_ING`, `SCALE_SUCCESS`
	Status string `pulumi:"status"`
}

type GetClustersClusterArgs

type GetClustersClusterArgs struct {
	// The id of acl.
	AclId pulumi.StringInput `pulumi:"aclId"`
	// The version of app.
	AppVersion pulumi.StringInput `pulumi:"appVersion"`
	// ID of the MSE Cluster.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// ID of the OOS Executions.
	ClusterName pulumi.StringInput `pulumi:"clusterName"`
	// The type of MSE Cluster.
	ClusterType pulumi.StringInput `pulumi:"clusterType"`
	// The num of cpu.
	Cpu pulumi.IntInput `pulumi:"cpu"`
	// The health status of MSE Cluster.
	HealthStatus pulumi.StringInput `pulumi:"healthStatus"`
	// ID of the MSE Cluster.
	Id pulumi.StringInput `pulumi:"id"`
	// Time-consuming to create.
	InitCostTime pulumi.IntInput `pulumi:"initCostTime"`
	// The count of instance.
	InstanceCount pulumi.IntInput `pulumi:"instanceCount"`
	// ID of the MSE Cluster.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The list of instances.
	InstanceModels GetClustersClusterInstanceModelArrayInput `pulumi:"instanceModels"`
	// The address of public network.
	InternetAddress pulumi.StringInput `pulumi:"internetAddress"`
	// The domain of public network.
	InternetDomain pulumi.StringInput `pulumi:"internetDomain"`
	// The port of public network.
	InternetPort pulumi.StringInput `pulumi:"internetPort"`
	// The address of private network.
	IntranetAddress pulumi.StringInput `pulumi:"intranetAddress"`
	// The domain of private network.
	IntranetDomain pulumi.StringInput `pulumi:"intranetDomain"`
	// The port of private network.
	IntranetPort pulumi.StringInput `pulumi:"intranetPort"`
	// The memory size.
	MemoryCapacity pulumi.IntInput `pulumi:"memoryCapacity"`
	// The type of payment.
	PayInfo pulumi.StringInput `pulumi:"payInfo"`
	// The public network bandwidth.
	PubNetworkFlow pulumi.StringInput `pulumi:"pubNetworkFlow"`
	// The status of MSE Cluster. Valid: `DESTROY_FAILED`, `DESTROY_ING`, `DESTROY_SUCCESS`, `INIT_FAILED`, `INIT_ING`, `INIT_SUCCESS`, `INIT_TIME_OUT`, `RESTART_FAILED`, `RESTART_ING`, `RESTART_SUCCESS`, `SCALE_FAILED`, `SCALE_ING`, `SCALE_SUCCESS`
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetClustersClusterArgs) ElementType

func (GetClustersClusterArgs) ElementType() reflect.Type

func (GetClustersClusterArgs) ToGetClustersClusterOutput

func (i GetClustersClusterArgs) ToGetClustersClusterOutput() GetClustersClusterOutput

func (GetClustersClusterArgs) ToGetClustersClusterOutputWithContext

func (i GetClustersClusterArgs) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput

type GetClustersClusterArray

type GetClustersClusterArray []GetClustersClusterInput

func (GetClustersClusterArray) ElementType

func (GetClustersClusterArray) ElementType() reflect.Type

func (GetClustersClusterArray) ToGetClustersClusterArrayOutput

func (i GetClustersClusterArray) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput

func (GetClustersClusterArray) ToGetClustersClusterArrayOutputWithContext

func (i GetClustersClusterArray) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput

type GetClustersClusterArrayInput

type GetClustersClusterArrayInput interface {
	pulumi.Input

	ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput
	ToGetClustersClusterArrayOutputWithContext(context.Context) GetClustersClusterArrayOutput
}

GetClustersClusterArrayInput is an input type that accepts GetClustersClusterArray and GetClustersClusterArrayOutput values. You can construct a concrete instance of `GetClustersClusterArrayInput` via:

GetClustersClusterArray{ GetClustersClusterArgs{...} }

type GetClustersClusterArrayOutput

type GetClustersClusterArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterArrayOutput) ElementType

func (GetClustersClusterArrayOutput) Index

func (GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput

func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput

func (GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext

func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput

type GetClustersClusterInput

type GetClustersClusterInput interface {
	pulumi.Input

	ToGetClustersClusterOutput() GetClustersClusterOutput
	ToGetClustersClusterOutputWithContext(context.Context) GetClustersClusterOutput
}

GetClustersClusterInput is an input type that accepts GetClustersClusterArgs and GetClustersClusterOutput values. You can construct a concrete instance of `GetClustersClusterInput` via:

GetClustersClusterArgs{...}

type GetClustersClusterInstanceModel

type GetClustersClusterInstanceModel struct {
	// The health status of MSE Cluster.
	HealthStatus    string `pulumi:"healthStatus"`
	InstanceType    string `pulumi:"instanceType"`
	InternetIp      string `pulumi:"internetIp"`
	Ip              string `pulumi:"ip"`
	PodName         string `pulumi:"podName"`
	Role            string `pulumi:"role"`
	SingleTunnelVip string `pulumi:"singleTunnelVip"`
	Vip             string `pulumi:"vip"`
}

type GetClustersClusterInstanceModelArgs

type GetClustersClusterInstanceModelArgs struct {
	// The health status of MSE Cluster.
	HealthStatus    pulumi.StringInput `pulumi:"healthStatus"`
	InstanceType    pulumi.StringInput `pulumi:"instanceType"`
	InternetIp      pulumi.StringInput `pulumi:"internetIp"`
	Ip              pulumi.StringInput `pulumi:"ip"`
	PodName         pulumi.StringInput `pulumi:"podName"`
	Role            pulumi.StringInput `pulumi:"role"`
	SingleTunnelVip pulumi.StringInput `pulumi:"singleTunnelVip"`
	Vip             pulumi.StringInput `pulumi:"vip"`
}

func (GetClustersClusterInstanceModelArgs) ElementType

func (GetClustersClusterInstanceModelArgs) ToGetClustersClusterInstanceModelOutput

func (i GetClustersClusterInstanceModelArgs) ToGetClustersClusterInstanceModelOutput() GetClustersClusterInstanceModelOutput

func (GetClustersClusterInstanceModelArgs) ToGetClustersClusterInstanceModelOutputWithContext

func (i GetClustersClusterInstanceModelArgs) ToGetClustersClusterInstanceModelOutputWithContext(ctx context.Context) GetClustersClusterInstanceModelOutput

type GetClustersClusterInstanceModelArray

type GetClustersClusterInstanceModelArray []GetClustersClusterInstanceModelInput

func (GetClustersClusterInstanceModelArray) ElementType

func (GetClustersClusterInstanceModelArray) ToGetClustersClusterInstanceModelArrayOutput

func (i GetClustersClusterInstanceModelArray) ToGetClustersClusterInstanceModelArrayOutput() GetClustersClusterInstanceModelArrayOutput

func (GetClustersClusterInstanceModelArray) ToGetClustersClusterInstanceModelArrayOutputWithContext

func (i GetClustersClusterInstanceModelArray) ToGetClustersClusterInstanceModelArrayOutputWithContext(ctx context.Context) GetClustersClusterInstanceModelArrayOutput

type GetClustersClusterInstanceModelArrayInput

type GetClustersClusterInstanceModelArrayInput interface {
	pulumi.Input

	ToGetClustersClusterInstanceModelArrayOutput() GetClustersClusterInstanceModelArrayOutput
	ToGetClustersClusterInstanceModelArrayOutputWithContext(context.Context) GetClustersClusterInstanceModelArrayOutput
}

GetClustersClusterInstanceModelArrayInput is an input type that accepts GetClustersClusterInstanceModelArray and GetClustersClusterInstanceModelArrayOutput values. You can construct a concrete instance of `GetClustersClusterInstanceModelArrayInput` via:

GetClustersClusterInstanceModelArray{ GetClustersClusterInstanceModelArgs{...} }

type GetClustersClusterInstanceModelArrayOutput

type GetClustersClusterInstanceModelArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterInstanceModelArrayOutput) ElementType

func (GetClustersClusterInstanceModelArrayOutput) Index

func (GetClustersClusterInstanceModelArrayOutput) ToGetClustersClusterInstanceModelArrayOutput

func (o GetClustersClusterInstanceModelArrayOutput) ToGetClustersClusterInstanceModelArrayOutput() GetClustersClusterInstanceModelArrayOutput

func (GetClustersClusterInstanceModelArrayOutput) ToGetClustersClusterInstanceModelArrayOutputWithContext

func (o GetClustersClusterInstanceModelArrayOutput) ToGetClustersClusterInstanceModelArrayOutputWithContext(ctx context.Context) GetClustersClusterInstanceModelArrayOutput

type GetClustersClusterInstanceModelInput

type GetClustersClusterInstanceModelInput interface {
	pulumi.Input

	ToGetClustersClusterInstanceModelOutput() GetClustersClusterInstanceModelOutput
	ToGetClustersClusterInstanceModelOutputWithContext(context.Context) GetClustersClusterInstanceModelOutput
}

GetClustersClusterInstanceModelInput is an input type that accepts GetClustersClusterInstanceModelArgs and GetClustersClusterInstanceModelOutput values. You can construct a concrete instance of `GetClustersClusterInstanceModelInput` via:

GetClustersClusterInstanceModelArgs{...}

type GetClustersClusterInstanceModelOutput

type GetClustersClusterInstanceModelOutput struct{ *pulumi.OutputState }

func (GetClustersClusterInstanceModelOutput) ElementType

func (GetClustersClusterInstanceModelOutput) HealthStatus

The health status of MSE Cluster.

func (GetClustersClusterInstanceModelOutput) InstanceType

func (GetClustersClusterInstanceModelOutput) InternetIp

func (GetClustersClusterInstanceModelOutput) Ip

func (GetClustersClusterInstanceModelOutput) PodName

func (GetClustersClusterInstanceModelOutput) Role

func (GetClustersClusterInstanceModelOutput) SingleTunnelVip

func (GetClustersClusterInstanceModelOutput) ToGetClustersClusterInstanceModelOutput

func (o GetClustersClusterInstanceModelOutput) ToGetClustersClusterInstanceModelOutput() GetClustersClusterInstanceModelOutput

func (GetClustersClusterInstanceModelOutput) ToGetClustersClusterInstanceModelOutputWithContext

func (o GetClustersClusterInstanceModelOutput) ToGetClustersClusterInstanceModelOutputWithContext(ctx context.Context) GetClustersClusterInstanceModelOutput

func (GetClustersClusterInstanceModelOutput) Vip

type GetClustersClusterOutput

type GetClustersClusterOutput struct{ *pulumi.OutputState }

func (GetClustersClusterOutput) AclId

The id of acl.

func (GetClustersClusterOutput) AppVersion

The version of app.

func (GetClustersClusterOutput) ClusterId

ID of the MSE Cluster.

func (GetClustersClusterOutput) ClusterName

ID of the OOS Executions.

func (GetClustersClusterOutput) ClusterType

The type of MSE Cluster.

func (GetClustersClusterOutput) Cpu

The num of cpu.

func (GetClustersClusterOutput) ElementType

func (GetClustersClusterOutput) ElementType() reflect.Type

func (GetClustersClusterOutput) HealthStatus

func (o GetClustersClusterOutput) HealthStatus() pulumi.StringOutput

The health status of MSE Cluster.

func (GetClustersClusterOutput) Id

ID of the MSE Cluster.

func (GetClustersClusterOutput) InitCostTime

func (o GetClustersClusterOutput) InitCostTime() pulumi.IntOutput

Time-consuming to create.

func (GetClustersClusterOutput) InstanceCount

func (o GetClustersClusterOutput) InstanceCount() pulumi.IntOutput

The count of instance.

func (GetClustersClusterOutput) InstanceId

ID of the MSE Cluster.

func (GetClustersClusterOutput) InstanceModels

The list of instances.

func (GetClustersClusterOutput) InternetAddress

func (o GetClustersClusterOutput) InternetAddress() pulumi.StringOutput

The address of public network.

func (GetClustersClusterOutput) InternetDomain

func (o GetClustersClusterOutput) InternetDomain() pulumi.StringOutput

The domain of public network.

func (GetClustersClusterOutput) InternetPort

func (o GetClustersClusterOutput) InternetPort() pulumi.StringOutput

The port of public network.

func (GetClustersClusterOutput) IntranetAddress

func (o GetClustersClusterOutput) IntranetAddress() pulumi.StringOutput

The address of private network.

func (GetClustersClusterOutput) IntranetDomain

func (o GetClustersClusterOutput) IntranetDomain() pulumi.StringOutput

The domain of private network.

func (GetClustersClusterOutput) IntranetPort

func (o GetClustersClusterOutput) IntranetPort() pulumi.StringOutput

The port of private network.

func (GetClustersClusterOutput) MemoryCapacity

func (o GetClustersClusterOutput) MemoryCapacity() pulumi.IntOutput

The memory size.

func (GetClustersClusterOutput) PayInfo

The type of payment.

func (GetClustersClusterOutput) PubNetworkFlow

func (o GetClustersClusterOutput) PubNetworkFlow() pulumi.StringOutput

The public network bandwidth.

func (GetClustersClusterOutput) Status

The status of MSE Cluster. Valid: `DESTROY_FAILED`, `DESTROY_ING`, `DESTROY_SUCCESS`, `INIT_FAILED`, `INIT_ING`, `INIT_SUCCESS`, `INIT_TIME_OUT`, `RESTART_FAILED`, `RESTART_ING`, `RESTART_SUCCESS`, `SCALE_FAILED`, `SCALE_ING`, `SCALE_SUCCESS`

func (GetClustersClusterOutput) ToGetClustersClusterOutput

func (o GetClustersClusterOutput) ToGetClustersClusterOutput() GetClustersClusterOutput

func (GetClustersClusterOutput) ToGetClustersClusterOutputWithContext

func (o GetClustersClusterOutput) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput

type GetClustersOutputArgs

type GetClustersOutputArgs struct {
	// The alias name of MSE Cluster.
	ClusterAliasName pulumi.StringPtrInput `pulumi:"clusterAliasName"`
	EnableDetails    pulumi.BoolPtrInput   `pulumi:"enableDetails"`
	// A list of MSE Cluster ids.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter the results by the cluster alias name.
	NameRegex   pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile  pulumi.StringPtrInput `pulumi:"outputFile"`
	RequestPars pulumi.StringPtrInput `pulumi:"requestPars"`
	// The status of MSE Cluster. Valid: `DESTROY_FAILED`, `DESTROY_ING`, `DESTROY_SUCCESS`, `INIT_FAILED`, `INIT_ING`, `INIT_SUCCESS`, `INIT_TIME_OUT`, `RESTART_FAILED`, `RESTART_ING`, `RESTART_SUCCESS`, `SCALE_FAILED`, `SCALE_ING`, `SCALE_SUCCESS`
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getClusters.

func (GetClustersOutputArgs) ElementType

func (GetClustersOutputArgs) ElementType() reflect.Type

type GetClustersResult

type GetClustersResult struct {
	ClusterAliasName *string `pulumi:"clusterAliasName"`
	// A list of MSE Clusters. Each element contains the following attributes:
	Clusters      []GetClustersCluster `pulumi:"clusters"`
	EnableDetails *bool                `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of MSE Cluster ids.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of MSE Cluster names.
	Names       []string `pulumi:"names"`
	OutputFile  *string  `pulumi:"outputFile"`
	RequestPars *string  `pulumi:"requestPars"`
	// The status of MSE Cluster.
	Status *string `pulumi:"status"`
}

A collection of values returned by getClusters.

func GetClusters

func GetClusters(ctx *pulumi.Context, args *GetClustersArgs, opts ...pulumi.InvokeOption) (*GetClustersResult, error)

This data source provides a list of MSE Clusters in an Alibaba Cloud account according to the specified filters.

> **NOTE:** Available in v1.94.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/mse"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/mse"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := mse.GetClusters(ctx, &mse.GetClustersArgs{
			Ids: []string{
				"mse-cn-0d9xxxx",
			},
			Status: pulumi.StringRef("INIT_SUCCESS"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("clusterId", example.Clusters[0].Id)
		return nil
	})
}

```

type GetClustersResultOutput

type GetClustersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getClusters.

func (GetClustersResultOutput) ClusterAliasName

func (o GetClustersResultOutput) ClusterAliasName() pulumi.StringPtrOutput

func (GetClustersResultOutput) Clusters

A list of MSE Clusters. Each element contains the following attributes:

func (GetClustersResultOutput) ElementType

func (GetClustersResultOutput) ElementType() reflect.Type

func (GetClustersResultOutput) EnableDetails

func (o GetClustersResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetClustersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetClustersResultOutput) Ids

A list of MSE Cluster ids.

func (GetClustersResultOutput) NameRegex

func (GetClustersResultOutput) Names

A list of MSE Cluster names.

func (GetClustersResultOutput) OutputFile

func (GetClustersResultOutput) RequestPars

func (GetClustersResultOutput) Status

The status of MSE Cluster.

func (GetClustersResultOutput) ToGetClustersResultOutput

func (o GetClustersResultOutput) ToGetClustersResultOutput() GetClustersResultOutput

func (GetClustersResultOutput) ToGetClustersResultOutputWithContext

func (o GetClustersResultOutput) ToGetClustersResultOutputWithContext(ctx context.Context) GetClustersResultOutput

type GetEngineNamespacesArgs

type GetEngineNamespacesArgs struct {
	// The language type of the returned information. Valid values: `zh`, `en`.
	AcceptLanguage *string `pulumi:"acceptLanguage"`
	// The id of the cluster.
	ClusterId string `pulumi:"clusterId"`
	// A list of Engine Namespace IDs. It is formatted to `<cluster_id>:<namespace_id>`.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of arguments for invoking getEngineNamespaces.

type GetEngineNamespacesNamespace

type GetEngineNamespacesNamespace struct {
	// The Number of Configuration of the Namespace.
	ConfigCount int `pulumi:"configCount"`
	// The ID of the Engine Namespace. It is formatted to `<cluster_id>:<namespace_id>`.
	Id string `pulumi:"id"`
	// The description of the Namespace.
	NamespaceDesc string `pulumi:"namespaceDesc"`
	// The id of Namespace.
	NamespaceId string `pulumi:"namespaceId"`
	// The name of the Namespace.
	NamespaceShowName string `pulumi:"namespaceShowName"`
	// The Quota of the Namespace.
	Quota int `pulumi:"quota"`
	// The number of active services.
	ServiceCount string `pulumi:"serviceCount"`
	// The type of the Namespace, the value is as follows:
	// - '0': Global Configuration.
	// - '1': default namespace.
	// - '2': Custom Namespace.
	Type int `pulumi:"type"`
}

type GetEngineNamespacesNamespaceArgs

type GetEngineNamespacesNamespaceArgs struct {
	// The Number of Configuration of the Namespace.
	ConfigCount pulumi.IntInput `pulumi:"configCount"`
	// The ID of the Engine Namespace. It is formatted to `<cluster_id>:<namespace_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The description of the Namespace.
	NamespaceDesc pulumi.StringInput `pulumi:"namespaceDesc"`
	// The id of Namespace.
	NamespaceId pulumi.StringInput `pulumi:"namespaceId"`
	// The name of the Namespace.
	NamespaceShowName pulumi.StringInput `pulumi:"namespaceShowName"`
	// The Quota of the Namespace.
	Quota pulumi.IntInput `pulumi:"quota"`
	// The number of active services.
	ServiceCount pulumi.StringInput `pulumi:"serviceCount"`
	// The type of the Namespace, the value is as follows:
	// - '0': Global Configuration.
	// - '1': default namespace.
	// - '2': Custom Namespace.
	Type pulumi.IntInput `pulumi:"type"`
}

func (GetEngineNamespacesNamespaceArgs) ElementType

func (GetEngineNamespacesNamespaceArgs) ToGetEngineNamespacesNamespaceOutput

func (i GetEngineNamespacesNamespaceArgs) ToGetEngineNamespacesNamespaceOutput() GetEngineNamespacesNamespaceOutput

func (GetEngineNamespacesNamespaceArgs) ToGetEngineNamespacesNamespaceOutputWithContext

func (i GetEngineNamespacesNamespaceArgs) ToGetEngineNamespacesNamespaceOutputWithContext(ctx context.Context) GetEngineNamespacesNamespaceOutput

type GetEngineNamespacesNamespaceArray

type GetEngineNamespacesNamespaceArray []GetEngineNamespacesNamespaceInput

func (GetEngineNamespacesNamespaceArray) ElementType

func (GetEngineNamespacesNamespaceArray) ToGetEngineNamespacesNamespaceArrayOutput

func (i GetEngineNamespacesNamespaceArray) ToGetEngineNamespacesNamespaceArrayOutput() GetEngineNamespacesNamespaceArrayOutput

func (GetEngineNamespacesNamespaceArray) ToGetEngineNamespacesNamespaceArrayOutputWithContext

func (i GetEngineNamespacesNamespaceArray) ToGetEngineNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetEngineNamespacesNamespaceArrayOutput

type GetEngineNamespacesNamespaceArrayInput

type GetEngineNamespacesNamespaceArrayInput interface {
	pulumi.Input

	ToGetEngineNamespacesNamespaceArrayOutput() GetEngineNamespacesNamespaceArrayOutput
	ToGetEngineNamespacesNamespaceArrayOutputWithContext(context.Context) GetEngineNamespacesNamespaceArrayOutput
}

GetEngineNamespacesNamespaceArrayInput is an input type that accepts GetEngineNamespacesNamespaceArray and GetEngineNamespacesNamespaceArrayOutput values. You can construct a concrete instance of `GetEngineNamespacesNamespaceArrayInput` via:

GetEngineNamespacesNamespaceArray{ GetEngineNamespacesNamespaceArgs{...} }

type GetEngineNamespacesNamespaceArrayOutput

type GetEngineNamespacesNamespaceArrayOutput struct{ *pulumi.OutputState }

func (GetEngineNamespacesNamespaceArrayOutput) ElementType

func (GetEngineNamespacesNamespaceArrayOutput) Index

func (GetEngineNamespacesNamespaceArrayOutput) ToGetEngineNamespacesNamespaceArrayOutput

func (o GetEngineNamespacesNamespaceArrayOutput) ToGetEngineNamespacesNamespaceArrayOutput() GetEngineNamespacesNamespaceArrayOutput

func (GetEngineNamespacesNamespaceArrayOutput) ToGetEngineNamespacesNamespaceArrayOutputWithContext

func (o GetEngineNamespacesNamespaceArrayOutput) ToGetEngineNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetEngineNamespacesNamespaceArrayOutput

type GetEngineNamespacesNamespaceInput

type GetEngineNamespacesNamespaceInput interface {
	pulumi.Input

	ToGetEngineNamespacesNamespaceOutput() GetEngineNamespacesNamespaceOutput
	ToGetEngineNamespacesNamespaceOutputWithContext(context.Context) GetEngineNamespacesNamespaceOutput
}

GetEngineNamespacesNamespaceInput is an input type that accepts GetEngineNamespacesNamespaceArgs and GetEngineNamespacesNamespaceOutput values. You can construct a concrete instance of `GetEngineNamespacesNamespaceInput` via:

GetEngineNamespacesNamespaceArgs{...}

type GetEngineNamespacesNamespaceOutput

type GetEngineNamespacesNamespaceOutput struct{ *pulumi.OutputState }

func (GetEngineNamespacesNamespaceOutput) ConfigCount

The Number of Configuration of the Namespace.

func (GetEngineNamespacesNamespaceOutput) ElementType

func (GetEngineNamespacesNamespaceOutput) Id

The ID of the Engine Namespace. It is formatted to `<cluster_id>:<namespace_id>`.

func (GetEngineNamespacesNamespaceOutput) NamespaceDesc

The description of the Namespace.

func (GetEngineNamespacesNamespaceOutput) NamespaceId

The id of Namespace.

func (GetEngineNamespacesNamespaceOutput) NamespaceShowName

The name of the Namespace.

func (GetEngineNamespacesNamespaceOutput) Quota

The Quota of the Namespace.

func (GetEngineNamespacesNamespaceOutput) ServiceCount

The number of active services.

func (GetEngineNamespacesNamespaceOutput) ToGetEngineNamespacesNamespaceOutput

func (o GetEngineNamespacesNamespaceOutput) ToGetEngineNamespacesNamespaceOutput() GetEngineNamespacesNamespaceOutput

func (GetEngineNamespacesNamespaceOutput) ToGetEngineNamespacesNamespaceOutputWithContext

func (o GetEngineNamespacesNamespaceOutput) ToGetEngineNamespacesNamespaceOutputWithContext(ctx context.Context) GetEngineNamespacesNamespaceOutput

func (GetEngineNamespacesNamespaceOutput) Type

The type of the Namespace, the value is as follows: - '0': Global Configuration. - '1': default namespace. - '2': Custom Namespace.

type GetEngineNamespacesOutputArgs

type GetEngineNamespacesOutputArgs struct {
	// The language type of the returned information. Valid values: `zh`, `en`.
	AcceptLanguage pulumi.StringPtrInput `pulumi:"acceptLanguage"`
	// The id of the cluster.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// A list of Engine Namespace IDs. It is formatted to `<cluster_id>:<namespace_id>`.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
}

A collection of arguments for invoking getEngineNamespaces.

func (GetEngineNamespacesOutputArgs) ElementType

type GetEngineNamespacesResult

type GetEngineNamespacesResult struct {
	AcceptLanguage *string `pulumi:"acceptLanguage"`
	ClusterId      string  `pulumi:"clusterId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                         `pulumi:"id"`
	Ids        []string                       `pulumi:"ids"`
	Namespaces []GetEngineNamespacesNamespace `pulumi:"namespaces"`
	OutputFile *string                        `pulumi:"outputFile"`
}

A collection of values returned by getEngineNamespaces.

func GetEngineNamespaces

func GetEngineNamespaces(ctx *pulumi.Context, args *GetEngineNamespacesArgs, opts ...pulumi.InvokeOption) (*GetEngineNamespacesResult, error)

This data source provides the Mse Engine Namespaces of the current Alibaba Cloud user.

> **NOTE:** Available in v1.166.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/mse"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/mse"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := mse.GetEngineNamespaces(ctx, &mse.GetEngineNamespacesArgs{
			ClusterId: "example_value",
			Ids: []string{
				"example_value",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("mseEngineNamespaceId1", ids.Namespaces[0].Id)
		return nil
	})
}

```

type GetEngineNamespacesResultOutput

type GetEngineNamespacesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEngineNamespaces.

func (GetEngineNamespacesResultOutput) AcceptLanguage

func (GetEngineNamespacesResultOutput) ClusterId

func (GetEngineNamespacesResultOutput) ElementType

func (GetEngineNamespacesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEngineNamespacesResultOutput) Ids

func (GetEngineNamespacesResultOutput) Namespaces

func (GetEngineNamespacesResultOutput) OutputFile

func (GetEngineNamespacesResultOutput) ToGetEngineNamespacesResultOutput

func (o GetEngineNamespacesResultOutput) ToGetEngineNamespacesResultOutput() GetEngineNamespacesResultOutput

func (GetEngineNamespacesResultOutput) ToGetEngineNamespacesResultOutputWithContext

func (o GetEngineNamespacesResultOutput) ToGetEngineNamespacesResultOutputWithContext(ctx context.Context) GetEngineNamespacesResultOutput

type GetGatewaysArgs

type GetGatewaysArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// The name of the Gateway.
	GatewayName *string `pulumi:"gatewayName"`
	// A list of Gateway IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Gateway name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the gateway.
	Status *string `pulumi:"status"`
	// The ID of the vpc.
	VpcId *string `pulumi:"vpcId"`
}

A collection of arguments for invoking getGateways.

type GetGatewaysGateway

type GetGatewaysGateway struct {
	// The backup vswitch id.
	BackupVswitchId string `pulumi:"backupVswitchId"`
	// The name of the Gateway.
	GatewayName string `pulumi:"gatewayName"`
	// Gateway unique identification.
	GatewayUniqueId string `pulumi:"gatewayUniqueId"`
	// The ID of the Gateway.
	Id string `pulumi:"id"`
	// The payment type of the resource.
	PaymentType string `pulumi:"paymentType"`
	// Number of Gateway Nodes.
	Replica string `pulumi:"replica"`
	// A list of gateway Slb.
	SlbLists []GetGatewaysGatewaySlbList `pulumi:"slbLists"`
	// Gateway Node Specifications.
	Spec string `pulumi:"spec"`
	// The status of the gateway.
	Status string `pulumi:"status"`
	// The ID of the vpc.
	VpcId string `pulumi:"vpcId"`
	// The ID of the vswitch.
	VswitchId string `pulumi:"vswitchId"`
}

type GetGatewaysGatewayArgs

type GetGatewaysGatewayArgs struct {
	// The backup vswitch id.
	BackupVswitchId pulumi.StringInput `pulumi:"backupVswitchId"`
	// The name of the Gateway.
	GatewayName pulumi.StringInput `pulumi:"gatewayName"`
	// Gateway unique identification.
	GatewayUniqueId pulumi.StringInput `pulumi:"gatewayUniqueId"`
	// The ID of the Gateway.
	Id pulumi.StringInput `pulumi:"id"`
	// The payment type of the resource.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// Number of Gateway Nodes.
	Replica pulumi.StringInput `pulumi:"replica"`
	// A list of gateway Slb.
	SlbLists GetGatewaysGatewaySlbListArrayInput `pulumi:"slbLists"`
	// Gateway Node Specifications.
	Spec pulumi.StringInput `pulumi:"spec"`
	// The status of the gateway.
	Status pulumi.StringInput `pulumi:"status"`
	// The ID of the vpc.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The ID of the vswitch.
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
}

func (GetGatewaysGatewayArgs) ElementType

func (GetGatewaysGatewayArgs) ElementType() reflect.Type

func (GetGatewaysGatewayArgs) ToGetGatewaysGatewayOutput

func (i GetGatewaysGatewayArgs) ToGetGatewaysGatewayOutput() GetGatewaysGatewayOutput

func (GetGatewaysGatewayArgs) ToGetGatewaysGatewayOutputWithContext

func (i GetGatewaysGatewayArgs) ToGetGatewaysGatewayOutputWithContext(ctx context.Context) GetGatewaysGatewayOutput

type GetGatewaysGatewayArray

type GetGatewaysGatewayArray []GetGatewaysGatewayInput

func (GetGatewaysGatewayArray) ElementType

func (GetGatewaysGatewayArray) ElementType() reflect.Type

func (GetGatewaysGatewayArray) ToGetGatewaysGatewayArrayOutput

func (i GetGatewaysGatewayArray) ToGetGatewaysGatewayArrayOutput() GetGatewaysGatewayArrayOutput

func (GetGatewaysGatewayArray) ToGetGatewaysGatewayArrayOutputWithContext

func (i GetGatewaysGatewayArray) ToGetGatewaysGatewayArrayOutputWithContext(ctx context.Context) GetGatewaysGatewayArrayOutput

type GetGatewaysGatewayArrayInput

type GetGatewaysGatewayArrayInput interface {
	pulumi.Input

	ToGetGatewaysGatewayArrayOutput() GetGatewaysGatewayArrayOutput
	ToGetGatewaysGatewayArrayOutputWithContext(context.Context) GetGatewaysGatewayArrayOutput
}

GetGatewaysGatewayArrayInput is an input type that accepts GetGatewaysGatewayArray and GetGatewaysGatewayArrayOutput values. You can construct a concrete instance of `GetGatewaysGatewayArrayInput` via:

GetGatewaysGatewayArray{ GetGatewaysGatewayArgs{...} }

type GetGatewaysGatewayArrayOutput

type GetGatewaysGatewayArrayOutput struct{ *pulumi.OutputState }

func (GetGatewaysGatewayArrayOutput) ElementType

func (GetGatewaysGatewayArrayOutput) Index

func (GetGatewaysGatewayArrayOutput) ToGetGatewaysGatewayArrayOutput

func (o GetGatewaysGatewayArrayOutput) ToGetGatewaysGatewayArrayOutput() GetGatewaysGatewayArrayOutput

func (GetGatewaysGatewayArrayOutput) ToGetGatewaysGatewayArrayOutputWithContext

func (o GetGatewaysGatewayArrayOutput) ToGetGatewaysGatewayArrayOutputWithContext(ctx context.Context) GetGatewaysGatewayArrayOutput

type GetGatewaysGatewayInput

type GetGatewaysGatewayInput interface {
	pulumi.Input

	ToGetGatewaysGatewayOutput() GetGatewaysGatewayOutput
	ToGetGatewaysGatewayOutputWithContext(context.Context) GetGatewaysGatewayOutput
}

GetGatewaysGatewayInput is an input type that accepts GetGatewaysGatewayArgs and GetGatewaysGatewayOutput values. You can construct a concrete instance of `GetGatewaysGatewayInput` via:

GetGatewaysGatewayArgs{...}

type GetGatewaysGatewayOutput

type GetGatewaysGatewayOutput struct{ *pulumi.OutputState }

func (GetGatewaysGatewayOutput) BackupVswitchId

func (o GetGatewaysGatewayOutput) BackupVswitchId() pulumi.StringOutput

The backup vswitch id.

func (GetGatewaysGatewayOutput) ElementType

func (GetGatewaysGatewayOutput) ElementType() reflect.Type

func (GetGatewaysGatewayOutput) GatewayName

The name of the Gateway.

func (GetGatewaysGatewayOutput) GatewayUniqueId

func (o GetGatewaysGatewayOutput) GatewayUniqueId() pulumi.StringOutput

Gateway unique identification.

func (GetGatewaysGatewayOutput) Id

The ID of the Gateway.

func (GetGatewaysGatewayOutput) PaymentType

The payment type of the resource.

func (GetGatewaysGatewayOutput) Replica

Number of Gateway Nodes.

func (GetGatewaysGatewayOutput) SlbLists

A list of gateway Slb.

func (GetGatewaysGatewayOutput) Spec

Gateway Node Specifications.

func (GetGatewaysGatewayOutput) Status

The status of the gateway.

func (GetGatewaysGatewayOutput) ToGetGatewaysGatewayOutput

func (o GetGatewaysGatewayOutput) ToGetGatewaysGatewayOutput() GetGatewaysGatewayOutput

func (GetGatewaysGatewayOutput) ToGetGatewaysGatewayOutputWithContext

func (o GetGatewaysGatewayOutput) ToGetGatewaysGatewayOutputWithContext(ctx context.Context) GetGatewaysGatewayOutput

func (GetGatewaysGatewayOutput) VpcId

The ID of the vpc.

func (GetGatewaysGatewayOutput) VswitchId

The ID of the vswitch.

type GetGatewaysGatewaySlbList

type GetGatewaysGatewaySlbList struct {
	// The associate id.
	AssociateId string `pulumi:"associateId"`
	// The Mode of the gateway slb.
	GatewaySlbMode string `pulumi:"gatewaySlbMode"`
	// The Status of the gateway slb.
	GatewaySlbStatus string `pulumi:"gatewaySlbStatus"`
	// The creation time of the gateway slb.
	GmtCreate string `pulumi:"gmtCreate"`
	// The ID of the gateway slb.
	SlbId string `pulumi:"slbId"`
	// The ip of the gateway slb.
	SlbIp string `pulumi:"slbIp"`
	// The port of the gateway slb.
	SlbPort string `pulumi:"slbPort"`
	// The type of the gateway slb.
	Type string `pulumi:"type"`
}

type GetGatewaysGatewaySlbListArgs

type GetGatewaysGatewaySlbListArgs struct {
	// The associate id.
	AssociateId pulumi.StringInput `pulumi:"associateId"`
	// The Mode of the gateway slb.
	GatewaySlbMode pulumi.StringInput `pulumi:"gatewaySlbMode"`
	// The Status of the gateway slb.
	GatewaySlbStatus pulumi.StringInput `pulumi:"gatewaySlbStatus"`
	// The creation time of the gateway slb.
	GmtCreate pulumi.StringInput `pulumi:"gmtCreate"`
	// The ID of the gateway slb.
	SlbId pulumi.StringInput `pulumi:"slbId"`
	// The ip of the gateway slb.
	SlbIp pulumi.StringInput `pulumi:"slbIp"`
	// The port of the gateway slb.
	SlbPort pulumi.StringInput `pulumi:"slbPort"`
	// The type of the gateway slb.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetGatewaysGatewaySlbListArgs) ElementType

func (GetGatewaysGatewaySlbListArgs) ToGetGatewaysGatewaySlbListOutput

func (i GetGatewaysGatewaySlbListArgs) ToGetGatewaysGatewaySlbListOutput() GetGatewaysGatewaySlbListOutput

func (GetGatewaysGatewaySlbListArgs) ToGetGatewaysGatewaySlbListOutputWithContext

func (i GetGatewaysGatewaySlbListArgs) ToGetGatewaysGatewaySlbListOutputWithContext(ctx context.Context) GetGatewaysGatewaySlbListOutput

type GetGatewaysGatewaySlbListArray

type GetGatewaysGatewaySlbListArray []GetGatewaysGatewaySlbListInput

func (GetGatewaysGatewaySlbListArray) ElementType

func (GetGatewaysGatewaySlbListArray) ToGetGatewaysGatewaySlbListArrayOutput

func (i GetGatewaysGatewaySlbListArray) ToGetGatewaysGatewaySlbListArrayOutput() GetGatewaysGatewaySlbListArrayOutput

func (GetGatewaysGatewaySlbListArray) ToGetGatewaysGatewaySlbListArrayOutputWithContext

func (i GetGatewaysGatewaySlbListArray) ToGetGatewaysGatewaySlbListArrayOutputWithContext(ctx context.Context) GetGatewaysGatewaySlbListArrayOutput

type GetGatewaysGatewaySlbListArrayInput

type GetGatewaysGatewaySlbListArrayInput interface {
	pulumi.Input

	ToGetGatewaysGatewaySlbListArrayOutput() GetGatewaysGatewaySlbListArrayOutput
	ToGetGatewaysGatewaySlbListArrayOutputWithContext(context.Context) GetGatewaysGatewaySlbListArrayOutput
}

GetGatewaysGatewaySlbListArrayInput is an input type that accepts GetGatewaysGatewaySlbListArray and GetGatewaysGatewaySlbListArrayOutput values. You can construct a concrete instance of `GetGatewaysGatewaySlbListArrayInput` via:

GetGatewaysGatewaySlbListArray{ GetGatewaysGatewaySlbListArgs{...} }

type GetGatewaysGatewaySlbListArrayOutput

type GetGatewaysGatewaySlbListArrayOutput struct{ *pulumi.OutputState }

func (GetGatewaysGatewaySlbListArrayOutput) ElementType

func (GetGatewaysGatewaySlbListArrayOutput) Index

func (GetGatewaysGatewaySlbListArrayOutput) ToGetGatewaysGatewaySlbListArrayOutput

func (o GetGatewaysGatewaySlbListArrayOutput) ToGetGatewaysGatewaySlbListArrayOutput() GetGatewaysGatewaySlbListArrayOutput

func (GetGatewaysGatewaySlbListArrayOutput) ToGetGatewaysGatewaySlbListArrayOutputWithContext

func (o GetGatewaysGatewaySlbListArrayOutput) ToGetGatewaysGatewaySlbListArrayOutputWithContext(ctx context.Context) GetGatewaysGatewaySlbListArrayOutput

type GetGatewaysGatewaySlbListInput

type GetGatewaysGatewaySlbListInput interface {
	pulumi.Input

	ToGetGatewaysGatewaySlbListOutput() GetGatewaysGatewaySlbListOutput
	ToGetGatewaysGatewaySlbListOutputWithContext(context.Context) GetGatewaysGatewaySlbListOutput
}

GetGatewaysGatewaySlbListInput is an input type that accepts GetGatewaysGatewaySlbListArgs and GetGatewaysGatewaySlbListOutput values. You can construct a concrete instance of `GetGatewaysGatewaySlbListInput` via:

GetGatewaysGatewaySlbListArgs{...}

type GetGatewaysGatewaySlbListOutput

type GetGatewaysGatewaySlbListOutput struct{ *pulumi.OutputState }

func (GetGatewaysGatewaySlbListOutput) AssociateId

The associate id.

func (GetGatewaysGatewaySlbListOutput) ElementType

func (GetGatewaysGatewaySlbListOutput) GatewaySlbMode

The Mode of the gateway slb.

func (GetGatewaysGatewaySlbListOutput) GatewaySlbStatus

The Status of the gateway slb.

func (GetGatewaysGatewaySlbListOutput) GmtCreate

The creation time of the gateway slb.

func (GetGatewaysGatewaySlbListOutput) SlbId

The ID of the gateway slb.

func (GetGatewaysGatewaySlbListOutput) SlbIp

The ip of the gateway slb.

func (GetGatewaysGatewaySlbListOutput) SlbPort

The port of the gateway slb.

func (GetGatewaysGatewaySlbListOutput) ToGetGatewaysGatewaySlbListOutput

func (o GetGatewaysGatewaySlbListOutput) ToGetGatewaysGatewaySlbListOutput() GetGatewaysGatewaySlbListOutput

func (GetGatewaysGatewaySlbListOutput) ToGetGatewaysGatewaySlbListOutputWithContext

func (o GetGatewaysGatewaySlbListOutput) ToGetGatewaysGatewaySlbListOutputWithContext(ctx context.Context) GetGatewaysGatewaySlbListOutput

func (GetGatewaysGatewaySlbListOutput) Type

The type of the gateway slb.

type GetGatewaysOutputArgs

type GetGatewaysOutputArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// The name of the Gateway.
	GatewayName pulumi.StringPtrInput `pulumi:"gatewayName"`
	// A list of Gateway IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Gateway name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the gateway.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of the vpc.
	VpcId pulumi.StringPtrInput `pulumi:"vpcId"`
}

A collection of arguments for invoking getGateways.

func (GetGatewaysOutputArgs) ElementType

func (GetGatewaysOutputArgs) ElementType() reflect.Type

type GetGatewaysResult

type GetGatewaysResult struct {
	EnableDetails *bool                `pulumi:"enableDetails"`
	GatewayName   *string              `pulumi:"gatewayName"`
	Gateways      []GetGatewaysGateway `pulumi:"gateways"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	Status     *string  `pulumi:"status"`
	VpcId      *string  `pulumi:"vpcId"`
}

A collection of values returned by getGateways.

func GetGateways

func GetGateways(ctx *pulumi.Context, args *GetGatewaysArgs, opts ...pulumi.InvokeOption) (*GetGatewaysResult, error)

This data source provides the Mse Gateways of the current Alibaba Cloud user.

> **NOTE:** Available in v1.157.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/mse"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/mse"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := mse.GetGateways(ctx, &mse.GetGatewaysArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("mseGatewayId1", ids.Gateways[0].Id)
		nameRegex, err := mse.GetGateways(ctx, &mse.GetGatewaysArgs{
			NameRegex: pulumi.StringRef("^my-Gateway"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("mseGatewayId2", nameRegex.Gateways[0].Id)
		status, err := mse.GetGateways(ctx, &mse.GetGatewaysArgs{
			Status: pulumi.StringRef("2"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("mseGatewayId3", status.Gateways[0].Id)
		return nil
	})
}

```

type GetGatewaysResultOutput

type GetGatewaysResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGateways.

func (GetGatewaysResultOutput) ElementType

func (GetGatewaysResultOutput) ElementType() reflect.Type

func (GetGatewaysResultOutput) EnableDetails

func (o GetGatewaysResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetGatewaysResultOutput) GatewayName

func (GetGatewaysResultOutput) Gateways

func (GetGatewaysResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGatewaysResultOutput) Ids

func (GetGatewaysResultOutput) NameRegex

func (GetGatewaysResultOutput) Names

func (GetGatewaysResultOutput) OutputFile

func (GetGatewaysResultOutput) Status

func (GetGatewaysResultOutput) ToGetGatewaysResultOutput

func (o GetGatewaysResultOutput) ToGetGatewaysResultOutput() GetGatewaysResultOutput

func (GetGatewaysResultOutput) ToGetGatewaysResultOutputWithContext

func (o GetGatewaysResultOutput) ToGetGatewaysResultOutputWithContext(ctx context.Context) GetGatewaysResultOutput

func (GetGatewaysResultOutput) VpcId

type GetZnodesArgs

type GetZnodesArgs struct {
	// The language type of the returned information. Valid values: `zh` or `en`.
	AcceptLanguage *string `pulumi:"acceptLanguage"`
	// The ID of the Cluster.
	ClusterId string `pulumi:"clusterId"`
	// A list of Znode IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Znode name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The Node path.
	Path string `pulumi:"path"`
}

A collection of arguments for invoking getZnodes.

type GetZnodesOutputArgs

type GetZnodesOutputArgs struct {
	// The language type of the returned information. Valid values: `zh` or `en`.
	AcceptLanguage pulumi.StringPtrInput `pulumi:"acceptLanguage"`
	// The ID of the Cluster.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// A list of Znode IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Znode name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The Node path.
	Path pulumi.StringInput `pulumi:"path"`
}

A collection of arguments for invoking getZnodes.

func (GetZnodesOutputArgs) ElementType

func (GetZnodesOutputArgs) ElementType() reflect.Type

type GetZnodesResult

type GetZnodesResult struct {
	AcceptLanguage *string `pulumi:"acceptLanguage"`
	ClusterId      string  `pulumi:"clusterId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string           `pulumi:"id"`
	Ids        []string         `pulumi:"ids"`
	NameRegex  *string          `pulumi:"nameRegex"`
	Names      []string         `pulumi:"names"`
	OutputFile *string          `pulumi:"outputFile"`
	Path       string           `pulumi:"path"`
	Znodes     []GetZnodesZnode `pulumi:"znodes"`
}

A collection of values returned by getZnodes.

func GetZnodes

func GetZnodes(ctx *pulumi.Context, args *GetZnodesArgs, opts ...pulumi.InvokeOption) (*GetZnodesResult, error)

This data source provides the Mse Znodes of the current Alibaba Cloud user.

> **NOTE:** Available in v1.162.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/mse"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/mse"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := mse.GetZnodes(ctx, &mse.GetZnodesArgs{
			ClusterId: "example_value",
			Path:      "/",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("mseZnodeId1", ids.Znodes[0].Id)
		nameRegex, err := mse.GetZnodes(ctx, &mse.GetZnodesArgs{
			Path:      "/",
			ClusterId: "example_value",
			NameRegex: pulumi.StringRef("^my-Znode"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("mseZnodeId2", nameRegex.Znodes[0].Id)
		return nil
	})
}

```

type GetZnodesResultOutput

type GetZnodesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getZnodes.

func (GetZnodesResultOutput) AcceptLanguage

func (o GetZnodesResultOutput) AcceptLanguage() pulumi.StringPtrOutput

func (GetZnodesResultOutput) ClusterId

func (GetZnodesResultOutput) ElementType

func (GetZnodesResultOutput) ElementType() reflect.Type

func (GetZnodesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetZnodesResultOutput) Ids

func (GetZnodesResultOutput) NameRegex

func (GetZnodesResultOutput) Names

func (GetZnodesResultOutput) OutputFile

func (GetZnodesResultOutput) Path

func (GetZnodesResultOutput) ToGetZnodesResultOutput

func (o GetZnodesResultOutput) ToGetZnodesResultOutput() GetZnodesResultOutput

func (GetZnodesResultOutput) ToGetZnodesResultOutputWithContext

func (o GetZnodesResultOutput) ToGetZnodesResultOutputWithContext(ctx context.Context) GetZnodesResultOutput

func (GetZnodesResultOutput) Znodes

type GetZnodesZnode

type GetZnodesZnode struct {
	// The ID of the Cluster.
	ClusterId string `pulumi:"clusterId"`
	// The Node data.
	Data string `pulumi:"data"`
	// Node list information, the value is as follows:
	Dir bool `pulumi:"dir"`
	// The ID of the Znode. The value formats as `<cluster_id>:<path>`.
	Id string `pulumi:"id"`
	// The Node path.
	Path string `pulumi:"path"`
	// The Node name.
	ZnodeName string `pulumi:"znodeName"`
}

type GetZnodesZnodeArgs

type GetZnodesZnodeArgs struct {
	// The ID of the Cluster.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The Node data.
	Data pulumi.StringInput `pulumi:"data"`
	// Node list information, the value is as follows:
	Dir pulumi.BoolInput `pulumi:"dir"`
	// The ID of the Znode. The value formats as `<cluster_id>:<path>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The Node path.
	Path pulumi.StringInput `pulumi:"path"`
	// The Node name.
	ZnodeName pulumi.StringInput `pulumi:"znodeName"`
}

func (GetZnodesZnodeArgs) ElementType

func (GetZnodesZnodeArgs) ElementType() reflect.Type

func (GetZnodesZnodeArgs) ToGetZnodesZnodeOutput

func (i GetZnodesZnodeArgs) ToGetZnodesZnodeOutput() GetZnodesZnodeOutput

func (GetZnodesZnodeArgs) ToGetZnodesZnodeOutputWithContext

func (i GetZnodesZnodeArgs) ToGetZnodesZnodeOutputWithContext(ctx context.Context) GetZnodesZnodeOutput

type GetZnodesZnodeArray

type GetZnodesZnodeArray []GetZnodesZnodeInput

func (GetZnodesZnodeArray) ElementType

func (GetZnodesZnodeArray) ElementType() reflect.Type

func (GetZnodesZnodeArray) ToGetZnodesZnodeArrayOutput

func (i GetZnodesZnodeArray) ToGetZnodesZnodeArrayOutput() GetZnodesZnodeArrayOutput

func (GetZnodesZnodeArray) ToGetZnodesZnodeArrayOutputWithContext

func (i GetZnodesZnodeArray) ToGetZnodesZnodeArrayOutputWithContext(ctx context.Context) GetZnodesZnodeArrayOutput

type GetZnodesZnodeArrayInput

type GetZnodesZnodeArrayInput interface {
	pulumi.Input

	ToGetZnodesZnodeArrayOutput() GetZnodesZnodeArrayOutput
	ToGetZnodesZnodeArrayOutputWithContext(context.Context) GetZnodesZnodeArrayOutput
}

GetZnodesZnodeArrayInput is an input type that accepts GetZnodesZnodeArray and GetZnodesZnodeArrayOutput values. You can construct a concrete instance of `GetZnodesZnodeArrayInput` via:

GetZnodesZnodeArray{ GetZnodesZnodeArgs{...} }

type GetZnodesZnodeArrayOutput

type GetZnodesZnodeArrayOutput struct{ *pulumi.OutputState }

func (GetZnodesZnodeArrayOutput) ElementType

func (GetZnodesZnodeArrayOutput) ElementType() reflect.Type

func (GetZnodesZnodeArrayOutput) Index

func (GetZnodesZnodeArrayOutput) ToGetZnodesZnodeArrayOutput

func (o GetZnodesZnodeArrayOutput) ToGetZnodesZnodeArrayOutput() GetZnodesZnodeArrayOutput

func (GetZnodesZnodeArrayOutput) ToGetZnodesZnodeArrayOutputWithContext

func (o GetZnodesZnodeArrayOutput) ToGetZnodesZnodeArrayOutputWithContext(ctx context.Context) GetZnodesZnodeArrayOutput

type GetZnodesZnodeInput

type GetZnodesZnodeInput interface {
	pulumi.Input

	ToGetZnodesZnodeOutput() GetZnodesZnodeOutput
	ToGetZnodesZnodeOutputWithContext(context.Context) GetZnodesZnodeOutput
}

GetZnodesZnodeInput is an input type that accepts GetZnodesZnodeArgs and GetZnodesZnodeOutput values. You can construct a concrete instance of `GetZnodesZnodeInput` via:

GetZnodesZnodeArgs{...}

type GetZnodesZnodeOutput

type GetZnodesZnodeOutput struct{ *pulumi.OutputState }

func (GetZnodesZnodeOutput) ClusterId

The ID of the Cluster.

func (GetZnodesZnodeOutput) Data

The Node data.

func (GetZnodesZnodeOutput) Dir

Node list information, the value is as follows:

func (GetZnodesZnodeOutput) ElementType

func (GetZnodesZnodeOutput) ElementType() reflect.Type

func (GetZnodesZnodeOutput) Id

The ID of the Znode. The value formats as `<cluster_id>:<path>`.

func (GetZnodesZnodeOutput) Path

The Node path.

func (GetZnodesZnodeOutput) ToGetZnodesZnodeOutput

func (o GetZnodesZnodeOutput) ToGetZnodesZnodeOutput() GetZnodesZnodeOutput

func (GetZnodesZnodeOutput) ToGetZnodesZnodeOutputWithContext

func (o GetZnodesZnodeOutput) ToGetZnodesZnodeOutputWithContext(ctx context.Context) GetZnodesZnodeOutput

func (GetZnodesZnodeOutput) ZnodeName

The Node name.

type Znode

type Znode struct {
	pulumi.CustomResourceState

	// The language type of the returned information. Valid values: `zh` or `en`.
	AcceptLanguage pulumi.StringPtrOutput `pulumi:"acceptLanguage"`
	// The ID of the Cluster.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The Node data.
	Data pulumi.StringPtrOutput `pulumi:"data"`
	// The Node path. The value must start with a forward slash (/).
	Path pulumi.StringOutput `pulumi:"path"`
}

Provides a Microservice Engine (MSE) Znode resource.

For information about Microservice Engine (MSE) Znode and how to use it, see [What is Znode](https://help.aliyun.com/document_detail/393622.html).

> **NOTE:** Available in v1.162.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/mongodb"
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/mongodb"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/mse"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultZones, err := mongodb.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultZones.Zones[0].Id),
		}, nil)
		if err != nil {
			return err
		}
		defaultCluster, err := mse.NewCluster(ctx, "defaultCluster", &mse.ClusterArgs{
			ClusterSpecification: pulumi.String("MSE_SC_1_2_200_c"),
			ClusterType:          pulumi.String("ZooKeeper"),
			ClusterVersion:       pulumi.String("ZooKeeper_3_5_5"),
			InstanceCount:        pulumi.Int(1),
			NetType:              pulumi.String("privatenet"),
			VswitchId:            pulumi.String(defaultSwitches.Ids[0]),
			PubNetworkFlow:       pulumi.String("1"),
			AclEntryLists: pulumi.StringArray{
				pulumi.String("127.0.0.1/32"),
			},
			ClusterAliasName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = mse.NewZnode(ctx, "defaultZnode", &mse.ZnodeArgs{
			ClusterId: defaultCluster.ClusterId,
			Data:      pulumi.String("example_value"),
			Path:      pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Microservice Engine (MSE) Znode can be imported using the id, e.g.

```sh

$ pulumi import alicloud:mse/znode:Znode example <cluster_id>:<path>

```

func GetZnode

func GetZnode(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ZnodeState, opts ...pulumi.ResourceOption) (*Znode, error)

GetZnode gets an existing Znode resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewZnode

func NewZnode(ctx *pulumi.Context,
	name string, args *ZnodeArgs, opts ...pulumi.ResourceOption) (*Znode, error)

NewZnode registers a new resource with the given unique name, arguments, and options.

func (*Znode) ElementType

func (*Znode) ElementType() reflect.Type

func (*Znode) ToZnodeOutput

func (i *Znode) ToZnodeOutput() ZnodeOutput

func (*Znode) ToZnodeOutputWithContext

func (i *Znode) ToZnodeOutputWithContext(ctx context.Context) ZnodeOutput

type ZnodeArgs

type ZnodeArgs struct {
	// The language type of the returned information. Valid values: `zh` or `en`.
	AcceptLanguage pulumi.StringPtrInput
	// The ID of the Cluster.
	ClusterId pulumi.StringInput
	// The Node data.
	Data pulumi.StringPtrInput
	// The Node path. The value must start with a forward slash (/).
	Path pulumi.StringInput
}

The set of arguments for constructing a Znode resource.

func (ZnodeArgs) ElementType

func (ZnodeArgs) ElementType() reflect.Type

type ZnodeArray

type ZnodeArray []ZnodeInput

func (ZnodeArray) ElementType

func (ZnodeArray) ElementType() reflect.Type

func (ZnodeArray) ToZnodeArrayOutput

func (i ZnodeArray) ToZnodeArrayOutput() ZnodeArrayOutput

func (ZnodeArray) ToZnodeArrayOutputWithContext

func (i ZnodeArray) ToZnodeArrayOutputWithContext(ctx context.Context) ZnodeArrayOutput

type ZnodeArrayInput

type ZnodeArrayInput interface {
	pulumi.Input

	ToZnodeArrayOutput() ZnodeArrayOutput
	ToZnodeArrayOutputWithContext(context.Context) ZnodeArrayOutput
}

ZnodeArrayInput is an input type that accepts ZnodeArray and ZnodeArrayOutput values. You can construct a concrete instance of `ZnodeArrayInput` via:

ZnodeArray{ ZnodeArgs{...} }

type ZnodeArrayOutput

type ZnodeArrayOutput struct{ *pulumi.OutputState }

func (ZnodeArrayOutput) ElementType

func (ZnodeArrayOutput) ElementType() reflect.Type

func (ZnodeArrayOutput) Index

func (ZnodeArrayOutput) ToZnodeArrayOutput

func (o ZnodeArrayOutput) ToZnodeArrayOutput() ZnodeArrayOutput

func (ZnodeArrayOutput) ToZnodeArrayOutputWithContext

func (o ZnodeArrayOutput) ToZnodeArrayOutputWithContext(ctx context.Context) ZnodeArrayOutput

type ZnodeInput

type ZnodeInput interface {
	pulumi.Input

	ToZnodeOutput() ZnodeOutput
	ToZnodeOutputWithContext(ctx context.Context) ZnodeOutput
}

type ZnodeMap

type ZnodeMap map[string]ZnodeInput

func (ZnodeMap) ElementType

func (ZnodeMap) ElementType() reflect.Type

func (ZnodeMap) ToZnodeMapOutput

func (i ZnodeMap) ToZnodeMapOutput() ZnodeMapOutput

func (ZnodeMap) ToZnodeMapOutputWithContext

func (i ZnodeMap) ToZnodeMapOutputWithContext(ctx context.Context) ZnodeMapOutput

type ZnodeMapInput

type ZnodeMapInput interface {
	pulumi.Input

	ToZnodeMapOutput() ZnodeMapOutput
	ToZnodeMapOutputWithContext(context.Context) ZnodeMapOutput
}

ZnodeMapInput is an input type that accepts ZnodeMap and ZnodeMapOutput values. You can construct a concrete instance of `ZnodeMapInput` via:

ZnodeMap{ "key": ZnodeArgs{...} }

type ZnodeMapOutput

type ZnodeMapOutput struct{ *pulumi.OutputState }

func (ZnodeMapOutput) ElementType

func (ZnodeMapOutput) ElementType() reflect.Type

func (ZnodeMapOutput) MapIndex

func (ZnodeMapOutput) ToZnodeMapOutput

func (o ZnodeMapOutput) ToZnodeMapOutput() ZnodeMapOutput

func (ZnodeMapOutput) ToZnodeMapOutputWithContext

func (o ZnodeMapOutput) ToZnodeMapOutputWithContext(ctx context.Context) ZnodeMapOutput

type ZnodeOutput

type ZnodeOutput struct{ *pulumi.OutputState }

func (ZnodeOutput) AcceptLanguage

func (o ZnodeOutput) AcceptLanguage() pulumi.StringPtrOutput

The language type of the returned information. Valid values: `zh` or `en`.

func (ZnodeOutput) ClusterId

func (o ZnodeOutput) ClusterId() pulumi.StringOutput

The ID of the Cluster.

func (ZnodeOutput) Data

The Node data.

func (ZnodeOutput) ElementType

func (ZnodeOutput) ElementType() reflect.Type

func (ZnodeOutput) Path

func (o ZnodeOutput) Path() pulumi.StringOutput

The Node path. The value must start with a forward slash (/).

func (ZnodeOutput) ToZnodeOutput

func (o ZnodeOutput) ToZnodeOutput() ZnodeOutput

func (ZnodeOutput) ToZnodeOutputWithContext

func (o ZnodeOutput) ToZnodeOutputWithContext(ctx context.Context) ZnodeOutput

type ZnodeState

type ZnodeState struct {
	// The language type of the returned information. Valid values: `zh` or `en`.
	AcceptLanguage pulumi.StringPtrInput
	// The ID of the Cluster.
	ClusterId pulumi.StringPtrInput
	// The Node data.
	Data pulumi.StringPtrInput
	// The Node path. The value must start with a forward slash (/).
	Path pulumi.StringPtrInput
}

func (ZnodeState) ElementType

func (ZnodeState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL