1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. getDirectConnectGatewayAttachments
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

volcengine.transit_router.getDirectConnectGatewayAttachments

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

    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.getDirectConnectGatewayAttachments({
        transitRouterId: "tr-2bzy39x27qtxc2dx0eg5qaj05",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.transit_router.get_direct_connect_gateway_attachments(transit_router_id="tr-2bzy39x27qtxc2dx0eg5qaj05")
    
    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.GetDirectConnectGatewayAttachments(ctx, &transit_router.GetDirectConnectGatewayAttachmentsArgs{
    			TransitRouterId: "tr-2bzy39x27qtxc2dx0eg5qaj05",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Transit_router.GetDirectConnectGatewayAttachments.Invoke(new()
        {
            TransitRouterId = "tr-2bzy39x27qtxc2dx0eg5qaj05",
        });
    
    });
    
    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.GetDirectConnectGatewayAttachmentsArgs;
    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.getDirectConnectGatewayAttachments(GetDirectConnectGatewayAttachmentsArgs.builder()
                .transitRouterId("tr-2bzy39x27qtxc2dx0eg5qaj05")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:transit_router:getDirectConnectGatewayAttachments
          Arguments:
            transitRouterId: tr-2bzy39x27qtxc2dx0eg5qaj05
    

    Using getDirectConnectGatewayAttachments

    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 getDirectConnectGatewayAttachments(args: GetDirectConnectGatewayAttachmentsArgs, opts?: InvokeOptions): Promise<GetDirectConnectGatewayAttachmentsResult>
    function getDirectConnectGatewayAttachmentsOutput(args: GetDirectConnectGatewayAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetDirectConnectGatewayAttachmentsResult>
    def get_direct_connect_gateway_attachments(direct_connect_gateway_id: Optional[str] = None,
                                               output_file: Optional[str] = None,
                                               tags: Optional[Sequence[GetDirectConnectGatewayAttachmentsTag]] = None,
                                               transit_router_attachment_ids: Optional[Sequence[str]] = None,
                                               transit_router_id: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetDirectConnectGatewayAttachmentsResult
    def get_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[GetDirectConnectGatewayAttachmentsTagArgs]]]] = 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[GetDirectConnectGatewayAttachmentsResult]
    func GetDirectConnectGatewayAttachments(ctx *Context, args *GetDirectConnectGatewayAttachmentsArgs, opts ...InvokeOption) (*GetDirectConnectGatewayAttachmentsResult, error)
    func GetDirectConnectGatewayAttachmentsOutput(ctx *Context, args *GetDirectConnectGatewayAttachmentsOutputArgs, opts ...InvokeOption) GetDirectConnectGatewayAttachmentsResultOutput

    > Note: This function is named GetDirectConnectGatewayAttachments in the Go SDK.

    public static class GetDirectConnectGatewayAttachments 
    {
        public static Task<GetDirectConnectGatewayAttachmentsResult> InvokeAsync(GetDirectConnectGatewayAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetDirectConnectGatewayAttachmentsResult> Invoke(GetDirectConnectGatewayAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDirectConnectGatewayAttachmentsResult> getDirectConnectGatewayAttachments(GetDirectConnectGatewayAttachmentsArgs args, InvokeOptions options)
    public static Output<GetDirectConnectGatewayAttachmentsResult> getDirectConnectGatewayAttachments(GetDirectConnectGatewayAttachmentsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:transit_router/getDirectConnectGatewayAttachments:getDirectConnectGatewayAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TransitRouterId 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<GetDirectConnectGatewayAttachmentsTag>
    Tags.
    TransitRouterAttachmentIds List<string>
    ID of the network instance connection.
    TransitRouterId 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 []GetDirectConnectGatewayAttachmentsTag
    Tags.
    TransitRouterAttachmentIds []string
    ID of the network instance connection.
    transitRouterId 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<GetDirectConnectGatewayAttachmentsTag>
    Tags.
    transitRouterAttachmentIds List<String>
    ID of the network instance connection.
    transitRouterId 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 GetDirectConnectGatewayAttachmentsTag[]
    Tags.
    transitRouterAttachmentIds string[]
    ID of the network instance connection.
    transit_router_id 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[GetDirectConnectGatewayAttachmentsTag]
    Tags.
    transit_router_attachment_ids Sequence[str]
    ID of the network instance connection.
    transitRouterId 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.

    getDirectConnectGatewayAttachments Result

    The following output properties are available:

    Attachments List<GetDirectConnectGatewayAttachmentsAttachment>
    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<GetDirectConnectGatewayAttachmentsTag>
    Tags.
    TransitRouterAttachmentIds List<string>
    Attachments []GetDirectConnectGatewayAttachmentsAttachment
    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 []GetDirectConnectGatewayAttachmentsTag
    Tags.
    TransitRouterAttachmentIds []string
    attachments List<GetDirectConnectGatewayAttachmentsAttachment>
    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<GetDirectConnectGatewayAttachmentsTag>
    Tags.
    transitRouterAttachmentIds List<String>
    attachments GetDirectConnectGatewayAttachmentsAttachment[]
    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 GetDirectConnectGatewayAttachmentsTag[]
    Tags.
    transitRouterAttachmentIds string[]
    attachments Sequence[GetDirectConnectGatewayAttachmentsAttachment]
    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[GetDirectConnectGatewayAttachmentsTag]
    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

    GetDirectConnectGatewayAttachmentsAttachment

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

    GetDirectConnectGatewayAttachmentsAttachmentTag

    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.

    GetDirectConnectGatewayAttachmentsTag

    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.31 published on Monday, May 12, 2025 by Volcengine