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

volcengine.transit_router.DirectConnectGatewayAttachments

Explore with Pulumi AI

Use this data source to query detailed information of transit router direct connect gateway attachments

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";

const foo = volcengine.transit_router.DirectConnectGatewayAttachments({
    transitRouterId: "tr-2bzy39x27qtxc2dx0eg5qaj05",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.transit_router.direct_connect_gateway_attachments(transit_router_id="tr-2bzy39x27qtxc2dx0eg5qaj05")
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.DirectConnectGatewayAttachments(ctx, &transit_router.DirectConnectGatewayAttachmentsArgs{
			TransitRouterId: "tr-2bzy39x27qtxc2dx0eg5qaj05",
		}, 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 foo = Volcengine.Transit_router.DirectConnectGatewayAttachments.Invoke(new()
    {
        TransitRouterId = "tr-2bzy39x27qtxc2dx0eg5qaj05",
    });

});
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.inputs.DirectConnectGatewayAttachmentsArgs;
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 foo = Transit_routerFunctions.DirectConnectGatewayAttachments(DirectConnectGatewayAttachmentsArgs.builder()
            .transitRouterId("tr-2bzy39x27qtxc2dx0eg5qaj05")
            .build());

    }
}
Copy
variables:
  foo:
    fn::invoke:
      Function: volcengine:transit_router:DirectConnectGatewayAttachments
      Arguments:
        transitRouterId: tr-2bzy39x27qtxc2dx0eg5qaj05
Copy

