1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. GenerativeAi
  6. RoutingProfile
Viewing docs for Oracle Cloud Infrastructure v5.1.0
published on Friday, Sep 25, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.1.0
published on Friday, Sep 25, 2026 by Pulumi

    This resource provides the Routing Profile resource in Oracle Cloud Infrastructure Generative AI service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/generative-ai/latest/RoutingProfile

    Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/generative_ai

    Creates a routing profile.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRoutingProfile = new oci.generativeai.RoutingProfile("test_routing_profile", {
        compartmentId: compartmentId,
        displayName: routingProfileDisplayName,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: routingProfileDescription,
        freeformTags: {
            Department: "Finance",
        },
        modelRoutingPolicy: {
            allowedModels: routingProfileModelRoutingPolicyAllowedModels,
        },
        regionRoutingPolicy: {
            allowedRegions: routingProfileRegionRoutingPolicyAllowedRegions,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_routing_profile = oci.generativeai.RoutingProfile("test_routing_profile",
        compartment_id=compartment_id,
        display_name=routing_profile_display_name,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=routing_profile_description,
        freeform_tags={
            "Department": "Finance",
        },
        model_routing_policy={
            "allowed_models": routing_profile_model_routing_policy_allowed_models,
        },
        region_routing_policy={
            "allowed_regions": routing_profile_region_routing_policy_allowed_regions,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/generativeai"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := generativeai.NewRoutingProfile(ctx, "test_routing_profile", &generativeai.RoutingProfileArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			DisplayName:   pulumi.Any(routingProfileDisplayName),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			Description: pulumi.Any(routingProfileDescription),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			ModelRoutingPolicy: &generativeai.RoutingProfileModelRoutingPolicyArgs{
    				AllowedModels: pulumi.Any(routingProfileModelRoutingPolicyAllowedModels),
    			},
    			RegionRoutingPolicy: &generativeai.RoutingProfileRegionRoutingPolicyArgs{
    				AllowedRegions: pulumi.Any(routingProfileRegionRoutingPolicyAllowedRegions),
    			},
    		})
    		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 testRoutingProfile = new Oci.GenerativeAi.RoutingProfile("test_routing_profile", new()
        {
            CompartmentId = compartmentId,
            DisplayName = routingProfileDisplayName,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = routingProfileDescription,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            ModelRoutingPolicy = new Oci.GenerativeAi.Inputs.RoutingProfileModelRoutingPolicyArgs
            {
                AllowedModels = routingProfileModelRoutingPolicyAllowedModels,
            },
            RegionRoutingPolicy = new Oci.GenerativeAi.Inputs.RoutingProfileRegionRoutingPolicyArgs
            {
                AllowedRegions = routingProfileRegionRoutingPolicyAllowedRegions,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.GenerativeAi.RoutingProfile;
    import com.pulumi.oci.GenerativeAi.RoutingProfileArgs;
    import com.pulumi.oci.GenerativeAi.inputs.RoutingProfileModelRoutingPolicyArgs;
    import com.pulumi.oci.GenerativeAi.inputs.RoutingProfileRegionRoutingPolicyArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testRoutingProfile = new RoutingProfile("testRoutingProfile", RoutingProfileArgs.builder()
                .compartmentId(compartmentId)
                .displayName(routingProfileDisplayName)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(routingProfileDescription)
                .freeformTags(Map.of("Department", "Finance"))
                .modelRoutingPolicy(RoutingProfileModelRoutingPolicyArgs.builder()
                    .allowedModels(routingProfileModelRoutingPolicyAllowedModels)
                    .build())
                .regionRoutingPolicy(RoutingProfileRegionRoutingPolicyArgs.builder()
                    .allowedRegions(routingProfileRegionRoutingPolicyAllowedRegions)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testRoutingProfile:
        type: oci:GenerativeAi:RoutingProfile
        name: test_routing_profile
        properties:
          compartmentId: ${compartmentId}
          displayName: ${routingProfileDisplayName}
          definedTags:
            Operations.CostCenter: '42'
          description: ${routingProfileDescription}
          freeformTags:
            Department: Finance
          modelRoutingPolicy:
            allowedModels: ${routingProfileModelRoutingPolicyAllowedModels}
          regionRoutingPolicy:
            allowedRegions: ${routingProfileRegionRoutingPolicyAllowedRegions}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    resource "oci_generativeai_routingprofile" "test_routing_profile" {
      compartment_id = compartmentId
      display_name   = routingProfileDisplayName
      defined_tags = {
        "Operations.CostCenter" = "42"
      }
      description = routingProfileDescription
      freeform_tags = {
        "Department" = "Finance"
      }
      model_routing_policy = {
        allowed_models = routingProfileModelRoutingPolicyAllowedModels
      }
      #Optional
      region_routing_policy = {
        allowed_regions = routingProfileRegionRoutingPolicyAllowedRegions
      }
    }
    

    Create RoutingProfile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RoutingProfile(name: string, args: RoutingProfileArgs, opts?: CustomResourceOptions);
    @overload
    def RoutingProfile(resource_name: str,
                       args: RoutingProfileArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def RoutingProfile(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       compartment_id: Optional[str] = None,
                       display_name: Optional[str] = None,
                       defined_tags: Optional[Mapping[str, str]] = None,
                       description: Optional[str] = None,
                       freeform_tags: Optional[Mapping[str, str]] = None,
                       model_routing_policy: Optional[RoutingProfileModelRoutingPolicyArgs] = None,
                       region_routing_policy: Optional[RoutingProfileRegionRoutingPolicyArgs] = None)
    func NewRoutingProfile(ctx *Context, name string, args RoutingProfileArgs, opts ...ResourceOption) (*RoutingProfile, error)
    public RoutingProfile(string name, RoutingProfileArgs args, CustomResourceOptions? opts = null)
    public RoutingProfile(String name, RoutingProfileArgs args)
    public RoutingProfile(String name, RoutingProfileArgs args, CustomResourceOptions options)
    
    type: oci:GenerativeAi:RoutingProfile
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "oci_generative_ai_routing_profile" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RoutingProfileArgs
    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 RoutingProfileArgs
    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 RoutingProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RoutingProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RoutingProfileArgs
    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 routingProfileResource = new Oci.GenerativeAi.RoutingProfile("routingProfileResource", new()
    {
        CompartmentId = "string",
        DisplayName = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        Description = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        ModelRoutingPolicy = new Oci.GenerativeAi.Inputs.RoutingProfileModelRoutingPolicyArgs
        {
            AllowedModels = new[]
            {
                "string",
            },
        },
        RegionRoutingPolicy = new Oci.GenerativeAi.Inputs.RoutingProfileRegionRoutingPolicyArgs
        {
            AllowedRegions = new[]
            {
                "string",
            },
        },
    });
    
    example, err := generativeai.NewRoutingProfile(ctx, "routingProfileResource", &generativeai.RoutingProfileArgs{
    	CompartmentId: pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ModelRoutingPolicy: &generativeai.RoutingProfileModelRoutingPolicyArgs{
    		AllowedModels: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	RegionRoutingPolicy: &generativeai.RoutingProfileRegionRoutingPolicyArgs{
    		AllowedRegions: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    resource "oci_generative_ai_routing_profile" "routingProfileResource" {
      lifecycle {
        create_before_destroy = true
      }
      compartment_id = "string"
      display_name   = "string"
      defined_tags = {
        "string" = "string"
      }
      description = "string"
      freeform_tags = {
        "string" = "string"
      }
      model_routing_policy = {
        allowed_models = ["string"]
      }
      region_routing_policy = {
        allowed_regions = ["string"]
      }
    }
    
    var routingProfileResource = new RoutingProfile("routingProfileResource", RoutingProfileArgs.builder()
        .compartmentId("string")
        .displayName("string")
        .definedTags(Map.of("string", "string"))
        .description("string")
        .freeformTags(Map.of("string", "string"))
        .modelRoutingPolicy(RoutingProfileModelRoutingPolicyArgs.builder()
            .allowedModels("string")
            .build())
        .regionRoutingPolicy(RoutingProfileRegionRoutingPolicyArgs.builder()
            .allowedRegions("string")
            .build())
        .build());
    
    routing_profile_resource = oci.generativeai.RoutingProfile("routingProfileResource",
        compartment_id="string",
        display_name="string",
        defined_tags={
            "string": "string",
        },
        description="string",
        freeform_tags={
            "string": "string",
        },
        model_routing_policy={
            "allowed_models": ["string"],
        },
        region_routing_policy={
            "allowed_regions": ["string"],
        })
    
    const routingProfileResource = new oci.generativeai.RoutingProfile("routingProfileResource", {
        compartmentId: "string",
        displayName: "string",
        definedTags: {
            string: "string",
        },
        description: "string",
        freeformTags: {
            string: "string",
        },
        modelRoutingPolicy: {
            allowedModels: ["string"],
        },
        regionRoutingPolicy: {
            allowedRegions: ["string"],
        },
    });
    
    type: oci:GenerativeAi:RoutingProfile
    properties:
        compartmentId: string
        definedTags:
            string: string
        description: string
        displayName: string
        freeformTags:
            string: string
        modelRoutingPolicy:
            allowedModels:
                - string
        regionRoutingPolicy:
            allowedRegions:
                - string
    

    RoutingProfile Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RoutingProfile resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the routing profile.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ModelRoutingPolicy RoutingProfileModelRoutingPolicy
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    RegionRoutingPolicy RoutingProfileRegionRoutingPolicy
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the routing profile.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ModelRoutingPolicy RoutingProfileModelRoutingPolicyArgs
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    RegionRoutingPolicy RoutingProfileRegionRoutingPolicyArgs
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    compartment_id string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    display_name string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    defined_tags map(string)
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) An optional description of the routing profile.
    freeform_tags map(string)
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    model_routing_policy object
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    region_routing_policy object
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the routing profile.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the routing profile.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    modelRoutingPolicy RoutingProfileModelRoutingPolicy
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    regionRoutingPolicy RoutingProfileRegionRoutingPolicy
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    compartmentId string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) An optional description of the routing profile.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    modelRoutingPolicy RoutingProfileModelRoutingPolicy
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    regionRoutingPolicy RoutingProfileRegionRoutingPolicy
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    compartment_id str
    (Updatable) The OCID of the compartment in which to create the routing profile.
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) An optional description of the routing profile.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    model_routing_policy RoutingProfileModelRoutingPolicyArgs
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    region_routing_policy RoutingProfileRegionRoutingPolicyArgs
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the routing profile.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the routing profile.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    modelRoutingPolicy Property Map
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    regionRoutingPolicy Property Map
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RoutingProfile 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 of the routing profile in more detail that can provide actionable information.
    PreviousStates List<RoutingProfilePreviousState>
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    State string
    The current state of the routing profile.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    PreviousStates []RoutingProfilePreviousState
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    State string
    The current state of the routing profile.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycle_details string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    previous_states list(object)
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    state string
    The current state of the routing profile.
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    time_updated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    previousStates List<RoutingProfilePreviousState>
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    state String
    The current state of the routing profile.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    previousStates RoutingProfilePreviousState[]
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    state string
    The current state of the routing profile.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    timeUpdated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    previous_states Sequence[RoutingProfilePreviousState]
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    state str
    The current state of the routing profile.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    time_updated str
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    previousStates List<Property Map>
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    state String
    The current state of the routing profile.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.

    Look up Existing RoutingProfile Resource

    Get an existing RoutingProfile 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?: RoutingProfileState, opts?: CustomResourceOptions): RoutingProfile
    @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,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            lifecycle_details: Optional[str] = None,
            model_routing_policy: Optional[RoutingProfileModelRoutingPolicyArgs] = None,
            previous_states: Optional[Sequence[RoutingProfilePreviousStateArgs]] = None,
            region_routing_policy: Optional[RoutingProfileRegionRoutingPolicyArgs] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> RoutingProfile
    func GetRoutingProfile(ctx *Context, name string, id IDInput, state *RoutingProfileState, opts ...ResourceOption) (*RoutingProfile, error)
    public static RoutingProfile Get(string name, Input<string> id, RoutingProfileState? state, CustomResourceOptions? opts = null)
    public static RoutingProfile get(String name, Output<String> id, RoutingProfileState state, CustomResourceOptions options)
    resources:  _:    type: oci:GenerativeAi:RoutingProfile    get:      id: ${id}
    import {
      to = oci_generative_ai_routing_profile.example
      id = "${id}"
    }
    
    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 in which to create the routing profile.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the routing profile.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    LifecycleDetails string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    ModelRoutingPolicy RoutingProfileModelRoutingPolicy
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    PreviousStates List<RoutingProfilePreviousState>
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    RegionRoutingPolicy RoutingProfileRegionRoutingPolicy
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    State string
    The current state of the routing profile.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the routing profile.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    LifecycleDetails string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    ModelRoutingPolicy RoutingProfileModelRoutingPolicyArgs
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    PreviousStates []RoutingProfilePreviousStateArgs
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    RegionRoutingPolicy RoutingProfileRegionRoutingPolicyArgs
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    State string
    The current state of the routing profile.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartment_id string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    defined_tags map(string)
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) An optional description of the routing profile.
    display_name string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeform_tags map(string)
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycle_details string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    model_routing_policy object
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    previous_states list(object)
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    region_routing_policy object
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state string
    The current state of the routing profile.
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    time_updated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the routing profile.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the routing profile.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycleDetails String
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    modelRoutingPolicy RoutingProfileModelRoutingPolicy
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    previousStates List<RoutingProfilePreviousState>
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    regionRoutingPolicy RoutingProfileRegionRoutingPolicy
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state String
    The current state of the routing profile.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartmentId string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) An optional description of the routing profile.
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycleDetails string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    modelRoutingPolicy RoutingProfileModelRoutingPolicy
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    previousStates RoutingProfilePreviousState[]
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    regionRoutingPolicy RoutingProfileRegionRoutingPolicy
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state string
    The current state of the routing profile.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    timeUpdated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartment_id str
    (Updatable) The OCID of the compartment in which to create the routing profile.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) An optional description of the routing profile.
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycle_details str
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    model_routing_policy RoutingProfileModelRoutingPolicyArgs
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    previous_states Sequence[RoutingProfilePreviousStateArgs]
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    region_routing_policy RoutingProfileRegionRoutingPolicyArgs
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state str
    The current state of the routing profile.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    time_updated str
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the routing profile.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the routing profile.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycleDetails String
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    modelRoutingPolicy Property Map
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    previousStates List<Property Map>
    A bounded snapshot of the previous state of a routing profile. This object intentionally omits previousState to avoid recursive nesting.
    regionRoutingPolicy Property Map
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state String
    The current state of the routing profile.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.

    Supporting Types

    RoutingProfileModelRoutingPolicy, RoutingProfileModelRoutingPolicyArgs

    AllowedModels List<string>

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    AllowedModels []string

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowed_models list(string)

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowedModels List<String>

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowedModels string[]

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowed_models Sequence[str]

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowedModels List<String>

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    RoutingProfilePreviousState, RoutingProfilePreviousStateArgs

    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the routing profile.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    An OCID that uniquely identifies this routing profile resource.
    LifecycleDetails string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    ModelRoutingPolicies List<RoutingProfilePreviousStateModelRoutingPolicy>
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    RegionRoutingPolicies List<RoutingProfilePreviousStateRegionRoutingPolicy>
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    State string
    The current state of the routing profile.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the routing profile.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    An OCID that uniquely identifies this routing profile resource.
    LifecycleDetails string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    ModelRoutingPolicies []RoutingProfilePreviousStateModelRoutingPolicy
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    RegionRoutingPolicies []RoutingProfilePreviousStateRegionRoutingPolicy
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    State string
    The current state of the routing profile.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartment_id string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    defined_tags map(string)
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) An optional description of the routing profile.
    display_name string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeform_tags map(string)
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    An OCID that uniquely identifies this routing profile resource.
    lifecycle_details string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    model_routing_policies list(object)
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    region_routing_policies list(object)
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state string
    The current state of the routing profile.
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    time_updated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the routing profile.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the routing profile.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    An OCID that uniquely identifies this routing profile resource.
    lifecycleDetails String
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    modelRoutingPolicies List<RoutingProfilePreviousStateModelRoutingPolicy>
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    regionRoutingPolicies List<RoutingProfilePreviousStateRegionRoutingPolicy>
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state String
    The current state of the routing profile.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartmentId string
    (Updatable) The OCID of the compartment in which to create the routing profile.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) An optional description of the routing profile.
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    An OCID that uniquely identifies this routing profile resource.
    lifecycleDetails string
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    modelRoutingPolicies RoutingProfilePreviousStateModelRoutingPolicy[]
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    regionRoutingPolicies RoutingProfilePreviousStateRegionRoutingPolicy[]
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state string
    The current state of the routing profile.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    timeUpdated string
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartment_id str
    (Updatable) The OCID of the compartment in which to create the routing profile.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) An optional description of the routing profile.
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    An OCID that uniquely identifies this routing profile resource.
    lifecycle_details str
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    model_routing_policies Sequence[RoutingProfilePreviousStateModelRoutingPolicy]
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    region_routing_policies Sequence[RoutingProfilePreviousStateRegionRoutingPolicy]
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state str
    The current state of the routing profile.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    time_updated str
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the routing profile.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the routing profile.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    An OCID that uniquely identifies this routing profile resource.
    lifecycleDetails String
    A message describing the current state of the routing profile in more detail that can provide actionable information.
    modelRoutingPolicies List<Property Map>
    (Updatable) The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.
    regionRoutingPolicies List<Property Map>
    (Updatable) The cross-region routing policy for the routing profile. If this policy is not specified, only the local region is allowed.
    state String
    The current state of the routing profile.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the routing profile was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the routing profile was updated in the format of an RFC3339 datetime string.

    RoutingProfilePreviousStateModelRoutingPolicy, RoutingProfilePreviousStateModelRoutingPolicyArgs

    AllowedModels List<string>

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    AllowedModels []string

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowed_models list(string)

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowedModels List<String>

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowedModels string[]

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowed_models Sequence[str]

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    allowedModels List<String>

    (Updatable) The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

    The order of entries is preserved. Duplicate entries are not allowed.

    RoutingProfilePreviousStateRegionRoutingPolicy, RoutingProfilePreviousStateRegionRoutingPolicyArgs

    AllowedRegions List<string>

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    AllowedRegions []string

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowed_regions list(string)

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowedRegions List<String>

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowedRegions string[]

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowed_regions Sequence[str]

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowedRegions List<String>

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    RoutingProfileRegionRoutingPolicy, RoutingProfileRegionRoutingPolicyArgs

    AllowedRegions List<string>

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    AllowedRegions []string

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowed_regions list(string)

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowedRegions List<String>

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowedRegions string[]

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowed_regions Sequence[str]

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    allowedRegions List<String>

    (Updatable) The ordered list of regions that routing is allowed to reach. Each entry is a region identifier (for example, us-chicago-1).

    The order of entries is preserved. Duplicate entries are not allowed.

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

    Import

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

    $ pulumi import oci:GenerativeAi/routingProfile:RoutingProfile test_routing_profile "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.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.1.0
    published on Friday, Sep 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial