1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. expressconnect
  5. RouterExpressConnectRouter
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi

    Provides a Express Connect Router Express Connect Router resource. Express Connect Router.

    For information about Express Connect Router Express Connect Router and how to use it, see What is Express Connect Router.

    NOTE: Available since v1.224.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const defaultM9YxGW = new alicloud.expressconnect.RouterExpressConnectRouter("defaultM9YxGW", {alibabaSideAsn: 65533});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default_m9_yx_gw = alicloud.expressconnect.RouterExpressConnectRouter("defaultM9YxGW", alibaba_side_asn=65533)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/expressconnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := expressconnect.NewRouterExpressConnectRouter(ctx, "defaultM9YxGW", &expressconnect.RouterExpressConnectRouterArgs{
    			AlibabaSideAsn: pulumi.Int(65533),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var defaultM9YxGW = new AliCloud.ExpressConnect.RouterExpressConnectRouter("defaultM9YxGW", new()
        {
            AlibabaSideAsn = 65533,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.expressconnect.RouterExpressConnectRouter;
    import com.pulumi.alicloud.expressconnect.RouterExpressConnectRouterArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var defaultM9YxGW = new RouterExpressConnectRouter("defaultM9YxGW", RouterExpressConnectRouterArgs.builder()
                .alibabaSideAsn(65533)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultM9YxGW:
        type: alicloud:expressconnect:RouterExpressConnectRouter
        properties:
          alibabaSideAsn: '65533'
    

    Deleting alicloud.expressconnect.RouterExpressConnectRouter or removing it from your configuration

    The alicloud.expressconnect.RouterExpressConnectRouter resource allows you to manage ecr_id </span>= "" instance, but Terraform cannot destroy it. Deleting the subscription resource or removing it from your configuration will remove it from your state file and management, but will not destroy the Instance. You can resume managing the subscription instance via the AlibabaCloud Console.

    📚 Need more examples? VIEW MORE EXAMPLES

    Create RouterExpressConnectRouter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RouterExpressConnectRouter(name: string, args: RouterExpressConnectRouterArgs, opts?: CustomResourceOptions);
    @overload
    def RouterExpressConnectRouter(resource_name: str,
                                   args: RouterExpressConnectRouterArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def RouterExpressConnectRouter(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   alibaba_side_asn: Optional[int] = None,
                                   description: Optional[str] = None,
                                   ecr_name: Optional[str] = None,
                                   regions: Optional[Sequence[RouterExpressConnectRouterRegionArgs]] = None,
                                   resource_group_id: Optional[str] = None,
                                   tags: Optional[Mapping[str, str]] = None)
    func NewRouterExpressConnectRouter(ctx *Context, name string, args RouterExpressConnectRouterArgs, opts ...ResourceOption) (*RouterExpressConnectRouter, error)
    public RouterExpressConnectRouter(string name, RouterExpressConnectRouterArgs args, CustomResourceOptions? opts = null)
    public RouterExpressConnectRouter(String name, RouterExpressConnectRouterArgs args)
    public RouterExpressConnectRouter(String name, RouterExpressConnectRouterArgs args, CustomResourceOptions options)
    
    type: alicloud:expressconnect:RouterExpressConnectRouter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RouterExpressConnectRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RouterExpressConnectRouterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RouterExpressConnectRouterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RouterExpressConnectRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RouterExpressConnectRouterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var routerExpressConnectRouterResource = new AliCloud.ExpressConnect.RouterExpressConnectRouter("routerExpressConnectRouterResource", new()
    {
        AlibabaSideAsn = 0,
        Description = "string",
        EcrName = "string",
        Regions = new[]
        {
            new AliCloud.ExpressConnect.Inputs.RouterExpressConnectRouterRegionArgs
            {
                RegionId = "string",
                TransitMode = "string",
            },
        },
        ResourceGroupId = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := expressconnect.NewRouterExpressConnectRouter(ctx, "routerExpressConnectRouterResource", &expressconnect.RouterExpressConnectRouterArgs{
    	AlibabaSideAsn: pulumi.Int(0),
    	Description:    pulumi.String("string"),
    	EcrName:        pulumi.String("string"),
    	Regions: expressconnect.RouterExpressConnectRouterRegionArray{
    		&expressconnect.RouterExpressConnectRouterRegionArgs{
    			RegionId:    pulumi.String("string"),
    			TransitMode: pulumi.String("string"),
    		},
    	},
    	ResourceGroupId: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var routerExpressConnectRouterResource = new RouterExpressConnectRouter("routerExpressConnectRouterResource", RouterExpressConnectRouterArgs.builder()
        .alibabaSideAsn(0)
        .description("string")
        .ecrName("string")
        .regions(RouterExpressConnectRouterRegionArgs.builder()
            .regionId("string")
            .transitMode("string")
            .build())
        .resourceGroupId("string")
        .tags(Map.of("string", "string"))
        .build());
    
    router_express_connect_router_resource = alicloud.expressconnect.RouterExpressConnectRouter("routerExpressConnectRouterResource",
        alibaba_side_asn=0,
        description="string",
        ecr_name="string",
        regions=[{
            "region_id": "string",
            "transit_mode": "string",
        }],
        resource_group_id="string",
        tags={
            "string": "string",
        })
    
    const routerExpressConnectRouterResource = new alicloud.expressconnect.RouterExpressConnectRouter("routerExpressConnectRouterResource", {
        alibabaSideAsn: 0,
        description: "string",
        ecrName: "string",
        regions: [{
            regionId: "string",
            transitMode: "string",
        }],
        resourceGroupId: "string",
        tags: {
            string: "string",
        },
    });
    
    type: alicloud:expressconnect:RouterExpressConnectRouter
    properties:
        alibabaSideAsn: 0
        description: string
        ecrName: string
        regions:
            - regionId: string
              transitMode: string
        resourceGroupId: string
        tags:
            string: string
    

    RouterExpressConnectRouter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RouterExpressConnectRouter resource accepts the following input properties:

    AlibabaSideAsn int
    ASN representing resources.
    Description string
    Represents the description of the leased line gateway.
    EcrName string
    Name of the Gateway representing the leased line.
    Regions List<Pulumi.AliCloud.ExpressConnect.Inputs.RouterExpressConnectRouterRegion>
    List of regions representing leased line gateways. See regions below.
    ResourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    Tags Dictionary<string, string>
    The tag of the resource.
    AlibabaSideAsn int
    ASN representing resources.
    Description string
    Represents the description of the leased line gateway.
    EcrName string
    Name of the Gateway representing the leased line.
    Regions []RouterExpressConnectRouterRegionArgs
    List of regions representing leased line gateways. See regions below.
    ResourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    Tags map[string]string
    The tag of the resource.
    alibabaSideAsn Integer
    ASN representing resources.
    description String
    Represents the description of the leased line gateway.
    ecrName String
    Name of the Gateway representing the leased line.
    regions List<RouterExpressConnectRouterRegion>
    List of regions representing leased line gateways. See regions below.
    resourceGroupId String
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    tags Map<String,String>
    The tag of the resource.
    alibabaSideAsn number
    ASN representing resources.
    description string
    Represents the description of the leased line gateway.
    ecrName string
    Name of the Gateway representing the leased line.
    regions RouterExpressConnectRouterRegion[]
    List of regions representing leased line gateways. See regions below.
    resourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    tags {[key: string]: string}
    The tag of the resource.
    alibaba_side_asn int
    ASN representing resources.
    description str
    Represents the description of the leased line gateway.
    ecr_name str
    Name of the Gateway representing the leased line.
    regions Sequence[RouterExpressConnectRouterRegionArgs]
    List of regions representing leased line gateways. See regions below.
    resource_group_id str
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    tags Mapping[str, str]
    The tag of the resource.
    alibabaSideAsn Number
    ASN representing resources.
    description String
    Represents the description of the leased line gateway.
    ecrName String
    Name of the Gateway representing the leased line.
    regions List<Property Map>
    List of regions representing leased line gateways. See regions below.
    resourceGroupId String
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    tags Map<String>
    The tag of the resource.

    Outputs

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

    CreateTime string
    Represents the creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    CreateTime string
    Represents the creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    createTime String
    Represents the creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.
    createTime string
    Represents the creation time of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the resource.
    create_time str
    Represents the creation time of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the resource.
    createTime String
    Represents the creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.

    Look up Existing RouterExpressConnectRouter Resource

    Get an existing RouterExpressConnectRouter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RouterExpressConnectRouterState, opts?: CustomResourceOptions): RouterExpressConnectRouter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alibaba_side_asn: Optional[int] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            ecr_name: Optional[str] = None,
            regions: Optional[Sequence[RouterExpressConnectRouterRegionArgs]] = None,
            resource_group_id: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> RouterExpressConnectRouter
    func GetRouterExpressConnectRouter(ctx *Context, name string, id IDInput, state *RouterExpressConnectRouterState, opts ...ResourceOption) (*RouterExpressConnectRouter, error)
    public static RouterExpressConnectRouter Get(string name, Input<string> id, RouterExpressConnectRouterState? state, CustomResourceOptions? opts = null)
    public static RouterExpressConnectRouter get(String name, Output<String> id, RouterExpressConnectRouterState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:expressconnect:RouterExpressConnectRouter    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AlibabaSideAsn int
    ASN representing resources.
    CreateTime string
    Represents the creation time of the resource.
    Description string
    Represents the description of the leased line gateway.
    EcrName string
    Name of the Gateway representing the leased line.
    Regions List<Pulumi.AliCloud.ExpressConnect.Inputs.RouterExpressConnectRouterRegion>
    List of regions representing leased line gateways. See regions below.
    ResourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    Status string
    The status of the resource.
    Tags Dictionary<string, string>
    The tag of the resource.
    AlibabaSideAsn int
    ASN representing resources.
    CreateTime string
    Represents the creation time of the resource.
    Description string
    Represents the description of the leased line gateway.
    EcrName string
    Name of the Gateway representing the leased line.
    Regions []RouterExpressConnectRouterRegionArgs
    List of regions representing leased line gateways. See regions below.
    ResourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    Status string
    The status of the resource.
    Tags map[string]string
    The tag of the resource.
    alibabaSideAsn Integer
    ASN representing resources.
    createTime String
    Represents the creation time of the resource.
    description String
    Represents the description of the leased line gateway.
    ecrName String
    Name of the Gateway representing the leased line.
    regions List<RouterExpressConnectRouterRegion>
    List of regions representing leased line gateways. See regions below.
    resourceGroupId String
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    status String
    The status of the resource.
    tags Map<String,String>
    The tag of the resource.
    alibabaSideAsn number
    ASN representing resources.
    createTime string
    Represents the creation time of the resource.
    description string
    Represents the description of the leased line gateway.
    ecrName string
    Name of the Gateway representing the leased line.
    regions RouterExpressConnectRouterRegion[]
    List of regions representing leased line gateways. See regions below.
    resourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    status string
    The status of the resource.
    tags {[key: string]: string}
    The tag of the resource.
    alibaba_side_asn int
    ASN representing resources.
    create_time str
    Represents the creation time of the resource.
    description str
    Represents the description of the leased line gateway.
    ecr_name str
    Name of the Gateway representing the leased line.
    regions Sequence[RouterExpressConnectRouterRegionArgs]
    List of regions representing leased line gateways. See regions below.
    resource_group_id str
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    status str
    The status of the resource.
    tags Mapping[str, str]
    The tag of the resource.
    alibabaSideAsn Number
    ASN representing resources.
    createTime String
    Represents the creation time of the resource.
    description String
    Represents the description of the leased line gateway.
    ecrName String
    Name of the Gateway representing the leased line.
    regions List<Property Map>
    List of regions representing leased line gateways. See regions below.
    resourceGroupId String
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    status String
    The status of the resource.
    tags Map<String>
    The tag of the resource.

    Supporting Types

    RouterExpressConnectRouterRegion, RouterExpressConnectRouterRegionArgs

    RegionId string
    Representative region ID.
    TransitMode string
    Represents the forwarding mode of the current region.
    RegionId string
    Representative region ID.
    TransitMode string
    Represents the forwarding mode of the current region.
    regionId String
    Representative region ID.
    transitMode String
    Represents the forwarding mode of the current region.
    regionId string
    Representative region ID.
    transitMode string
    Represents the forwarding mode of the current region.
    region_id str
    Representative region ID.
    transit_mode str
    Represents the forwarding mode of the current region.
    regionId String
    Representative region ID.
    transitMode String
    Represents the forwarding mode of the current region.

    Import

    Express Connect Router Express Connect Router can be imported using the id, e.g.

    $ pulumi import alicloud:expressconnect/routerExpressConnectRouter:RouterExpressConnectRouter example <id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.97.0
    published on Saturday, Mar 14, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.