Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.cen.getTransitRouterVpnAttachments
Explore with Pulumi AI
This data source provides the Cen Transit Router Vpn Attachments of the current Alibaba Cloud user.
NOTE: Available in v1.183.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.cen.getTransitRouterVpnAttachments({
cenId: "example_value",
});
export const cenTransitRouterVpnAttachmentId1 = ids.then(ids => ids.attachments?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.cen.get_transit_router_vpn_attachments(cen_id="example_value")
pulumi.export("cenTransitRouterVpnAttachmentId1", ids.attachments[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := cen.GetTransitRouterVpnAttachments(ctx, &cen.GetTransitRouterVpnAttachmentsArgs{
CenId: "example_value",
}, nil)
if err != nil {
return err
}
ctx.Export("cenTransitRouterVpnAttachmentId1", ids.Attachments[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Cen.GetTransitRouterVpnAttachments.Invoke(new()
{
CenId = "example_value",
});
return new Dictionary<string, object?>
{
["cenTransitRouterVpnAttachmentId1"] = ids.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.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 ids = CenFunctions.getTransitRouterVpnAttachments(GetTransitRouterVpnAttachmentsArgs.builder()
.cenId("example_value")
.build());
ctx.export("cenTransitRouterVpnAttachmentId1", ids.applyValue(getTransitRouterVpnAttachmentsResult -> getTransitRouterVpnAttachmentsResult.attachments()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:cen:getTransitRouterVpnAttachments
Arguments:
cenId: example_value
outputs:
cenTransitRouterVpnAttachmentId1: ${ids.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,
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,
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cen/getTransitRouterVpnAttachments:getTransitRouterVpnAttachments
arguments:
# arguments dictionary
The following arguments are supported:
- Cen
Id string - The id of the cen.
- Ids List<string>
- A list of Transit Router Vpn Attachment IDs.
- Name
Regex string - 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
. - Transit
Router stringId - The ID of the forwarding router instance.
- Cen
Id string - The id of the cen.
- Ids []string
- A list of Transit Router Vpn Attachment IDs.
- Name
Regex string - 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
. - Transit
Router stringId - The ID of the forwarding router instance.
- cen
Id String - The id of the cen.
- ids List<String>
- A list of Transit Router Vpn Attachment IDs.
- name
Regex String - 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
. - transit
Router StringId - The ID of the forwarding router instance.
- cen
Id string - The id of the cen.
- ids string[]
- A list of Transit Router Vpn Attachment IDs.
- name
Regex string - 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
. - transit
Router stringId - The ID of the forwarding router instance.
- cen_
id str - The id of the cen.
- ids Sequence[str]
- A list of Transit Router Vpn Attachment IDs.
- name_
regex str - 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
. - transit_
router_ strid - The ID of the forwarding router instance.
- cen
Id String - The id of the cen.
- ids List<String>
- A list of Transit Router Vpn Attachment IDs.
- name
Regex String - 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
. - transit
Router StringId - The ID of the forwarding router instance.
getTransitRouterVpnAttachments Result
The following output properties are available:
- Attachments
List<Pulumi.
Ali Cloud. Cen. Outputs. Get Transit Router Vpn Attachments Attachment> - Cen
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Name
Regex string - Output
File string - Status string
- Transit
Router stringId
- Attachments
[]Get
Transit Router Vpn Attachments Attachment - Cen
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Name
Regex string - Output
File string - Status string
- Transit
Router stringId
- attachments
List<Get
Transit Router Vpn Attachments Attachment> - cen
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - status String
- transit
Router StringId
- attachments
Get
Transit Router Vpn Attachments Attachment[] - cen
Id string - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- name
Regex string - output
File string - status string
- transit
Router stringId
- attachments
Sequence[Get
Transit Router Vpn Attachments Attachment] - cen_
id str - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- name_
regex str - output_
file str - status str
- transit_
router_ strid
- attachments List<Property Map>
- cen
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - status String
- transit
Router StringId
Supporting Types
GetTransitRouterVpnAttachmentsAttachment
- Auto
Publish boolRoute Enabled - Whether to allow the forwarding router instance to automatically publish routing entries to IPsec connections.
- Create
Time string - The creation time of the resource.
- Id string
- Resource
Type string - Type of the resource.
- Status string
- The status of the transit router attachment.
- Transit
Router stringAttachment Description - The description of the VPN connection.
- Transit
Router stringAttachment Id - Transit
Router stringAttachment Name - The name of the VPN connection.
- Transit
Router stringId - The ID of the forwarding router instance.
- Vpn
Id string - The id of the vpn.
- Vpn
Owner stringId - The owner id of vpn.
- Zones
List<Pulumi.
Ali Cloud. Cen. Inputs. Get Transit Router Vpn Attachments Attachment Zone> - The list of zone mapping.
- Auto
Publish boolRoute Enabled - Whether to allow the forwarding router instance to automatically publish routing entries to IPsec connections.
- Create
Time string - The creation time of the resource.
- Id string
- Resource
Type string - Type of the resource.
- Status string
- The status of the transit router attachment.
- Transit
Router stringAttachment Description - The description of the VPN connection.
- Transit
Router stringAttachment Id - Transit
Router stringAttachment Name - The name of the VPN connection.
- Transit
Router stringId - The ID of the forwarding router instance.
- Vpn
Id string - The id of the vpn.
- Vpn
Owner stringId - The owner id of vpn.
- Zones
[]Get
Transit Router Vpn Attachments Attachment Zone - The list of zone mapping.
- auto
Publish BooleanRoute Enabled - Whether to allow the forwarding router instance to automatically publish routing entries to IPsec connections.
- create
Time String - The creation time of the resource.
- id String
- resource
Type String - Type of the resource.
- status String
- The status of the transit router attachment.
- transit
Router StringAttachment Description - The description of the VPN connection.
- transit
Router StringAttachment Id - transit
Router StringAttachment Name - The name of the VPN connection.
- transit
Router StringId - The ID of the forwarding router instance.
- vpn
Id String - The id of the vpn.
- vpn
Owner StringId - The owner id of vpn.
- zones
List<Get
Transit Router Vpn Attachments Attachment Zone> - The list of zone mapping.
- auto
Publish booleanRoute Enabled - Whether to allow the forwarding router instance to automatically publish routing entries to IPsec connections.
- create
Time string - The creation time of the resource.
- id string
- resource
Type string - Type of the resource.
- status string
- The status of the transit router attachment.
- transit
Router stringAttachment Description - The description of the VPN connection.
- transit
Router stringAttachment Id - transit
Router stringAttachment Name - The name of the VPN connection.
- transit
Router stringId - The ID of the forwarding router instance.
- vpn
Id string - The id of the vpn.
- vpn
Owner stringId - The owner id of vpn.
- zones
Get
Transit Router Vpn Attachments Attachment Zone[] - The list of zone mapping.
- auto_
publish_ boolroute_ enabled - Whether to allow the forwarding router instance to automatically publish routing entries to IPsec connections.
- create_
time str - The creation time of the resource.
- id str
- resource_
type str - Type of the resource.
- status str
- The status of the transit router attachment.
- transit_
router_ strattachment_ description - The description of the VPN connection.
- transit_
router_ strattachment_ id - transit_
router_ strattachment_ name - The name of the VPN connection.
- transit_
router_ strid - The ID of the forwarding router instance.
- vpn_
id str - The id of the vpn.
- vpn_
owner_ strid - The owner id of vpn.
- zones
Sequence[Get
Transit Router Vpn Attachments Attachment Zone] - The list of zone mapping.
- auto
Publish BooleanRoute Enabled - Whether to allow the forwarding router instance to automatically publish routing entries to IPsec connections.
- create
Time String - The creation time of the resource.
- id String
- resource
Type String - Type of the resource.
- status String
- The status of the transit router attachment.
- transit
Router StringAttachment Description - The description of the VPN connection.
- transit
Router StringAttachment Id - transit
Router StringAttachment Name - The name of the VPN connection.
- transit
Router StringId - The ID of the forwarding router instance.
- vpn
Id String - The id of the vpn.
- vpn
Owner StringId - The owner id of vpn.
- zones List<Property Map>
- The list of zone mapping.
GetTransitRouterVpnAttachmentsAttachmentZone
- Zone
Id string - The id of the zone.
- Zone
Id string - The id of the zone.
- zone
Id String - The id of the zone.
- zone
Id string - The id of the zone.
- zone_
id str - The id of the zone.
- zone
Id String - The id of the zone.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.