1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceMesh
  5. IngressGatewayRouteTable
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.ServiceMesh.IngressGatewayRouteTable

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    This resource provides the Ingress Gateway Route Table resource in Oracle Cloud Infrastructure Service Mesh service.

    Creates a new IngressGatewayRouteTable.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testIngressGatewayRouteTable = new Oci.ServiceMesh.IngressGatewayRouteTable("testIngressGatewayRouteTable", new()
        {
            CompartmentId = @var.Compartment_id,
            IngressGatewayId = oci_service_mesh_ingress_gateway.Test_ingress_gateway.Id,
            RouteRules = new[]
            {
                new Oci.ServiceMesh.Inputs.IngressGatewayRouteTableRouteRuleArgs
                {
                    Destinations = new[]
                    {
                        new Oci.ServiceMesh.Inputs.IngressGatewayRouteTableRouteRuleDestinationArgs
                        {
                            VirtualServiceId = oci_service_mesh_virtual_service.Test_virtual_service.Id,
                            Port = @var.Ingress_gateway_route_table_route_rules_destinations_port,
                            Weight = @var.Ingress_gateway_route_table_route_rules_destinations_weight,
                        },
                    },
                    Type = @var.Ingress_gateway_route_table_route_rules_type,
                    IngressGatewayHost = new Oci.ServiceMesh.Inputs.IngressGatewayRouteTableRouteRuleIngressGatewayHostArgs
                    {
                        Name = @var.Ingress_gateway_route_table_route_rules_ingress_gateway_host_name,
                        Port = @var.Ingress_gateway_route_table_route_rules_ingress_gateway_host_port,
                    },
                    IsGrpc = @var.Ingress_gateway_route_table_route_rules_is_grpc,
                    IsHostRewriteEnabled = @var.Ingress_gateway_route_table_route_rules_is_host_rewrite_enabled,
                    IsPathRewriteEnabled = @var.Ingress_gateway_route_table_route_rules_is_path_rewrite_enabled,
                    Path = @var.Ingress_gateway_route_table_route_rules_path,
                    PathType = @var.Ingress_gateway_route_table_route_rules_path_type,
                    RequestTimeoutInMs = @var.Ingress_gateway_route_table_route_rules_request_timeout_in_ms,
                },
            },
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = @var.Ingress_gateway_route_table_description,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            Priority = @var.Ingress_gateway_route_table_priority,
        });
    
    });
    
    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.NewIngressGatewayRouteTable(ctx, "testIngressGatewayRouteTable", &ServiceMesh.IngressGatewayRouteTableArgs{
    			CompartmentId:    pulumi.Any(_var.Compartment_id),
    			IngressGatewayId: pulumi.Any(oci_service_mesh_ingress_gateway.Test_ingress_gateway.Id),
    			RouteRules: servicemesh.IngressGatewayRouteTableRouteRuleArray{
    				&servicemesh.IngressGatewayRouteTableRouteRuleArgs{
    					Destinations: servicemesh.IngressGatewayRouteTableRouteRuleDestinationArray{
    						&servicemesh.IngressGatewayRouteTableRouteRuleDestinationArgs{
    							VirtualServiceId: pulumi.Any(oci_service_mesh_virtual_service.Test_virtual_service.Id),
    							Port:             pulumi.Any(_var.Ingress_gateway_route_table_route_rules_destinations_port),
    							Weight:           pulumi.Any(_var.Ingress_gateway_route_table_route_rules_destinations_weight),
    						},
    					},
    					Type: pulumi.Any(_var.Ingress_gateway_route_table_route_rules_type),
    					IngressGatewayHost: &servicemesh.IngressGatewayRouteTableRouteRuleIngressGatewayHostArgs{
    						Name: pulumi.Any(_var.Ingress_gateway_route_table_route_rules_ingress_gateway_host_name),
    						Port: pulumi.Any(_var.Ingress_gateway_route_table_route_rules_ingress_gateway_host_port),
    					},
    					IsGrpc:               pulumi.Any(_var.Ingress_gateway_route_table_route_rules_is_grpc),
    					IsHostRewriteEnabled: pulumi.Any(_var.Ingress_gateway_route_table_route_rules_is_host_rewrite_enabled),
    					IsPathRewriteEnabled: pulumi.Any(_var.Ingress_gateway_route_table_route_rules_is_path_rewrite_enabled),
    					Path:                 pulumi.Any(_var.Ingress_gateway_route_table_route_rules_path),
    					PathType:             pulumi.Any(_var.Ingress_gateway_route_table_route_rules_path_type),
    					RequestTimeoutInMs:   pulumi.Any(_var.Ingress_gateway_route_table_route_rules_request_timeout_in_ms),
    				},
    			},
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Description: pulumi.Any(_var.Ingress_gateway_route_table_description),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			Priority: pulumi.Any(_var.Ingress_gateway_route_table_priority),
    		})
    		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.IngressGatewayRouteTable;
    import com.pulumi.oci.ServiceMesh.IngressGatewayRouteTableArgs;
    import com.pulumi.oci.ServiceMesh.inputs.IngressGatewayRouteTableRouteRuleArgs;
    import com.pulumi.oci.ServiceMesh.inputs.IngressGatewayRouteTableRouteRuleIngressGatewayHostArgs;
    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 testIngressGatewayRouteTable = new IngressGatewayRouteTable("testIngressGatewayRouteTable", IngressGatewayRouteTableArgs.builder()        
                .compartmentId(var_.compartment_id())
                .ingressGatewayId(oci_service_mesh_ingress_gateway.test_ingress_gateway().id())
                .routeRules(IngressGatewayRouteTableRouteRuleArgs.builder()
                    .destinations(IngressGatewayRouteTableRouteRuleDestinationArgs.builder()
                        .virtualServiceId(oci_service_mesh_virtual_service.test_virtual_service().id())
                        .port(var_.ingress_gateway_route_table_route_rules_destinations_port())
                        .weight(var_.ingress_gateway_route_table_route_rules_destinations_weight())
                        .build())
                    .type(var_.ingress_gateway_route_table_route_rules_type())
                    .ingressGatewayHost(IngressGatewayRouteTableRouteRuleIngressGatewayHostArgs.builder()
                        .name(var_.ingress_gateway_route_table_route_rules_ingress_gateway_host_name())
                        .port(var_.ingress_gateway_route_table_route_rules_ingress_gateway_host_port())
                        .build())
                    .isGrpc(var_.ingress_gateway_route_table_route_rules_is_grpc())
                    .isHostRewriteEnabled(var_.ingress_gateway_route_table_route_rules_is_host_rewrite_enabled())
                    .isPathRewriteEnabled(var_.ingress_gateway_route_table_route_rules_is_path_rewrite_enabled())
                    .path(var_.ingress_gateway_route_table_route_rules_path())
                    .pathType(var_.ingress_gateway_route_table_route_rules_path_type())
                    .requestTimeoutInMs(var_.ingress_gateway_route_table_route_rules_request_timeout_in_ms())
                    .build())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(var_.ingress_gateway_route_table_description())
                .freeformTags(Map.of("bar-key", "value"))
                .priority(var_.ingress_gateway_route_table_priority())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_ingress_gateway_route_table = oci.service_mesh.IngressGatewayRouteTable("testIngressGatewayRouteTable",
        compartment_id=var["compartment_id"],
        ingress_gateway_id=oci_service_mesh_ingress_gateway["test_ingress_gateway"]["id"],
        route_rules=[oci.service_mesh.IngressGatewayRouteTableRouteRuleArgs(
            destinations=[oci.service_mesh.IngressGatewayRouteTableRouteRuleDestinationArgs(
                virtual_service_id=oci_service_mesh_virtual_service["test_virtual_service"]["id"],
                port=var["ingress_gateway_route_table_route_rules_destinations_port"],
                weight=var["ingress_gateway_route_table_route_rules_destinations_weight"],
            )],
            type=var["ingress_gateway_route_table_route_rules_type"],
            ingress_gateway_host=oci.service_mesh.IngressGatewayRouteTableRouteRuleIngressGatewayHostArgs(
                name=var["ingress_gateway_route_table_route_rules_ingress_gateway_host_name"],
                port=var["ingress_gateway_route_table_route_rules_ingress_gateway_host_port"],
            ),
            is_grpc=var["ingress_gateway_route_table_route_rules_is_grpc"],
            is_host_rewrite_enabled=var["ingress_gateway_route_table_route_rules_is_host_rewrite_enabled"],
            is_path_rewrite_enabled=var["ingress_gateway_route_table_route_rules_is_path_rewrite_enabled"],
            path=var["ingress_gateway_route_table_route_rules_path"],
            path_type=var["ingress_gateway_route_table_route_rules_path_type"],
            request_timeout_in_ms=var["ingress_gateway_route_table_route_rules_request_timeout_in_ms"],
        )],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=var["ingress_gateway_route_table_description"],
        freeform_tags={
            "bar-key": "value",
        },
        priority=var["ingress_gateway_route_table_priority"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testIngressGatewayRouteTable = new oci.servicemesh.IngressGatewayRouteTable("testIngressGatewayRouteTable", {
        compartmentId: _var.compartment_id,
        ingressGatewayId: oci_service_mesh_ingress_gateway.test_ingress_gateway.id,
        routeRules: [{
            destinations: [{
                virtualServiceId: oci_service_mesh_virtual_service.test_virtual_service.id,
                port: _var.ingress_gateway_route_table_route_rules_destinations_port,
                weight: _var.ingress_gateway_route_table_route_rules_destinations_weight,
            }],
            type: _var.ingress_gateway_route_table_route_rules_type,
            ingressGatewayHost: {
                name: _var.ingress_gateway_route_table_route_rules_ingress_gateway_host_name,
                port: _var.ingress_gateway_route_table_route_rules_ingress_gateway_host_port,
            },
            isGrpc: _var.ingress_gateway_route_table_route_rules_is_grpc,
            isHostRewriteEnabled: _var.ingress_gateway_route_table_route_rules_is_host_rewrite_enabled,
            isPathRewriteEnabled: _var.ingress_gateway_route_table_route_rules_is_path_rewrite_enabled,
            path: _var.ingress_gateway_route_table_route_rules_path,
            pathType: _var.ingress_gateway_route_table_route_rules_path_type,
            requestTimeoutInMs: _var.ingress_gateway_route_table_route_rules_request_timeout_in_ms,
        }],
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: _var.ingress_gateway_route_table_description,
        freeformTags: {
            "bar-key": "value",
        },
        priority: _var.ingress_gateway_route_table_priority,
    });
    
    resources:
      testIngressGatewayRouteTable:
        type: oci:ServiceMesh:IngressGatewayRouteTable
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          ingressGatewayId: ${oci_service_mesh_ingress_gateway.test_ingress_gateway.id}
          routeRules:
            - destinations:
                - virtualServiceId: ${oci_service_mesh_virtual_service.test_virtual_service.id}
                  port: ${var.ingress_gateway_route_table_route_rules_destinations_port}
                  weight: ${var.ingress_gateway_route_table_route_rules_destinations_weight}
              type: ${var.ingress_gateway_route_table_route_rules_type}
              ingressGatewayHost:
                name: ${var.ingress_gateway_route_table_route_rules_ingress_gateway_host_name}
                port: ${var.ingress_gateway_route_table_route_rules_ingress_gateway_host_port}
              isGrpc: ${var.ingress_gateway_route_table_route_rules_is_grpc}
              isHostRewriteEnabled: ${var.ingress_gateway_route_table_route_rules_is_host_rewrite_enabled}
              isPathRewriteEnabled: ${var.ingress_gateway_route_table_route_rules_is_path_rewrite_enabled}
              path: ${var.ingress_gateway_route_table_route_rules_path}
              pathType: ${var.ingress_gateway_route_table_route_rules_path_type}
              requestTimeoutInMs: ${var.ingress_gateway_route_table_route_rules_request_timeout_in_ms}
          #Optional
          definedTags:
            foo-namespace.bar-key: value
          description: ${var.ingress_gateway_route_table_description}
          freeformTags:
            bar-key: value
          priority: ${var.ingress_gateway_route_table_priority}
    

    Create IngressGatewayRouteTable Resource

    new IngressGatewayRouteTable(name: string, args: IngressGatewayRouteTableArgs, opts?: CustomResourceOptions);
    @overload
    def IngressGatewayRouteTable(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 compartment_id: Optional[str] = None,
                                 defined_tags: Optional[Mapping[str, Any]] = None,
                                 description: Optional[str] = None,
                                 freeform_tags: Optional[Mapping[str, Any]] = None,
                                 ingress_gateway_id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 priority: Optional[int] = None,
                                 route_rules: Optional[Sequence[_servicemesh.IngressGatewayRouteTableRouteRuleArgs]] = None)
    @overload
    def IngressGatewayRouteTable(resource_name: str,
                                 args: IngressGatewayRouteTableArgs,
                                 opts: Optional[ResourceOptions] = None)
    func NewIngressGatewayRouteTable(ctx *Context, name string, args IngressGatewayRouteTableArgs, opts ...ResourceOption) (*IngressGatewayRouteTable, error)
    public IngressGatewayRouteTable(string name, IngressGatewayRouteTableArgs args, CustomResourceOptions? opts = null)
    public IngressGatewayRouteTable(String name, IngressGatewayRouteTableArgs args)
    public IngressGatewayRouteTable(String name, IngressGatewayRouteTableArgs args, CustomResourceOptions options)
    
    type: oci:ServiceMesh:IngressGatewayRouteTable
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args IngressGatewayRouteTableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IngressGatewayRouteTableArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IngressGatewayRouteTableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IngressGatewayRouteTableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IngressGatewayRouteTableArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    IngressGatewayRouteTable Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The IngressGatewayRouteTable resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment.
    IngressGatewayId string
    The OCID of the service mesh in which this access policy is created.
    RouteRules List<IngressGatewayRouteTableRouteRule>
    (Updatable) The route rules for the ingress gateway.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Name string
    (Updatable) Name of the ingress gateway host that this route should apply to.
    Priority int
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    CompartmentId string
    (Updatable) The OCID of the compartment.
    IngressGatewayId string
    The OCID of the service mesh in which this access policy is created.
    RouteRules []IngressGatewayRouteTableRouteRuleArgs
    (Updatable) The route rules for the ingress gateway.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Name string
    (Updatable) Name of the ingress gateway host that this route should apply to.
    Priority int
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    compartmentId String
    (Updatable) The OCID of the compartment.
    ingressGatewayId String
    The OCID of the service mesh in which this access policy is created.
    routeRules List<IngressGatewayRouteTableRouteRule>
    (Updatable) The route rules for the ingress gateway.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name String
    (Updatable) Name of the ingress gateway host that this route should apply to.
    priority Integer
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    compartmentId string
    (Updatable) The OCID of the compartment.
    ingressGatewayId string
    The OCID of the service mesh in which this access policy is created.
    routeRules IngressGatewayRouteTableRouteRule[]
    (Updatable) The route rules for the ingress gateway.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name string
    (Updatable) Name of the ingress gateway host that this route should apply to.
    priority number
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    compartment_id str
    (Updatable) The OCID of the compartment.
    ingress_gateway_id str
    The OCID of the service mesh in which this access policy is created.
    route_rules IngressGatewayRouteTableRouteRuleArgs]
    (Updatable) The route rules for the ingress gateway.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) 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]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name str
    (Updatable) Name of the ingress gateway host that this route should apply to.
    priority int
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    compartmentId String
    (Updatable) The OCID of the compartment.
    ingressGatewayId String
    The OCID of the service mesh in which this access policy is created.
    routeRules List<Property Map>
    (Updatable) The route rules for the ingress gateway.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name String
    (Updatable) Name of the ingress gateway host that this route should apply to.
    priority Number
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IngressGatewayRouteTable resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    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.

    Look up Existing IngressGatewayRouteTable Resource

    Get an existing IngressGatewayRouteTable resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IngressGatewayRouteTableState, opts?: CustomResourceOptions): IngressGatewayRouteTable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            ingress_gateway_id: Optional[str] = None,
            lifecycle_details: Optional[str] = None,
            name: Optional[str] = None,
            priority: Optional[int] = None,
            route_rules: Optional[Sequence[_servicemesh.IngressGatewayRouteTableRouteRuleArgs]] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> IngressGatewayRouteTable
    func GetIngressGatewayRouteTable(ctx *Context, name string, id IDInput, state *IngressGatewayRouteTableState, opts ...ResourceOption) (*IngressGatewayRouteTable, error)
    public static IngressGatewayRouteTable Get(string name, Input<string> id, IngressGatewayRouteTableState? state, CustomResourceOptions? opts = null)
    public static IngressGatewayRouteTable get(String name, Output<String> id, IngressGatewayRouteTableState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IngressGatewayId string
    The OCID of the service mesh in which this access policy is created.
    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
    (Updatable) Name of the ingress gateway host that this route should apply to.
    Priority int
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    RouteRules List<IngressGatewayRouteTableRouteRule>
    (Updatable) 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
    (Updatable) The OCID of the compartment.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IngressGatewayId string
    The OCID of the service mesh in which this access policy is created.
    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
    (Updatable) Name of the ingress gateway host that this route should apply to.
    Priority int
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    RouteRules []IngressGatewayRouteTableRouteRuleArgs
    (Updatable) 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
    (Updatable) The OCID of the compartment.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    ingressGatewayId String
    The OCID of the service mesh in which this access policy is created.
    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
    (Updatable) Name of the ingress gateway host that this route should apply to.
    priority Integer
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    routeRules List<IngressGatewayRouteTableRouteRule>
    (Updatable) 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
    (Updatable) The OCID of the compartment.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    ingressGatewayId string
    The OCID of the service mesh in which this access policy is created.
    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
    (Updatable) Name of the ingress gateway host that this route should apply to.
    priority number
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    routeRules IngressGatewayRouteTableRouteRule[]
    (Updatable) 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
    (Updatable) The OCID of the compartment.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) 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]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    ingress_gateway_id str
    The OCID of the service mesh in which this access policy is created.
    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
    (Updatable) Name of the ingress gateway host that this route should apply to.
    priority int
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    route_rules IngressGatewayRouteTableRouteRuleArgs]
    (Updatable) 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
    (Updatable) The OCID of the compartment.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    ingressGatewayId String
    The OCID of the service mesh in which this access policy is created.
    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
    (Updatable) Name of the ingress gateway host that this route should apply to.
    priority Number
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    routeRules List<Property Map>
    (Updatable) 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

    IngressGatewayRouteTableRouteRule, IngressGatewayRouteTableRouteRuleArgs

    Destinations List<IngressGatewayRouteTableRouteRuleDestination>
    (Updatable) The destination of the request.
    Type string

    (Updatable) Type of protocol.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    IngressGatewayHost IngressGatewayRouteTableRouteRuleIngressGatewayHost
    (Updatable) 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
    (Updatable) 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
    (Updatable) If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.
    IsPathRewriteEnabled bool
    (Updatable) If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.
    Path string
    (Updatable) Route to match
    PathType string
    (Updatable) Match type for the route
    RequestTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for the upstream service to respond to a request. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP based route rules, and disabled (no timeout) when 'isGrpc' is true. The value 0 (zero) indicates that the timeout is disabled. For streaming responses from the upstream service, consider either keeping the timeout disabled or set a sufficiently high value.
    Destinations []IngressGatewayRouteTableRouteRuleDestination
    (Updatable) The destination of the request.
    Type string

    (Updatable) Type of protocol.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    IngressGatewayHost IngressGatewayRouteTableRouteRuleIngressGatewayHost
    (Updatable) 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
    (Updatable) 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
    (Updatable) If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.
    IsPathRewriteEnabled bool
    (Updatable) If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.
    Path string
    (Updatable) Route to match
    PathType string
    (Updatable) Match type for the route
    RequestTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for the upstream service to respond to a request. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP based route rules, and disabled (no timeout) when 'isGrpc' is true. The value 0 (zero) indicates that the timeout is disabled. For streaming responses from the upstream service, consider either keeping the timeout disabled or set a sufficiently high value.
    destinations List<IngressGatewayRouteTableRouteRuleDestination>
    (Updatable) The destination of the request.
    type String

    (Updatable) Type of protocol.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ingressGatewayHost IngressGatewayRouteTableRouteRuleIngressGatewayHost
    (Updatable) 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
    (Updatable) 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
    (Updatable) If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.
    isPathRewriteEnabled Boolean
    (Updatable) If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.
    path String
    (Updatable) Route to match
    pathType String
    (Updatable) Match type for the route
    requestTimeoutInMs String
    (Updatable) The maximum duration in milliseconds for the upstream service to respond to a request. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP based route rules, and disabled (no timeout) when 'isGrpc' is true. The value 0 (zero) indicates that the timeout is disabled. For streaming responses from the upstream service, consider either keeping the timeout disabled or set a sufficiently high value.
    destinations IngressGatewayRouteTableRouteRuleDestination[]
    (Updatable) The destination of the request.
    type string

    (Updatable) Type of protocol.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ingressGatewayHost IngressGatewayRouteTableRouteRuleIngressGatewayHost
    (Updatable) 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
    (Updatable) 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
    (Updatable) If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.
    isPathRewriteEnabled boolean
    (Updatable) If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.
    path string
    (Updatable) Route to match
    pathType string
    (Updatable) Match type for the route
    requestTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for the upstream service to respond to a request. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP based route rules, and disabled (no timeout) when 'isGrpc' is true. The value 0 (zero) indicates that the timeout is disabled. For streaming responses from the upstream service, consider either keeping the timeout disabled or set a sufficiently high value.
    destinations IngressGatewayRouteTableRouteRuleDestination]
    (Updatable) The destination of the request.
    type str

    (Updatable) Type of protocol.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ingress_gateway_host IngressGatewayRouteTableRouteRuleIngressGatewayHost
    (Updatable) 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
    (Updatable) 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
    (Updatable) If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.
    is_path_rewrite_enabled bool
    (Updatable) If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.
    path str
    (Updatable) Route to match
    path_type str
    (Updatable) Match type for the route
    request_timeout_in_ms str
    (Updatable) The maximum duration in milliseconds for the upstream service to respond to a request. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP based route rules, and disabled (no timeout) when 'isGrpc' is true. The value 0 (zero) indicates that the timeout is disabled. For streaming responses from the upstream service, consider either keeping the timeout disabled or set a sufficiently high value.
    destinations List<Property Map>
    (Updatable) The destination of the request.
    type String

    (Updatable) Type of protocol.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ingressGatewayHost Property Map
    (Updatable) 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
    (Updatable) 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
    (Updatable) If true, the hostname will be rewritten to the target virtual deployment's DNS hostname.
    isPathRewriteEnabled Boolean
    (Updatable) If true, the matched path prefix will be rewritten to '/' before being directed to the target virtual deployment.
    path String
    (Updatable) Route to match
    pathType String
    (Updatable) Match type for the route
    requestTimeoutInMs String
    (Updatable) The maximum duration in milliseconds for the upstream service to respond to a request. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP based route rules, and disabled (no timeout) when 'isGrpc' is true. The value 0 (zero) indicates that the timeout is disabled. For streaming responses from the upstream service, consider either keeping the timeout disabled or set a sufficiently high value.

    IngressGatewayRouteTableRouteRuleDestination, IngressGatewayRouteTableRouteRuleDestinationArgs

    VirtualServiceId string
    (Updatable) The OCID of the virtual service where the request will be routed.
    Port int
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    Weight int
    (Updatable) Weight of traffic target.
    VirtualServiceId string
    (Updatable) The OCID of the virtual service where the request will be routed.
    Port int
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    Weight int
    (Updatable) Weight of traffic target.
    virtualServiceId String
    (Updatable) The OCID of the virtual service where the request will be routed.
    port Integer
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    weight Integer
    (Updatable) Weight of traffic target.
    virtualServiceId string
    (Updatable) The OCID of the virtual service where the request will be routed.
    port number
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    weight number
    (Updatable) Weight of traffic target.
    virtual_service_id str
    (Updatable) The OCID of the virtual service where the request will be routed.
    port int
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    weight int
    (Updatable) Weight of traffic target.
    virtualServiceId String
    (Updatable) The OCID of the virtual service where the request will be routed.
    port Number
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    weight Number
    (Updatable) Weight of traffic target.

    IngressGatewayRouteTableRouteRuleIngressGatewayHost, IngressGatewayRouteTableRouteRuleIngressGatewayHostArgs

    Name string
    (Updatable) Name of the ingress gateway host that this route should apply to.
    Port int
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    Name string
    (Updatable) Name of the ingress gateway host that this route should apply to.
    Port int
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    name String
    (Updatable) Name of the ingress gateway host that this route should apply to.
    port Integer
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    name string
    (Updatable) Name of the ingress gateway host that this route should apply to.
    port number
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    name str
    (Updatable) Name of the ingress gateway host that this route should apply to.
    port int
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.
    name String
    (Updatable) Name of the ingress gateway host that this route should apply to.
    port Number
    (Updatable) The port of the ingress gateway host listener. Leave empty to match all ports for the host.

    Import

    IngressGatewayRouteTables can be imported using the id, e.g.

     $ pulumi import oci:ServiceMesh/ingressGatewayRouteTable:IngressGatewayRouteTable test_ingress_gateway_route_table "id"
    

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi