Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.transit_router.VpnAttachments
Explore with Pulumi AI
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) VpnAttachmentsResultOutputpublic 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 dictionaryThe following arguments are supported:
- Transit
Router stringId  - The id of the transit router.
 - Ids List<string>
 - The ID list of the VPN attachment.
 - Output
File string - File name where to save data source results.
 - 
List<Vpn
Attachments Tag>  - Tags.
 - Vpn
Connection stringId  - The ID of the IPSec connection.
 
- Transit
Router stringId  - The id of the transit router.
 - Ids []string
 - The ID list of the VPN attachment.
 - Output
File string - File name where to save data source results.
 - 
[]Vpn
Attachments Tag  - Tags.
 - Vpn
Connection stringId  - The ID of the IPSec connection.
 
- transit
Router StringId  - The id of the transit router.
 - ids List<String>
 - The ID list of the VPN attachment.
 - output
File String - File name where to save data source results.
 - 
List<Vpn
Attachments Tag>  - Tags.
 - vpn
Connection StringId  - The ID of the IPSec connection.
 
- transit
Router stringId  - The id of the transit router.
 - ids string[]
 - The ID list of the VPN attachment.
 - output
File string - File name where to save data source results.
 - 
Vpn
Attachments Tag[]  - Tags.
 - vpn
Connection stringId  - The ID of the IPSec connection.
 
- transit_
router_ strid  - 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.
 - 
Sequence[Vpn
Attachments Tag]  - Tags.
 - vpn_
connection_ strid  - The ID of the IPSec connection.
 
- transit
Router StringId  - The id of the transit router.
 - ids List<String>
 - The ID list of the VPN attachment.
 - output
File String - File name where to save data source results.
 - List<Property Map>
 - Tags.
 - vpn
Connection StringId  - The ID of the IPSec connection.
 
VpnAttachments Result
The following output properties are available:
- Attachments
List<Vpn
Attachments Attachment>  - The collection of query.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Total
Count int - The total count of query.
 - Transit
Router stringId  - The id of the transit router.
 - Ids List<string>
 - Output
File string - 
List<Vpn
Attachments Tag>  - Tags.
 - Vpn
Connection stringId  - The ID of the IPSec connection.
 
- Attachments
[]Vpn
Attachments Attachment  - The collection of query.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Total
Count int - The total count of query.
 - Transit
Router stringId  - The id of the transit router.
 - Ids []string
 - Output
File string - 
[]Vpn
Attachments Tag  - Tags.
 - Vpn
Connection stringId  - The ID of the IPSec connection.
 
- attachments
List<Vpn
Attachments Attachment>  - The collection of query.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - total
Count Integer - The total count of query.
 - transit
Router StringId  - The id of the transit router.
 - ids List<String>
 - output
File String - 
List<Vpn
Attachments Tag>  - Tags.
 - vpn
Connection StringId  - The ID of the IPSec connection.
 
- attachments
Vpn
Attachments Attachment[]  - The collection of query.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - total
Count number - The total count of query.
 - transit
Router stringId  - The id of the transit router.
 - ids string[]
 - output
File string - 
Vpn
Attachments Tag[]  - Tags.
 - vpn
Connection stringId  - The ID of the IPSec connection.
 
- attachments
Sequence[Vpn
Attachments Attachment]  - 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_ strid  - The id of the transit router.
 - ids Sequence[str]
 - output_
file str - 
Sequence[Vpn
Attachments Tag]  - Tags.
 - vpn_
connection_ strid  - 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.
 - total
Count Number - The total count of query.
 - transit
Router StringId  - The id of the transit router.
 - ids List<String>
 - output
File String - List<Property Map>
 - Tags.
 - vpn
Connection StringId  - The ID of the IPSec connection.
 
Supporting Types
VpnAttachmentsAttachment  
- Creation
Time string - The create time.
 - Description string
 - The description info.
 - Status string
 - The status of the transit router.
 - 
List<Vpn
Attachments Attachment Tag>  - Tags.
 - Transit
Router stringAttachment Id  - The id of the transit router attachment.
 - Transit
Router stringAttachment Name  - The name of the transit router attachment.
 - Transit
Router stringId  - The id of the transit router.
 - Update
Time string - The update time.
 - Vpn
Connection stringId  - The ID of the IPSec connection.
 - Zone
Id string - The ID of the availability zone.
 
- Creation
Time string - The create time.
 - Description string
 - The description info.
 - Status string
 - The status of the transit router.
 - 
[]Vpn
Attachments Attachment Tag  - Tags.
 - Transit
Router stringAttachment Id  - The id of the transit router attachment.
 - Transit
Router stringAttachment Name  - The name of the transit router attachment.
 - Transit
Router stringId  - The id of the transit router.
 - Update
Time string - The update time.
 - Vpn
Connection stringId  - The ID of the IPSec connection.
 - Zone
Id string - The ID of the availability zone.
 
- creation
Time String - The create time.
 - description String
 - The description info.
 - status String
 - The status of the transit router.
 - 
List<Vpn
Attachments Attachment Tag>  - Tags.
 - transit
Router StringAttachment Id  - The id of the transit router attachment.
 - transit
Router StringAttachment Name  - The name of the transit router attachment.
 - transit
Router StringId  - The id of the transit router.
 - update
Time String - The update time.
 - vpn
Connection StringId  - The ID of the IPSec connection.
 - zone
Id String - The ID of the availability zone.
 
- creation
Time string - The create time.
 - description string
 - The description info.
 - status string
 - The status of the transit router.
 - 
Vpn
Attachments Attachment Tag[]  - Tags.
 - transit
Router stringAttachment Id  - The id of the transit router attachment.
 - transit
Router stringAttachment Name  - The name of the transit router attachment.
 - transit
Router stringId  - The id of the transit router.
 - update
Time string - The update time.
 - vpn
Connection stringId  - The ID of the IPSec connection.
 - zone
Id 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.
 - 
Sequence[Vpn
Attachments Attachment Tag]  - Tags.
 - transit_
router_ strattachment_ id  - The id of the transit router attachment.
 - transit_
router_ strattachment_ name  - The name of the transit router attachment.
 - transit_
router_ strid  - The id of the transit router.
 - update_
time str - The update time.
 - vpn_
connection_ strid  - The ID of the IPSec connection.
 - zone_
id str - The ID of the availability zone.
 
- creation
Time String - The create time.
 - description String
 - The description info.
 - status String
 - The status of the transit router.
 - List<Property Map>
 - Tags.
 - transit
Router StringAttachment Id  - The id of the transit router attachment.
 - transit
Router StringAttachment Name  - The name of the transit router attachment.
 - transit
Router StringId  - The id of the transit router.
 - update
Time String - The update time.
 - vpn
Connection StringId  - The ID of the IPSec connection.
 - zone
Id String - The ID of the availability zone.
 
VpnAttachmentsAttachmentTag   
VpnAttachmentsTag  
Package Details
- Repository
 - volcengine volcengine/pulumi-volcengine
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
volcengineTerraform Provider.