1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. VpnAttachments
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.transit_router.VpnAttachments

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

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

Example Usage

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",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

default = volcengine.transit_router.vpn_attachments(ids=["tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt"],
    transit_router_id="tr-2d6fr7f39unsw58ozfe1ow21x")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  default:
    fn::invoke:
      Function: volcengine:transit_router:VpnAttachments
      Arguments:
        ids:
          - tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt
        transitRouterId: tr-2d6fr7f39unsw58ozfe1ow21x
Copy

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>
Copy
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]
Copy
func VpnAttachments(ctx *Context, args *VpnAttachmentsArgs, opts ...InvokeOption) (*VpnAttachmentsResult, error)
func VpnAttachmentsOutput(ctx *Context, args *VpnAttachmentsOutputArgs, opts ...InvokeOption) VpnAttachmentsResultOutput
Copy
public static class VpnAttachments 
{
    public static Task<VpnAttachmentsResult> InvokeAsync(VpnAttachmentsArgs args, InvokeOptions? opts = null)
    public static Output<VpnAttachmentsResult> Invoke(VpnAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<VpnAttachmentsResult> vpnAttachments(VpnAttachmentsArgs args, InvokeOptions options)
public static Output<VpnAttachmentsResult> vpnAttachments(VpnAttachmentsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:transit_router:VpnAttachments
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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

VpnAttachmentsAttachmentTag

Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.
key This property is required. string
The Key of Tags.
value This property is required. string
The Value of Tags.
key This property is required. str
The Key of Tags.
value This property is required. str
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.

VpnAttachmentsTag

Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.
key This property is required. string
The Key of Tags.
value This property is required. string
The Value of Tags.
key This property is required. str
The Key of Tags.
value This property is required. str
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. 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 v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine