opentelekomcloud 1.36.45 published on Friday, Aug 15, 2025 by opentelekomcloud
opentelekomcloud.getErRouteTablesV3
Explore with Pulumi AI
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:
- Instance
Id 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - Route
Table stringId - Specifies the route table ID used to query specified route table.
- Dictionary<string, string>
- Specifies the key/value pairs used to filter the route tables.
- Instance
Id 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - Route
Table stringId - Specifies the route table ID used to query specified route table.
- map[string]string
- Specifies the key/value pairs used to filter the route tables.
- instance
Id 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - route
Table StringId - Specifies the route table ID used to query specified route table.
- Map<String,String>
- Specifies the key/value pairs used to filter the route tables.
- instance
Id 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - route
Table stringId - Specifies the route table ID used to query specified route table.
- {[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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - route_
table_ strid - Specifies the route table ID used to query specified route table.
- Mapping[str, str]
- Specifies the key/value pairs used to filter the route tables.
- instance
Id 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - route
Table StringId - Specifies the route table ID used to query specified route table.
- 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.
- Instance
Id string - Route
Tables List<GetEr Route Tables V3Route Table> - All route tables that match the filter parameters. The object structure is documented below.
- Name string
- The name of the route table.
- Route
Table stringId - Dictionary<string, string>
- Id string
- The route ID.
- Instance
Id string - Route
Tables []GetEr Route Tables V3Route Table - All route tables that match the filter parameters. The object structure is documented below.
- Name string
- The name of the route table.
- Route
Table stringId - map[string]string
- id String
- The route ID.
- instance
Id String - route
Tables List<GetEr Route Tables V3Route Table> - All route tables that match the filter parameters. The object structure is documented below.
- name String
- The name of the route table.
- route
Table StringId - Map<String,String>
- id string
- The route ID.
- instance
Id string - route
Tables GetEr Route Tables V3Route Table[] - All route tables that match the filter parameters. The object structure is documented below.
- name string
- The name of the route table.
- route
Table stringId - {[key: string]: string}
- id str
- The route ID.
- instance_
id str - route_
tables Sequence[GetEr Route Tables V3Route Table] - All route tables that match the filter parameters. The object structure is documented below.
- name str
- The name of the route table.
- route_
table_ strid - Mapping[str, str]
- id String
- The route ID.
- instance
Id String - route
Tables 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.
- route
Table StringId - Map<String>
Supporting Types
GetErRouteTablesV3RouteTable
- Associations
List<Get
Er Route Tables V3Route Table Association> - The association configurations of the route table. The object structure is documented below.
- Created
At 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - Propagations
List<Get
Er Route Tables V3Route Table Propagation> - The propagation configurations of the route table. The object structure is documented below.
- Routes
List<Get
Er Route Tables V3Route Table Route> - The route details of the route table. The object structure is documented below.
- Dictionary<string, string>
- Specifies the key/value pairs used to filter the route tables.
- Updated
At string - The latest update time.
- Associations
[]Get
Er Route Tables V3Route Table Association - The association configurations of the route table. The object structure is documented below.
- Created
At 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - Propagations
[]Get
Er Route Tables V3Route Table Propagation - The propagation configurations of the route table. The object structure is documented below.
- Routes
[]Get
Er Route Tables V3Route Table Route - The route details of the route table. The object structure is documented below.
- map[string]string
- Specifies the key/value pairs used to filter the route tables.
- Updated
At string - The latest update time.
- associations
List<Get
Er Route Tables V3Route Table Association> - The association configurations of the route table. The object structure is documented below.
- created
At 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - propagations
List<Get
Er Route Tables V3Route Table Propagation> - The propagation configurations of the route table. The object structure is documented below.
- routes
List<Get
Er Route Tables V3Route Table Route> - The route details of the route table. The object structure is documented below.
- Map<String,String>
- Specifies the key/value pairs used to filter the route tables.
- updated
At String - The latest update time.
- associations
Get
Er Route Tables V3Route Table Association[] - The association configurations of the route table. The object structure is documented below.
- created
At 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - propagations
Get
Er Route Tables V3Route Table Propagation[] - The propagation configurations of the route table. The object structure is documented below.
- routes
Get
Er Route Tables V3Route Table Route[] - The route details of the route table. The object structure is documented below.
- {[key: string]: string}
- Specifies the key/value pairs used to filter the route tables.
- updated
At string - The latest update time.
- associations
Sequence[Get
Er Route Tables V3Route Table Association] - 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
to64
characters, only English letters, digits, underscore (_), hyphens (-) and dots (.) allowed. - propagations
Sequence[Get
Er Route Tables V3Route Table Propagation] - The propagation configurations of the route table. The object structure is documented below.
- routes
Sequence[Get
Er Route Tables V3Route Table Route] - The route details of the route table. The object structure is documented below.
- 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.
- created
At 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
to64
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.
- Map<String>
- Specifies the key/value pairs used to filter the route tables.
- updated
At String - The latest update time.
GetErRouteTablesV3RouteTableAssociation
- Attachment
Id string - The ID of the nexthop attachment.
- Attachment
Type string - The type of the nexthop attachment.
- Id string
- The route ID.
- Attachment
Id string - The ID of the nexthop attachment.
- Attachment
Type string - The type of the nexthop attachment.
- Id string
- The route ID.
- attachment
Id String - The ID of the nexthop attachment.
- attachment
Type String - The type of the nexthop attachment.
- id String
- The route ID.
- attachment
Id string - The ID of the nexthop attachment.
- attachment
Type 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.
- attachment
Id String - The ID of the nexthop attachment.
- attachment
Type String - The type of the nexthop attachment.
- id String
- The route ID.
GetErRouteTablesV3RouteTablePropagation
- Attachment
Id string - The ID of the nexthop attachment.
- Attachment
Type string - The type of the nexthop attachment.
- Id string
- The route ID.
- Attachment
Id string - The ID of the nexthop attachment.
- Attachment
Type string - The type of the nexthop attachment.
- Id string
- The route ID.
- attachment
Id String - The ID of the nexthop attachment.
- attachment
Type String - The type of the nexthop attachment.
- id String
- The route ID.
- attachment
Id string - The ID of the nexthop attachment.
- attachment
Type 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.
- attachment
Id String - The ID of the nexthop attachment.
- attachment
Type String - The type of the nexthop attachment.
- id String
- The route ID.
GetErRouteTablesV3RouteTableRoute
- Attachments
List<Get
Er Route Tables V3Route Table Route Attachment> - 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.
- Is
Blackhole bool - Whether route is the black hole route.
- Attachments
[]Get
Er Route Tables V3Route Table Route Attachment - 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.
- Is
Blackhole bool - Whether route is the black hole route.
- attachments
List<Get
Er Route Tables V3Route Table Route Attachment> - 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.
- is
Blackhole Boolean - Whether route is the black hole route.
- attachments
Get
Er Route Tables V3Route Table Route Attachment[] - 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.
- is
Blackhole boolean - Whether route is the black hole route.
- attachments
Sequence[Get
Er Route Tables V3Route Table Route Attachment] - 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.
- is
Blackhole Boolean - Whether route is the black hole route.
GetErRouteTablesV3RouteTableRouteAttachment
- Attachment
Id string - The ID of the nexthop attachment.
- Attachment
Type string - The type of the nexthop attachment.
- Resource
Id string - The ID of the resource associated with the attachment.
- Attachment
Id string - The ID of the nexthop attachment.
- Attachment
Type string - The type of the nexthop attachment.
- Resource
Id string - The ID of the resource associated with the attachment.
- attachment
Id String - The ID of the nexthop attachment.
- attachment
Type String - The type of the nexthop attachment.
- resource
Id String - The ID of the resource associated with the attachment.
- attachment
Id string - The ID of the nexthop attachment.
- attachment
Type string - The type of the nexthop attachment.
- resource
Id 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.
- attachment
Id String - The ID of the nexthop attachment.
- attachment
Type String - The type of the nexthop attachment.
- resource
Id 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 1.36.45 published on Friday, Aug 15, 2025 by opentelekomcloud