1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. VpnAttachments
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.transit_router.VpnAttachments

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of transit router vpn attachments

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Transit_router.VpnAttachments.Invoke(new()
        {
            Ids = new[]
            {
                "tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt",
            },
            TransitRouterId = "tr-2d6fr7f39unsw58ozfe1ow21x",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := transit_router.VpnAttachments(ctx, &transit_router.VpnAttachmentsArgs{
    			Ids: []string{
    				"tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt",
    			},
    			TransitRouterId: "tr-2d6fr7f39unsw58ozfe1ow21x",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.transit_router.Transit_routerFunctions;
    import com.pulumi.volcengine.transit_router_vpnAttachments.inputs.VpnAttachmentsArgs;
    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 default = Transit_routerFunctions.VpnAttachments(VpnAttachmentsArgs.builder()
                .ids("tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt")
                .transitRouterId("tr-2d6fr7f39unsw58ozfe1ow21x")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.transit_router.vpn_attachments(ids=["tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt"],
        transit_router_id="tr-2d6fr7f39unsw58ozfe1ow21x")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.transit_router.VpnAttachments({
        ids: ["tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt"],
        transitRouterId: "tr-2d6fr7f39unsw58ozfe1ow21x",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:transit_router:VpnAttachments
          Arguments:
            ids:
              - tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt
            transitRouterId: tr-2d6fr7f39unsw58ozfe1ow21x
    

    Using VpnAttachments

    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 vpnAttachments(args: VpnAttachmentsArgs, opts?: InvokeOptions): Promise<VpnAttachmentsResult>
    function vpnAttachmentsOutput(args: VpnAttachmentsOutputArgs, opts?: InvokeOptions): Output<VpnAttachmentsResult>
    def vpn_attachments(ids: Optional[Sequence[str]] = None,
                        output_file: Optional[str] = None,
                        tags: Optional[Sequence[VpnAttachmentsTag]] = None,
                        transit_router_id: Optional[str] = None,
                        vpn_connection_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> VpnAttachmentsResult
    def vpn_attachments_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        tags: Optional[pulumi.Input[Sequence[pulumi.Input[VpnAttachmentsTagArgs]]]] = None,
                        transit_router_id: Optional[pulumi.Input[str]] = None,
                        vpn_connection_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[VpnAttachmentsResult]
    func VpnAttachments(ctx *Context, args *VpnAttachmentsArgs, opts ...InvokeOption) (*VpnAttachmentsResult, error)
    func VpnAttachmentsOutput(ctx *Context, args *VpnAttachmentsOutputArgs, opts ...InvokeOption) VpnAttachmentsResultOutput
    public static class VpnAttachments 
    {
        public static Task<VpnAttachmentsResult> InvokeAsync(VpnAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<VpnAttachmentsResult> Invoke(VpnAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<VpnAttachmentsResult> vpnAttachments(VpnAttachmentsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:transit_router:VpnAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TransitRouterId string
    The id of the transit router.
    Ids List<string>
    The ID list of the VPN attachment.
    OutputFile string
    File name where to save data source results.
    Tags List<VpnAttachmentsTag>
    Tags.
    VpnConnectionId string
    The ID of the IPSec connection.
    TransitRouterId string
    The id of the transit router.
    Ids []string
    The ID list of the VPN attachment.
    OutputFile string
    File name where to save data source results.
    Tags []VpnAttachmentsTag
    Tags.
    VpnConnectionId string
    The ID of the IPSec connection.
    transitRouterId String
    The id of the transit router.
    ids List<String>
    The ID list of the VPN attachment.
    outputFile String
    File name where to save data source results.
    tags List<VpnAttachmentsTag>
    Tags.
    vpnConnectionId String
    The ID of the IPSec connection.
    transitRouterId string
    The id of the transit router.
    ids string[]
    The ID list of the VPN attachment.
    outputFile string
    File name where to save data source results.
    tags VpnAttachmentsTag[]
    Tags.
    vpnConnectionId string
    The ID of the IPSec connection.
    transit_router_id str
    The id of the transit router.
    ids Sequence[str]
    The ID list of the VPN attachment.
    output_file str
    File name where to save data source results.
    tags Sequence[VpnAttachmentsTag]
    Tags.
    vpn_connection_id str
    The ID of the IPSec connection.
    transitRouterId String
    The id of the transit router.
    ids List<String>
    The ID list of the VPN attachment.
    outputFile String
    File name where to save data source results.
    tags List<Property Map>
    Tags.
    vpnConnectionId String
    The ID of the IPSec connection.

    VpnAttachments Result

    The following output properties are available:

    Attachments List<VpnAttachmentsAttachment>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    TransitRouterId string
    The id of the transit router.
    Ids List<string>
    OutputFile string
    Tags List<VpnAttachmentsTag>
    Tags.
    VpnConnectionId string
    The ID of the IPSec connection.
    Attachments []VpnAttachmentsAttachment
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    TransitRouterId string
    The id of the transit router.
    Ids []string
    OutputFile string
    Tags []VpnAttachmentsTag
    Tags.
    VpnConnectionId string
    The ID of the IPSec connection.
    attachments List<VpnAttachmentsAttachment>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    transitRouterId String
    The id of the transit router.
    ids List<String>
    outputFile String
    tags List<VpnAttachmentsTag>
    Tags.
    vpnConnectionId String
    The ID of the IPSec connection.
    attachments VpnAttachmentsAttachment[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    transitRouterId string
    The id of the transit router.
    ids string[]
    outputFile string
    tags VpnAttachmentsTag[]
    Tags.
    vpnConnectionId string
    The ID of the IPSec connection.
    attachments Sequence[VpnAttachmentsAttachment]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    transit_router_id str
    The id of the transit router.
    ids Sequence[str]
    output_file str
    tags Sequence[VpnAttachmentsTag]
    Tags.
    vpn_connection_id str
    The ID of the IPSec connection.
    attachments List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    transitRouterId String
    The id of the transit router.
    ids List<String>
    outputFile String
    tags List<Property Map>
    Tags.
    vpnConnectionId String
    The ID of the IPSec connection.

    Supporting Types

    VpnAttachmentsAttachment

    CreationTime string
    The create time.
    Description string
    The description info.
    Status string
    The status of the transit router.
    Tags List<VpnAttachmentsAttachmentTag>
    Tags.
    TransitRouterAttachmentId string
    The id of the transit router attachment.
    TransitRouterAttachmentName string
    The name of the transit router attachment.
    TransitRouterId string
    The id of the transit router.
    UpdateTime string
    The update time.
    VpnConnectionId string
    The ID of the IPSec connection.
    ZoneId string
    The ID of the availability zone.
    CreationTime string
    The create time.
    Description string
    The description info.
    Status string
    The status of the transit router.
    Tags []VpnAttachmentsAttachmentTag
    Tags.
    TransitRouterAttachmentId string
    The id of the transit router attachment.
    TransitRouterAttachmentName string
    The name of the transit router attachment.
    TransitRouterId string
    The id of the transit router.
    UpdateTime string
    The update time.
    VpnConnectionId string
    The ID of the IPSec connection.
    ZoneId string
    The ID of the availability zone.
    creationTime String
    The create time.
    description String
    The description info.
    status String
    The status of the transit router.
    tags List<VpnAttachmentsAttachmentTag>
    Tags.
    transitRouterAttachmentId String
    The id of the transit router attachment.
    transitRouterAttachmentName String
    The name of the transit router attachment.
    transitRouterId String
    The id of the transit router.
    updateTime String
    The update time.
    vpnConnectionId String
    The ID of the IPSec connection.
    zoneId String
    The ID of the availability zone.
    creationTime string
    The create time.
    description string
    The description info.
    status string
    The status of the transit router.
    tags VpnAttachmentsAttachmentTag[]
    Tags.
    transitRouterAttachmentId string
    The id of the transit router attachment.
    transitRouterAttachmentName string
    The name of the transit router attachment.
    transitRouterId string
    The id of the transit router.
    updateTime string
    The update time.
    vpnConnectionId string
    The ID of the IPSec connection.
    zoneId string
    The ID of the availability zone.
    creation_time str
    The create time.
    description str
    The description info.
    status str
    The status of the transit router.
    tags Sequence[VpnAttachmentsAttachmentTag]
    Tags.
    transit_router_attachment_id str
    The id of the transit router attachment.
    transit_router_attachment_name str
    The name of the transit router attachment.
    transit_router_id str
    The id of the transit router.
    update_time str
    The update time.
    vpn_connection_id str
    The ID of the IPSec connection.
    zone_id str
    The ID of the availability zone.
    creationTime String
    The create time.
    description String
    The description info.
    status String
    The status of the transit router.
    tags List<Property Map>
    Tags.
    transitRouterAttachmentId String
    The id of the transit router attachment.
    transitRouterAttachmentName String
    The name of the transit router attachment.
    transitRouterId String
    The id of the transit router.
    updateTime String
    The update time.
    vpnConnectionId String
    The ID of the IPSec connection.
    zoneId String
    The ID of the availability zone.

    VpnAttachmentsAttachmentTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    VpnAttachmentsTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine