Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.transit_router.TransitRouters
Explore with Pulumi AI
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",
});
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")
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
	})
}
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 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());
    }
}
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) TransitRoutersResultOutputpublic 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)
public static Output<TransitRoutersResult> transitRouters(TransitRoutersArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:transit_router:TransitRouters
  arguments:
    # arguments dictionaryThe 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.
- 
List<TransitRouters Tag> 
- Tags.
- TransitRouter stringName 
- 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.
- 
[]TransitRouters Tag 
- Tags.
- TransitRouter stringName 
- 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.
- 
List<TransitRouters Tag> 
- Tags.
- transitRouter StringName 
- 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.
- 
TransitRouters Tag[] 
- Tags.
- transitRouter 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[TransitRouters Tag] 
- Tags.
- transit_router_ strname 
- 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.
- List<Property Map>
- Tags.
- transitRouter StringName 
- 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<TransitRouters Transit Router> 
- The collection of query.
- Ids List<string>
- OutputFile string
- ProjectName string
- The ProjectName of the transit router.
- 
List<TransitRouters Tag> 
- Tags.
- TransitRouter stringName 
- 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 []TransitRouters Transit Router 
- The collection of query.
- Ids []string
- OutputFile string
- ProjectName string
- The ProjectName of the transit router.
- 
[]TransitRouters Tag 
- Tags.
- TransitRouter stringName 
- 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<TransitRouters Transit Router> 
- The collection of query.
- ids List<String>
- outputFile String
- projectName String
- The ProjectName of the transit router.
- 
List<TransitRouters Tag> 
- Tags.
- transitRouter StringName 
- 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 TransitRouters Transit Router[] 
- The collection of query.
- ids string[]
- outputFile string
- projectName string
- The ProjectName of the transit router.
- 
TransitRouters Tag[] 
- Tags.
- transitRouter 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[TransitRouters Tag] 
- Tags.
- transit_router_ strname 
- 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.
- List<Property Map>
- Tags.
- transitRouter StringName 
- The name of the transit router.
Supporting Types
TransitRoutersTag  
TransitRoutersTransitRouter   
- AccountId string
- The ID of account.
- Asn int
- The asn of the transit router.
- BusinessStatus string
- The business status of the transit router.
- CreationTime string
- The create time.
- Description string
- The description info.
- GrantStatus string
- The grant status of the transit router.
- Id string
- The ID of the transit router.
- OverdueTime string
- The overdue time.
- ProjectName string
- The ProjectName of the transit router.
- Status string
- The status of the transit router.
- 
List<TransitRouters Transit Router Tag> 
- Tags.
- TransitRouter List<TransitAttachments Routers Transit Router Transit Router Attachment> 
- The attachments of transit router.
- TransitRouter stringId 
- The ID of the transit router.
- TransitRouter stringName 
- The name info.
- UpdateTime string
- The update time.
- AccountId string
- The ID of account.
- Asn int
- The asn of the transit router.
- BusinessStatus string
- The business status of the transit router.
- CreationTime string
- The create time.
- Description string
- The description info.
- GrantStatus string
- The grant status of the transit router.
- Id string
- The ID of the transit router.
- OverdueTime string
- The overdue time.
- ProjectName string
- The ProjectName of the transit router.
- Status string
- The status of the transit router.
- 
[]TransitRouters Transit Router Tag 
- Tags.
- TransitRouter []TransitAttachments Routers Transit Router Transit Router Attachment 
- The attachments of transit router.
- TransitRouter stringId 
- The ID of the transit router.
- TransitRouter stringName 
- The name info.
- UpdateTime string
- The update time.
- accountId String
- The ID of account.
- asn Integer
- The asn of the transit router.
- businessStatus String
- The business status of the transit router.
- creationTime String
- The create time.
- description String
- The description info.
- grantStatus String
- The grant status of the transit router.
- id String
- The ID of the transit router.
- overdueTime String
- The overdue time.
- projectName String
- The ProjectName of the transit router.
- status String
- The status of the transit router.
- 
List<TransitRouters Transit Router Tag> 
- Tags.
- transitRouter List<TransitAttachments Routers Transit Router Transit Router Attachment> 
- The attachments of transit router.
- transitRouter StringId 
- The ID of the transit router.
- transitRouter StringName 
- The name info.
- updateTime String
- The update time.
- accountId string
- The ID of account.
- asn number
- The asn of the transit router.
- businessStatus string
- The business status of the transit router.
- creationTime string
- The create time.
- description string
- The description info.
- grantStatus string
- The grant status of the transit router.
- id string
- The ID of the transit router.
- overdueTime string
- The overdue time.
- projectName string
- The ProjectName of the transit router.
- status string
- The status of the transit router.
- 
TransitRouters Transit Router Tag[] 
- Tags.
- transitRouter TransitAttachments Routers Transit Router Transit Router Attachment[] 
- The attachments of transit router.
- transitRouter stringId 
- The ID of the transit router.
- transitRouter stringName 
- The name info.
- updateTime 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[TransitRouters 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.
- accountId String
- The ID of account.
- asn Number
- The asn of the transit router.
- businessStatus String
- The business status of the transit router.
- creationTime String
- The create time.
- description String
- The description info.
- grantStatus String
- The grant status of the transit router.
- id String
- The ID of the transit router.
- overdueTime String
- The overdue time.
- projectName String
- The ProjectName of the transit router.
- status String
- The status of the transit router.
- List<Property Map>
- Tags.
- transitRouter List<Property Map>Attachments 
- The attachments of transit router.
- transitRouter StringId 
- The ID of the transit router.
- transitRouter StringName 
- The name info.
- updateTime String
- The update time.
TransitRoutersTransitRouterTag    
TransitRoutersTransitRouterTransitRouterAttachment      
- CreationTime string
- The create time.
- ResourceId string
- The id of resource.
- ResourceType string
- The type of resource.
- Status string
- The status of the transit router.
- TransitRouter stringAttachment Id 
- The id of transit router attachment.
- TransitRouter stringAttachment Name 
- The name of transit router attachment.
- TransitRouter stringRoute Table Id 
- The id of transit router route table.
- UpdateTime string
- The update time.
- CreationTime string
- The create time.
- ResourceId string
- The id of resource.
- ResourceType string
- The type of resource.
- Status string
- The status of the transit router.
- TransitRouter stringAttachment Id 
- The id of transit router attachment.
- TransitRouter stringAttachment Name 
- The name of transit router attachment.
- TransitRouter stringRoute Table Id 
- The id of transit router route table.
- UpdateTime string
- The update time.
- creationTime String
- The create time.
- resourceId String
- The id of resource.
- resourceType String
- The type of resource.
- status String
- The status of the transit router.
- transitRouter StringAttachment Id 
- The id of transit router attachment.
- transitRouter StringAttachment Name 
- The name of transit router attachment.
- transitRouter StringRoute Table Id 
- The id of transit router route table.
- updateTime String
- The update time.
- creationTime string
- The create time.
- resourceId string
- The id of resource.
- resourceType string
- The type of resource.
- status string
- The status of the transit router.
- transitRouter stringAttachment Id 
- The id of transit router attachment.
- transitRouter stringAttachment Name 
- The name of transit router attachment.
- transitRouter stringRoute Table Id 
- The id of transit router route table.
- updateTime 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.
- creationTime String
- The create time.
- resourceId String
- The id of resource.
- resourceType String
- The type of resource.
- status String
- The status of the transit router.
- transitRouter StringAttachment Id 
- The id of transit router attachment.
- transitRouter StringAttachment Name 
- The name of transit router attachment.
- transitRouter StringRoute Table Id 
- The id of transit router route table.
- updateTime 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.