Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getIngressGatewayRouteTable

This data source provides details about a specific Ingress Gateway Route Table resource in Oracle Cloud Infrastructure Service Mesh service.

Gets a IngressGatewayRouteTable by identifier.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testIngressGatewayRouteTable = Oci.ServiceMesh.GetIngressGatewayRouteTable.Invoke(new()
    {
        IngressGatewayRouteTableId = oci_service_mesh_ingress_gateway_route_table.Test_ingress_gateway_route_table.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/ServiceMesh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ServiceMesh.GetIngressGatewayRouteTable(ctx, &servicemesh.GetIngressGatewayRouteTableArgs{
			IngressGatewayRouteTableId: oci_service_mesh_ingress_gateway_route_table.Test_ingress_gateway_route_table.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ServiceMesh.ServiceMeshFunctions;
import com.pulumi.oci.ServiceMesh.inputs.GetIngressGatewayRouteTableArgs;
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 testIngressGatewayRouteTable = ServiceMeshFunctions.getIngressGatewayRouteTable(GetIngressGatewayRouteTableArgs.builder()
            .ingressGatewayRouteTableId(oci_service_mesh_ingress_gateway_route_table.test_ingress_gateway_route_table().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_ingress_gateway_route_table = oci.ServiceMesh.get_ingress_gateway_route_table(ingress_gateway_route_table_id=oci_service_mesh_ingress_gateway_route_table["test_ingress_gateway_route_table"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testIngressGatewayRouteTable = oci.ServiceMesh.getIngressGatewayRouteTable({
    ingressGatewayRouteTableId: oci_service_mesh_ingress_gateway_route_table.test_ingress_gateway_route_table.id,
});
variables:
  testIngressGatewayRouteTable:
    Fn::Invoke:
      Function: oci:ServiceMesh:getIngressGatewayRouteTable
      Arguments:
        ingressGatewayRouteTableId: ${oci_service_mesh_ingress_gateway_route_table.test_ingress_gateway_route_table.id}

Using getIngressGatewayRouteTable

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 getIngressGatewayRouteTable(args: GetIngressGatewayRouteTableArgs, opts?: InvokeOptions): Promise<GetIngressGatewayRouteTableResult>
function getIngressGatewayRouteTableOutput(args: GetIngressGatewayRouteTableOutputArgs, opts?: InvokeOptions): Output<GetIngressGatewayRouteTableResult>
def get_ingress_gateway_route_table(ingress_gateway_route_table_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetIngressGatewayRouteTableResult
def get_ingress_gateway_route_table_output(ingress_gateway_route_table_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetIngressGatewayRouteTableResult]
func GetIngressGatewayRouteTable(ctx *Context, args *GetIngressGatewayRouteTableArgs, opts ...InvokeOption) (*GetIngressGatewayRouteTableResult, error)
func GetIngressGatewayRouteTableOutput(ctx *Context, args *GetIngressGatewayRouteTableOutputArgs, opts ...InvokeOption) GetIngressGatewayRouteTableResultOutput

> Note: This function is named GetIngressGatewayRouteTable in the Go SDK.

public static class GetIngressGatewayRouteTable 
{
    public static Task<GetIngressGatewayRouteTableResult> InvokeAsync(GetIngressGatewayRouteTableArgs args, InvokeOptions? opts = null)
    public static Output<GetIngressGatewayRouteTableResult> Invoke(GetIngressGatewayRouteTableInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIngressGatewayRouteTableResult> getIngressGatewayRouteTable(GetIngressGatewayRouteTableArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:ServiceMesh/getIngressGatewayRouteTable:getIngressGatewayRouteTable
  Arguments:
    # Arguments dictionary

The following arguments are supported:

IngressGatewayRouteTableId string

Unique IngressGatewayRouteTable identifier.

IngressGatewayRouteTableId string

Unique IngressGatewayRouteTable identifier.

ingressGatewayRouteTableId String

Unique IngressGatewayRouteTable identifier.

ingressGatewayRouteTableId string

Unique IngressGatewayRouteTable identifier.

ingress_gateway_route_table_id str

Unique IngressGatewayRouteTable identifier.

ingressGatewayRouteTableId String

Unique IngressGatewayRouteTable identifier.

getIngressGatewayRouteTable Result

The following output properties are available:

CompartmentId string

The OCID of the compartment.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource

FreeformTags Dictionary<string, object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

Unique identifier that is immutable on creation.

IngressGatewayId string

The OCID of the ingress gateway.

IngressGatewayRouteTableId string
LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

Name string

Name of the ingress gateway host that this route should apply to.

Priority int

The priority of the route table. A lower value means a higher priority. The routes are declared based on the priority.

RouteRules List<GetIngressGatewayRouteTableRouteRule>

The route rules for the ingress gateway.

State string

The current state of the Resource.

SystemTags Dictionary<string, object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time when this resource was created in an RFC3339 formatted datetime string.

TimeUpdated string

The time when this resource was updated in an RFC3339 formatted datetime string.

CompartmentId string

The OCID of the compartment.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource

FreeformTags map[string]interface{}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

Unique identifier that is immutable on creation.

IngressGatewayId string

The OCID of the ingress gateway.

IngressGatewayRouteTableId string
LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

Name string

Name of the ingress gateway host that this route should apply to.

Priority int

The priority of the route table. A lower value means a higher priority. The routes are declared based on the priority.

RouteRules []GetIngressGatewayRouteTableRouteRule

The route rules for the ingress gateway.

State string

The current state of the Resource.

SystemTags map[string]interface{}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time when this resource was created in an RFC3339 formatted datetime string.

TimeUpdated string

The time when this resource was updated in an RFC3339 formatted datetime string.

compartmentId String

The OCID of the compartment.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource

freeformTags Map<String,Object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

Unique identifier that is immutable on creation.

ingressGatewayId String

The OCID of the ingress gateway.

ingressGatewayRouteTableId String
lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

name String

Name of the ingress gateway host that this route should apply to.

priority Integer

The priority of the route table. A lower value means a higher priority. The routes are declared based on the priority.

routeRules List<GetIngressGatewayRouteTableRouteRule>

The route rules for the ingress gateway.

state String

The current state of the Resource.

systemTags Map<String,Object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time when this resource was created in an RFC3339 formatted datetime string.

timeUpdated String

The time when this resource was updated in an RFC3339 formatted datetime string.

compartmentId string

The OCID of the compartment.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description string

Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource

freeformTags {[key: string]: any}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id string

Unique identifier that is immutable on creation.

ingressGatewayId string

The OCID of the ingress gateway.

ingressGatewayRouteTableId string
lifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

name string

Name of the ingress gateway host that this route should apply to.

priority number

The priority of the route table. A lower value means a higher priority. The routes are declared based on the priority.

routeRules GetIngressGatewayRouteTableRouteRule[]

The route rules for the ingress gateway.

state string

The current state of the Resource.

systemTags {[key: string]: any}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The time when this resource was created in an RFC3339 formatted datetime string.

timeUpdated string

The time when this resource was updated in an RFC3339 formatted datetime string.

compartment_id str

The OCID of the compartment.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description str

Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource

freeform_tags Mapping[str, Any]

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id str

Unique identifier that is immutable on creation.

ingress_gateway_id str

The OCID of the ingress gateway.

ingress_gateway_route_table_id str
lifecycle_details str

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

name str

Name of the ingress gateway host that this route should apply to.

priority int

The priority of the route table. A lower value means a higher priority. The routes are declared based on the priority.

route_rules GetIngressGatewayRouteTableRouteRule]

The route rules for the ingress gateway.

state str

The current state of the Resource.

system_tags Mapping[str, Any]

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The time when this resource was created in an RFC3339 formatted datetime string.

time_updated str

The time when this resource was updated in an RFC3339 formatted datetime string.

compartmentId String

The OCID of the compartment.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource

freeformTags Map<Any>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

Unique identifier that is immutable on creation.

ingressGatewayId String

The OCID of the ingress gateway.

ingressGatewayRouteTableId String
lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

name String

Name of the ingress gateway host that this route should apply to.

priority Number

The priority of the route table. A lower value means a higher priority. The routes are declared based on the priority.

routeRules List<Property Map>

The route rules for the ingress gateway.

state String

The current state of the Resource.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time when this resource was created in an RFC3339 formatted datetime string.

timeUpdated String

The time when this resource was updated in an RFC3339 formatted datetime string.

Supporting Types

GetIngressGatewayRouteTableRouteRule

Destinations List<GetIngressGatewayRouteTableRouteRuleDestination>

The destination of the request.

IngressGatewayHosts List<GetIngressGatewayRouteTableRouteRuleIngressGatewayHost>

The ingress gateway host to which the route rule attaches. If not specified, the route rule gets attached to all hosts on the ingress gateway.

IsGrpc bool

If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.

IsHostRewriteEnabled bool

If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.

IsPathRewriteEnabled bool

If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.

Path string

Route to match

PathType string

Match type for the route

Type string

Type of protocol.

Destinations []GetIngressGatewayRouteTableRouteRuleDestination

The destination of the request.

IngressGatewayHosts []GetIngressGatewayRouteTableRouteRuleIngressGatewayHost

The ingress gateway host to which the route rule attaches. If not specified, the route rule gets attached to all hosts on the ingress gateway.

IsGrpc bool

If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.

IsHostRewriteEnabled bool

If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.

IsPathRewriteEnabled bool

If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.

Path string

Route to match

PathType string

Match type for the route

Type string

Type of protocol.

destinations List<GetIngressGatewayRouteTableRouteRuleDestination>

The destination of the request.

ingressGatewayHosts List<GetIngressGatewayRouteTableRouteRuleIngressGatewayHost>

The ingress gateway host to which the route rule attaches. If not specified, the route rule gets attached to all hosts on the ingress gateway.

isGrpc Boolean

If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.

isHostRewriteEnabled Boolean

If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.

isPathRewriteEnabled Boolean

If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.

path String

Route to match

pathType String

Match type for the route

type String

Type of protocol.

destinations GetIngressGatewayRouteTableRouteRuleDestination[]

The destination of the request.

ingressGatewayHosts GetIngressGatewayRouteTableRouteRuleIngressGatewayHost[]

The ingress gateway host to which the route rule attaches. If not specified, the route rule gets attached to all hosts on the ingress gateway.

isGrpc boolean

If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.

isHostRewriteEnabled boolean

If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.

isPathRewriteEnabled boolean

If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.

path string

Route to match

pathType string

Match type for the route

type string

Type of protocol.

destinations GetIngressGatewayRouteTableRouteRuleDestination]

The destination of the request.

ingress_gateway_hosts GetIngressGatewayRouteTableRouteRuleIngressGatewayHost]

The ingress gateway host to which the route rule attaches. If not specified, the route rule gets attached to all hosts on the ingress gateway.

is_grpc bool

If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.

is_host_rewrite_enabled bool

If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.

is_path_rewrite_enabled bool

If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.

path str

Route to match

path_type str

Match type for the route

type str

Type of protocol.

destinations List<Property Map>

The destination of the request.

ingressGatewayHosts List<Property Map>

The ingress gateway host to which the route rule attaches. If not specified, the route rule gets attached to all hosts on the ingress gateway.

isGrpc Boolean

If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.

isHostRewriteEnabled Boolean

If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.

isPathRewriteEnabled Boolean

If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.

path String

Route to match

pathType String

Match type for the route

type String

Type of protocol.

GetIngressGatewayRouteTableRouteRuleDestination

Port int

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

VirtualServiceId string

The OCID of the virtual service where the request will be routed.

Weight int

Weight of traffic target.

Port int

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

VirtualServiceId string

The OCID of the virtual service where the request will be routed.

Weight int

Weight of traffic target.

port Integer

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

virtualServiceId String

The OCID of the virtual service where the request will be routed.

weight Integer

Weight of traffic target.

port number

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

virtualServiceId string

The OCID of the virtual service where the request will be routed.

weight number

Weight of traffic target.

port int

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

virtual_service_id str

The OCID of the virtual service where the request will be routed.

weight int

Weight of traffic target.

port Number

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

virtualServiceId String

The OCID of the virtual service where the request will be routed.

weight Number

Weight of traffic target.

GetIngressGatewayRouteTableRouteRuleIngressGatewayHost

Name string

Name of the ingress gateway host that this route should apply to.

Port int

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

Name string

Name of the ingress gateway host that this route should apply to.

Port int

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

name String

Name of the ingress gateway host that this route should apply to.

port Integer

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

name string

Name of the ingress gateway host that this route should apply to.

port number

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

name str

Name of the ingress gateway host that this route should apply to.

port int

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

name String

Name of the ingress gateway host that this route should apply to.

port Number

The port of the ingress gateway host listener. Leave empty to match all ports for the host.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.