ibm.getIsVpcRoutingTables
Explore with Pulumi AI
Retrieve information of an existing IBM Cloud infrastructure VPC default routing tables. For more information, about VPC routing tables, see about routing tables and routes
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
const exampleIsVpcRoutingTables = ibm.getIsVpcRoutingTablesOutput({
vpc: exampleIsVpc.isVpcId,
});
import pulumi
import pulumi_ibm as ibm
example_is_vpc = ibm.IsVpc("exampleIsVpc")
example_is_vpc_routing_tables = ibm.get_is_vpc_routing_tables_output(vpc=example_is_vpc.is_vpc_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
if err != nil {
return err
}
_ = ibm.GetIsVpcRoutingTablesOutput(ctx, ibm.GetIsVpcRoutingTablesOutputArgs{
Vpc: exampleIsVpc.IsVpcId,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
var exampleIsVpcRoutingTables = Ibm.GetIsVpcRoutingTables.Invoke(new()
{
Vpc = exampleIsVpc.IsVpcId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsVpc;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsVpcRoutingTablesArgs;
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 exampleIsVpc = new IsVpc("exampleIsVpc");
final var exampleIsVpcRoutingTables = IbmFunctions.getIsVpcRoutingTables(GetIsVpcRoutingTablesArgs.builder()
.vpc(exampleIsVpc.isVpcId())
.build());
}
}
resources:
exampleIsVpc:
type: ibm:IsVpc
variables:
exampleIsVpcRoutingTables:
fn::invoke:
function: ibm:getIsVpcRoutingTables
arguments:
vpc: ${exampleIsVpc.isVpcId}
Using getIsVpcRoutingTables
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 getIsVpcRoutingTables(args: GetIsVpcRoutingTablesArgs, opts?: InvokeOptions): Promise<GetIsVpcRoutingTablesResult>
function getIsVpcRoutingTablesOutput(args: GetIsVpcRoutingTablesOutputArgs, opts?: InvokeOptions): Output<GetIsVpcRoutingTablesResult>
def get_is_vpc_routing_tables(id: Optional[str] = None,
is_default: Optional[bool] = None,
vpc: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsVpcRoutingTablesResult
def get_is_vpc_routing_tables_output(id: Optional[pulumi.Input[str]] = None,
is_default: Optional[pulumi.Input[bool]] = None,
vpc: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsVpcRoutingTablesResult]
func GetIsVpcRoutingTables(ctx *Context, args *GetIsVpcRoutingTablesArgs, opts ...InvokeOption) (*GetIsVpcRoutingTablesResult, error)
func GetIsVpcRoutingTablesOutput(ctx *Context, args *GetIsVpcRoutingTablesOutputArgs, opts ...InvokeOption) GetIsVpcRoutingTablesResultOutput
> Note: This function is named GetIsVpcRoutingTables
in the Go SDK.
public static class GetIsVpcRoutingTables
{
public static Task<GetIsVpcRoutingTablesResult> InvokeAsync(GetIsVpcRoutingTablesArgs args, InvokeOptions? opts = null)
public static Output<GetIsVpcRoutingTablesResult> Invoke(GetIsVpcRoutingTablesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsVpcRoutingTablesResult> getIsVpcRoutingTables(GetIsVpcRoutingTablesArgs args, InvokeOptions options)
public static Output<GetIsVpcRoutingTablesResult> getIsVpcRoutingTables(GetIsVpcRoutingTablesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsVpcRoutingTables:getIsVpcRoutingTables
arguments:
# arguments dictionary
The following arguments are supported:
- vpc str
- The ID of the VPC.
- id str
- (String) The unique ID of the subnet.
- is_
default bool - Indicate whether this is the default routing table for this VPC
getIsVpcRoutingTables Result
The following output properties are available:
- Id string
- (String) The unique ID of the subnet.
- Routing
Tables List<GetIs Vpc Routing Tables Routing Table> - (List) List of all the routing tables in a VPC.
- Vpc string
- Is
Default bool - (String) Indicates whether the default routing table.
- Id string
- (String) The unique ID of the subnet.
- Routing
Tables []GetIs Vpc Routing Tables Routing Table - (List) List of all the routing tables in a VPC.
- Vpc string
- Is
Default bool - (String) Indicates whether the default routing table.
- id String
- (String) The unique ID of the subnet.
- routing
Tables List<GetIs Vpc Routing Tables Routing Table> - (List) List of all the routing tables in a VPC.
- vpc String
- is
Default Boolean - (String) Indicates whether the default routing table.
- id string
- (String) The unique ID of the subnet.
- routing
Tables GetIs Vpc Routing Tables Routing Table[] - (List) List of all the routing tables in a VPC.
- vpc string
- is
Default boolean - (String) Indicates whether the default routing table.
- id str
- (String) The unique ID of the subnet.
- routing_
tables Sequence[GetIs Vpc Routing Tables Routing Table] - (List) List of all the routing tables in a VPC.
- vpc str
- is_
default bool - (String) Indicates whether the default routing table.
- id String
- (String) The unique ID of the subnet.
- routing
Tables List<Property Map> - (List) List of all the routing tables in a VPC.
- vpc String
- is
Default Boolean - (String) Indicates whether the default routing table.
Supporting Types
GetIsVpcRoutingTablesRoutingTable
- Accept
Routes List<GetFroms Is Vpc Routing Tables Routing Table Accept Routes From> - (List) The filters specifying the resources that may create routes in this routing table.At present, only the
resource_type
filter is permitted, and only thevpn_gateway
value is supported, but filter support is expected to expand in the future. Nested scheme for accept_routes_from: - List<string>
- (List) Access management tags associated for the routing table.
- Advertise
Routes List<string>Tos - (Optional, List) The ingress sources to advertise routes to. Routes in the table with
advertise
enabled will be advertised to these sources. - Created
At string - (Timestamp) The date and time the routing table was created.
- Href string
- (String) The URL for this resource group.
- Is
Default bool - Indicate whether this is the default routing table for this VPC
- Lifecycle
State string - (String) The lifecycle state of the routing table.
- Name string
- (String) The user-defined name of the subnet.
- Resource
Groups List<GetIs Vpc Routing Tables Routing Table Resource Group> - (List) The resource group for this routing table.
Nested scheme for
resource_group
: - Resource
Type string - (String) The type of resource referenced.
- Route
Direct boolLink Ingress - (String) Indicates if the routing table is used to route traffic that originates from Direct Link to the VPC.
- Route
Internet boolIngress - (Boolean) Indicates whether this routing table is used to route traffic that originates from the internet.
- Route
Transit boolGateway Ingress - (String) Indicates if the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- Route
Vpc boolZone Ingress - (String) Indicates if the routing table is used to route traffic that originates from subnets in other zones of the VPC.
- Routes
List<Get
Is Vpc Routing Tables Routing Table Route> - (List) The routes for the routing table.
Nested scheme for
routes
: - Routing
Table string - Routing
Table stringCrn - Subnets
List<Get
Is Vpc Routing Tables Routing Table Subnet> - (List) The subnets to which routing table is attached.
Nested scheme forsubnets
: - List<string>
- (List) Tags associated with the routing table.
- Accept
Routes []GetFroms Is Vpc Routing Tables Routing Table Accept Routes From - (List) The filters specifying the resources that may create routes in this routing table.At present, only the
resource_type
filter is permitted, and only thevpn_gateway
value is supported, but filter support is expected to expand in the future. Nested scheme for accept_routes_from: - []string
- (List) Access management tags associated for the routing table.
- Advertise
Routes []stringTos - (Optional, List) The ingress sources to advertise routes to. Routes in the table with
advertise
enabled will be advertised to these sources. - Created
At string - (Timestamp) The date and time the routing table was created.
- Href string
- (String) The URL for this resource group.
- Is
Default bool - Indicate whether this is the default routing table for this VPC
- Lifecycle
State string - (String) The lifecycle state of the routing table.
- Name string
- (String) The user-defined name of the subnet.
- Resource
Groups []GetIs Vpc Routing Tables Routing Table Resource Group - (List) The resource group for this routing table.
Nested scheme for
resource_group
: - Resource
Type string - (String) The type of resource referenced.
- Route
Direct boolLink Ingress - (String) Indicates if the routing table is used to route traffic that originates from Direct Link to the VPC.
- Route
Internet boolIngress - (Boolean) Indicates whether this routing table is used to route traffic that originates from the internet.
- Route
Transit boolGateway Ingress - (String) Indicates if the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- Route
Vpc boolZone Ingress - (String) Indicates if the routing table is used to route traffic that originates from subnets in other zones of the VPC.
- Routes
[]Get
Is Vpc Routing Tables Routing Table Route - (List) The routes for the routing table.
Nested scheme for
routes
: - Routing
Table string - Routing
Table stringCrn - Subnets
[]Get
Is Vpc Routing Tables Routing Table Subnet - (List) The subnets to which routing table is attached.
Nested scheme forsubnets
: - []string
- (List) Tags associated with the routing table.
- accept
Routes List<GetFroms Is Vpc Routing Tables Routing Table Accept Routes From> - (List) The filters specifying the resources that may create routes in this routing table.At present, only the
resource_type
filter is permitted, and only thevpn_gateway
value is supported, but filter support is expected to expand in the future. Nested scheme for accept_routes_from: - List<String>
- (List) Access management tags associated for the routing table.
- advertise
Routes List<String>Tos - (Optional, List) The ingress sources to advertise routes to. Routes in the table with
advertise
enabled will be advertised to these sources. - created
At String - (Timestamp) The date and time the routing table was created.
- href String
- (String) The URL for this resource group.
- is
Default Boolean - Indicate whether this is the default routing table for this VPC
- lifecycle
State String - (String) The lifecycle state of the routing table.
- name String
- (String) The user-defined name of the subnet.
- resource
Groups List<GetIs Vpc Routing Tables Routing Table Resource Group> - (List) The resource group for this routing table.
Nested scheme for
resource_group
: - resource
Type String - (String) The type of resource referenced.
- route
Direct BooleanLink Ingress - (String) Indicates if the routing table is used to route traffic that originates from Direct Link to the VPC.
- route
Internet BooleanIngress - (Boolean) Indicates whether this routing table is used to route traffic that originates from the internet.
- route
Transit BooleanGateway Ingress - (String) Indicates if the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- route
Vpc BooleanZone Ingress - (String) Indicates if the routing table is used to route traffic that originates from subnets in other zones of the VPC.
- routes
List<Get
Is Vpc Routing Tables Routing Table Route> - (List) The routes for the routing table.
Nested scheme for
routes
: - routing
Table String - routing
Table StringCrn - subnets
List<Get
Is Vpc Routing Tables Routing Table Subnet> - (List) The subnets to which routing table is attached.
Nested scheme forsubnets
: - List<String>
- (List) Tags associated with the routing table.
- accept
Routes GetFroms Is Vpc Routing Tables Routing Table Accept Routes From[] - (List) The filters specifying the resources that may create routes in this routing table.At present, only the
resource_type
filter is permitted, and only thevpn_gateway
value is supported, but filter support is expected to expand in the future. Nested scheme for accept_routes_from: - string[]
- (List) Access management tags associated for the routing table.
- advertise
Routes string[]Tos - (Optional, List) The ingress sources to advertise routes to. Routes in the table with
advertise
enabled will be advertised to these sources. - created
At string - (Timestamp) The date and time the routing table was created.
- href string
- (String) The URL for this resource group.
- is
Default boolean - Indicate whether this is the default routing table for this VPC
- lifecycle
State string - (String) The lifecycle state of the routing table.
- name string
- (String) The user-defined name of the subnet.
- resource
Groups GetIs Vpc Routing Tables Routing Table Resource Group[] - (List) The resource group for this routing table.
Nested scheme for
resource_group
: - resource
Type string - (String) The type of resource referenced.
- route
Direct booleanLink Ingress - (String) Indicates if the routing table is used to route traffic that originates from Direct Link to the VPC.
- route
Internet booleanIngress - (Boolean) Indicates whether this routing table is used to route traffic that originates from the internet.
- route
Transit booleanGateway Ingress - (String) Indicates if the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- route
Vpc booleanZone Ingress - (String) Indicates if the routing table is used to route traffic that originates from subnets in other zones of the VPC.
- routes
Get
Is Vpc Routing Tables Routing Table Route[] - (List) The routes for the routing table.
Nested scheme for
routes
: - routing
Table string - routing
Table stringCrn - subnets
Get
Is Vpc Routing Tables Routing Table Subnet[] - (List) The subnets to which routing table is attached.
Nested scheme forsubnets
: - string[]
- (List) Tags associated with the routing table.
- accept_
routes_ Sequence[Getfroms Is Vpc Routing Tables Routing Table Accept Routes From] - (List) The filters specifying the resources that may create routes in this routing table.At present, only the
resource_type
filter is permitted, and only thevpn_gateway
value is supported, but filter support is expected to expand in the future. Nested scheme for accept_routes_from: - Sequence[str]
- (List) Access management tags associated for the routing table.
- advertise_
routes_ Sequence[str]tos - (Optional, List) The ingress sources to advertise routes to. Routes in the table with
advertise
enabled will be advertised to these sources. - created_
at str - (Timestamp) The date and time the routing table was created.
- href str
- (String) The URL for this resource group.
- is_
default bool - Indicate whether this is the default routing table for this VPC
- lifecycle_
state str - (String) The lifecycle state of the routing table.
- name str
- (String) The user-defined name of the subnet.
- resource_
groups Sequence[GetIs Vpc Routing Tables Routing Table Resource Group] - (List) The resource group for this routing table.
Nested scheme for
resource_group
: - resource_
type str - (String) The type of resource referenced.
- route_
direct_ boollink_ ingress - (String) Indicates if the routing table is used to route traffic that originates from Direct Link to the VPC.
- route_
internet_ boolingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from the internet.
- route_
transit_ boolgateway_ ingress - (String) Indicates if the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- route_
vpc_ boolzone_ ingress - (String) Indicates if the routing table is used to route traffic that originates from subnets in other zones of the VPC.
- routes
Sequence[Get
Is Vpc Routing Tables Routing Table Route] - (List) The routes for the routing table.
Nested scheme for
routes
: - routing_
table str - routing_
table_ strcrn - subnets
Sequence[Get
Is Vpc Routing Tables Routing Table Subnet] - (List) The subnets to which routing table is attached.
Nested scheme forsubnets
: - Sequence[str]
- (List) Tags associated with the routing table.
- accept
Routes List<Property Map>Froms - (List) The filters specifying the resources that may create routes in this routing table.At present, only the
resource_type
filter is permitted, and only thevpn_gateway
value is supported, but filter support is expected to expand in the future. Nested scheme for accept_routes_from: - List<String>
- (List) Access management tags associated for the routing table.
- advertise
Routes List<String>Tos - (Optional, List) The ingress sources to advertise routes to. Routes in the table with
advertise
enabled will be advertised to these sources. - created
At String - (Timestamp) The date and time the routing table was created.
- href String
- (String) The URL for this resource group.
- is
Default Boolean - Indicate whether this is the default routing table for this VPC
- lifecycle
State String - (String) The lifecycle state of the routing table.
- name String
- (String) The user-defined name of the subnet.
- resource
Groups List<Property Map> - (List) The resource group for this routing table.
Nested scheme for
resource_group
: - resource
Type String - (String) The type of resource referenced.
- route
Direct BooleanLink Ingress - (String) Indicates if the routing table is used to route traffic that originates from Direct Link to the VPC.
- route
Internet BooleanIngress - (Boolean) Indicates whether this routing table is used to route traffic that originates from the internet.
- route
Transit BooleanGateway Ingress - (String) Indicates if the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- route
Vpc BooleanZone Ingress - (String) Indicates if the routing table is used to route traffic that originates from subnets in other zones of the VPC.
- routes List<Property Map>
- (List) The routes for the routing table.
Nested scheme for
routes
: - routing
Table String - routing
Table StringCrn - subnets List<Property Map>
- (List) The subnets to which routing table is attached.
Nested scheme forsubnets
: - List<String>
- (List) Tags associated with the routing table.
GetIsVpcRoutingTablesRoutingTableAcceptRoutesFrom
- Resource
Type string - (String) The type of resource referenced.
- Resource
Type string - (String) The type of resource referenced.
- resource
Type String - (String) The type of resource referenced.
- resource
Type string - (String) The type of resource referenced.
- resource_
type str - (String) The type of resource referenced.
- resource
Type String - (String) The type of resource referenced.
GetIsVpcRoutingTablesRoutingTableResourceGroup
GetIsVpcRoutingTablesRoutingTableRoute
GetIsVpcRoutingTablesRoutingTableSubnet
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.