Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 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.getTransitRoutersOutput({
ids: [foo.id],
transitRouterName: "test",
});
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.get_transit_routers_output(ids=[foo.id],
transit_router_name="test")
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.GetTransitRoutersOutput(ctx, transit_router.GetTransitRoutersOutputArgs{
Ids: pulumi.StringArray{
foo.ID(),
},
TransitRouterName: pulumi.String("test"),
}, nil)
return nil
})
}
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.GetTransitRouters.Invoke(new()
{
Ids = new[]
{
foo.Id,
},
TransitRouterName = "test",
});
});
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.GetTransitRoutersArgs;
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.getTransitRouters(GetTransitRoutersArgs.builder()
.ids(foo.id())
.transitRouterName("test")
.build());
}
}
resources:
foo:
type: volcengine:transit_router:TransitRouter
properties:
transitRouterName: test-tf-acc
description: test-tf-acc
variables:
default:
fn::invoke:
Function: volcengine:transit_router:getTransitRouters
Arguments:
ids:
- ${foo.id}
transitRouterName: test
Using getTransitRouters
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 getTransitRouters(args: GetTransitRoutersArgs, opts?: InvokeOptions): Promise<GetTransitRoutersResult>
function getTransitRoutersOutput(args: GetTransitRoutersOutputArgs, opts?: InvokeOptions): Output<GetTransitRoutersResult>def get_transit_routers(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[GetTransitRoutersTag]] = None,
transit_router_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTransitRoutersResult
def get_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[GetTransitRoutersTagArgs]]]] = None,
transit_router_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTransitRoutersResult]func GetTransitRouters(ctx *Context, args *GetTransitRoutersArgs, opts ...InvokeOption) (*GetTransitRoutersResult, error)
func GetTransitRoutersOutput(ctx *Context, args *GetTransitRoutersOutputArgs, opts ...InvokeOption) GetTransitRoutersResultOutput> Note: This function is named GetTransitRouters in the Go SDK.
public static class GetTransitRouters
{
public static Task<GetTransitRoutersResult> InvokeAsync(GetTransitRoutersArgs args, InvokeOptions? opts = null)
public static Output<GetTransitRoutersResult> Invoke(GetTransitRoutersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTransitRoutersResult> getTransitRouters(GetTransitRoutersArgs args, InvokeOptions options)
public static Output<GetTransitRoutersResult> getTransitRouters(GetTransitRoutersArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:transit_router/getTransitRouters:getTransitRouters
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of Transit Router ids.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the transit router.
-
List<Get
Transit Routers Tag> - Tags.
- Transit
Router stringName - The name info.
- Ids []string
- A list of Transit Router ids.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the transit router.
-
[]Get
Transit Routers Tag - Tags.
- Transit
Router stringName - The name info.
- ids List<String>
- A list of Transit Router ids.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the transit router.
-
List<Get
Transit Routers Tag> - Tags.
- transit
Router StringName - The name info.
- ids string[]
- A list of Transit Router ids.
- output
File string - File name where to save data source results.
- project
Name string - The ProjectName of the transit router.
-
Get
Transit Routers Tag[] - Tags.
- transit
Router stringName - 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.
-
Sequence[Get
Transit Routers Tag] - Tags.
- transit_
router_ strname - The name info.
- ids List<String>
- A list of Transit Router ids.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the transit router.
- List<Property Map>
- Tags.
- transit
Router StringName - The name info.
getTransitRouters Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Transit
Routers List<GetTransit Routers Transit Router> - The collection of query.
- Ids List<string>
- Output
File string - Project
Name string - The ProjectName of the transit router.
-
List<Get
Transit Routers Tag> - Tags.
- Transit
Router stringName - The name of the transit router.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Transit
Routers []GetTransit Routers Transit Router - The collection of query.
- Ids []string
- Output
File string - Project
Name string - The ProjectName of the transit router.
-
[]Get
Transit Routers Tag - Tags.
- Transit
Router stringName - The name of the transit router.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- transit
Routers List<GetTransit Routers Transit Router> - The collection of query.
- ids List<String>
- output
File String - project
Name String - The ProjectName of the transit router.
-
List<Get
Transit Routers Tag> - Tags.
- transit
Router StringName - The name of the transit router.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- transit
Routers GetTransit Routers Transit Router[] - The collection of query.
- ids string[]
- output
File string - project
Name string - The ProjectName of the transit router.
-
Get
Transit Routers Tag[] - Tags.
- transit
Router stringName - 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[GetTransit Routers Transit Router] - The collection of query.
- ids Sequence[str]
- output_
file str - project_
name str - The ProjectName of the transit router.
-
Sequence[Get
Transit Routers Tag] - Tags.
- transit_
router_ strname - The name of the transit router.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- transit
Routers List<Property Map> - The collection of query.
- ids List<String>
- output
File String - project
Name String - The ProjectName of the transit router.
- List<Property Map>
- Tags.
- transit
Router StringName - The name of the transit router.
Supporting Types
GetTransitRoutersTag
GetTransitRoutersTransitRouter
- Account
Id string - The ID of account.
- Asn int
- The asn of the transit router.
- Business
Status string - The business status of the transit router.
- Creation
Time string - The create time.
- Description string
- The description info.
- Grant
Status string - The grant status of the transit router.
- Id string
- The ID of the transit router.
- Overdue
Time string - The overdue time.
- Project
Name string - The ProjectName of the transit router.
- Status string
- The status of the transit router.
-
List<Get
Transit Routers Transit Router Tag> - Tags.
- Transit
Router List<GetAttachments Transit Routers Transit Router Transit Router Attachment> - The attachments of transit router.
- Transit
Router stringId - The ID of the transit router.
- Transit
Router stringName - The name info.
- Update
Time string - The update time.
- Account
Id string - The ID of account.
- Asn int
- The asn of the transit router.
- Business
Status string - The business status of the transit router.
- Creation
Time string - The create time.
- Description string
- The description info.
- Grant
Status string - The grant status of the transit router.
- Id string
- The ID of the transit router.
- Overdue
Time string - The overdue time.
- Project
Name string - The ProjectName of the transit router.
- Status string
- The status of the transit router.
-
[]Get
Transit Routers Transit Router Tag - Tags.
- Transit
Router []GetAttachments Transit Routers Transit Router Transit Router Attachment - The attachments of transit router.
- Transit
Router stringId - The ID of the transit router.
- Transit
Router stringName - The name info.
- Update
Time string - The update time.
- account
Id String - The ID of account.
- asn Integer
- The asn of the transit router.
- business
Status String - The business status of the transit router.
- creation
Time String - The create time.
- description String
- The description info.
- grant
Status String - The grant status of the transit router.
- id String
- The ID of the transit router.
- overdue
Time String - The overdue time.
- project
Name String - The ProjectName of the transit router.
- status String
- The status of the transit router.
-
List<Get
Transit Routers Transit Router Tag> - Tags.
- transit
Router List<GetAttachments Transit Routers Transit Router Transit Router Attachment> - The attachments of transit router.
- transit
Router StringId - The ID of the transit router.
- transit
Router StringName - The name info.
- update
Time String - The update time.
- account
Id string - The ID of account.
- asn number
- The asn of the transit router.
- business
Status string - The business status of the transit router.
- creation
Time string - The create time.
- description string
- The description info.
- grant
Status string - The grant status of the transit router.
- id string
- The ID of the transit router.
- overdue
Time string - The overdue time.
- project
Name string - The ProjectName of the transit router.
- status string
- The status of the transit router.
-
Get
Transit Routers Transit Router Tag[] - Tags.
- transit
Router GetAttachments Transit Routers Transit Router Transit Router Attachment[] - The attachments of transit router.
- transit
Router stringId - The ID of the transit router.
- transit
Router stringName - The name info.
- update
Time string - The update time.
- account_
id str - The ID of account.
- asn int
- The asn of the transit router.
- business_
status str - The business status of the transit router.
- creation_
time str - The create time.
- description str
- The description info.
- grant_
status str - The grant status of the transit router.
- id str
- The ID of the transit router.
- overdue_
time str - The overdue time.
- project_
name str - The ProjectName of the transit router.
- status str
- The status of the transit router.
-
Sequence[Get
Transit Routers Transit Router Tag] - Tags.
- transit_
router_ Sequence[Getattachments Transit Routers Transit Router Transit Router Attachment] - The attachments of transit router.
- transit_
router_ strid - The ID of the transit router.
- transit_
router_ strname - The name info.
- update_
time str - The update time.
- account
Id String - The ID of account.
- asn Number
- The asn of the transit router.
- business
Status String - The business status of the transit router.
- creation
Time String - The create time.
- description String
- The description info.
- grant
Status String - The grant status of the transit router.
- id String
- The ID of the transit router.
- overdue
Time String - The overdue time.
- project
Name String - The ProjectName of the transit router.
- status String
- The status of the transit router.
- List<Property Map>
- Tags.
- transit
Router List<Property Map>Attachments - The attachments of transit router.
- transit
Router StringId - The ID of the transit router.
- transit
Router StringName - The name info.
- update
Time String - The update time.
GetTransitRoutersTransitRouterTag
GetTransitRoutersTransitRouterTransitRouterAttachment
- Creation
Time string - The create time.
- Resource
Id string - The id of resource.
- Resource
Type string - The type of resource.
- Status string
- The status of the transit router.
- Transit
Router stringAttachment Id - The id of transit router attachment.
- Transit
Router stringAttachment Name - The name of transit router attachment.
- Transit
Router stringRoute Table Id - The id of transit router route table.
- Update
Time string - The update time.
- Creation
Time string - The create time.
- Resource
Id string - The id of resource.
- Resource
Type string - The type of resource.
- Status string
- The status of the transit router.
- Transit
Router stringAttachment Id - The id of transit router attachment.
- Transit
Router stringAttachment Name - The name of transit router attachment.
- Transit
Router stringRoute Table Id - The id of transit router route table.
- Update
Time string - The update time.
- creation
Time String - The create time.
- resource
Id String - The id of resource.
- resource
Type String - The type of resource.
- status String
- The status of the transit router.
- transit
Router StringAttachment Id - The id of transit router attachment.
- transit
Router StringAttachment Name - The name of transit router attachment.
- transit
Router StringRoute Table Id - The id of transit router route table.
- update
Time String - The update time.
- creation
Time string - The create time.
- resource
Id string - The id of resource.
- resource
Type string - The type of resource.
- status string
- The status of the transit router.
- transit
Router stringAttachment Id - The id of transit router attachment.
- transit
Router stringAttachment Name - The name of transit router attachment.
- transit
Router stringRoute Table Id - The id of transit router route table.
- update
Time string - The update time.
- creation_
time str - The create time.
- resource_
id str - The id of resource.
- resource_
type str - The type of resource.
- status str
- The status of the transit router.
- transit_
router_ strattachment_ id - The id of transit router attachment.
- transit_
router_ strattachment_ name - The name of transit router attachment.
- transit_
router_ strroute_ table_ id - The id of transit router route table.
- update_
time str - The update time.
- creation
Time String - The create time.
- resource
Id String - The id of resource.
- resource
Type String - The type of resource.
- status String
- The status of the transit router.
- transit
Router StringAttachment Id - The id of transit router attachment.
- transit
Router StringAttachment Name - The name of transit router attachment.
- transit
Router StringRoute Table Id - The id of transit router route table.
- update
Time String - The update time.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
