1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getVpcRouteTablesV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getVpcRouteTablesV1

Explore with Pulumi AI

opentelekomcloud logo
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:

    Id string
    Specifies the ID of the route table.
    SubnetId string
    Specifies the id of the subnet. Note: the corresponding subnet resource attribute is network_id.
    VpcId string
    Specifies the VPC ID where the route tables reside.
    Id string
    Specifies the ID of the route table.
    SubnetId string
    Specifies the id of the subnet. Note: the corresponding subnet resource attribute is network_id.
    VpcId string
    Specifies the VPC ID where the route tables reside.
    id String
    Specifies the ID of the route table.
    subnetId String
    Specifies the id of the subnet. Note: the corresponding subnet resource attribute is network_id.
    vpcId String
    Specifies the VPC ID where the route tables reside.
    id string
    Specifies the ID of the route table.
    subnetId string
    Specifies the id of the subnet. Note: the corresponding subnet resource attribute is network_id.
    vpcId string
    Specifies the VPC ID where the route tables reside.
    id str
    Specifies the ID of the route table.
    subnet_id str
    Specifies the id of the subnet. Note: the corresponding subnet resource attribute is network_id.
    vpc_id str
    Specifies the VPC ID where the route tables reside.
    id String
    Specifies the ID of the route table.
    subnetId String
    Specifies the id of the subnet. Note: the corresponding subnet resource attribute is network_id.
    vpcId String
    Specifies the VPC ID where the route tables reside.

    getVpcRouteTablesV1 Result

    The following output properties are available:

    Routetables List<GetVpcRouteTablesV1Routetable>
    list of routetable object (documented below)
    Id string
    SubnetId string
    VpcId string
    VPC Id to which route table belongs.
    Routetables []GetVpcRouteTablesV1Routetable
    list of routetable object (documented below)
    Id string
    SubnetId string
    VpcId string
    VPC Id to which route table belongs.
    routetables List<GetVpcRouteTablesV1Routetable>
    list of routetable object (documented below)
    id String
    subnetId String
    vpcId String
    VPC Id to which route table belongs.
    routetables GetVpcRouteTablesV1Routetable[]
    list of routetable object (documented below)
    id string
    subnetId string
    vpcId string
    VPC Id to which route table belongs.
    routetables Sequence[GetVpcRouteTablesV1Routetable]
    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
    subnetId String
    vpcId 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<GetVpcRouteTablesV1RoutetableRoute>
    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.
    TenantId string
    Project id to which route table belongs.
    VpcId 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 []GetVpcRouteTablesV1RoutetableRoute
    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.
    TenantId string
    Project id to which route table belongs.
    VpcId 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<GetVpcRouteTablesV1RoutetableRoute>
    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.
    tenantId String
    Project id to which route table belongs.
    vpcId 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 GetVpcRouteTablesV1RoutetableRoute[]
    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.
    tenantId string
    Project id to which route table belongs.
    vpcId 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[GetVpcRouteTablesV1RoutetableRoute]
    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.
    tenantId String
    Project id to which route table belongs.
    vpcId 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 logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud