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

oci.ServiceMesh.VirtualServiceRouteTable

Explore with Pulumi AI

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

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

    Creates a new VirtualServiceRouteTable.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testVirtualServiceRouteTable = new Oci.ServiceMesh.VirtualServiceRouteTable("testVirtualServiceRouteTable", new()
        {
            CompartmentId = @var.Compartment_id,
            RouteRules = new[]
            {
                new Oci.ServiceMesh.Inputs.VirtualServiceRouteTableRouteRuleArgs
                {
                    Destinations = new[]
                    {
                        new Oci.ServiceMesh.Inputs.VirtualServiceRouteTableRouteRuleDestinationArgs
                        {
                            VirtualDeploymentId = oci_service_mesh_virtual_deployment.Test_virtual_deployment.Id,
                            Weight = @var.Virtual_service_route_table_route_rules_destinations_weight,
                            Port = @var.Virtual_service_route_table_route_rules_destinations_port,
                        },
                    },
                    Type = @var.Virtual_service_route_table_route_rules_type,
                    IsGrpc = @var.Virtual_service_route_table_route_rules_is_grpc,
                    Path = @var.Virtual_service_route_table_route_rules_path,
                    PathType = @var.Virtual_service_route_table_route_rules_path_type,
                    RequestTimeoutInMs = @var.Virtual_service_route_table_route_rules_request_timeout_in_ms,
                },
            },
            VirtualServiceId = oci_service_mesh_virtual_service.Test_virtual_service.Id,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = @var.Virtual_service_route_table_description,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            Priority = @var.Virtual_service_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.NewVirtualServiceRouteTable(ctx, "testVirtualServiceRouteTable", &ServiceMesh.VirtualServiceRouteTableArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			RouteRules: servicemesh.VirtualServiceRouteTableRouteRuleArray{
    				&servicemesh.VirtualServiceRouteTableRouteRuleArgs{
    					Destinations: servicemesh.VirtualServiceRouteTableRouteRuleDestinationArray{
    						&servicemesh.VirtualServiceRouteTableRouteRuleDestinationArgs{
    							VirtualDeploymentId: pulumi.Any(oci_service_mesh_virtual_deployment.Test_virtual_deployment.Id),
    							Weight:              pulumi.Any(_var.Virtual_service_route_table_route_rules_destinations_weight),
    							Port:                pulumi.Any(_var.Virtual_service_route_table_route_rules_destinations_port),
    						},
    					},
    					Type:               pulumi.Any(_var.Virtual_service_route_table_route_rules_type),
    					IsGrpc:             pulumi.Any(_var.Virtual_service_route_table_route_rules_is_grpc),
    					Path:               pulumi.Any(_var.Virtual_service_route_table_route_rules_path),
    					PathType:           pulumi.Any(_var.Virtual_service_route_table_route_rules_path_type),
    					RequestTimeoutInMs: pulumi.Any(_var.Virtual_service_route_table_route_rules_request_timeout_in_ms),
    				},
    			},
    			VirtualServiceId: pulumi.Any(oci_service_mesh_virtual_service.Test_virtual_service.Id),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Description: pulumi.Any(_var.Virtual_service_route_table_description),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			Priority: pulumi.Any(_var.Virtual_service_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.VirtualServiceRouteTable;
    import com.pulumi.oci.ServiceMesh.VirtualServiceRouteTableArgs;
    import com.pulumi.oci.ServiceMesh.inputs.VirtualServiceRouteTableRouteRuleArgs;
    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 testVirtualServiceRouteTable = new VirtualServiceRouteTable("testVirtualServiceRouteTable", VirtualServiceRouteTableArgs.builder()        
                .compartmentId(var_.compartment_id())
                .routeRules(VirtualServiceRouteTableRouteRuleArgs.builder()
                    .destinations(VirtualServiceRouteTableRouteRuleDestinationArgs.builder()
                        .virtualDeploymentId(oci_service_mesh_virtual_deployment.test_virtual_deployment().id())
                        .weight(var_.virtual_service_route_table_route_rules_destinations_weight())
                        .port(var_.virtual_service_route_table_route_rules_destinations_port())
                        .build())
                    .type(var_.virtual_service_route_table_route_rules_type())
                    .isGrpc(var_.virtual_service_route_table_route_rules_is_grpc())
                    .path(var_.virtual_service_route_table_route_rules_path())
                    .pathType(var_.virtual_service_route_table_route_rules_path_type())
                    .requestTimeoutInMs(var_.virtual_service_route_table_route_rules_request_timeout_in_ms())
                    .build())
                .virtualServiceId(oci_service_mesh_virtual_service.test_virtual_service().id())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(var_.virtual_service_route_table_description())
                .freeformTags(Map.of("bar-key", "value"))
                .priority(var_.virtual_service_route_table_priority())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_virtual_service_route_table = oci.service_mesh.VirtualServiceRouteTable("testVirtualServiceRouteTable",
        compartment_id=var["compartment_id"],
        route_rules=[oci.service_mesh.VirtualServiceRouteTableRouteRuleArgs(
            destinations=[oci.service_mesh.VirtualServiceRouteTableRouteRuleDestinationArgs(
                virtual_deployment_id=oci_service_mesh_virtual_deployment["test_virtual_deployment"]["id"],
                weight=var["virtual_service_route_table_route_rules_destinations_weight"],
                port=var["virtual_service_route_table_route_rules_destinations_port"],
            )],
            type=var["virtual_service_route_table_route_rules_type"],
            is_grpc=var["virtual_service_route_table_route_rules_is_grpc"],
            path=var["virtual_service_route_table_route_rules_path"],
            path_type=var["virtual_service_route_table_route_rules_path_type"],
            request_timeout_in_ms=var["virtual_service_route_table_route_rules_request_timeout_in_ms"],
        )],
        virtual_service_id=oci_service_mesh_virtual_service["test_virtual_service"]["id"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=var["virtual_service_route_table_description"],
        freeform_tags={
            "bar-key": "value",
        },
        priority=var["virtual_service_route_table_priority"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVirtualServiceRouteTable = new oci.servicemesh.VirtualServiceRouteTable("testVirtualServiceRouteTable", {
        compartmentId: _var.compartment_id,
        routeRules: [{
            destinations: [{
                virtualDeploymentId: oci_service_mesh_virtual_deployment.test_virtual_deployment.id,
                weight: _var.virtual_service_route_table_route_rules_destinations_weight,
                port: _var.virtual_service_route_table_route_rules_destinations_port,
            }],
            type: _var.virtual_service_route_table_route_rules_type,
            isGrpc: _var.virtual_service_route_table_route_rules_is_grpc,
            path: _var.virtual_service_route_table_route_rules_path,
            pathType: _var.virtual_service_route_table_route_rules_path_type,
            requestTimeoutInMs: _var.virtual_service_route_table_route_rules_request_timeout_in_ms,
        }],
        virtualServiceId: oci_service_mesh_virtual_service.test_virtual_service.id,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: _var.virtual_service_route_table_description,
        freeformTags: {
            "bar-key": "value",
        },
        priority: _var.virtual_service_route_table_priority,
    });
    
    resources:
      testVirtualServiceRouteTable:
        type: oci:ServiceMesh:VirtualServiceRouteTable
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          routeRules:
            - destinations:
                - virtualDeploymentId: ${oci_service_mesh_virtual_deployment.test_virtual_deployment.id}
                  weight: ${var.virtual_service_route_table_route_rules_destinations_weight}
                  port: ${var.virtual_service_route_table_route_rules_destinations_port}
              type: ${var.virtual_service_route_table_route_rules_type}
              isGrpc: ${var.virtual_service_route_table_route_rules_is_grpc}
              path: ${var.virtual_service_route_table_route_rules_path}
              pathType: ${var.virtual_service_route_table_route_rules_path_type}
              requestTimeoutInMs: ${var.virtual_service_route_table_route_rules_request_timeout_in_ms}
          virtualServiceId: ${oci_service_mesh_virtual_service.test_virtual_service.id}
          #Optional
          definedTags:
            foo-namespace.bar-key: value
          description: ${var.virtual_service_route_table_description}
          freeformTags:
            bar-key: value
          priority: ${var.virtual_service_route_table_priority}
    

    Create VirtualServiceRouteTable Resource

    new VirtualServiceRouteTable(name: string, args: VirtualServiceRouteTableArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualServiceRouteTable(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,
                                 name: Optional[str] = None,
                                 priority: Optional[int] = None,
                                 route_rules: Optional[Sequence[_servicemesh.VirtualServiceRouteTableRouteRuleArgs]] = None,
                                 virtual_service_id: Optional[str] = None)
    @overload
    def VirtualServiceRouteTable(resource_name: str,
                                 args: VirtualServiceRouteTableArgs,
                                 opts: Optional[ResourceOptions] = None)
    func NewVirtualServiceRouteTable(ctx *Context, name string, args VirtualServiceRouteTableArgs, opts ...ResourceOption) (*VirtualServiceRouteTable, error)
    public VirtualServiceRouteTable(string name, VirtualServiceRouteTableArgs args, CustomResourceOptions? opts = null)
    public VirtualServiceRouteTable(String name, VirtualServiceRouteTableArgs args)
    public VirtualServiceRouteTable(String name, VirtualServiceRouteTableArgs args, CustomResourceOptions options)
    
    type: oci:ServiceMesh:VirtualServiceRouteTable
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args VirtualServiceRouteTableArgs
    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 VirtualServiceRouteTableArgs
    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 VirtualServiceRouteTableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualServiceRouteTableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualServiceRouteTableArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VirtualServiceRouteTable 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 VirtualServiceRouteTable resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment.
    RouteRules List<VirtualServiceRouteTableRouteRule>
    (Updatable) The route rules for the virtual service.
    VirtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    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.
    RouteRules []VirtualServiceRouteTableRouteRuleArgs
    (Updatable) The route rules for the virtual service.
    VirtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    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.
    routeRules List<VirtualServiceRouteTableRouteRule>
    (Updatable) The route rules for the virtual service.
    virtualServiceId String

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    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.
    routeRules VirtualServiceRouteTableRouteRule[]
    (Updatable) The route rules for the virtual service.
    virtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    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.
    route_rules VirtualServiceRouteTableRouteRuleArgs]
    (Updatable) The route rules for the virtual service.
    virtual_service_id str

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    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.
    routeRules List<Property Map>
    (Updatable) The route rules for the virtual service.
    virtualServiceId String

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    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 VirtualServiceRouteTable 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 VirtualServiceRouteTable Resource

    Get an existing VirtualServiceRouteTable 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?: VirtualServiceRouteTableState, opts?: CustomResourceOptions): VirtualServiceRouteTable
    @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,
            lifecycle_details: Optional[str] = None,
            name: Optional[str] = None,
            priority: Optional[int] = None,
            route_rules: Optional[Sequence[_servicemesh.VirtualServiceRouteTableRouteRuleArgs]] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            virtual_service_id: Optional[str] = None) -> VirtualServiceRouteTable
    func GetVirtualServiceRouteTable(ctx *Context, name string, id IDInput, state *VirtualServiceRouteTableState, opts ...ResourceOption) (*VirtualServiceRouteTable, error)
    public static VirtualServiceRouteTable Get(string name, Input<string> id, VirtualServiceRouteTableState? state, CustomResourceOptions? opts = null)
    public static VirtualServiceRouteTable get(String name, Output<String> id, VirtualServiceRouteTableState 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"}
    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    Priority int
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    RouteRules List<VirtualServiceRouteTableRouteRule>
    (Updatable) The route rules for the virtual service.
    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.
    VirtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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"}
    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    Priority int
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    RouteRules []VirtualServiceRouteTableRouteRuleArgs
    (Updatable) The route rules for the virtual service.
    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.
    VirtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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"}
    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    priority Integer
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    routeRules List<VirtualServiceRouteTableRouteRule>
    (Updatable) The route rules for the virtual service.
    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.
    virtualServiceId String

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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"}
    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    priority number
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    routeRules VirtualServiceRouteTableRouteRule[]
    (Updatable) The route rules for the virtual service.
    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.
    virtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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"}
    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    priority int
    (Updatable) The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
    route_rules VirtualServiceRouteTableRouteRuleArgs]
    (Updatable) The route rules for the virtual service.
    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.
    virtual_service_id str

    The OCID of the service mesh in which this access policy is created.

    ** 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

    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"}
    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
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    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 virtual service.
    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.
    virtualServiceId String

    The OCID of the service mesh in which this access policy is created.

    ** 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

    Supporting Types

    VirtualServiceRouteTableRouteRule, VirtualServiceRouteTableRouteRuleArgs

    Destinations List<VirtualServiceRouteTableRouteRuleDestination>
    (Updatable) The destination of the request.
    Type string
    (Updatable) Type of protocol.
    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.
    Path string
    (Updatable) Route to match
    PathType string
    (Updatable) Match type for the route
    RequestTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for the target 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 target service, consider either keeping the timeout disabled or set a sufficiently high value.
    Destinations []VirtualServiceRouteTableRouteRuleDestination
    (Updatable) The destination of the request.
    Type string
    (Updatable) Type of protocol.
    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.
    Path string
    (Updatable) Route to match
    PathType string
    (Updatable) Match type for the route
    RequestTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for the target 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 target service, consider either keeping the timeout disabled or set a sufficiently high value.
    destinations List<VirtualServiceRouteTableRouteRuleDestination>
    (Updatable) The destination of the request.
    type String
    (Updatable) Type of protocol.
    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.
    path String
    (Updatable) Route to match
    pathType String
    (Updatable) Match type for the route
    requestTimeoutInMs String
    (Updatable) The maximum duration in milliseconds for the target 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 target service, consider either keeping the timeout disabled or set a sufficiently high value.
    destinations VirtualServiceRouteTableRouteRuleDestination[]
    (Updatable) The destination of the request.
    type string
    (Updatable) Type of protocol.
    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.
    path string
    (Updatable) Route to match
    pathType string
    (Updatable) Match type for the route
    requestTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for the target 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 target service, consider either keeping the timeout disabled or set a sufficiently high value.
    destinations VirtualServiceRouteTableRouteRuleDestination]
    (Updatable) The destination of the request.
    type str
    (Updatable) Type of protocol.
    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.
    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 target 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 target 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.
    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.
    path String
    (Updatable) Route to match
    pathType String
    (Updatable) Match type for the route
    requestTimeoutInMs String
    (Updatable) The maximum duration in milliseconds for the target 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 target service, consider either keeping the timeout disabled or set a sufficiently high value.

    VirtualServiceRouteTableRouteRuleDestination, VirtualServiceRouteTableRouteRuleDestinationArgs

    VirtualDeploymentId string
    (Updatable) The OCID of the virtual deployment where the request will be routed.
    Weight int
    (Updatable) Weight of traffic target.
    Port int
    (Updatable) Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
    VirtualDeploymentId string
    (Updatable) The OCID of the virtual deployment where the request will be routed.
    Weight int
    (Updatable) Weight of traffic target.
    Port int
    (Updatable) Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
    virtualDeploymentId String
    (Updatable) The OCID of the virtual deployment where the request will be routed.
    weight Integer
    (Updatable) Weight of traffic target.
    port Integer
    (Updatable) Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
    virtualDeploymentId string
    (Updatable) The OCID of the virtual deployment where the request will be routed.
    weight number
    (Updatable) Weight of traffic target.
    port number
    (Updatable) Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
    virtual_deployment_id str
    (Updatable) The OCID of the virtual deployment where the request will be routed.
    weight int
    (Updatable) Weight of traffic target.
    port int
    (Updatable) Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
    virtualDeploymentId String
    (Updatable) The OCID of the virtual deployment where the request will be routed.
    weight Number
    (Updatable) Weight of traffic target.
    port Number
    (Updatable) Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.

    Import

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

     $ pulumi import oci:ServiceMesh/virtualServiceRouteTable:VirtualServiceRouteTable test_virtual_service_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