Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.cen.getTransitRouterVpnAttachments
Explore with Pulumi AI
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:
- Cen
Id string - The ID of the Cloud Enterprise Network (CEN) instance.
- Ids List<string>
- A list of Transit Router Vpn Attachment IDs.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File 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
. - Dictionary<string, string>
- The tag of the resource
- Transit
Router stringAttachment Id - The ID of the VPN attachment.
- Transit
Router stringId - The ID of the transit router.
- Cen
Id string - The ID of the Cloud Enterprise Network (CEN) instance.
- Ids []string
- A list of Transit Router Vpn Attachment IDs.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File 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
. - map[string]string
- The tag of the resource
- Transit
Router stringAttachment Id - The ID of the VPN attachment.
- Transit
Router stringId - The ID of the transit router.
- cen
Id String - The ID of the Cloud Enterprise Network (CEN) instance.
- ids List<String>
- A list of Transit Router Vpn Attachment IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File 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
. - Map<String,String>
- The tag of the resource
- transit
Router StringAttachment Id - The ID of the VPN attachment.
- transit
Router StringId - The ID of the transit router.
- cen
Id string - The ID of the Cloud Enterprise Network (CEN) instance.
- ids string[]
- A list of Transit Router Vpn Attachment IDs.
- name
Regex string - A regex string to filter results by Group Metric Rule name.
- output
File 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
. - {[key: string]: string}
- The tag of the resource
- transit
Router stringAttachment Id - The ID of the VPN attachment.
- transit
Router stringId - 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
. - Mapping[str, str]
- The tag of the resource
- transit_
router_ strattachment_ id - The ID of the VPN attachment.
- transit_
router_ strid - The ID of the transit router.
- cen
Id String - The ID of the Cloud Enterprise Network (CEN) instance.
- ids List<String>
- A list of Transit Router Vpn Attachment IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File 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
. - Map<String>
- The tag of the resource
- transit
Router StringAttachment Id - The ID of the VPN attachment.
- transit
Router StringId - The ID of the transit router.
getTransitRouterVpnAttachments Result
The following output properties are available:
- Attachments
List<Pulumi.
Ali Cloud. Cen. Outputs. Get Transit Router Vpn Attachments Attachment> - 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.
- Cen
Id string - The ID of the Cloud Enterprise Network (CEN) instance.
- Name
Regex string - Output
File string - Status string
- Status
- Dictionary<string, string>
- The tag of the resource
- Transit
Router stringAttachment Id - The ID of the VPN attachment.
- Transit
Router stringId - The ID of the transit router.
- Attachments
[]Get
Transit Router Vpn Attachments Attachment - 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.
- Cen
Id string - The ID of the Cloud Enterprise Network (CEN) instance.
- Name
Regex string - Output
File string - Status string
- Status
- map[string]string
- The tag of the resource
- Transit
Router stringAttachment Id - The ID of the VPN attachment.
- Transit
Router stringId - The ID of the transit router.
- attachments
List<Get
Transit Router Vpn Attachments Attachment> - 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.
- cen
Id String - The ID of the Cloud Enterprise Network (CEN) instance.
- name
Regex String - output
File String - status String
- Status
- Map<String,String>
- The tag of the resource
- transit
Router StringAttachment Id - The ID of the VPN attachment.
- transit
Router StringId - The ID of the transit router.
- attachments
Get
Transit Router Vpn Attachments Attachment[] - 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.
- cen
Id string - The ID of the Cloud Enterprise Network (CEN) instance.
- name
Regex string - output
File string - status string
- Status
- {[key: string]: string}
- The tag of the resource
- transit
Router stringAttachment Id - The ID of the VPN attachment.
- transit
Router stringId - The ID of the transit router.
- attachments
Sequence[Get
Transit Router Vpn Attachments Attachment] - 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
- Mapping[str, str]
- The tag of the resource
- transit_
router_ strattachment_ id - The ID of the VPN attachment.
- transit_
router_ strid - 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.
- cen
Id String - The ID of the Cloud Enterprise Network (CEN) instance.
- name
Regex String - output
File String - status String
- Status
- Map<String>
- The tag of the resource
- transit
Router StringAttachment Id - The ID of the VPN attachment.
- transit
Router StringId - The ID of the transit router.
Supporting Types
GetTransitRouterVpnAttachmentsAttachment
- Auto
Publish boolRoute Enabled - 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 string - The ID of the Cloud Enterprise Network (CEN) instance.
- Charge
Type string - The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
- Create
Time string - The creation time of the resource
- Id string
- The ID of the resource supplied above.
- Resource
Type 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
. - Dictionary<string, string>
- The tag of the resource
- Transit
Router stringAttachment Description - 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://
orhttps://
. - Transit
Router stringAttachment Id - The ID of the VPN attachment.
- Transit
Router stringAttachment Name - 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 stringId - The ID of the transit router.
- Vpn
Id string - The ID of the IPsec-VPN attachment.
- Vpn
Owner intId - 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.
Ali Cloud. Cen. Inputs. Get Transit Router Vpn Attachments Attachment Zone> - 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 boolRoute Enabled - 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 string - The ID of the Cloud Enterprise Network (CEN) instance.
- Charge
Type string - The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
- Create
Time string - The creation time of the resource
- Id string
- The ID of the resource supplied above.
- Resource
Type 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
. - map[string]string
- The tag of the resource
- Transit
Router stringAttachment Description - 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://
orhttps://
. - Transit
Router stringAttachment Id - The ID of the VPN attachment.
- Transit
Router stringAttachment Name - 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 stringId - The ID of the transit router.
- Vpn
Id string - The ID of the IPsec-VPN attachment.
- Vpn
Owner intId - 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
[]Get
Transit Router Vpn Attachments Attachment Zone - 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 BooleanRoute Enabled - 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 String - The ID of the Cloud Enterprise Network (CEN) instance.
- charge
Type String - The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
- create
Time String - The creation time of the resource
- id String
- The ID of the resource supplied above.
- resource
Type 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
. - Map<String,String>
- The tag of the resource
- transit
Router StringAttachment Description - 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://
orhttps://
. - transit
Router StringAttachment Id - The ID of the VPN attachment.
- transit
Router StringAttachment Name - 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 StringId - The ID of the transit router.
- vpn
Id String - The ID of the IPsec-VPN attachment.
- vpn
Owner IntegerId - 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<Get
Transit Router Vpn Attachments Attachment Zone> - 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 booleanRoute Enabled - 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 string - The ID of the Cloud Enterprise Network (CEN) instance.
- charge
Type string - The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
- create
Time string - The creation time of the resource
- id string
- The ID of the resource supplied above.
- resource
Type 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
. - {[key: string]: string}
- The tag of the resource
- transit
Router stringAttachment Description - 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://
orhttps://
. - transit
Router stringAttachment Id - The ID of the VPN attachment.
- transit
Router stringAttachment Name - 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 stringId - The ID of the transit router.
- vpn
Id string - The ID of the IPsec-VPN attachment.
- vpn
Owner numberId - 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
Get
Transit Router Vpn Attachments Attachment Zone[] - 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_ boolroute_ enabled - 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
. - Mapping[str, str]
- The tag of the resource
- transit_
router_ strattachment_ description - 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://
orhttps://
. - transit_
router_ strattachment_ id - The ID of the VPN attachment.
- transit_
router_ strattachment_ name - 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_ strid - The ID of the transit router.
- vpn_
id str - The ID of the IPsec-VPN attachment.
- vpn_
owner_ intid - 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[Get
Transit Router Vpn Attachments Attachment Zone] - 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 BooleanRoute Enabled - 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 String - The ID of the Cloud Enterprise Network (CEN) instance.
- charge
Type String - The billing method.Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
- create
Time String - The creation time of the resource
- id String
- The ID of the resource supplied above.
- resource
Type 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
. - Map<String>
- The tag of the resource
- transit
Router StringAttachment Description - 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://
orhttps://
. - transit
Router StringAttachment Id - The ID of the VPN attachment.
- transit
Router StringAttachment Name - 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 StringId - The ID of the transit router.
- vpn
Id String - The ID of the IPsec-VPN attachment.
- vpn
Owner NumberId - 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
- Zone
Id string - The zone ID of the read-only instance.You can call the ListTransitRouterAvailableResource operation to query the most recent zone list.
- Zone
Id string - The zone ID of the read-only instance.You can call the ListTransitRouterAvailableResource operation to query the most recent zone list.
- zone
Id String - The zone ID of the read-only instance.You can call the ListTransitRouterAvailableResource operation to query the most recent zone list.
- zone
Id 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.
- zone
Id 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.