oci.ServiceMesh.VirtualServiceRouteTable
Explore with Pulumi AI
This resource provides the Virtual Service Route Table resource in Oracle Cloud Infrastructure Service Mesh service.
Creates a new VirtualServiceRouteTable.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVirtualServiceRouteTable = new oci.servicemesh.VirtualServiceRouteTable("test_virtual_service_route_table", {
compartmentId: compartmentId,
name: virtualServiceRouteTableName,
routeRules: [{
destinations: [{
virtualDeploymentId: testVirtualDeployment.id,
weight: virtualServiceRouteTableRouteRulesDestinationsWeight,
port: virtualServiceRouteTableRouteRulesDestinationsPort,
}],
type: virtualServiceRouteTableRouteRulesType,
isGrpc: virtualServiceRouteTableRouteRulesIsGrpc,
path: virtualServiceRouteTableRouteRulesPath,
pathType: virtualServiceRouteTableRouteRulesPathType,
requestTimeoutInMs: virtualServiceRouteTableRouteRulesRequestTimeoutInMs,
}],
virtualServiceId: testVirtualService.id,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: virtualServiceRouteTableDescription,
freeformTags: {
"bar-key": "value",
},
priority: virtualServiceRouteTablePriority,
});
import pulumi
import pulumi_oci as oci
test_virtual_service_route_table = oci.service_mesh.VirtualServiceRouteTable("test_virtual_service_route_table",
compartment_id=compartment_id,
name=virtual_service_route_table_name,
route_rules=[{
"destinations": [{
"virtual_deployment_id": test_virtual_deployment["id"],
"weight": virtual_service_route_table_route_rules_destinations_weight,
"port": virtual_service_route_table_route_rules_destinations_port,
}],
"type": virtual_service_route_table_route_rules_type,
"is_grpc": virtual_service_route_table_route_rules_is_grpc,
"path": virtual_service_route_table_route_rules_path,
"path_type": virtual_service_route_table_route_rules_path_type,
"request_timeout_in_ms": virtual_service_route_table_route_rules_request_timeout_in_ms,
}],
virtual_service_id=test_virtual_service["id"],
defined_tags={
"foo-namespace.bar-key": "value",
},
description=virtual_service_route_table_description,
freeform_tags={
"bar-key": "value",
},
priority=virtual_service_route_table_priority)
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.NewVirtualServiceRouteTable(ctx, "test_virtual_service_route_table", &ServiceMesh.VirtualServiceRouteTableArgs{
CompartmentId: pulumi.Any(compartmentId),
Name: pulumi.Any(virtualServiceRouteTableName),
RouteRules: servicemesh.VirtualServiceRouteTableRouteRuleArray{
&servicemesh.VirtualServiceRouteTableRouteRuleArgs{
Destinations: servicemesh.VirtualServiceRouteTableRouteRuleDestinationArray{
&servicemesh.VirtualServiceRouteTableRouteRuleDestinationArgs{
VirtualDeploymentId: pulumi.Any(testVirtualDeployment.Id),
Weight: pulumi.Any(virtualServiceRouteTableRouteRulesDestinationsWeight),
Port: pulumi.Any(virtualServiceRouteTableRouteRulesDestinationsPort),
},
},
Type: pulumi.Any(virtualServiceRouteTableRouteRulesType),
IsGrpc: pulumi.Any(virtualServiceRouteTableRouteRulesIsGrpc),
Path: pulumi.Any(virtualServiceRouteTableRouteRulesPath),
PathType: pulumi.Any(virtualServiceRouteTableRouteRulesPathType),
RequestTimeoutInMs: pulumi.Any(virtualServiceRouteTableRouteRulesRequestTimeoutInMs),
},
},
VirtualServiceId: pulumi.Any(testVirtualService.Id),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
Description: pulumi.Any(virtualServiceRouteTableDescription),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
Priority: pulumi.Any(virtualServiceRouteTablePriority),
})
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 = new Oci.ServiceMesh.VirtualServiceRouteTable("test_virtual_service_route_table", new()
{
CompartmentId = compartmentId,
Name = virtualServiceRouteTableName,
RouteRules = new[]
{
new Oci.ServiceMesh.Inputs.VirtualServiceRouteTableRouteRuleArgs
{
Destinations = new[]
{
new Oci.ServiceMesh.Inputs.VirtualServiceRouteTableRouteRuleDestinationArgs
{
VirtualDeploymentId = testVirtualDeployment.Id,
Weight = virtualServiceRouteTableRouteRulesDestinationsWeight,
Port = virtualServiceRouteTableRouteRulesDestinationsPort,
},
},
Type = virtualServiceRouteTableRouteRulesType,
IsGrpc = virtualServiceRouteTableRouteRulesIsGrpc,
Path = virtualServiceRouteTableRouteRulesPath,
PathType = virtualServiceRouteTableRouteRulesPathType,
RequestTimeoutInMs = virtualServiceRouteTableRouteRulesRequestTimeoutInMs,
},
},
VirtualServiceId = testVirtualService.Id,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = virtualServiceRouteTableDescription,
FreeformTags =
{
{ "bar-key", "value" },
},
Priority = virtualServiceRouteTablePriority,
});
});
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(compartmentId)
.name(virtualServiceRouteTableName)
.routeRules(VirtualServiceRouteTableRouteRuleArgs.builder()
.destinations(VirtualServiceRouteTableRouteRuleDestinationArgs.builder()
.virtualDeploymentId(testVirtualDeployment.id())
.weight(virtualServiceRouteTableRouteRulesDestinationsWeight)
.port(virtualServiceRouteTableRouteRulesDestinationsPort)
.build())
.type(virtualServiceRouteTableRouteRulesType)
.isGrpc(virtualServiceRouteTableRouteRulesIsGrpc)
.path(virtualServiceRouteTableRouteRulesPath)
.pathType(virtualServiceRouteTableRouteRulesPathType)
.requestTimeoutInMs(virtualServiceRouteTableRouteRulesRequestTimeoutInMs)
.build())
.virtualServiceId(testVirtualService.id())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(virtualServiceRouteTableDescription)
.freeformTags(Map.of("bar-key", "value"))
.priority(virtualServiceRouteTablePriority)
.build());
}
}
resources:
testVirtualServiceRouteTable:
type: oci:ServiceMesh:VirtualServiceRouteTable
name: test_virtual_service_route_table
properties:
compartmentId: ${compartmentId}
name: ${virtualServiceRouteTableName}
routeRules:
- destinations:
- virtualDeploymentId: ${testVirtualDeployment.id}
weight: ${virtualServiceRouteTableRouteRulesDestinationsWeight}
port: ${virtualServiceRouteTableRouteRulesDestinationsPort}
type: ${virtualServiceRouteTableRouteRulesType}
isGrpc: ${virtualServiceRouteTableRouteRulesIsGrpc}
path: ${virtualServiceRouteTableRouteRulesPath}
pathType: ${virtualServiceRouteTableRouteRulesPathType}
requestTimeoutInMs: ${virtualServiceRouteTableRouteRulesRequestTimeoutInMs}
virtualServiceId: ${testVirtualService.id}
definedTags:
foo-namespace.bar-key: value
description: ${virtualServiceRouteTableDescription}
freeformTags:
bar-key: value
priority: ${virtualServiceRouteTablePriority}
Create VirtualServiceRouteTable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualServiceRouteTable(name: string, args: VirtualServiceRouteTableArgs, opts?: CustomResourceOptions);
@overload
def VirtualServiceRouteTable(resource_name: str,
args: VirtualServiceRouteTableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualServiceRouteTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
route_rules: Optional[Sequence[_servicemesh.VirtualServiceRouteTableRouteRuleArgs]] = None,
virtual_service_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
priority: Optional[int] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var virtualServiceRouteTableResource = new Oci.ServiceMesh.VirtualServiceRouteTable("virtualServiceRouteTableResource", new()
{
CompartmentId = "string",
RouteRules = new[]
{
new Oci.ServiceMesh.Inputs.VirtualServiceRouteTableRouteRuleArgs
{
Destinations = new[]
{
new Oci.ServiceMesh.Inputs.VirtualServiceRouteTableRouteRuleDestinationArgs
{
VirtualDeploymentId = "string",
Weight = 0,
Port = 0,
},
},
Type = "string",
IsGrpc = false,
Path = "string",
PathType = "string",
RequestTimeoutInMs = "string",
},
},
VirtualServiceId = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
FreeformTags =
{
{ "string", "string" },
},
Name = "string",
Priority = 0,
});
example, err := ServiceMesh.NewVirtualServiceRouteTable(ctx, "virtualServiceRouteTableResource", &ServiceMesh.VirtualServiceRouteTableArgs{
CompartmentId: pulumi.String("string"),
RouteRules: servicemesh.VirtualServiceRouteTableRouteRuleArray{
&servicemesh.VirtualServiceRouteTableRouteRuleArgs{
Destinations: servicemesh.VirtualServiceRouteTableRouteRuleDestinationArray{
&servicemesh.VirtualServiceRouteTableRouteRuleDestinationArgs{
VirtualDeploymentId: pulumi.String("string"),
Weight: pulumi.Int(0),
Port: pulumi.Int(0),
},
},
Type: pulumi.String("string"),
IsGrpc: pulumi.Bool(false),
Path: pulumi.String("string"),
PathType: pulumi.String("string"),
RequestTimeoutInMs: pulumi.String("string"),
},
},
VirtualServiceId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Priority: pulumi.Int(0),
})
var virtualServiceRouteTableResource = new VirtualServiceRouteTable("virtualServiceRouteTableResource", VirtualServiceRouteTableArgs.builder()
.compartmentId("string")
.routeRules(VirtualServiceRouteTableRouteRuleArgs.builder()
.destinations(VirtualServiceRouteTableRouteRuleDestinationArgs.builder()
.virtualDeploymentId("string")
.weight(0)
.port(0)
.build())
.type("string")
.isGrpc(false)
.path("string")
.pathType("string")
.requestTimeoutInMs("string")
.build())
.virtualServiceId("string")
.definedTags(Map.of("string", "string"))
.description("string")
.freeformTags(Map.of("string", "string"))
.name("string")
.priority(0)
.build());
virtual_service_route_table_resource = oci.service_mesh.VirtualServiceRouteTable("virtualServiceRouteTableResource",
compartment_id="string",
route_rules=[oci.service_mesh.VirtualServiceRouteTableRouteRuleArgs(
destinations=[oci.service_mesh.VirtualServiceRouteTableRouteRuleDestinationArgs(
virtual_deployment_id="string",
weight=0,
port=0,
)],
type="string",
is_grpc=False,
path="string",
path_type="string",
request_timeout_in_ms="string",
)],
virtual_service_id="string",
defined_tags={
"string": "string",
},
description="string",
freeform_tags={
"string": "string",
},
name="string",
priority=0)
const virtualServiceRouteTableResource = new oci.servicemesh.VirtualServiceRouteTable("virtualServiceRouteTableResource", {
compartmentId: "string",
routeRules: [{
destinations: [{
virtualDeploymentId: "string",
weight: 0,
port: 0,
}],
type: "string",
isGrpc: false,
path: "string",
pathType: "string",
requestTimeoutInMs: "string",
}],
virtualServiceId: "string",
definedTags: {
string: "string",
},
description: "string",
freeformTags: {
string: "string",
},
name: "string",
priority: 0,
});
type: oci:ServiceMesh:VirtualServiceRouteTable
properties:
compartmentId: string
definedTags:
string: string
description: string
freeformTags:
string: string
name: string
priority: 0
routeRules:
- destinations:
- port: 0
virtualDeploymentId: string
weight: 0
isGrpc: false
path: string
pathType: string
requestTimeoutInMs: string
type: string
virtualServiceId: string
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:
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Route
Rules List<VirtualService Route Table Route Rule> - (Updatable) The route rules for the virtual service.
- Virtual
Service stringId 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
- Dictionary<string, string>
- (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
- Dictionary<string, string>
- (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.
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Route
Rules []VirtualService Route Table Route Rule Args - (Updatable) The route rules for the virtual service.
- Virtual
Service stringId 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
- map[string]string
- (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
- map[string]string
- (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.
- compartment
Id String - (Updatable) The OCID of the compartment.
- route
Rules List<VirtualService Route Table Route Rule> - (Updatable) The route rules for the virtual service.
- virtual
Service StringId 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
- Map<String,String>
- (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
- Map<String,String>
- (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.
- compartment
Id string - (Updatable) The OCID of the compartment.
- route
Rules VirtualService Route Table Route Rule[] - (Updatable) The route rules for the virtual service.
- virtual
Service stringId 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
- {[key: string]: string}
- (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
- {[key: string]: string}
- (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 Sequence[servicemesh.Virtual Service Route Table Route Rule Args] - (Updatable) The route rules for the virtual service.
- virtual_
service_ strid 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
- Mapping[str, str]
- (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
- Mapping[str, str]
- (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.
- compartment
Id String - (Updatable) The OCID of the compartment.
- route
Rules List<Property Map> - (Updatable) The route rules for the virtual service.
- virtual
Service StringId 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
- Map<String>
- (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
- Map<String>
- (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.
- Lifecycle
Details 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.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when this resource was created in an RFC3339 formatted datetime string.
- Time
Updated 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.
- Lifecycle
Details 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.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when this resource was created in an RFC3339 formatted datetime string.
- Time
Updated 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.
- lifecycle
Details 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.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when this resource was created in an RFC3339 formatted datetime string.
- time
Updated 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.
- lifecycle
Details 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.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time when this resource was created in an RFC3339 formatted datetime string.
- time
Updated 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.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details 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.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when this resource was created in an RFC3339 formatted datetime string.
- time
Updated 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, str]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = 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, str]] = 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.
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Dictionary<string, string>
- (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
- Dictionary<string, string>
- (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 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.
- Route
Rules List<VirtualService Route Table Route Rule> - (Updatable) 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"}
- Time
Created string - The time when this resource was created in an RFC3339 formatted datetime string.
- Time
Updated string - The time when this resource was updated in an RFC3339 formatted datetime string.
- Virtual
Service stringId 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 string - (Updatable) The OCID of the compartment.
- map[string]string
- (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
- map[string]string
- (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 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.
- Route
Rules []VirtualService Route Table Route Rule Args - (Updatable) 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"}
- Time
Created string - The time when this resource was created in an RFC3339 formatted datetime string.
- Time
Updated string - The time when this resource was updated in an RFC3339 formatted datetime string.
- Virtual
Service stringId 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 String - (Updatable) The OCID of the compartment.
- Map<String,String>
- (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
- Map<String,String>
- (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 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.
- route
Rules List<VirtualService Route Table Route Rule> - (Updatable) 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"}
- time
Created String - The time when this resource was created in an RFC3339 formatted datetime string.
- time
Updated String - The time when this resource was updated in an RFC3339 formatted datetime string.
- virtual
Service StringId 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 string - (Updatable) The OCID of the compartment.
- {[key: string]: string}
- (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
- {[key: string]: string}
- (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 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.
- route
Rules VirtualService Route Table Route Rule[] - (Updatable) 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"}
- time
Created string - The time when this resource was created in an RFC3339 formatted datetime string.
- time
Updated string - The time when this resource was updated in an RFC3339 formatted datetime string.
- virtual
Service stringId 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.
- Mapping[str, str]
- (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
- Mapping[str, str]
- (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 Sequence[servicemesh.Virtual Service Route Table Route Rule Args] - (Updatable) 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 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 String - (Updatable) The OCID of the compartment.
- Map<String>
- (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
- Map<String>
- (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 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.
- route
Rules List<Property Map> - (Updatable) 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"}
- time
Created String - The time when this resource was created in an RFC3339 formatted datetime string.
- time
Updated String - The time when this resource was updated in an RFC3339 formatted datetime string.
- virtual
Service StringId 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<Virtual
Service Route Table Route Rule Destination> - (Updatable) The destination of the request.
- Type string
- (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 string
- (Updatable) Route to match
- Path
Type string - (Updatable) Match type for the route
- Request
Timeout stringIn Ms - (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
[]Virtual
Service Route Table Route Rule Destination - (Updatable) The destination of the request.
- Type string
- (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 string
- (Updatable) Route to match
- Path
Type string - (Updatable) Match type for the route
- Request
Timeout stringIn Ms - (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<Virtual
Service Route Table Route Rule Destination> - (Updatable) The destination of the request.
- type String
- (Updatable) Type of protocol.
- is
Grpc 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
- path
Type String - (Updatable) Match type for the route
- request
Timeout StringIn Ms - (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
Virtual
Service Route Table Route Rule Destination[] - (Updatable) The destination of the request.
- type string
- (Updatable) Type of protocol.
- is
Grpc 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
- path
Type string - (Updatable) Match type for the route
- request
Timeout stringIn Ms - (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
Sequence[servicemesh.
Virtual Service Route Table Route Rule Destination] - (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_ strin_ ms - (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.
- is
Grpc 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
- path
Type String - (Updatable) Match type for the route
- request
Timeout StringIn Ms - (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
- Virtual
Deployment stringId - (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.
- Virtual
Deployment stringId - (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.
- virtual
Deployment StringId - (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.
- virtual
Deployment stringId - (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_ strid - (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.
- virtual
Deployment StringId - (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"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.