Gateway

Provides a Microservice Engine (MSE) Gateway resource. For information about Microservice Engine (MSE) Gateway and how to use it, see What is Gateway.

NOTE: Available in v1.157.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.mse.Gateway;
import com.pulumi.alicloud.mse.GatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NODELETING")
.build());
final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build());
var example = new Gateway("example", GatewayArgs.builder()
.gatewayName("example_value")
.replica(2)
.spec("MSE_GTW_2_4_200_c")
.vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.backupVswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[1]))
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.build());
}
}

Import

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

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

Properties

Link copied to clipboard
val backupVswitchId: Output<String>?

The backup vswitch id.

Link copied to clipboard
val deleteSlb: Output<Boolean>?

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

Link copied to clipboard

Whether the enterprise security group type.

Link copied to clipboard
val gatewayName: Output<String>?

The name of the Gateway .

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val internetSlbSpec: Output<String>?

Public network SLB specifications.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val replica: Output<Int>

Number of Gateway Nodes.

Link copied to clipboard

A list of gateway Slb.

Link copied to clipboard
val slbSpec: Output<String>?

Private network SLB specifications.

Link copied to clipboard
val spec: Output<String>

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.

Link copied to clipboard
val status: Output<String>

The status of the gateway.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

The ID of the vpc.

Link copied to clipboard
val vswitchId: Output<String>

The ID of the vswitch.