Using DirectConnectGatewayAttachments

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 directConnectGatewayAttachments(args: DirectConnectGatewayAttachmentsArgs, opts?: InvokeOptions): Promise<DirectConnectGatewayAttachmentsResult>
function directConnectGatewayAttachmentsOutput(args: DirectConnectGatewayAttachmentsOutputArgs, opts?: InvokeOptions): Output<DirectConnectGatewayAttachmentsResult>
Copy
def direct_connect_gateway_attachments(direct_connect_gateway_id: Optional[str] = None,
                                       output_file: Optional[str] = None,
                                       tags: Optional[Sequence[DirectConnectGatewayAttachmentsTag]] = None,
                                       transit_router_attachment_ids: Optional[Sequence[str]] = None,
                                       transit_router_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> DirectConnectGatewayAttachmentsResult
def direct_connect_gateway_attachments_output(direct_connect_gateway_id: Optional[pulumi.Input[str]] = None,
                                       output_file: Optional[pulumi.Input[str]] = None,
                                       tags: Optional[pulumi.Input[Sequence[pulumi.Input[DirectConnectGatewayAttachmentsTagArgs]]]] = None,
                                       transit_router_attachment_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       transit_router_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[DirectConnectGatewayAttachmentsResult]
Copy
func DirectConnectGatewayAttachments(ctx *Context, args *DirectConnectGatewayAttachmentsArgs, opts ...InvokeOption) (*DirectConnectGatewayAttachmentsResult, error)
func DirectConnectGatewayAttachmentsOutput(ctx *Context, args *DirectConnectGatewayAttachmentsOutputArgs, opts ...InvokeOption) DirectConnectGatewayAttachmentsResultOutput
Copy
public static class DirectConnectGatewayAttachments 
{
    public static Task<DirectConnectGatewayAttachmentsResult> InvokeAsync(DirectConnectGatewayAttachmentsArgs args, InvokeOptions? opts = null)
    public static Output<DirectConnectGatewayAttachmentsResult> Invoke(DirectConnectGatewayAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<DirectConnectGatewayAttachmentsResult> directConnectGatewayAttachments(DirectConnectGatewayAttachmentsArgs args, InvokeOptions options)
public static Output<DirectConnectGatewayAttachmentsResult> directConnectGatewayAttachments(DirectConnectGatewayAttachmentsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:transit_router:DirectConnectGatewayAttachments
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TransitRouterId This property is required. string
The id of the transit router.
DirectConnectGatewayId string
ID of the direct connection gateway.
OutputFile string
File name where to save data source results.
Tags List<DirectConnectGatewayAttachmentsTag>
Tags.
TransitRouterAttachmentIds List<string>
ID of the network instance connection.
TransitRouterId This property is required. string
The id of the transit router.
DirectConnectGatewayId string
ID of the direct connection gateway.
OutputFile string
File name where to save data source results.
Tags []DirectConnectGatewayAttachmentsTag
Tags.
TransitRouterAttachmentIds []string
ID of the network instance connection.
transitRouterId This property is required. String
The id of the transit router.
directConnectGatewayId String
ID of the direct connection gateway.
outputFile String
File name where to save data source results.
tags List<DirectConnectGatewayAttachmentsTag>
Tags.
transitRouterAttachmentIds List<String>
ID of the network instance connection.
transitRouterId This property is required. string
The id of the transit router.
directConnectGatewayId string
ID of the direct connection gateway.
outputFile string
File name where to save data source results.
tags DirectConnectGatewayAttachmentsTag[]
Tags.
transitRouterAttachmentIds string[]
ID of the network instance connection.
transit_router_id This property is required. str
The id of the transit router.
direct_connect_gateway_id str
ID of the direct connection gateway.
output_file str
File name where to save data source results.
tags Sequence[DirectConnectGatewayAttachmentsTag]
Tags.
transit_router_attachment_ids Sequence[str]
ID of the network instance connection.
transitRouterId This property is required. String
The id of the transit router.
directConnectGatewayId String
ID of the direct connection gateway.
outputFile String
File name where to save data source results.
tags List<Property Map>
Tags.
transitRouterAttachmentIds List<String>
ID of the network instance connection.

DirectConnectGatewayAttachments Result

The following output properties are available:

Attachments List<DirectConnectGatewayAttachmentsAttachment>
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.
DirectConnectGatewayId string
The direct connect gateway id.
OutputFile string
Tags List<DirectConnectGatewayAttachmentsTag>
Tags.
TransitRouterAttachmentIds List<string>
Attachments []DirectConnectGatewayAttachmentsAttachment
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.
DirectConnectGatewayId string
The direct connect gateway id.
OutputFile string
Tags []DirectConnectGatewayAttachmentsTag
Tags.
TransitRouterAttachmentIds []string
attachments List<DirectConnectGatewayAttachmentsAttachment>
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.
directConnectGatewayId String
The direct connect gateway id.
outputFile String
tags List<DirectConnectGatewayAttachmentsTag>
Tags.
transitRouterAttachmentIds List<String>
attachments DirectConnectGatewayAttachmentsAttachment[]
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.
directConnectGatewayId string
The direct connect gateway id.
outputFile string
tags DirectConnectGatewayAttachmentsTag[]
Tags.
transitRouterAttachmentIds string[]
attachments Sequence[DirectConnectGatewayAttachmentsAttachment]
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.
direct_connect_gateway_id str
The direct connect gateway id.
output_file str
tags Sequence[DirectConnectGatewayAttachmentsTag]
Tags.
transit_router_attachment_ids Sequence[str]
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.
directConnectGatewayId String
The direct connect gateway id.
outputFile String
tags List<Property Map>
Tags.
transitRouterAttachmentIds List<String>

Supporting Types

DirectConnectGatewayAttachmentsAttachment

AccountId This property is required. string
The account id.
CreationTime This property is required. string
The create time.
Description This property is required. string
The description info.
DirectConnectGatewayId This property is required. string
ID of the direct connection gateway.
Status This property is required. string
The status of the network instance connection.
Tags This property is required. List<DirectConnectGatewayAttachmentsAttachmentTag>
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.
AccountId This property is required. string
The account id.
CreationTime This property is required. string
The create time.
Description This property is required. string
The description info.
DirectConnectGatewayId This property is required. string
ID of the direct connection gateway.
Status This property is required. string
The status of the network instance connection.
Tags This property is required. []DirectConnectGatewayAttachmentsAttachmentTag
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.
accountId This property is required. String
The account id.
creationTime This property is required. String
The create time.
description This property is required. String
The description info.
directConnectGatewayId This property is required. String
ID of the direct connection gateway.
status This property is required. String
The status of the network instance connection.
tags This property is required. List<DirectConnectGatewayAttachmentsAttachmentTag>
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.
accountId This property is required. string
The account id.
creationTime This property is required. string
The create time.
description This property is required. string
The description info.
directConnectGatewayId This property is required. string
ID of the direct connection gateway.
status This property is required. string
The status of the network instance connection.
tags This property is required. DirectConnectGatewayAttachmentsAttachmentTag[]
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.
account_id This property is required. str
The account id.
creation_time This property is required. str
The create time.
description This property is required. str
The description info.
direct_connect_gateway_id This property is required. str
ID of the direct connection gateway.
status This property is required. str
The status of the network instance connection.
tags This property is required. Sequence[DirectConnectGatewayAttachmentsAttachmentTag]
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.
accountId This property is required. String
The account id.
creationTime This property is required. String
The create time.
description This property is required. String
The description info.
directConnectGatewayId This property is required. String
ID of the direct connection gateway.
status This property is required. String
The status of the network instance connection.
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.

DirectConnectGatewayAttachmentsAttachmentTag

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.

DirectConnectGatewayAttachmentsTag

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.