1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getErRouteTablesV3
opentelekomcloud 1.36.45 published on Friday, Aug 15, 2025 by opentelekomcloud

opentelekomcloud.getErRouteTablesV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.45 published on Friday, Aug 15, 2025 by opentelekomcloud

    Use this data source to query the route tables under the ER instance within OpenTelekomCloud.

    Example Usage

    Querying specified route tables under ER instance using name

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject("instanceId");
    const routeTableName = config.requireObject("routeTableName");
    const test = opentelekomcloud.getErRouteTablesV3({
        instanceId: instanceId,
        name: routeTableName,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    route_table_name = config.require_object("routeTableName")
    test = opentelekomcloud.get_er_route_tables_v3(instance_id=instance_id,
        name=route_table_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId := cfg.RequireObject("instanceId")
    		routeTableName := cfg.RequireObject("routeTableName")
    		_, err := opentelekomcloud.GetErRouteTablesV3(ctx, &opentelekomcloud.GetErRouteTablesV3Args{
    			InstanceId: instanceId,
    			Name:       pulumi.StringRef(routeTableName),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var routeTableName = config.RequireObject<dynamic>("routeTableName");
        var test = Opentelekomcloud.GetErRouteTablesV3.Invoke(new()
        {
            InstanceId = instanceId,
            Name = routeTableName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetErRouteTablesV3Args;
    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 config = ctx.config();
            final var instanceId = config.get("instanceId");
            final var routeTableName = config.get("routeTableName");
            final var test = OpentelekomcloudFunctions.getErRouteTablesV3(GetErRouteTablesV3Args.builder()
                .instanceId(instanceId)
                .name(routeTableName)
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
      routeTableName:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getErRouteTablesV3
          arguments:
            instanceId: ${instanceId}
            name: ${routeTableName}
    

    Querying specified route tables under ER instance using tags

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject("instanceId");
    const test = opentelekomcloud.getErRouteTablesV3({
        instanceId: instanceId,
        tags: {
            foo: "bar",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    test = opentelekomcloud.get_er_route_tables_v3(instance_id=instance_id,
        tags={
            "foo": "bar",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId := cfg.RequireObject("instanceId")
    		_, err := opentelekomcloud.GetErRouteTablesV3(ctx, &opentelekomcloud.GetErRouteTablesV3Args{
    			InstanceId: instanceId,
    			Tags: map[string]interface{}{
    				"foo": "bar",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var test = Opentelekomcloud.GetErRouteTablesV3.Invoke(new()
        {
            InstanceId = instanceId,
            Tags = 
            {
                { "foo", "bar" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetErRouteTablesV3Args;
    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 config = ctx.config();
            final var instanceId = config.get("instanceId");
            final var test = OpentelekomcloudFunctions.getErRouteTablesV3(GetErRouteTablesV3Args.builder()
                .instanceId(instanceId)
                .tags(Map.of("foo", "bar"))
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getErRouteTablesV3
          arguments:
            instanceId: ${instanceId}
            tags:
              foo: bar
    

    Using getErRouteTablesV3

    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 getErRouteTablesV3(args: GetErRouteTablesV3Args, opts?: InvokeOptions): Promise<GetErRouteTablesV3Result>
    function getErRouteTablesV3Output(args: GetErRouteTablesV3OutputArgs, opts?: InvokeOptions): Output<GetErRouteTablesV3Result>
    def get_er_route_tables_v3(id: Optional[str] = None,
                               instance_id: Optional[str] = None,
                               name: Optional[str] = None,
                               route_table_id: Optional[str] = None,
                               tags: Optional[Mapping[str, str]] = None,
                               opts: Optional[InvokeOptions] = None) -> GetErRouteTablesV3Result
    def get_er_route_tables_v3_output(id: Optional[pulumi.Input[str]] = None,
                               instance_id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               route_table_id: Optional[pulumi.Input[str]] = None,
                               tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetErRouteTablesV3Result]
    func GetErRouteTablesV3(ctx *Context, args *GetErRouteTablesV3Args, opts ...InvokeOption) (*GetErRouteTablesV3Result, error)
    func GetErRouteTablesV3Output(ctx *Context, args *GetErRouteTablesV3OutputArgs, opts ...InvokeOption) GetErRouteTablesV3ResultOutput

    > Note: This function is named GetErRouteTablesV3 in the Go SDK.

    public static class GetErRouteTablesV3 
    {
        public static Task<GetErRouteTablesV3Result> InvokeAsync(GetErRouteTablesV3Args args, InvokeOptions? opts = null)
        public static Output<GetErRouteTablesV3Result> Invoke(GetErRouteTablesV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetErRouteTablesV3Result> getErRouteTablesV3(GetErRouteTablesV3Args args, InvokeOptions options)
    public static Output<GetErRouteTablesV3Result> getErRouteTablesV3(GetErRouteTablesV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getErRouteTablesV3:getErRouteTablesV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Specifies the ID of the ER instance to which the route tables belongs.
    Id string
    The route ID.
    Name string
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    RouteTableId string
    Specifies the route table ID used to query specified route table.
    Tags Dictionary<string, string>
    Specifies the key/value pairs used to filter the route tables.
    InstanceId string
    Specifies the ID of the ER instance to which the route tables belongs.
    Id string
    The route ID.
    Name string
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    RouteTableId string
    Specifies the route table ID used to query specified route table.
    Tags map[string]string
    Specifies the key/value pairs used to filter the route tables.
    instanceId String
    Specifies the ID of the ER instance to which the route tables belongs.
    id String
    The route ID.
    name String
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    routeTableId String
    Specifies the route table ID used to query specified route table.
    tags Map<String,String>
    Specifies the key/value pairs used to filter the route tables.
    instanceId string
    Specifies the ID of the ER instance to which the route tables belongs.
    id string
    The route ID.
    name string
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    routeTableId string
    Specifies the route table ID used to query specified route table.
    tags {[key: string]: string}
    Specifies the key/value pairs used to filter the route tables.
    instance_id str
    Specifies the ID of the ER instance to which the route tables belongs.
    id str
    The route ID.
    name str
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    route_table_id str
    Specifies the route table ID used to query specified route table.
    tags Mapping[str, str]
    Specifies the key/value pairs used to filter the route tables.
    instanceId String
    Specifies the ID of the ER instance to which the route tables belongs.
    id String
    The route ID.
    name String
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    routeTableId String
    Specifies the route table ID used to query specified route table.
    tags Map<String>
    Specifies the key/value pairs used to filter the route tables.

    getErRouteTablesV3 Result

    The following output properties are available:

    Id string
    The route ID.
    InstanceId string
    RouteTables List<GetErRouteTablesV3RouteTable>
    All route tables that match the filter parameters. The object structure is documented below.
    Name string
    The name of the route table.
    RouteTableId string
    Tags Dictionary<string, string>
    Id string
    The route ID.
    InstanceId string
    RouteTables []GetErRouteTablesV3RouteTable
    All route tables that match the filter parameters. The object structure is documented below.
    Name string
    The name of the route table.
    RouteTableId string
    Tags map[string]string
    id String
    The route ID.
    instanceId String
    routeTables List<GetErRouteTablesV3RouteTable>
    All route tables that match the filter parameters. The object structure is documented below.
    name String
    The name of the route table.
    routeTableId String
    tags Map<String,String>
    id string
    The route ID.
    instanceId string
    routeTables GetErRouteTablesV3RouteTable[]
    All route tables that match the filter parameters. The object structure is documented below.
    name string
    The name of the route table.
    routeTableId string
    tags {[key: string]: string}
    id str
    The route ID.
    instance_id str
    route_tables Sequence[GetErRouteTablesV3RouteTable]
    All route tables that match the filter parameters. The object structure is documented below.
    name str
    The name of the route table.
    route_table_id str
    tags Mapping[str, str]
    id String
    The route ID.
    instanceId String
    routeTables List<Property Map>
    All route tables that match the filter parameters. The object structure is documented below.
    name String
    The name of the route table.
    routeTableId String
    tags Map<String>

    Supporting Types

    GetErRouteTablesV3RouteTable

    Associations List<GetErRouteTablesV3RouteTableAssociation>
    The association configurations of the route table. The object structure is documented below.
    CreatedAt string
    The creation time.
    Description string
    The description of the route table.
    Id string
    The route ID.
    Name string
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    Propagations List<GetErRouteTablesV3RouteTablePropagation>
    The propagation configurations of the route table. The object structure is documented below.
    Routes List<GetErRouteTablesV3RouteTableRoute>
    The route details of the route table. The object structure is documented below.
    Tags Dictionary<string, string>
    Specifies the key/value pairs used to filter the route tables.
    UpdatedAt string
    The latest update time.
    Associations []GetErRouteTablesV3RouteTableAssociation
    The association configurations of the route table. The object structure is documented below.
    CreatedAt string
    The creation time.
    Description string
    The description of the route table.
    Id string
    The route ID.
    Name string
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    Propagations []GetErRouteTablesV3RouteTablePropagation
    The propagation configurations of the route table. The object structure is documented below.
    Routes []GetErRouteTablesV3RouteTableRoute
    The route details of the route table. The object structure is documented below.
    Tags map[string]string
    Specifies the key/value pairs used to filter the route tables.
    UpdatedAt string
    The latest update time.
    associations List<GetErRouteTablesV3RouteTableAssociation>
    The association configurations of the route table. The object structure is documented below.
    createdAt String
    The creation time.
    description String
    The description of the route table.
    id String
    The route ID.
    name String
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    propagations List<GetErRouteTablesV3RouteTablePropagation>
    The propagation configurations of the route table. The object structure is documented below.
    routes List<GetErRouteTablesV3RouteTableRoute>
    The route details of the route table. The object structure is documented below.
    tags Map<String,String>
    Specifies the key/value pairs used to filter the route tables.
    updatedAt String
    The latest update time.
    associations GetErRouteTablesV3RouteTableAssociation[]
    The association configurations of the route table. The object structure is documented below.
    createdAt string
    The creation time.
    description string
    The description of the route table.
    id string
    The route ID.
    name string
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    propagations GetErRouteTablesV3RouteTablePropagation[]
    The propagation configurations of the route table. The object structure is documented below.
    routes GetErRouteTablesV3RouteTableRoute[]
    The route details of the route table. The object structure is documented below.
    tags {[key: string]: string}
    Specifies the key/value pairs used to filter the route tables.
    updatedAt string
    The latest update time.
    associations Sequence[GetErRouteTablesV3RouteTableAssociation]
    The association configurations of the route table. The object structure is documented below.
    created_at str
    The creation time.
    description str
    The description of the route table.
    id str
    The route ID.
    name str
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    propagations Sequence[GetErRouteTablesV3RouteTablePropagation]
    The propagation configurations of the route table. The object structure is documented below.
    routes Sequence[GetErRouteTablesV3RouteTableRoute]
    The route details of the route table. The object structure is documented below.
    tags Mapping[str, str]
    Specifies the key/value pairs used to filter the route tables.
    updated_at str
    The latest update time.
    associations List<Property Map>
    The association configurations of the route table. The object structure is documented below.
    createdAt String
    The creation time.
    description String
    The description of the route table.
    id String
    The route ID.
    name String
    Specifies the name used to filter the route tables. The name can contain 1 to 64 characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
    propagations List<Property Map>
    The propagation configurations of the route table. The object structure is documented below.
    routes List<Property Map>
    The route details of the route table. The object structure is documented below.
    tags Map<String>
    Specifies the key/value pairs used to filter the route tables.
    updatedAt String
    The latest update time.

    GetErRouteTablesV3RouteTableAssociation

    AttachmentId string
    The ID of the nexthop attachment.
    AttachmentType string
    The type of the nexthop attachment.
    Id string
    The route ID.
    AttachmentId string
    The ID of the nexthop attachment.
    AttachmentType string
    The type of the nexthop attachment.
    Id string
    The route ID.
    attachmentId String
    The ID of the nexthop attachment.
    attachmentType String
    The type of the nexthop attachment.
    id String
    The route ID.
    attachmentId string
    The ID of the nexthop attachment.
    attachmentType string
    The type of the nexthop attachment.
    id string
    The route ID.
    attachment_id str
    The ID of the nexthop attachment.
    attachment_type str
    The type of the nexthop attachment.
    id str
    The route ID.
    attachmentId String
    The ID of the nexthop attachment.
    attachmentType String
    The type of the nexthop attachment.
    id String
    The route ID.

    GetErRouteTablesV3RouteTablePropagation

    AttachmentId string
    The ID of the nexthop attachment.
    AttachmentType string
    The type of the nexthop attachment.
    Id string
    The route ID.
    AttachmentId string
    The ID of the nexthop attachment.
    AttachmentType string
    The type of the nexthop attachment.
    Id string
    The route ID.
    attachmentId String
    The ID of the nexthop attachment.
    attachmentType String
    The type of the nexthop attachment.
    id String
    The route ID.
    attachmentId string
    The ID of the nexthop attachment.
    attachmentType string
    The type of the nexthop attachment.
    id string
    The route ID.
    attachment_id str
    The ID of the nexthop attachment.
    attachment_type str
    The type of the nexthop attachment.
    id str
    The route ID.
    attachmentId String
    The ID of the nexthop attachment.
    attachmentType String
    The type of the nexthop attachment.
    id String
    The route ID.

    GetErRouteTablesV3RouteTableRoute

    Attachments List<GetErRouteTablesV3RouteTableRouteAttachment>
    The details of the attachment corresponding to the route. The object structure is documented below.
    Destination string
    The destination address (CIDR) of the route.
    Id string
    The route ID.
    IsBlackhole bool
    Whether route is the black hole route.
    Attachments []GetErRouteTablesV3RouteTableRouteAttachment
    The details of the attachment corresponding to the route. The object structure is documented below.
    Destination string
    The destination address (CIDR) of the route.
    Id string
    The route ID.
    IsBlackhole bool
    Whether route is the black hole route.
    attachments List<GetErRouteTablesV3RouteTableRouteAttachment>
    The details of the attachment corresponding to the route. The object structure is documented below.
    destination String
    The destination address (CIDR) of the route.
    id String
    The route ID.
    isBlackhole Boolean
    Whether route is the black hole route.
    attachments GetErRouteTablesV3RouteTableRouteAttachment[]
    The details of the attachment corresponding to the route. The object structure is documented below.
    destination string
    The destination address (CIDR) of the route.
    id string
    The route ID.
    isBlackhole boolean
    Whether route is the black hole route.
    attachments Sequence[GetErRouteTablesV3RouteTableRouteAttachment]
    The details of the attachment corresponding to the route. The object structure is documented below.
    destination str
    The destination address (CIDR) of the route.
    id str
    The route ID.
    is_blackhole bool
    Whether route is the black hole route.
    attachments List<Property Map>
    The details of the attachment corresponding to the route. The object structure is documented below.
    destination String
    The destination address (CIDR) of the route.
    id String
    The route ID.
    isBlackhole Boolean
    Whether route is the black hole route.

    GetErRouteTablesV3RouteTableRouteAttachment

    AttachmentId string
    The ID of the nexthop attachment.
    AttachmentType string
    The type of the nexthop attachment.
    ResourceId string
    The ID of the resource associated with the attachment.
    AttachmentId string
    The ID of the nexthop attachment.
    AttachmentType string
    The type of the nexthop attachment.
    ResourceId string
    The ID of the resource associated with the attachment.
    attachmentId String
    The ID of the nexthop attachment.
    attachmentType String
    The type of the nexthop attachment.
    resourceId String
    The ID of the resource associated with the attachment.
    attachmentId string
    The ID of the nexthop attachment.
    attachmentType string
    The type of the nexthop attachment.
    resourceId string
    The ID of the resource associated with the attachment.
    attachment_id str
    The ID of the nexthop attachment.
    attachment_type str
    The type of the nexthop attachment.
    resource_id str
    The ID of the resource associated with the attachment.
    attachmentId String
    The ID of the nexthop attachment.
    attachmentType String
    The type of the nexthop attachment.
    resourceId String
    The ID of the resource associated with the attachment.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.45 published on Friday, Aug 15, 2025 by opentelekomcloud