Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.transit_router.TransitRouters
Explore with Pulumi AI
Use this data source to query detailed information of transit routers
Example Usage
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",
});
});
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
})
}
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());
}
}
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")
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",
});
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
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>
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]
func TransitRouters(ctx *Context, args *TransitRoutersArgs, opts ...InvokeOption) (*TransitRoutersResult, error)
func TransitRoutersOutput(ctx *Context, args *TransitRoutersOutputArgs, opts ...InvokeOption) TransitRoutersResultOutput
public static class TransitRouters
{
public static Task<TransitRoutersResult> InvokeAsync(TransitRoutersArgs args, InvokeOptions? opts = null)
public static Output<TransitRoutersResult> Invoke(TransitRoutersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<TransitRoutersResult> transitRouters(TransitRoutersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:transit_router:TransitRouters
arguments:
# arguments dictionary
The 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<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.
- []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<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.
- 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[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.
TransitRouters 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<TransitRouters Transit Router> - The collection of query.
- Ids List<string>
- Output
File string - Project
Name string - The ProjectName of the transit router.
- List<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 []TransitRouters Transit Router - The collection of query.
- Ids []string
- Output
File string - Project
Name string - The ProjectName of the transit router.
- []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<TransitRouters Transit Router> - The collection of query.
- ids List<String>
- output
File String - project
Name String - The ProjectName of the transit router.
- List<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 TransitRouters Transit Router[] - The collection of query.
- ids string[]
- output
File string - project
Name string - The ProjectName of the transit router.
- 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[TransitRouters Transit Router] - The collection of query.
- ids Sequence[str]
- output_
file str - project_
name str - The ProjectName of the transit router.
- Sequence[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
TransitRoutersTag
TransitRoutersTransitRouter
- Account
Id string - The ID of account.
- Business
Status string - The business status of the transit router.
- Creation
Time string - The create time.
- Description string
- The description info.
- 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<Transit
Routers Transit Router Tag> - Tags.
- Transit
Router List<TransitAttachments 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.
- Business
Status string - The business status of the transit router.
- Creation
Time string - The create time.
- Description string
- The description info.
- 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.
- []Transit
Routers Transit Router Tag - Tags.
- Transit
Router []TransitAttachments 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.
- business
Status String - The business status of the transit router.
- creation
Time String - The create time.
- description String
- The description info.
- 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<Transit
Routers Transit Router Tag> - Tags.
- transit
Router List<TransitAttachments 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.
- business
Status string - The business status of the transit router.
- creation
Time string - The create time.
- description string
- The description info.
- 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.
- Transit
Routers Transit Router Tag[] - Tags.
- transit
Router TransitAttachments 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.
- business_
status str - The business status of the transit router.
- creation_
time str - The create time.
- description str
- The description info.
- 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[Transit
Routers Transit Router Tag] - Tags.
- transit_
router_ Sequence[Transitattachments 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.
- business
Status String - The business status of the transit router.
- creation
Time String - The create time.
- description String
- The description info.
- 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.
TransitRoutersTransitRouterTag
TransitRoutersTransitRouterTransitRouterAttachment
- 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
volcengine
Terraform Provider.