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

volcengine.transit_router.TransitRouters

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 routers

Example Usage

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

const foo = new volcengine.transit_router.TransitRouter("foo", {
    transitRouterName: "test-tf-acc",
    description: "test-tf-acc",
});
const default = volcengine.transit_router.TransitRoutersOutput({
    ids: [foo.id],
    transitRouterName: "test",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.transit_router.TransitRouter("foo",
    transit_router_name="test-tf-acc",
    description="test-tf-acc")
default = volcengine.transit_router.transit_routers_output(ids=[foo.id],
    transit_router_name="test")
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 {
		foo, err := transit_router.NewTransitRouter(ctx, "foo", &transit_router.TransitRouterArgs{
			TransitRouterName: pulumi.String("test-tf-acc"),
			Description:       pulumi.String("test-tf-acc"),
		})
		if err != nil {
			return err
		}
		_ = transit_router.TransitRoutersOutput(ctx, transit_router.TransitRoutersOutputArgs{
			Ids: pulumi.StringArray{
				foo.ID(),
			},
			TransitRouterName: pulumi.String("test"),
		}, nil)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Transit_router.TransitRouter("foo", new()
    {
        TransitRouterName = "test-tf-acc",
        Description = "test-tf-acc",
    });

    var @default = Volcengine.Transit_router.TransitRouters.Invoke(new()
    {
        Ids = new[]
        {
            foo.Id,
        },
        TransitRouterName = "test",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.transit_router.TransitRouter;
import com.pulumi.volcengine.transit_router.TransitRouterArgs;
import com.pulumi.volcengine.transit_router.Transit_routerFunctions;
import com.pulumi.volcengine.transit_router.inputs.TransitRoutersArgs;
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) {
        var foo = new TransitRouter("foo", TransitRouterArgs.builder()        
            .transitRouterName("test-tf-acc")
            .description("test-tf-acc")
            .build());

        final var default = Transit_routerFunctions.TransitRouters(TransitRoutersArgs.builder()
            .ids(foo.id())
            .transitRouterName("test")
            .build());

    }
}
Copy
resources:
  foo:
    type: volcengine:transit_router:TransitRouter
    properties:
      transitRouterName: test-tf-acc
      description: test-tf-acc
variables:
  default:
    fn::invoke:
      Function: volcengine:transit_router:TransitRouters
      Arguments:
        ids:
          - ${foo.id}
        transitRouterName: test
Copy

Using TransitRouters

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 transitRouters(args: TransitRoutersArgs, opts?: InvokeOptions): Promise<TransitRoutersResult>
function transitRoutersOutput(args: TransitRoutersOutputArgs, opts?: InvokeOptions): Output<TransitRoutersResult>
Copy
def transit_routers(ids: Optional[Sequence[str]] = None,
                    output_file: Optional[str] = None,
                    project_name: Optional[str] = None,
                    tags: Optional[Sequence[TransitRoutersTag]] = None,
                    transit_router_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> TransitRoutersResult
def transit_routers_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    project_name: Optional[pulumi.Input[str]] = None,
                    tags: Optional[pulumi.Input[Sequence[pulumi.Input[TransitRoutersTagArgs]]]] = None,
                    transit_router_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[TransitRoutersResult]
Copy
func TransitRouters(ctx *Context, args *TransitRoutersArgs, opts ...InvokeOption) (*TransitRoutersResult, error)
func TransitRoutersOutput(ctx *Context, args *TransitRoutersOutputArgs, opts ...InvokeOption) TransitRoutersResultOutput
Copy
public static class TransitRouters 
{
    public static Task<TransitRoutersResult> InvokeAsync(TransitRoutersArgs args, InvokeOptions? opts = null)
    public static Output<TransitRoutersResult> Invoke(TransitRoutersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<TransitRoutersResult> transitRouters(TransitRoutersArgs args, InvokeOptions options)
public static Output<TransitRoutersResult> transitRouters(TransitRoutersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:transit_router:TransitRouters
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids List<string>
A list of Transit Router ids.
OutputFile string
File name where to save data source results.
ProjectName string
The ProjectName of the transit router.
Tags List<TransitRoutersTag>
Tags.
TransitRouterName string
The name info.
Ids []string
A list of Transit Router ids.
OutputFile string
File name where to save data source results.
ProjectName string
The ProjectName of the transit router.
Tags []TransitRoutersTag
Tags.
TransitRouterName string
The name info.
ids List<String>
A list of Transit Router ids.
outputFile String
File name where to save data source results.
projectName String
The ProjectName of the transit router.
tags List<TransitRoutersTag>
Tags.
transitRouterName String
The name info.
ids string[]
A list of Transit Router ids.
outputFile string
File name where to save data source results.
projectName string
The ProjectName of the transit router.
tags TransitRoutersTag[]
Tags.
transitRouterName string
The name info.
ids Sequence[str]
A list of Transit Router ids.
output_file str
File name where to save data source results.
project_name str
The ProjectName of the transit router.
tags Sequence[TransitRoutersTag]
Tags.
transit_router_name str
The name info.
ids List<String>
A list of Transit Router ids.
outputFile String
File name where to save data source results.
projectName String
The ProjectName of the transit router.
tags List<Property Map>
Tags.
transitRouterName String
The name info.

TransitRouters 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.
TransitRouters List<TransitRoutersTransitRouter>
The collection of query.
Ids List<string>
OutputFile string
ProjectName string
The ProjectName of the transit router.
Tags List<TransitRoutersTag>
Tags.
TransitRouterName string
The name of the transit router.
Id string
The provider-assigned unique ID for this managed resource.
TotalCount int
The total count of query.
TransitRouters []TransitRoutersTransitRouter
The collection of query.
Ids []string
OutputFile string
ProjectName string
The ProjectName of the transit router.
Tags []TransitRoutersTag
Tags.
TransitRouterName string
The name of the transit router.
id String
The provider-assigned unique ID for this managed resource.
totalCount Integer
The total count of query.
transitRouters List<TransitRoutersTransitRouter>
The collection of query.
ids List<String>
outputFile String
projectName String
The ProjectName of the transit router.
tags List<TransitRoutersTag>
Tags.
transitRouterName String
The name of the transit router.
id string
The provider-assigned unique ID for this managed resource.
totalCount number
The total count of query.
transitRouters TransitRoutersTransitRouter[]
The collection of query.
ids string[]
outputFile string
projectName string
The ProjectName of the transit router.
tags TransitRoutersTag[]
Tags.
transitRouterName string
The name of the transit router.
id str
The provider-assigned unique ID for this managed resource.
total_count int
The total count of query.
transit_routers Sequence[TransitRoutersTransitRouter]
The collection of query.
ids Sequence[str]
output_file str
project_name str
The ProjectName of the transit router.
tags Sequence[TransitRoutersTag]
Tags.
transit_router_name str
The name of the transit router.
id String
The provider-assigned unique ID for this managed resource.
totalCount Number
The total count of query.
transitRouters List<Property Map>
The collection of query.
ids List<String>
outputFile String
projectName String
The ProjectName of the transit router.
tags List<Property Map>
Tags.
transitRouterName String
The name of the transit router.

Supporting Types

TransitRoutersTag

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.

TransitRoutersTransitRouter

AccountId This property is required. string
The ID of account.
Asn This property is required. int
The asn of the transit router.
BusinessStatus This property is required. string
The business status of the transit router.
CreationTime This property is required. string
The create time.
Description This property is required. string
The description info.
GrantStatus This property is required. string
The grant status of the transit router.
Id This property is required. string
The ID of the transit router.
OverdueTime This property is required. string
The overdue time.
ProjectName This property is required. string
The ProjectName of the transit router.
Status This property is required. string
The status of the transit router.
Tags This property is required. List<TransitRoutersTransitRouterTag>
Tags.
TransitRouterAttachments This property is required. List<TransitRoutersTransitRouterTransitRouterAttachment>
The attachments of transit router.
TransitRouterId This property is required. string
The ID of the transit router.
TransitRouterName This property is required. string
The name info.
UpdateTime This property is required. string
The update time.
AccountId This property is required. string
The ID of account.
Asn This property is required. int
The asn of the transit router.
BusinessStatus This property is required. string
The business status of the transit router.
CreationTime This property is required. string
The create time.
Description This property is required. string
The description info.
GrantStatus This property is required. string
The grant status of the transit router.
Id This property is required. string
The ID of the transit router.
OverdueTime This property is required. string
The overdue time.
ProjectName This property is required. string
The ProjectName of the transit router.
Status This property is required. string
The status of the transit router.
Tags This property is required. []TransitRoutersTransitRouterTag
Tags.
TransitRouterAttachments This property is required. []TransitRoutersTransitRouterTransitRouterAttachment
The attachments of transit router.
TransitRouterId This property is required. string
The ID of the transit router.
TransitRouterName This property is required. string
The name info.
UpdateTime This property is required. string
The update time.
accountId This property is required. String
The ID of account.
asn This property is required. Integer
The asn of the transit router.
businessStatus This property is required. String
The business status of the transit router.
creationTime This property is required. String
The create time.
description This property is required. String
The description info.
grantStatus This property is required. String
The grant status of the transit router.
id This property is required. String
The ID of the transit router.
overdueTime This property is required. String
The overdue time.
projectName This property is required. String
The ProjectName of the transit router.
status This property is required. String
The status of the transit router.
tags This property is required. List<TransitRoutersTransitRouterTag>
Tags.
transitRouterAttachments This property is required. List<TransitRoutersTransitRouterTransitRouterAttachment>
The attachments of transit router.
transitRouterId This property is required. String
The ID of the transit router.
transitRouterName This property is required. String
The name info.
updateTime This property is required. String
The update time.
accountId This property is required. string
The ID of account.
asn This property is required. number
The asn of the transit router.
businessStatus This property is required. string
The business status of the transit router.
creationTime This property is required. string
The create time.
description This property is required. string
The description info.
grantStatus This property is required. string
The grant status of the transit router.
id This property is required. string
The ID of the transit router.
overdueTime This property is required. string
The overdue time.
projectName This property is required. string
The ProjectName of the transit router.
status This property is required. string
The status of the transit router.
tags This property is required. TransitRoutersTransitRouterTag[]
Tags.
transitRouterAttachments This property is required. TransitRoutersTransitRouterTransitRouterAttachment[]
The attachments of transit router.
transitRouterId This property is required. string
The ID of the transit router.
transitRouterName This property is required. string
The name info.
updateTime This property is required. string
The update time.
account_id This property is required. str
The ID of account.
asn This property is required. int
The asn of the transit router.
business_status This property is required. str
The business status of the transit router.
creation_time This property is required. str
The create time.
description This property is required. str
The description info.
grant_status This property is required. str
The grant status of the transit router.
id This property is required. str
The ID of the transit router.
overdue_time This property is required. str
The overdue time.
project_name This property is required. str
The ProjectName of the transit router.
status This property is required. str
The status of the transit router.
tags This property is required. Sequence[TransitRoutersTransitRouterTag]
Tags.
transit_router_attachments This property is required. Sequence[TransitRoutersTransitRouterTransitRouterAttachment]
The attachments of transit router.
transit_router_id This property is required. str
The ID of the transit router.
transit_router_name This property is required. str
The name info.
update_time This property is required. str
The update time.
accountId This property is required. String
The ID of account.
asn This property is required. Number
The asn of the transit router.
businessStatus This property is required. String
The business status of the transit router.
creationTime This property is required. String
The create time.
description This property is required. String
The description info.
grantStatus This property is required. String
The grant status of the transit router.
id This property is required. String
The ID of the transit router.
overdueTime This property is required. String
The overdue time.
projectName This property is required. String
The ProjectName of the transit router.
status This property is required. String
The status of the transit router.
tags This property is required. List<Property Map>
Tags.
transitRouterAttachments This property is required. List<Property Map>
The attachments of transit router.
transitRouterId This property is required. String
The ID of the transit router.
transitRouterName This property is required. String
The name info.
updateTime This property is required. String
The update time.

TransitRoutersTransitRouterTag

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.

TransitRoutersTransitRouterTransitRouterAttachment

CreationTime This property is required. string
The create time.
ResourceId This property is required. string
The id of resource.
ResourceType This property is required. string
The type of resource.
Status This property is required. string
The status of the transit router.
TransitRouterAttachmentId This property is required. string
The id of transit router attachment.
TransitRouterAttachmentName This property is required. string
The name of transit router attachment.
TransitRouterRouteTableId This property is required. string
The id of transit router route table.
UpdateTime This property is required. string
The update time.
CreationTime This property is required. string
The create time.
ResourceId This property is required. string
The id of resource.
ResourceType This property is required. string
The type of resource.
Status This property is required. string
The status of the transit router.
TransitRouterAttachmentId This property is required. string
The id of transit router attachment.
TransitRouterAttachmentName This property is required. string
The name of transit router attachment.
TransitRouterRouteTableId This property is required. string
The id of transit router route table.
UpdateTime This property is required. string
The update time.
creationTime This property is required. String
The create time.
resourceId This property is required. String
The id of resource.
resourceType This property is required. String
The type of resource.
status This property is required. String
The status of the transit router.
transitRouterAttachmentId This property is required. String
The id of transit router attachment.
transitRouterAttachmentName This property is required. String
The name of transit router attachment.
transitRouterRouteTableId This property is required. String
The id of transit router route table.
updateTime This property is required. String
The update time.
creationTime This property is required. string
The create time.
resourceId This property is required. string
The id of resource.
resourceType This property is required. string
The type of resource.
status This property is required. string
The status of the transit router.
transitRouterAttachmentId This property is required. string
The id of transit router attachment.
transitRouterAttachmentName This property is required. string
The name of transit router attachment.
transitRouterRouteTableId This property is required. string
The id of transit router route table.
updateTime This property is required. string
The update time.
creation_time This property is required. str
The create time.
resource_id This property is required. str
The id of resource.
resource_type This property is required. str
The type of resource.
status This property is required. str
The status of the transit router.
transit_router_attachment_id This property is required. str
The id of transit router attachment.
transit_router_attachment_name This property is required. str
The name of transit router attachment.
transit_router_route_table_id This property is required. str
The id of transit router route table.
update_time This property is required. str
The update time.
creationTime This property is required. String
The create time.
resourceId This property is required. String
The id of resource.
resourceType This property is required. String
The type of resource.
status This property is required. String
The status of the transit router.
transitRouterAttachmentId This property is required. String
The id of transit router attachment.
transitRouterAttachmentName This property is required. String
The name of transit router attachment.
transitRouterRouteTableId This property is required. String
The id of transit router route table.
updateTime This property is required. String
The update time.

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