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

volcengine.transit_router.PeerAttachments

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 peer attachments

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Transit_router.PeerAttachments.Invoke(new()
        {
            Ids = new[]
            {
                "tr-attach-12be67d0yh2io17q7y1au****",
            },
        });
    
    });
    
    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.PeerAttachments(ctx, &transit_router.PeerAttachmentsArgs{
    			Ids: []string{
    				"tr-attach-12be67d0yh2io17q7y1au****",
    			},
    		}, 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.inputs.PeerAttachmentsArgs;
    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.PeerAttachments(PeerAttachmentsArgs.builder()
                .ids("tr-attach-12be67d0yh2io17q7y1au****")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.transit_router.peer_attachments(ids=["tr-attach-12be67d0yh2io17q7y1au****"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.transit_router.PeerAttachments({
        ids: ["tr-attach-12be67d0yh2io17q7y1au****"],
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:transit_router:PeerAttachments
          Arguments:
            ids:
              - tr-attach-12be67d0yh2io17q7y1au****
    

    Using PeerAttachments

    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 peerAttachments(args: PeerAttachmentsArgs, opts?: InvokeOptions): Promise<PeerAttachmentsResult>
    function peerAttachmentsOutput(args: PeerAttachmentsOutputArgs, opts?: InvokeOptions): Output<PeerAttachmentsResult>
    def peer_attachments(ids: Optional[Sequence[str]] = None,
                         name_regex: Optional[str] = None,
                         output_file: Optional[str] = None,
                         peer_transit_router_id: Optional[str] = None,
                         peer_transit_router_region_id: Optional[str] = None,
                         tags: Optional[Sequence[PeerAttachmentsTag]] = None,
                         transit_router_attachment_name: Optional[str] = None,
                         transit_router_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> PeerAttachmentsResult
    def peer_attachments_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         name_regex: Optional[pulumi.Input[str]] = None,
                         output_file: Optional[pulumi.Input[str]] = None,
                         peer_transit_router_id: Optional[pulumi.Input[str]] = None,
                         peer_transit_router_region_id: Optional[pulumi.Input[str]] = None,
                         tags: Optional[pulumi.Input[Sequence[pulumi.Input[PeerAttachmentsTagArgs]]]] = None,
                         transit_router_attachment_name: Optional[pulumi.Input[str]] = None,
                         transit_router_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[PeerAttachmentsResult]
    func PeerAttachments(ctx *Context, args *PeerAttachmentsArgs, opts ...InvokeOption) (*PeerAttachmentsResult, error)
    func PeerAttachmentsOutput(ctx *Context, args *PeerAttachmentsOutputArgs, opts ...InvokeOption) PeerAttachmentsResultOutput
    public static class PeerAttachments 
    {
        public static Task<PeerAttachmentsResult> InvokeAsync(PeerAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<PeerAttachmentsResult> Invoke(PeerAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<PeerAttachmentsResult> peerAttachments(PeerAttachmentsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:transit_router:PeerAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of IDs.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    PeerTransitRouterId string
    The id of peer transit router.
    PeerTransitRouterRegionId string
    The region id of peer transit router.
    Tags List<PeerAttachmentsTag>
    Tags.
    TransitRouterAttachmentName string
    The name of transit router peer attachment.
    TransitRouterId string
    The id of local transit router.
    Ids []string
    A list of IDs.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    PeerTransitRouterId string
    The id of peer transit router.
    PeerTransitRouterRegionId string
    The region id of peer transit router.
    Tags []PeerAttachmentsTag
    Tags.
    TransitRouterAttachmentName string
    The name of transit router peer attachment.
    TransitRouterId string
    The id of local transit router.
    ids List<String>
    A list of IDs.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    peerTransitRouterId String
    The id of peer transit router.
    peerTransitRouterRegionId String
    The region id of peer transit router.
    tags List<PeerAttachmentsTag>
    Tags.
    transitRouterAttachmentName String
    The name of transit router peer attachment.
    transitRouterId String
    The id of local transit router.
    ids string[]
    A list of IDs.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    peerTransitRouterId string
    The id of peer transit router.
    peerTransitRouterRegionId string
    The region id of peer transit router.
    tags PeerAttachmentsTag[]
    Tags.
    transitRouterAttachmentName string
    The name of transit router peer attachment.
    transitRouterId string
    The id of local transit router.
    ids Sequence[str]
    A list of IDs.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    peer_transit_router_id str
    The id of peer transit router.
    peer_transit_router_region_id str
    The region id of peer transit router.
    tags Sequence[PeerAttachmentsTag]
    Tags.
    transit_router_attachment_name str
    The name of transit router peer attachment.
    transit_router_id str
    The id of local transit router.
    ids List<String>
    A list of IDs.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    peerTransitRouterId String
    The id of peer transit router.
    peerTransitRouterRegionId String
    The region id of peer transit router.
    tags List<Property Map>
    Tags.
    transitRouterAttachmentName String
    The name of transit router peer attachment.
    transitRouterId String
    The id of local transit router.

    PeerAttachments Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    TransitRouterAttachments List<PeerAttachmentsTransitRouterAttachment>
    The collection of query.
    Ids List<string>
    NameRegex string
    OutputFile string
    PeerTransitRouterId string
    The id of the peer transit router.
    PeerTransitRouterRegionId string
    The region id of the peer transit router.
    Tags List<PeerAttachmentsTag>
    Tags.
    TransitRouterAttachmentName string
    The name of the transit router peer attachment.
    TransitRouterId string
    The id of the local transit router.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    TransitRouterAttachments []PeerAttachmentsTransitRouterAttachment
    The collection of query.
    Ids []string
    NameRegex string
    OutputFile string
    PeerTransitRouterId string
    The id of the peer transit router.
    PeerTransitRouterRegionId string
    The region id of the peer transit router.
    Tags []PeerAttachmentsTag
    Tags.
    TransitRouterAttachmentName string
    The name of the transit router peer attachment.
    TransitRouterId string
    The id of the local transit router.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    transitRouterAttachments List<PeerAttachmentsTransitRouterAttachment>
    The collection of query.
    ids List<String>
    nameRegex String
    outputFile String
    peerTransitRouterId String
    The id of the peer transit router.
    peerTransitRouterRegionId String
    The region id of the peer transit router.
    tags List<PeerAttachmentsTag>
    Tags.
    transitRouterAttachmentName String
    The name of the transit router peer attachment.
    transitRouterId String
    The id of the local transit router.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    transitRouterAttachments PeerAttachmentsTransitRouterAttachment[]
    The collection of query.
    ids string[]
    nameRegex string
    outputFile string
    peerTransitRouterId string
    The id of the peer transit router.
    peerTransitRouterRegionId string
    The region id of the peer transit router.
    tags PeerAttachmentsTag[]
    Tags.
    transitRouterAttachmentName string
    The name of the transit router peer attachment.
    transitRouterId string
    The id of the local transit router.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    transit_router_attachments Sequence[PeerAttachmentsTransitRouterAttachment]
    The collection of query.
    ids Sequence[str]
    name_regex str
    output_file str
    peer_transit_router_id str
    The id of the peer transit router.
    peer_transit_router_region_id str
    The region id of the peer transit router.
    tags Sequence[PeerAttachmentsTag]
    Tags.
    transit_router_attachment_name str
    The name of the transit router peer attachment.
    transit_router_id str
    The id of the local transit router.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    transitRouterAttachments List<Property Map>
    The collection of query.
    ids List<String>
    nameRegex String
    outputFile String
    peerTransitRouterId String
    The id of the peer transit router.
    peerTransitRouterRegionId String
    The region id of the peer transit router.
    tags List<Property Map>
    Tags.
    transitRouterAttachmentName String
    The name of the transit router peer attachment.
    transitRouterId String
    The id of the local transit router.

    Supporting Types

    PeerAttachmentsTag

    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.

    PeerAttachmentsTransitRouterAttachment

    Bandwidth int
    The bandwidth of the transit router peer attachment.
    CreationTime string
    The creation time of the transit router peer attachment.
    Description string
    The description of the transit router peer attachment.
    Id string
    The id of the transit router peer attachment.
    PeerTransitRouterId string
    The id of peer transit router.
    PeerTransitRouterRegionId string
    The region id of peer transit router.
    Status string
    The status of the transit router peer attachment.
    Tags List<PeerAttachmentsTransitRouterAttachmentTag>
    Tags.
    TransitRouterAttachmentId string
    The id of the transit router peer attachment.
    TransitRouterAttachmentName string
    The name of transit router peer attachment.
    TransitRouterBandwidthPackageId string
    The bandwidth package id of the transit router peer attachment.
    TransitRouterId string
    The id of local transit router.
    TransitRouterRouteTableId string
    The route table id of the transit router peer attachment.
    UpdateTime string
    The update time of the transit router peer attachment.
    Bandwidth int
    The bandwidth of the transit router peer attachment.
    CreationTime string
    The creation time of the transit router peer attachment.
    Description string
    The description of the transit router peer attachment.
    Id string
    The id of the transit router peer attachment.
    PeerTransitRouterId string
    The id of peer transit router.
    PeerTransitRouterRegionId string
    The region id of peer transit router.
    Status string
    The status of the transit router peer attachment.
    Tags []PeerAttachmentsTransitRouterAttachmentTag
    Tags.
    TransitRouterAttachmentId string
    The id of the transit router peer attachment.
    TransitRouterAttachmentName string
    The name of transit router peer attachment.
    TransitRouterBandwidthPackageId string
    The bandwidth package id of the transit router peer attachment.
    TransitRouterId string
    The id of local transit router.
    TransitRouterRouteTableId string
    The route table id of the transit router peer attachment.
    UpdateTime string
    The update time of the transit router peer attachment.
    bandwidth Integer
    The bandwidth of the transit router peer attachment.
    creationTime String
    The creation time of the transit router peer attachment.
    description String
    The description of the transit router peer attachment.
    id String
    The id of the transit router peer attachment.
    peerTransitRouterId String
    The id of peer transit router.
    peerTransitRouterRegionId String
    The region id of peer transit router.
    status String
    The status of the transit router peer attachment.
    tags List<PeerAttachmentsTransitRouterAttachmentTag>
    Tags.
    transitRouterAttachmentId String
    The id of the transit router peer attachment.
    transitRouterAttachmentName String
    The name of transit router peer attachment.
    transitRouterBandwidthPackageId String
    The bandwidth package id of the transit router peer attachment.
    transitRouterId String
    The id of local transit router.
    transitRouterRouteTableId String
    The route table id of the transit router peer attachment.
    updateTime String
    The update time of the transit router peer attachment.
    bandwidth number
    The bandwidth of the transit router peer attachment.
    creationTime string
    The creation time of the transit router peer attachment.
    description string
    The description of the transit router peer attachment.
    id string
    The id of the transit router peer attachment.
    peerTransitRouterId string
    The id of peer transit router.
    peerTransitRouterRegionId string
    The region id of peer transit router.
    status string
    The status of the transit router peer attachment.
    tags PeerAttachmentsTransitRouterAttachmentTag[]
    Tags.
    transitRouterAttachmentId string
    The id of the transit router peer attachment.
    transitRouterAttachmentName string
    The name of transit router peer attachment.
    transitRouterBandwidthPackageId string
    The bandwidth package id of the transit router peer attachment.
    transitRouterId string
    The id of local transit router.
    transitRouterRouteTableId string
    The route table id of the transit router peer attachment.
    updateTime string
    The update time of the transit router peer attachment.
    bandwidth int
    The bandwidth of the transit router peer attachment.
    creation_time str
    The creation time of the transit router peer attachment.
    description str
    The description of the transit router peer attachment.
    id str
    The id of the transit router peer attachment.
    peer_transit_router_id str
    The id of peer transit router.
    peer_transit_router_region_id str
    The region id of peer transit router.
    status str
    The status of the transit router peer attachment.
    tags Sequence[PeerAttachmentsTransitRouterAttachmentTag]
    Tags.
    transit_router_attachment_id str
    The id of the transit router peer attachment.
    transit_router_attachment_name str
    The name of transit router peer attachment.
    transit_router_bandwidth_package_id str
    The bandwidth package id of the transit router peer attachment.
    transit_router_id str
    The id of local transit router.
    transit_router_route_table_id str
    The route table id of the transit router peer attachment.
    update_time str
    The update time of the transit router peer attachment.
    bandwidth Number
    The bandwidth of the transit router peer attachment.
    creationTime String
    The creation time of the transit router peer attachment.
    description String
    The description of the transit router peer attachment.
    id String
    The id of the transit router peer attachment.
    peerTransitRouterId String
    The id of peer transit router.
    peerTransitRouterRegionId String
    The region id of peer transit router.
    status String
    The status of the transit router peer attachment.
    tags List<Property Map>
    Tags.
    transitRouterAttachmentId String
    The id of the transit router peer attachment.
    transitRouterAttachmentName String
    The name of transit router peer attachment.
    transitRouterBandwidthPackageId String
    The bandwidth package id of the transit router peer attachment.
    transitRouterId String
    The id of local transit router.
    transitRouterRouteTableId String
    The route table id of the transit router peer attachment.
    updateTime String
    The update time of the transit router peer attachment.

    PeerAttachmentsTransitRouterAttachmentTag

    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