Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ServiceMesh.getVirtualServiceRouteTable
Explore with Pulumi AI
This data source provides details about a specific Virtual Service Route Table resource in Oracle Cloud Infrastructure Service Mesh service.
Gets a VirtualServiceRouteTable by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVirtualServiceRouteTable = oci.ServiceMesh.getVirtualServiceRouteTable({
    virtualServiceRouteTableId: testVirtualServiceRouteTableOciServiceMeshVirtualServiceRouteTable.id,
});
import pulumi
import pulumi_oci as oci
test_virtual_service_route_table = oci.ServiceMesh.get_virtual_service_route_table(virtual_service_route_table_id=test_virtual_service_route_table_oci_service_mesh_virtual_service_route_table["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/servicemesh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicemesh.GetVirtualServiceRouteTable(ctx, &servicemesh.GetVirtualServiceRouteTableArgs{
			VirtualServiceRouteTableId: testVirtualServiceRouteTableOciServiceMeshVirtualServiceRouteTable.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testVirtualServiceRouteTable = Oci.ServiceMesh.GetVirtualServiceRouteTable.Invoke(new()
    {
        VirtualServiceRouteTableId = testVirtualServiceRouteTableOciServiceMeshVirtualServiceRouteTable.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ServiceMesh.ServiceMeshFunctions;
import com.pulumi.oci.ServiceMesh.inputs.GetVirtualServiceRouteTableArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testVirtualServiceRouteTable = ServiceMeshFunctions.getVirtualServiceRouteTable(GetVirtualServiceRouteTableArgs.builder()
            .virtualServiceRouteTableId(testVirtualServiceRouteTableOciServiceMeshVirtualServiceRouteTable.id())
            .build());
    }
}
variables:
  testVirtualServiceRouteTable:
    fn::invoke:
      function: oci:ServiceMesh:getVirtualServiceRouteTable
      arguments:
        virtualServiceRouteTableId: ${testVirtualServiceRouteTableOciServiceMeshVirtualServiceRouteTable.id}
Using getVirtualServiceRouteTable
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualServiceRouteTable(args: GetVirtualServiceRouteTableArgs, opts?: InvokeOptions): Promise<GetVirtualServiceRouteTableResult>
function getVirtualServiceRouteTableOutput(args: GetVirtualServiceRouteTableOutputArgs, opts?: InvokeOptions): Output<GetVirtualServiceRouteTableResult>def get_virtual_service_route_table(virtual_service_route_table_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetVirtualServiceRouteTableResult
def get_virtual_service_route_table_output(virtual_service_route_table_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetVirtualServiceRouteTableResult]func LookupVirtualServiceRouteTable(ctx *Context, args *LookupVirtualServiceRouteTableArgs, opts ...InvokeOption) (*LookupVirtualServiceRouteTableResult, error)
func LookupVirtualServiceRouteTableOutput(ctx *Context, args *LookupVirtualServiceRouteTableOutputArgs, opts ...InvokeOption) LookupVirtualServiceRouteTableResultOutput> Note: This function is named LookupVirtualServiceRouteTable in the Go SDK.
public static class GetVirtualServiceRouteTable 
{
    public static Task<GetVirtualServiceRouteTableResult> InvokeAsync(GetVirtualServiceRouteTableArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualServiceRouteTableResult> Invoke(GetVirtualServiceRouteTableInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualServiceRouteTableResult> getVirtualServiceRouteTable(GetVirtualServiceRouteTableArgs args, InvokeOptions options)
public static Output<GetVirtualServiceRouteTableResult> getVirtualServiceRouteTable(GetVirtualServiceRouteTableArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ServiceMesh/getVirtualServiceRouteTable:getVirtualServiceRouteTable
  arguments:
    # arguments dictionaryThe following arguments are supported:
- VirtualService stringRoute Table Id 
- Unique VirtualServiceRouteTable identifier.
- VirtualService stringRoute Table Id 
- Unique VirtualServiceRouteTable identifier.
- virtualService StringRoute Table Id 
- Unique VirtualServiceRouteTable identifier.
- virtualService stringRoute Table Id 
- Unique VirtualServiceRouteTable identifier.
- virtual_service_ strroute_ table_ id 
- Unique VirtualServiceRouteTable identifier.
- virtualService StringRoute Table Id 
- Unique VirtualServiceRouteTable identifier.
getVirtualServiceRouteTable Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- Unique identifier that is immutable on creation.
- 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
- The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
- RouteRules List<GetVirtual Service Route Table Route Rule> 
- The route rules for the virtual service.
- State string
- The current state of the Resource.
- Dictionary<string, string>
- 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.
- VirtualService stringId 
- The OCID of the virtual service in which this virtual service route table is created.
- VirtualService stringRoute Table Id 
- CompartmentId string
- The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- Unique identifier that is immutable on creation.
- 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
- The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
- RouteRules []GetVirtual Service Route Table Route Rule 
- The route rules for the virtual service.
- State string
- The current state of the Resource.
- map[string]string
- 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.
- VirtualService stringId 
- The OCID of the virtual service in which this virtual service route table is created.
- VirtualService stringRoute Table Id 
- compartmentId String
- The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- Unique identifier that is immutable on creation.
- 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
- The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
- routeRules List<GetVirtual Service Route Table Route Rule> 
- The route rules for the virtual service.
- state String
- The current state of the Resource.
- Map<String,String>
- 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.
- virtualService StringId 
- The OCID of the virtual service in which this virtual service route table is created.
- virtualService StringRoute Table Id 
- compartmentId string
- The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description string
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- Unique identifier that is immutable on creation.
- 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
- The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
- routeRules GetVirtual Service Route Table Route Rule[] 
- The route rules for the virtual service.
- state string
- The current state of the Resource.
- {[key: string]: string}
- 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.
- virtualService stringId 
- The OCID of the virtual service in which this virtual service route table is created.
- virtualService stringRoute Table Id 
- compartment_id str
- The OCID of the compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description str
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- Unique identifier that is immutable on creation.
- 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
- The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
- route_rules Sequence[GetVirtual Service Route Table Route Rule] 
- The route rules for the virtual service.
- state str
- The current state of the Resource.
- Mapping[str, str]
- 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_ strid 
- The OCID of the virtual service in which this virtual service route table is created.
- virtual_service_ strroute_ table_ id 
- compartmentId String
- The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- Unique identifier that is immutable on creation.
- 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
- The priority of the route table. Lower value means higher priority. The routes are declared based on the priority.
- routeRules List<Property Map>
- The route rules for the virtual service.
- state String
- The current state of the Resource.
- Map<String>
- 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.
- virtualService StringId 
- The OCID of the virtual service in which this virtual service route table is created.
- virtualService StringRoute Table Id 
Supporting Types
GetVirtualServiceRouteTableRouteRule      
- Destinations
List<GetVirtual Service Route Table Route Rule Destination> 
- The destination of the request.
- IsGrpc bool
- If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.
- Path string
- Route to match
- PathType string
- Match type for the route
- RequestTimeout stringIn Ms 
- 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.
- Type string
- Type of protocol.
- Destinations
[]GetVirtual Service Route Table Route Rule Destination 
- The destination of the request.
- IsGrpc bool
- If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.
- Path string
- Route to match
- PathType string
- Match type for the route
- RequestTimeout stringIn Ms 
- 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.
- Type string
- Type of protocol.
- destinations
List<GetVirtual Service Route Table Route Rule Destination> 
- The destination of the request.
- isGrpc Boolean
- If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.
- path String
- Route to match
- pathType String
- Match type for the route
- requestTimeout StringIn Ms 
- 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.
- type String
- Type of protocol.
- destinations
GetVirtual Service Route Table Route Rule Destination[] 
- The destination of the request.
- isGrpc boolean
- If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.
- path string
- Route to match
- pathType string
- Match type for the route
- requestTimeout stringIn Ms 
- 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.
- type string
- Type of protocol.
- destinations
Sequence[GetVirtual Service Route Table Route Rule Destination] 
- The destination of the request.
- is_grpc bool
- If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.
- path str
- Route to match
- path_type str
- Match type for the route
- request_timeout_ strin_ ms 
- 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.
- type str
- Type of protocol.
- destinations List<Property Map>
- The destination of the request.
- isGrpc Boolean
- If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.
- path String
- Route to match
- pathType String
- Match type for the route
- requestTimeout StringIn Ms 
- 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.
- type String
- Type of protocol.
GetVirtualServiceRouteTableRouteRuleDestination       
- Port int
- Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
- VirtualDeployment stringId 
- The OCID of the virtual deployment where the request will be routed.
- Weight int
- Weight of traffic target.
- Port int
- Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
- VirtualDeployment stringId 
- The OCID of the virtual deployment where the request will be routed.
- Weight int
- Weight of traffic target.
- port Integer
- Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
- virtualDeployment StringId 
- The OCID of the virtual deployment where the request will be routed.
- weight Integer
- Weight of traffic target.
- port number
- Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
- virtualDeployment stringId 
- The OCID of the virtual deployment where the request will be routed.
- weight number
- Weight of traffic target.
- port int
- Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
- virtual_deployment_ strid 
- The OCID of the virtual deployment where the request will be routed.
- weight int
- Weight of traffic target.
- port Number
- Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
- virtualDeployment StringId 
- The OCID of the virtual deployment where the request will be routed.
- weight Number
- Weight of traffic target.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.