1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. getTransitRouterVpnAttachments
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cen.getTransitRouterVpnAttachments

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

    This data source provides Cen Transit Router Vpn Attachment available to the user.What is Transit Router Vpn Attachment

    NOTE: Available since v1.245.0.

    Example 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 defaultbpR5Uk = new alicloud.cen.Instance("defaultbpR5Uk", {cenInstanceName: "example-vpn-attachment"});
    const defaultM8Zo6H = new alicloud.cen.TransitRouter("defaultM8Zo6H", {cenId: defaultbpR5Uk.id});
    const defaultuUtyCv = new alicloud.cen.TransitRouterCidr("defaultuUtyCv", {
        cidr: "192.168.10.0/24",
        transitRouterId: defaultM8Zo6H.transitRouterId,
    });
    const defaultMeoCIz = new alicloud.vpn.CustomerGateway("defaultMeoCIz", {
        ipAddress: "0.0.0.0",
        customerGatewayName: "example-vpn-attachment",
    });
    const defaultvrPzdh = new alicloud.vpn.GatewayVpnAttachment("defaultvrPzdh", {
        customerGatewayId: defaultMeoCIz.id,
        vpnAttachmentName: "example-vpn-attachment",
        localSubnet: "10.0.1.0/24",
        remoteSubnet: "10.0.2.0/24",
    });
    const defaultTransitRouterVpnAttachment = new alicloud.cen.TransitRouterVpnAttachment("default", {
        vpnOwnerId: defaultM8Zo6H.id,
        cenId: defaultM8Zo6H.id,
        transitRouterAttachmentDescription: "example-vpn-attachment",
        transitRouterId: defaultM8Zo6H.transitRouterId,
        vpnId: defaultvrPzdh.id,
        autoPublishRouteEnabled: false,
        chargeType: "POSTPAY",
        transitRouterAttachmentName: "example-vpn-attachment",
    });
    const _default = alicloud.cen.getTransitRouterVpnAttachmentsOutput({
        ids: [defaultTransitRouterVpnAttachment.id],
        cenId: defaultM8Zo6H.id,
        transitRouterId: defaultM8Zo6H.transitRouterId,
    });
    export const alicloudCenTransitRouterVpnAttachmentExampleId = _default.apply(_default => _default.attachments?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    defaultbp_r5_uk = alicloud.cen.Instance("defaultbpR5Uk", cen_instance_name="example-vpn-attachment")
    default_m8_zo6_h = alicloud.cen.TransitRouter("defaultM8Zo6H", cen_id=defaultbp_r5_uk.id)
    defaultu_uty_cv = alicloud.cen.TransitRouterCidr("defaultuUtyCv",
        cidr="192.168.10.0/24",
        transit_router_id=default_m8_zo6_h.transit_router_id)
    default_meo_c_iz = alicloud.vpn.CustomerGateway("defaultMeoCIz",
        ip_address="0.0.0.0",
        customer_gateway_name="example-vpn-attachment")
    defaultvr_pzdh = alicloud.vpn.GatewayVpnAttachment("defaultvrPzdh",
        customer_gateway_id=default_meo_c_iz.id,
        vpn_attachment_name="example-vpn-attachment",
        local_subnet="10.0.1.0/24",
        remote_subnet="10.0.2.0/24")
    default_transit_router_vpn_attachment = alicloud.cen.TransitRouterVpnAttachment("default",
        vpn_owner_id=default_m8_zo6_h.id,
        cen_id=default_m8_zo6_h.id,
        transit_router_attachment_description="example-vpn-attachment",
        transit_router_id=default_m8_zo6_h.transit_router_id,
        vpn_id=defaultvr_pzdh.id,
        auto_publish_route_enabled=False,
        charge_type="POSTPAY",
        transit_router_attachment_name="example-vpn-attachment")
    default = alicloud.cen.get_transit_router_vpn_attachments_output(ids=[default_transit_router_vpn_attachment.id],
        cen_id=default_m8_zo6_h.id,
        transit_router_id=default_m8_zo6_h.transit_router_id)
    pulumi.export("alicloudCenTransitRouterVpnAttachmentExampleId", default.attachments[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpn"
    	"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
    }
    defaultbpR5Uk, err := cen.NewInstance(ctx, "defaultbpR5Uk", &cen.InstanceArgs{
    CenInstanceName: pulumi.String("example-vpn-attachment"),
    })
    if err != nil {
    return err
    }
    defaultM8Zo6H, err := cen.NewTransitRouter(ctx, "defaultM8Zo6H", &cen.TransitRouterArgs{
    CenId: defaultbpR5Uk.ID(),
    })
    if err != nil {
    return err
    }
    _, err = cen.NewTransitRouterCidr(ctx, "defaultuUtyCv", &cen.TransitRouterCidrArgs{
    Cidr: pulumi.String("192.168.10.0/24"),
    TransitRouterId: defaultM8Zo6H.TransitRouterId,
    })
    if err != nil {
    return err
    }
    defaultMeoCIz, err := vpn.NewCustomerGateway(ctx, "defaultMeoCIz", &vpn.CustomerGatewayArgs{
    IpAddress: pulumi.String("0.0.0.0"),
    CustomerGatewayName: pulumi.String("example-vpn-attachment"),
    })
    if err != nil {
    return err
    }
    defaultvrPzdh, err := vpn.NewGatewayVpnAttachment(ctx, "defaultvrPzdh", &vpn.GatewayVpnAttachmentArgs{
    CustomerGatewayId: defaultMeoCIz.ID(),
    VpnAttachmentName: pulumi.String("example-vpn-attachment"),
    LocalSubnet: pulumi.String("10.0.1.0/24"),
    RemoteSubnet: pulumi.String("10.0.2.0/24"),
    })
    if err != nil {
    return err
    }
    defaultTransitRouterVpnAttachment, err := cen.NewTransitRouterVpnAttachment(ctx, "default", &cen.TransitRouterVpnAttachmentArgs{
    VpnOwnerId: defaultM8Zo6H.ID(),
    CenId: defaultM8Zo6H.ID(),
    TransitRouterAttachmentDescription: pulumi.String("example-vpn-attachment"),
    TransitRouterId: defaultM8Zo6H.TransitRouterId,
    VpnId: defaultvrPzdh.ID(),
    AutoPublishRouteEnabled: pulumi.Bool(false),
    ChargeType: pulumi.String("POSTPAY"),
    TransitRouterAttachmentName: pulumi.String("example-vpn-attachment"),
    })
    if err != nil {
    return err
    }
    _default := cen.GetTransitRouterVpnAttachmentsOutput(ctx, cen.GetTransitRouterVpnAttachmentsOutputArgs{
    Ids: pulumi.StringArray{
    defaultTransitRouterVpnAttachment.ID(),
    },
    CenId: defaultM8Zo6H.ID(),
    TransitRouterId: defaultM8Zo6H.TransitRouterId,
    }, nil);
    ctx.Export("alicloudCenTransitRouterVpnAttachmentExampleId", _default.ApplyT(func(_default cen.GetTransitRouterVpnAttachmentsResult) (*string, error) {
    return &default.Attachments[0].Id, nil
    }).(pulumi.StringPtrOutput))
    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 defaultbpR5Uk = new AliCloud.Cen.Instance("defaultbpR5Uk", new()
        {
            CenInstanceName = "example-vpn-attachment",
        });
    
        var defaultM8Zo6H = new AliCloud.Cen.TransitRouter("defaultM8Zo6H", new()
        {
            CenId = defaultbpR5Uk.Id,
        });
    
        var defaultuUtyCv = new AliCloud.Cen.TransitRouterCidr("defaultuUtyCv", new()
        {
            Cidr = "192.168.10.0/24",
            TransitRouterId = defaultM8Zo6H.TransitRouterId,
        });
    
        var defaultMeoCIz = new AliCloud.Vpn.CustomerGateway("defaultMeoCIz", new()
        {
            IpAddress = "0.0.0.0",
            CustomerGatewayName = "example-vpn-attachment",
        });
    
        var defaultvrPzdh = new AliCloud.Vpn.GatewayVpnAttachment("defaultvrPzdh", new()
        {
            CustomerGatewayId = defaultMeoCIz.Id,
            VpnAttachmentName = "example-vpn-attachment",
            LocalSubnet = "10.0.1.0/24",
            RemoteSubnet = "10.0.2.0/24",
        });
    
        var defaultTransitRouterVpnAttachment = new AliCloud.Cen.TransitRouterVpnAttachment("default", new()
        {
            VpnOwnerId = defaultM8Zo6H.Id,
            CenId = defaultM8Zo6H.Id,
            TransitRouterAttachmentDescription = "example-vpn-attachment",
            TransitRouterId = defaultM8Zo6H.TransitRouterId,
            VpnId = defaultvrPzdh.Id,
            AutoPublishRouteEnabled = false,
            ChargeType = "POSTPAY",
            TransitRouterAttachmentName = "example-vpn-attachment",
        });
    
        var @default = AliCloud.Cen.GetTransitRouterVpnAttachments.Invoke(new()
        {
            Ids = new[]
            {
                defaultTransitRouterVpnAttachment.Id,
            },
            CenId = defaultM8Zo6H.Id,
            TransitRouterId = defaultM8Zo6H.TransitRouterId,
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudCenTransitRouterVpnAttachmentExampleId"] = @default.Apply(@default => @default.Apply(getTransitRouterVpnAttachmentsResult => getTransitRouterVpnAttachmentsResult.Attachments[0]?.Id)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cen.Instance;
    import com.pulumi.alicloud.cen.InstanceArgs;
    import com.pulumi.alicloud.cen.TransitRouter;
    import com.pulumi.alicloud.cen.TransitRouterArgs;
    import com.pulumi.alicloud.cen.TransitRouterCidr;
    import com.pulumi.alicloud.cen.TransitRouterCidrArgs;
    import com.pulumi.alicloud.vpn.CustomerGateway;
    import com.pulumi.alicloud.vpn.CustomerGatewayArgs;
    import com.pulumi.alicloud.vpn.GatewayVpnAttachment;
    import com.pulumi.alicloud.vpn.GatewayVpnAttachmentArgs;
    import com.pulumi.alicloud.cen.TransitRouterVpnAttachment;
    import com.pulumi.alicloud.cen.TransitRouterVpnAttachmentArgs;
    import com.pulumi.alicloud.cen.CenFunctions;
    import com.pulumi.alicloud.cen.inputs.GetTransitRouterVpnAttachmentsArgs;
    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 defaultbpR5Uk = new Instance("defaultbpR5Uk", InstanceArgs.builder()
                .cenInstanceName("example-vpn-attachment")
                .build());
    
            var defaultM8Zo6H = new TransitRouter("defaultM8Zo6H", TransitRouterArgs.builder()
                .cenId(defaultbpR5Uk.id())
                .build());
    
            var defaultuUtyCv = new TransitRouterCidr("defaultuUtyCv", TransitRouterCidrArgs.builder()
                .cidr("192.168.10.0/24")
                .transitRouterId(defaultM8Zo6H.transitRouterId())
                .build());
    
            var defaultMeoCIz = new CustomerGateway("defaultMeoCIz", CustomerGatewayArgs.builder()
                .ipAddress("0.0.0.0")
                .customerGatewayName("example-vpn-attachment")
                .build());
    
            var defaultvrPzdh = new GatewayVpnAttachment("defaultvrPzdh", GatewayVpnAttachmentArgs.builder()
                .customerGatewayId(defaultMeoCIz.id())
                .vpnAttachmentName("example-vpn-attachment")
                .localSubnet("10.0.1.0/24")
                .remoteSubnet("10.0.2.0/24")
                .build());
    
            var defaultTransitRouterVpnAttachment = new TransitRouterVpnAttachment("defaultTransitRouterVpnAttachment", TransitRouterVpnAttachmentArgs.builder()
                .vpnOwnerId(defaultM8Zo6H.id())
                .cenId(defaultM8Zo6H.id())
                .transitRouterAttachmentDescription("example-vpn-attachment")
                .transitRouterId(defaultM8Zo6H.transitRouterId())
                .vpnId(defaultvrPzdh.id())
                .autoPublishRouteEnabled(false)
                .chargeType("POSTPAY")
                .transitRouterAttachmentName("example-vpn-attachment")
                .build());
    
            final var default = CenFunctions.getTransitRouterVpnAttachments(GetTransitRouterVpnAttachmentsArgs.builder()
                .ids(defaultTransitRouterVpnAttachment.id())
                .cenId(defaultM8Zo6H.id())
                .transitRouterId(defaultM8Zo6H.transitRouterId())
                .build());
    
            ctx.export("alicloudCenTransitRouterVpnAttachmentExampleId", default_.applyValue(default_ -> default_.attachments()[0].id()));
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultbpR5Uk:
        type: alicloud:cen:Instance
        properties:
          cenInstanceName: example-vpn-attachment
      defaultM8Zo6H:
        type: alicloud:cen:TransitRouter
        properties:
          cenId: ${defaultbpR5Uk.id}
      defaultuUtyCv:
        type: alicloud:cen:TransitRouterCidr
        properties:
          cidr: 192.168.10.0/24
          transitRouterId: ${defaultM8Zo6H.transitRouterId}
      defaultMeoCIz:
        type: alicloud:vpn:CustomerGateway
        properties:
          ipAddress: 0.0.0.0
          customerGatewayName: example-vpn-attachment
      defaultvrPzdh:
        type: alicloud:vpn:GatewayVpnAttachment
        properties:
          customerGatewayId: ${defaultMeoCIz.id}
          vpnAttachmentName: example-vpn-attachment
          localSubnet: 10.0.1.0/24
          remoteSubnet: 10.0.2.0/24
      defaultTransitRouterVpnAttachment:
        type: alicloud:cen:TransitRouterVpnAttachment
        name: default
        properties:
          vpnOwnerId: ${defaultM8Zo6H.id}
          cenId: ${defaultM8Zo6H.id}
          transitRouterAttachmentDescription: example-vpn-attachment
          transitRouterId: ${defaultM8Zo6H.transitRouterId}
          vpnId: ${defaultvrPzdh.id}
          autoPublishRouteEnabled: false
          chargeType: POSTPAY
          transitRouterAttachmentName: example-vpn-attachment
    variables:
      default:
        fn::invoke:
          function: alicloud:cen:getTransitRouterVpnAttachments
          arguments:
            ids:
              - ${defaultTransitRouterVpnAttachment.id}
            cenId: ${defaultM8Zo6H.id}
            transitRouterId: ${defaultM8Zo6H.transitRouterId}
    outputs:
      alicloudCenTransitRouterVpnAttachmentExampleId: ${default.attachments[0].id}
    

    Using getTransitRouterVpnAttachments

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTransitRouterVpnAttachments(args: GetTransitRouterVpnAttachmentsArgs, opts?: InvokeOptions): Promise<GetTransitRouterVpnAttachmentsResult>
    function getTransitRouterVpnAttachmentsOutput(args: GetTransitRouterVpnAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetTransitRouterVpnAttachmentsResult>
    def get_transit_router_vpn_attachments(cen_id: Optional[str] = None,
                                           ids: Optional[Sequence[str]] = None,
                                           name_regex: Optional[str] = None,
                                           output_file: Optional[str] = None,
                                           status: Optional[str] = None,
                                           tags: Optional[Mapping[str, str]] = None,
                                           transit_router_attachment_id: Optional[str] = None,
                                           transit_router_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetTransitRouterVpnAttachmentsResult
    def get_transit_router_vpn_attachments_output(cen_id: Optional[pulumi.Input[str]] = None,
                                           ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                           name_regex: Optional[pulumi.Input[str]] = None,
                                           output_file: Optional[pulumi.Input[str]] = None,
                                           status: Optional[pulumi.Input[str]] = None,
                                           tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                           transit_router_attachment_id: Optional[pulumi.Input[str]] = None,
                                           transit_router_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetTransitRouterVpnAttachmentsResult]
    func GetTransitRouterVpnAttachments(ctx *Context, args *GetTransitRouterVpnAttachmentsArgs, opts ...InvokeOption) (*GetTransitRouterVpnAttachmentsResult, error)
    func GetTransitRouterVpnAttachmentsOutput(ctx *Context, args *GetTransitRouterVpnAttachmentsOutputArgs, opts ...InvokeOption) GetTransitRouterVpnAttachmentsResultOutput

    > Note: This function is named GetTransitRouterVpnAttachments in the Go SDK.

    public static class GetTransitRouterVpnAttachments 
    {
        public static Task<GetTransitRouterVpnAttachmentsResult> InvokeAsync(GetTransitRouterVpnAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetTransitRouterVpnAttachmentsResult> Invoke(GetTransitRouterVpnAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTransitRouterVpnAttachmentsResult> getTransitRouterVpnAttachments(GetTransitRouterVpnAttachmentsArgs args, InvokeOptions options)
    public static Output<GetTransitRouterVpnAttachmentsResult> getTransitRouterVpnAttachments(GetTransitRouterVpnAttachmentsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: alicloud:cen/getTransitRouterVpnAttachments:getTransitRouterVpnAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    Ids List<string>
    A list of Transit Router Vpn Attachment IDs.
    NameRegex string
    A regex string to filter results by Group Metric Rule name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    Tags Dictionary<string, string>
    The tag of the resource
    TransitRouterAttachmentId string
    The ID of the VPN attachment.
    TransitRouterId string
    The ID of the transit router.
    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    Ids []string
    A list of Transit Router Vpn Attachment IDs.
    NameRegex string
    A regex string to filter results by Group Metric Rule name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    Tags map[string]string
    The tag of the resource
    TransitRouterAttachmentId string
    The ID of the VPN attachment.
    TransitRouterId string
    The ID of the transit router.
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    ids List<String>
    A list of Transit Router Vpn Attachment IDs.
    nameRegex String
    A regex string to filter results by Group Metric Rule name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    tags Map<String,String>
    The tag of the resource
    transitRouterAttachmentId String
    The ID of the VPN attachment.
    transitRouterId String
    The ID of the transit router.
    cenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    ids string[]
    A list of Transit Router Vpn Attachment IDs.
    nameRegex string
    A regex string to filter results by Group Metric Rule name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    tags {[key: string]: string}
    The tag of the resource
    transitRouterAttachmentId string
    The ID of the VPN attachment.
    transitRouterId string
    The ID of the transit router.
    cen_id str
    The ID of the Cloud Enterprise Network (CEN) instance.
    ids Sequence[str]
    A list of Transit Router Vpn Attachment IDs.
    name_regex str
    A regex string to filter results by Group Metric Rule name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    tags Mapping[str, str]
    The tag of the resource
    transit_router_attachment_id str
    The ID of the VPN attachment.
    transit_router_id str
    The ID of the transit router.
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    ids List<String>
    A list of Transit Router Vpn Attachment IDs.
    nameRegex String
    A regex string to filter results by Group Metric Rule name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    tags Map<String>
    The tag of the resource
    transitRouterAttachmentId String
    The ID of the VPN attachment.
    transitRouterId String
    The ID of the transit router.

    getTransitRouterVpnAttachments Result

    The following output properties are available:

    Attachments List<Pulumi.AliCloud.Cen.Outputs.GetTransitRouterVpnAttachmentsAttachment>
    A list of Transit Router Vpn Attachment Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Transit Router Vpn Attachment IDs.
    Names List<string>
    A list of name of Transit Router Vpn Attachments.
    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    NameRegex string
    OutputFile string
    Status string
    Status
    Tags Dictionary<string, string>
    The tag of the resource
    TransitRouterAttachmentId string
    The ID of the VPN attachment.
    TransitRouterId string
    The ID of the transit router.
    Attachments []GetTransitRouterVpnAttachmentsAttachment
    A list of Transit Router Vpn Attachment Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Transit Router Vpn Attachment IDs.
    Names []string
    A list of name of Transit Router Vpn Attachments.
    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    NameRegex string
    OutputFile string
    Status string
    Status
    Tags map[string]string
    The tag of the resource
    TransitRouterAttachmentId string
    The ID of the VPN attachment.
    TransitRouterId string
    The ID of the transit router.
    attachments List<GetTransitRouterVpnAttachmentsAttachment>
    A list of Transit Router Vpn Attachment Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Transit Router Vpn Attachment IDs.
    names List<String>
    A list of name of Transit Router Vpn Attachments.
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    nameRegex String
    outputFile String
    status String
    Status
    tags Map<String,String>
    The tag of the resource
    transitRouterAttachmentId String
    The ID of the VPN attachment.
    transitRouterId String
    The ID of the transit router.
    attachments GetTransitRouterVpnAttachmentsAttachment[]
    A list of Transit Router Vpn Attachment Entries. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Transit Router Vpn Attachment IDs.
    names string[]
    A list of name of Transit Router Vpn Attachments.
    cenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    nameRegex string
    outputFile string
    status string
    Status
    tags {[key: string]: string}
    The tag of the resource
    transitRouterAttachmentId string
    The ID of the VPN attachment.
    transitRouterId string
    The ID of the transit router.
    attachments Sequence[GetTransitRouterVpnAttachmentsAttachment]
    A list of Transit Router Vpn Attachment Entries. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Transit Router Vpn Attachment IDs.
    names Sequence[str]
    A list of name of Transit Router Vpn Attachments.
    cen_id str
    The ID of the Cloud Enterprise Network (CEN) instance.
    name_regex str
    output_file str
    status str
    Status
    tags Mapping[str, str]
    The tag of the resource
    transit_router_attachment_id str
    The ID of the VPN attachment.
    transit_router_id str
    The ID of the transit router.
    attachments List<Property Map>
    A list of Transit Router Vpn Attachment Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Transit Router Vpn Attachment IDs.
    names List<String>
    A list of name of Transit Router Vpn Attachments.
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    nameRegex String
    outputFile String
    status String
    Status
    tags Map<String>
    The tag of the resource
    transitRouterAttachmentId String
    The ID of the VPN attachment.
    transitRouterId String
    The ID of the transit router.

    Supporting Types

    GetTransitRouterVpnAttachmentsAttachment

    AutoPublishRouteEnabled bool
    Specifies whether to allow the transit router to automatically advertise routes to the IPsec-VPN attachment. Valid values:* **true** (default): yes* **false**: no
    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    ChargeType string
    The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
    CreateTime string
    The creation time of the resource
    Id string
    The ID of the resource supplied above.
    ResourceType string
    The type of the resource. Set the value to cen, which specifies a CEN instance.
    Status string
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    Tags Dictionary<string, string>
    The tag of the resource
    TransitRouterAttachmentDescription string
    The new description of the VPN attachment.The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.
    TransitRouterAttachmentId string
    The ID of the VPN attachment.
    TransitRouterAttachmentName string
    The name of the VPN attachment.The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
    TransitRouterId string
    The ID of the transit router.
    VpnId string
    The ID of the IPsec-VPN attachment.
    VpnOwnerId int
    The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.* If you do not set this parameter, the ID of the current Alibaba Cloud account is used.* You must set VpnOwnerId if you want to connect the transit router to an IPsec-VPN connection that belongs to another Alibaba Cloud account.
    Zones List<Pulumi.AliCloud.Cen.Inputs.GetTransitRouterVpnAttachmentsAttachmentZone>
    The Zone ID in the current region.System will create resources under the Zone that you specify.Left blank if associated IPSec connection is in dual-tunnel mode.
    AutoPublishRouteEnabled bool
    Specifies whether to allow the transit router to automatically advertise routes to the IPsec-VPN attachment. Valid values:* **true** (default): yes* **false**: no
    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    ChargeType string
    The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
    CreateTime string
    The creation time of the resource
    Id string
    The ID of the resource supplied above.
    ResourceType string
    The type of the resource. Set the value to cen, which specifies a CEN instance.
    Status string
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    Tags map[string]string
    The tag of the resource
    TransitRouterAttachmentDescription string
    The new description of the VPN attachment.The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.
    TransitRouterAttachmentId string
    The ID of the VPN attachment.
    TransitRouterAttachmentName string
    The name of the VPN attachment.The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
    TransitRouterId string
    The ID of the transit router.
    VpnId string
    The ID of the IPsec-VPN attachment.
    VpnOwnerId int
    The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.* If you do not set this parameter, the ID of the current Alibaba Cloud account is used.* You must set VpnOwnerId if you want to connect the transit router to an IPsec-VPN connection that belongs to another Alibaba Cloud account.
    Zones []GetTransitRouterVpnAttachmentsAttachmentZone
    The Zone ID in the current region.System will create resources under the Zone that you specify.Left blank if associated IPSec connection is in dual-tunnel mode.
    autoPublishRouteEnabled Boolean
    Specifies whether to allow the transit router to automatically advertise routes to the IPsec-VPN attachment. Valid values:* **true** (default): yes* **false**: no
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    chargeType String
    The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
    createTime String
    The creation time of the resource
    id String
    The ID of the resource supplied above.
    resourceType String
    The type of the resource. Set the value to cen, which specifies a CEN instance.
    status String
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    tags Map<String,String>
    The tag of the resource
    transitRouterAttachmentDescription String
    The new description of the VPN attachment.The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.
    transitRouterAttachmentId String
    The ID of the VPN attachment.
    transitRouterAttachmentName String
    The name of the VPN attachment.The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
    transitRouterId String
    The ID of the transit router.
    vpnId String
    The ID of the IPsec-VPN attachment.
    vpnOwnerId Integer
    The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.* If you do not set this parameter, the ID of the current Alibaba Cloud account is used.* You must set VpnOwnerId if you want to connect the transit router to an IPsec-VPN connection that belongs to another Alibaba Cloud account.
    zones List<GetTransitRouterVpnAttachmentsAttachmentZone>
    The Zone ID in the current region.System will create resources under the Zone that you specify.Left blank if associated IPSec connection is in dual-tunnel mode.
    autoPublishRouteEnabled boolean
    Specifies whether to allow the transit router to automatically advertise routes to the IPsec-VPN attachment. Valid values:* **true** (default): yes* **false**: no
    cenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    chargeType string
    The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
    createTime string
    The creation time of the resource
    id string
    The ID of the resource supplied above.
    resourceType string
    The type of the resource. Set the value to cen, which specifies a CEN instance.
    status string
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    tags {[key: string]: string}
    The tag of the resource
    transitRouterAttachmentDescription string
    The new description of the VPN attachment.The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.
    transitRouterAttachmentId string
    The ID of the VPN attachment.
    transitRouterAttachmentName string
    The name of the VPN attachment.The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
    transitRouterId string
    The ID of the transit router.
    vpnId string
    The ID of the IPsec-VPN attachment.
    vpnOwnerId number
    The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.* If you do not set this parameter, the ID of the current Alibaba Cloud account is used.* You must set VpnOwnerId if you want to connect the transit router to an IPsec-VPN connection that belongs to another Alibaba Cloud account.
    zones GetTransitRouterVpnAttachmentsAttachmentZone[]
    The Zone ID in the current region.System will create resources under the Zone that you specify.Left blank if associated IPSec connection is in dual-tunnel mode.
    auto_publish_route_enabled bool
    Specifies whether to allow the transit router to automatically advertise routes to the IPsec-VPN attachment. Valid values:* **true** (default): yes* **false**: no
    cen_id str
    The ID of the Cloud Enterprise Network (CEN) instance.
    charge_type str
    The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
    create_time str
    The creation time of the resource
    id str
    The ID of the resource supplied above.
    resource_type str
    The type of the resource. Set the value to cen, which specifies a CEN instance.
    status str
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    tags Mapping[str, str]
    The tag of the resource
    transit_router_attachment_description str
    The new description of the VPN attachment.The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.
    transit_router_attachment_id str
    The ID of the VPN attachment.
    transit_router_attachment_name str
    The name of the VPN attachment.The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
    transit_router_id str
    The ID of the transit router.
    vpn_id str
    The ID of the IPsec-VPN attachment.
    vpn_owner_id int
    The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.* If you do not set this parameter, the ID of the current Alibaba Cloud account is used.* You must set VpnOwnerId if you want to connect the transit router to an IPsec-VPN connection that belongs to another Alibaba Cloud account.
    zones Sequence[GetTransitRouterVpnAttachmentsAttachmentZone]
    The Zone ID in the current region.System will create resources under the Zone that you specify.Left blank if associated IPSec connection is in dual-tunnel mode.
    autoPublishRouteEnabled Boolean
    Specifies whether to allow the transit router to automatically advertise routes to the IPsec-VPN attachment. Valid values:* **true** (default): yes* **false**: no
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    chargeType String
    The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
    createTime String
    The creation time of the resource
    id String
    The ID of the resource supplied above.
    resourceType String
    The type of the resource. Set the value to cen, which specifies a CEN instance.
    status String
    The Status of Transit Router Vpn Attachment. Valid Value: Attached, Attaching, Detaching.
    tags Map<String>
    The tag of the resource
    transitRouterAttachmentDescription String
    The new description of the VPN attachment.The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.
    transitRouterAttachmentId String
    The ID of the VPN attachment.
    transitRouterAttachmentName String
    The name of the VPN attachment.The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
    transitRouterId String
    The ID of the transit router.
    vpnId String
    The ID of the IPsec-VPN attachment.
    vpnOwnerId Number
    The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.* If you do not set this parameter, the ID of the current Alibaba Cloud account is used.* You must set VpnOwnerId if you want to connect the transit router to an IPsec-VPN connection that belongs to another Alibaba Cloud account.
    zones List<Property Map>
    The Zone ID in the current region.System will create resources under the Zone that you specify.Left blank if associated IPSec connection is in dual-tunnel mode.

    GetTransitRouterVpnAttachmentsAttachmentZone

    ZoneId string
    The zone ID of the read-only instance.You can call the ListTransitRouterAvailableResource operation to query the most recent zone list.
    ZoneId string
    The zone ID of the read-only instance.You can call the ListTransitRouterAvailableResource operation to query the most recent zone list.
    zoneId String
    The zone ID of the read-only instance.You can call the ListTransitRouterAvailableResource operation to query the most recent zone list.
    zoneId string
    The zone ID of the read-only instance.You can call the ListTransitRouterAvailableResource operation to query the most recent zone list.
    zone_id str
    The zone ID of the read-only instance.You can call the ListTransitRouterAvailableResource operation to query the most recent zone list.
    zoneId String
    The zone ID of the read-only instance.You can call the ListTransitRouterAvailableResource operation to query the most recent zone list.

    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
    Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi