opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getVpcRouteTablesV1
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
Up-to-date reference of API arguments for VPC route table you can get at documentation portal
Returns list of route tables.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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.GetVpcRouteTablesV1Args;
import com.pulumi.opentelekomcloud.inputs.GetVpcRouteTableV1Args;
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 vpcId = config.get("vpcId");
final var routeTableId = config.get("routeTableId");
final var subnetNetworkId = config.get("subnetNetworkId");
final var allRouteTables = OpentelekomcloudFunctions.getVpcRouteTablesV1();
final var vpcRouteTables = OpentelekomcloudFunctions.getVpcRouteTablesV1(GetVpcRouteTablesV1Args.builder()
.vpcId(vpcId)
.build());
final var singleRouteTable = OpentelekomcloudFunctions.getVpcRouteTableV1(GetVpcRouteTableV1Args.builder()
.id(routeTableId)
.build());
final var subnetRouteTable = OpentelekomcloudFunctions.getVpcRouteTableV1(GetVpcRouteTableV1Args.builder()
.subnetId(subnetNetworkId)
.build());
}
}
configuration:
vpcId:
type: dynamic
routeTableId:
type: dynamic
subnetNetworkId:
type: dynamic
variables:
allRouteTables:
fn::invoke:
function: opentelekomcloud:getVpcRouteTablesV1
arguments: {}
vpcRouteTables:
fn::invoke:
function: opentelekomcloud:getVpcRouteTablesV1
arguments:
vpcId: ${vpcId}
singleRouteTable:
fn::invoke:
function: opentelekomcloud:getVpcRouteTableV1
arguments:
id: ${routeTableId}
subnetRouteTable:
fn::invoke:
function: opentelekomcloud:getVpcRouteTableV1
arguments:
subnetId: ${subnetNetworkId}
Using getVpcRouteTablesV1
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 getVpcRouteTablesV1(args: GetVpcRouteTablesV1Args, opts?: InvokeOptions): Promise<GetVpcRouteTablesV1Result>
function getVpcRouteTablesV1Output(args: GetVpcRouteTablesV1OutputArgs, opts?: InvokeOptions): Output<GetVpcRouteTablesV1Result>
def get_vpc_route_tables_v1(id: Optional[str] = None,
subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcRouteTablesV1Result
def get_vpc_route_tables_v1_output(id: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcRouteTablesV1Result]
func GetVpcRouteTablesV1(ctx *Context, args *GetVpcRouteTablesV1Args, opts ...InvokeOption) (*GetVpcRouteTablesV1Result, error)
func GetVpcRouteTablesV1Output(ctx *Context, args *GetVpcRouteTablesV1OutputArgs, opts ...InvokeOption) GetVpcRouteTablesV1ResultOutput
> Note: This function is named GetVpcRouteTablesV1
in the Go SDK.
public static class GetVpcRouteTablesV1
{
public static Task<GetVpcRouteTablesV1Result> InvokeAsync(GetVpcRouteTablesV1Args args, InvokeOptions? opts = null)
public static Output<GetVpcRouteTablesV1Result> Invoke(GetVpcRouteTablesV1InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcRouteTablesV1Result> getVpcRouteTablesV1(GetVpcRouteTablesV1Args args, InvokeOptions options)
public static Output<GetVpcRouteTablesV1Result> getVpcRouteTablesV1(GetVpcRouteTablesV1Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getVpcRouteTablesV1:getVpcRouteTablesV1
arguments:
# arguments dictionary
The following arguments are supported:
getVpcRouteTablesV1 Result
The following output properties are available:
- Routetables
List<Get
Vpc Route Tables V1Routetable> - list of routetable object (documented below)
- Id string
- Subnet
Id string - Vpc
Id string - VPC Id to which route table belongs.
- Routetables
[]Get
Vpc Route Tables V1Routetable - list of routetable object (documented below)
- Id string
- Subnet
Id string - Vpc
Id string - VPC Id to which route table belongs.
- routetables
List<Get
Vpc Route Tables V1Routetable> - list of routetable object (documented below)
- id String
- subnet
Id String - vpc
Id String - VPC Id to which route table belongs.
- routetables
Get
Vpc Route Tables V1Routetable[] - list of routetable object (documented below)
- id string
- subnet
Id string - vpc
Id string - VPC Id to which route table belongs.
- routetables
Sequence[Get
Vpc Route Tables V1Routetable] - list of routetable object (documented below)
- id str
- subnet_
id str - vpc_
id str - VPC Id to which route table belongs.
- routetables List<Property Map>
- list of routetable object (documented below)
- id String
- subnet
Id String - vpc
Id String - VPC Id to which route table belongs.
Supporting Types
GetVpcRouteTablesV1Routetable
- Default bool
- Whether the route table is default or not.
- Description string
- Route description.
- Id string
- Specifies the ID of the route table.
- Name string
- Routes
List<Get
Vpc Route Tables V1Routetable Route> - List of non-local routes in the route table
(
local
routes are considered system internal and can't be managed via API, though are visible in web UI). Structure of the route object is documented below. - Subnets List<string>
- An array of subnets associating with the route table.
- Tenant
Id string - Project id to which route table belongs.
- Vpc
Id string - Specifies the VPC ID where the route tables reside.
- Default bool
- Whether the route table is default or not.
- Description string
- Route description.
- Id string
- Specifies the ID of the route table.
- Name string
- Routes
[]Get
Vpc Route Tables V1Routetable Route - List of non-local routes in the route table
(
local
routes are considered system internal and can't be managed via API, though are visible in web UI). Structure of the route object is documented below. - Subnets []string
- An array of subnets associating with the route table.
- Tenant
Id string - Project id to which route table belongs.
- Vpc
Id string - Specifies the VPC ID where the route tables reside.
- default_ Boolean
- Whether the route table is default or not.
- description String
- Route description.
- id String
- Specifies the ID of the route table.
- name String
- routes
List<Get
Vpc Route Tables V1Routetable Route> - List of non-local routes in the route table
(
local
routes are considered system internal and can't be managed via API, though are visible in web UI). Structure of the route object is documented below. - subnets List<String>
- An array of subnets associating with the route table.
- tenant
Id String - Project id to which route table belongs.
- vpc
Id String - Specifies the VPC ID where the route tables reside.
- default boolean
- Whether the route table is default or not.
- description string
- Route description.
- id string
- Specifies the ID of the route table.
- name string
- routes
Get
Vpc Route Tables V1Routetable Route[] - List of non-local routes in the route table
(
local
routes are considered system internal and can't be managed via API, though are visible in web UI). Structure of the route object is documented below. - subnets string[]
- An array of subnets associating with the route table.
- tenant
Id string - Project id to which route table belongs.
- vpc
Id string - Specifies the VPC ID where the route tables reside.
- default bool
- Whether the route table is default or not.
- description str
- Route description.
- id str
- Specifies the ID of the route table.
- name str
- routes
Sequence[Get
Vpc Route Tables V1Routetable Route] - List of non-local routes in the route table
(
local
routes are considered system internal and can't be managed via API, though are visible in web UI). Structure of the route object is documented below. - subnets Sequence[str]
- An array of subnets associating with the route table.
- tenant_
id str - Project id to which route table belongs.
- vpc_
id str - Specifies the VPC ID where the route tables reside.
- default Boolean
- Whether the route table is default or not.
- description String
- Route description.
- id String
- Specifies the ID of the route table.
- name String
- routes List<Property Map>
- List of non-local routes in the route table
(
local
routes are considered system internal and can't be managed via API, though are visible in web UI). Structure of the route object is documented below. - subnets List<String>
- An array of subnets associating with the route table.
- tenant
Id String - Project id to which route table belongs.
- vpc
Id String - Specifies the VPC ID where the route tables reside.
GetVpcRouteTablesV1RoutetableRoute
- Description string
- Route description.
- Destination string
- The destination address in the CIDR notation format
- Nexthop string
- The next hop. Value depends on the route type.
- Type string
- The route type. Check API reference for supperted types.
- Description string
- Route description.
- Destination string
- The destination address in the CIDR notation format
- Nexthop string
- The next hop. Value depends on the route type.
- Type string
- The route type. Check API reference for supperted types.
- description String
- Route description.
- destination String
- The destination address in the CIDR notation format
- nexthop String
- The next hop. Value depends on the route type.
- type String
- The route type. Check API reference for supperted types.
- description string
- Route description.
- destination string
- The destination address in the CIDR notation format
- nexthop string
- The next hop. Value depends on the route type.
- type string
- The route type. Check API reference for supperted types.
- description str
- Route description.
- destination str
- The destination address in the CIDR notation format
- nexthop str
- The next hop. Value depends on the route type.
- type str
- The route type. Check API reference for supperted types.
- description String
- Route description.
- destination String
- The destination address in the CIDR notation format
- nexthop String
- The next hop. Value depends on the route type.
- type String
- The route type. Check API reference for supperted types.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud