ibm.getIsVpcDefaultRoutingTable
Explore with Pulumi AI
Retrieve information of an existing IBM Cloud Infrastructure Virtual Pricate Cloud default routing table as a read-only data source. For more information, about VPC default routing table, 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 exampleIsVpcDefaultRoutingTable = ibm.getIsVpcDefaultRoutingTableOutput({
vpc: exampleIsVpc.isVpcId,
});
import pulumi
import pulumi_ibm as ibm
example_is_vpc = ibm.IsVpc("exampleIsVpc")
example_is_vpc_default_routing_table = ibm.get_is_vpc_default_routing_table_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.GetIsVpcDefaultRoutingTableOutput(ctx, ibm.GetIsVpcDefaultRoutingTableOutputArgs{
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 exampleIsVpcDefaultRoutingTable = Ibm.GetIsVpcDefaultRoutingTable.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.GetIsVpcDefaultRoutingTableArgs;
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 exampleIsVpcDefaultRoutingTable = IbmFunctions.getIsVpcDefaultRoutingTable(GetIsVpcDefaultRoutingTableArgs.builder()
.vpc(exampleIsVpc.isVpcId())
.build());
}
}
resources:
exampleIsVpc:
type: ibm:IsVpc
variables:
exampleIsVpcDefaultRoutingTable:
fn::invoke:
function: ibm:getIsVpcDefaultRoutingTable
arguments:
vpc: ${exampleIsVpc.isVpcId}
Using getIsVpcDefaultRoutingTable
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 getIsVpcDefaultRoutingTable(args: GetIsVpcDefaultRoutingTableArgs, opts?: InvokeOptions): Promise<GetIsVpcDefaultRoutingTableResult>
function getIsVpcDefaultRoutingTableOutput(args: GetIsVpcDefaultRoutingTableOutputArgs, opts?: InvokeOptions): Output<GetIsVpcDefaultRoutingTableResult>
def get_is_vpc_default_routing_table(id: Optional[str] = None,
vpc: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsVpcDefaultRoutingTableResult
def get_is_vpc_default_routing_table_output(id: Optional[pulumi.Input[str]] = None,
vpc: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsVpcDefaultRoutingTableResult]
func GetIsVpcDefaultRoutingTable(ctx *Context, args *GetIsVpcDefaultRoutingTableArgs, opts ...InvokeOption) (*GetIsVpcDefaultRoutingTableResult, error)
func GetIsVpcDefaultRoutingTableOutput(ctx *Context, args *GetIsVpcDefaultRoutingTableOutputArgs, opts ...InvokeOption) GetIsVpcDefaultRoutingTableResultOutput
> Note: This function is named GetIsVpcDefaultRoutingTable
in the Go SDK.
public static class GetIsVpcDefaultRoutingTable
{
public static Task<GetIsVpcDefaultRoutingTableResult> InvokeAsync(GetIsVpcDefaultRoutingTableArgs args, InvokeOptions? opts = null)
public static Output<GetIsVpcDefaultRoutingTableResult> Invoke(GetIsVpcDefaultRoutingTableInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsVpcDefaultRoutingTableResult> getIsVpcDefaultRoutingTable(GetIsVpcDefaultRoutingTableArgs args, InvokeOptions options)
public static Output<GetIsVpcDefaultRoutingTableResult> getIsVpcDefaultRoutingTable(GetIsVpcDefaultRoutingTableArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsVpcDefaultRoutingTable:getIsVpcDefaultRoutingTable
arguments:
# arguments dictionary
The following arguments are supported:
getIsVpcDefaultRoutingTable Result
The following output properties are available:
- List<string>
- (List) Access management tags associated for the default routing table.
- Created
At string - (Timestamp) The date and time that the default routing table was created.
- Crn string
- (String) The crn for this default routing table.
- Default
Routing stringTable - (String) The unique identifier for this routing table.
- Href string
- (String) The routing table URL.
- Id string
- (String) The unique ID of the subnet.
- Is
Default bool - (String) Indicates the default routing table for this VPC.
- Lifecycle
State string - (String) The lifecycle state of the routing table.
- Name string
- (String) The name of the subnet.
- Resource
Groups List<GetIs Vpc Default Routing Table Resource Group> - Resource
Type string - (String) The resource type.
- Route
Direct boolLink Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Direct Link to the VPC.
- Route
Internet boolIngress - (Bool) Indicates whether this routing table is used to route traffic that originates from the internet.
- Route
Transit boolGateway Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- Route
Vpc boolZone Ingress - (Bool) Indicates the routing table is used to route traffic that originates from subnets in other zones in the VPC.
- Routes
List<Get
Is Vpc Default Routing Table Route> - (List) The routes for the default routing table.
- Subnets
List<Get
Is Vpc Default Routing Table Subnet> - (List) The subnets to which routing table is attached.
- List<string>
- (List) Tags associated with the default routing table.
- Vpc string
- []string
- (List) Access management tags associated for the default routing table.
- Created
At string - (Timestamp) The date and time that the default routing table was created.
- Crn string
- (String) The crn for this default routing table.
- Default
Routing stringTable - (String) The unique identifier for this routing table.
- Href string
- (String) The routing table URL.
- Id string
- (String) The unique ID of the subnet.
- Is
Default bool - (String) Indicates the default routing table for this VPC.
- Lifecycle
State string - (String) The lifecycle state of the routing table.
- Name string
- (String) The name of the subnet.
- Resource
Groups []GetIs Vpc Default Routing Table Resource Group - Resource
Type string - (String) The resource type.
- Route
Direct boolLink Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Direct Link to the VPC.
- Route
Internet boolIngress - (Bool) Indicates whether this routing table is used to route traffic that originates from the internet.
- Route
Transit boolGateway Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- Route
Vpc boolZone Ingress - (Bool) Indicates the routing table is used to route traffic that originates from subnets in other zones in the VPC.
- Routes
[]Get
Is Vpc Default Routing Table Route - (List) The routes for the default routing table.
- Subnets
[]Get
Is Vpc Default Routing Table Subnet - (List) The subnets to which routing table is attached.
- []string
- (List) Tags associated with the default routing table.
- Vpc string
- List<String>
- (List) Access management tags associated for the default routing table.
- created
At String - (Timestamp) The date and time that the default routing table was created.
- crn String
- (String) The crn for this default routing table.
- default
Routing StringTable - (String) The unique identifier for this routing table.
- href String
- (String) The routing table URL.
- id String
- (String) The unique ID of the subnet.
- is
Default Boolean - (String) Indicates the default routing table for this VPC.
- lifecycle
State String - (String) The lifecycle state of the routing table.
- name String
- (String) The name of the subnet.
- resource
Groups List<GetIs Vpc Default Routing Table Resource Group> - resource
Type String - (String) The resource type.
- route
Direct BooleanLink Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Direct Link to the VPC.
- route
Internet BooleanIngress - (Bool) Indicates whether this routing table is used to route traffic that originates from the internet.
- route
Transit BooleanGateway Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- route
Vpc BooleanZone Ingress - (Bool) Indicates the routing table is used to route traffic that originates from subnets in other zones in the VPC.
- routes
List<Get
Is Vpc Default Routing Table Route> - (List) The routes for the default routing table.
- subnets
List<Get
Is Vpc Default Routing Table Subnet> - (List) The subnets to which routing table is attached.
- List<String>
- (List) Tags associated with the default routing table.
- vpc String
- string[]
- (List) Access management tags associated for the default routing table.
- created
At string - (Timestamp) The date and time that the default routing table was created.
- crn string
- (String) The crn for this default routing table.
- default
Routing stringTable - (String) The unique identifier for this routing table.
- href string
- (String) The routing table URL.
- id string
- (String) The unique ID of the subnet.
- is
Default boolean - (String) Indicates the default routing table for this VPC.
- lifecycle
State string - (String) The lifecycle state of the routing table.
- name string
- (String) The name of the subnet.
- resource
Groups GetIs Vpc Default Routing Table Resource Group[] - resource
Type string - (String) The resource type.
- route
Direct booleanLink Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Direct Link to the VPC.
- route
Internet booleanIngress - (Bool) Indicates whether this routing table is used to route traffic that originates from the internet.
- route
Transit booleanGateway Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- route
Vpc booleanZone Ingress - (Bool) Indicates the routing table is used to route traffic that originates from subnets in other zones in the VPC.
- routes
Get
Is Vpc Default Routing Table Route[] - (List) The routes for the default routing table.
- subnets
Get
Is Vpc Default Routing Table Subnet[] - (List) The subnets to which routing table is attached.
- string[]
- (List) Tags associated with the default routing table.
- vpc string
- Sequence[str]
- (List) Access management tags associated for the default routing table.
- created_
at str - (Timestamp) The date and time that the default routing table was created.
- crn str
- (String) The crn for this default routing table.
- default_
routing_ strtable - (String) The unique identifier for this routing table.
- href str
- (String) The routing table URL.
- id str
- (String) The unique ID of the subnet.
- is_
default bool - (String) Indicates the default routing table for this VPC.
- lifecycle_
state str - (String) The lifecycle state of the routing table.
- name str
- (String) The name of the subnet.
- resource_
groups Sequence[GetIs Vpc Default Routing Table Resource Group] - resource_
type str - (String) The resource type.
- route_
direct_ boollink_ ingress - (Bool) Indicates the routing table is used to route traffic that originates from Direct Link to the VPC.
- route_
internet_ boolingress - (Bool) Indicates whether this routing table is used to route traffic that originates from the internet.
- route_
transit_ boolgateway_ ingress - (Bool) Indicates the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- route_
vpc_ boolzone_ ingress - (Bool) Indicates the routing table is used to route traffic that originates from subnets in other zones in the VPC.
- routes
Sequence[Get
Is Vpc Default Routing Table Route] - (List) The routes for the default routing table.
- subnets
Sequence[Get
Is Vpc Default Routing Table Subnet] - (List) The subnets to which routing table is attached.
- Sequence[str]
- (List) Tags associated with the default routing table.
- vpc str
- List<String>
- (List) Access management tags associated for the default routing table.
- created
At String - (Timestamp) The date and time that the default routing table was created.
- crn String
- (String) The crn for this default routing table.
- default
Routing StringTable - (String) The unique identifier for this routing table.
- href String
- (String) The routing table URL.
- id String
- (String) The unique ID of the subnet.
- is
Default Boolean - (String) Indicates the default routing table for this VPC.
- lifecycle
State String - (String) The lifecycle state of the routing table.
- name String
- (String) The name of the subnet.
- resource
Groups List<Property Map> - resource
Type String - (String) The resource type.
- route
Direct BooleanLink Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Direct Link to the VPC.
- route
Internet BooleanIngress - (Bool) Indicates whether this routing table is used to route traffic that originates from the internet.
- route
Transit BooleanGateway Ingress - (Bool) Indicates the routing table is used to route traffic that originates from Transit Gateway to the VPC.
- route
Vpc BooleanZone Ingress - (Bool) Indicates the routing table is used to route traffic that originates from subnets in other zones in the VPC.
- routes List<Property Map>
- (List) The routes for the default routing table.
- subnets List<Property Map>
- (List) The subnets to which routing table is attached.
- List<String>
- (List) Tags associated with the default routing table.
- vpc String
Supporting Types
GetIsVpcDefaultRoutingTableResourceGroup
GetIsVpcDefaultRoutingTableRoute
GetIsVpcDefaultRoutingTableSubnet
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.