1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataScience
  5. getModelDeploymentModelStates
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DataScience.getModelDeploymentModelStates

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This data source provides the list of Model Deployment Model States in Oracle Cloud Infrastructure Data Science service.

    Lists the status of models in a model group deployment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testModelDeploymentModelStates = oci.DataScience.getModelDeploymentModelStates({
        compartmentId: compartmentId,
        modelDeploymentId: testModelDeployment.id,
        displayName: modelDeploymentModelStateDisplayName,
        inferenceKey: modelDeploymentModelStateInferenceKey,
        modelId: testModel.id,
        projectId: testProject.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_model_deployment_model_states = oci.DataScience.get_model_deployment_model_states(compartment_id=compartment_id,
        model_deployment_id=test_model_deployment["id"],
        display_name=model_deployment_model_state_display_name,
        inference_key=model_deployment_model_state_inference_key,
        model_id=test_model["id"],
        project_id=test_project["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datascience"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datascience.GetModelDeploymentModelStates(ctx, &datascience.GetModelDeploymentModelStatesArgs{
    			CompartmentId:     compartmentId,
    			ModelDeploymentId: testModelDeployment.Id,
    			DisplayName:       pulumi.StringRef(modelDeploymentModelStateDisplayName),
    			InferenceKey:      pulumi.StringRef(modelDeploymentModelStateInferenceKey),
    			ModelId:           pulumi.StringRef(testModel.Id),
    			ProjectId:         pulumi.StringRef(testProject.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testModelDeploymentModelStates = Oci.DataScience.GetModelDeploymentModelStates.Invoke(new()
        {
            CompartmentId = compartmentId,
            ModelDeploymentId = testModelDeployment.Id,
            DisplayName = modelDeploymentModelStateDisplayName,
            InferenceKey = modelDeploymentModelStateInferenceKey,
            ModelId = testModel.Id,
            ProjectId = testProject.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataScience.DataScienceFunctions;
    import com.pulumi.oci.DataScience.inputs.GetModelDeploymentModelStatesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testModelDeploymentModelStates = DataScienceFunctions.getModelDeploymentModelStates(GetModelDeploymentModelStatesArgs.builder()
                .compartmentId(compartmentId)
                .modelDeploymentId(testModelDeployment.id())
                .displayName(modelDeploymentModelStateDisplayName)
                .inferenceKey(modelDeploymentModelStateInferenceKey)
                .modelId(testModel.id())
                .projectId(testProject.id())
                .build());
    
        }
    }
    
    variables:
      testModelDeploymentModelStates:
        fn::invoke:
          function: oci:DataScience:getModelDeploymentModelStates
          arguments:
            compartmentId: ${compartmentId}
            modelDeploymentId: ${testModelDeployment.id}
            displayName: ${modelDeploymentModelStateDisplayName}
            inferenceKey: ${modelDeploymentModelStateInferenceKey}
            modelId: ${testModel.id}
            projectId: ${testProject.id}
    

    Using getModelDeploymentModelStates

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getModelDeploymentModelStates(args: GetModelDeploymentModelStatesArgs, opts?: InvokeOptions): Promise<GetModelDeploymentModelStatesResult>
    function getModelDeploymentModelStatesOutput(args: GetModelDeploymentModelStatesOutputArgs, opts?: InvokeOptions): Output<GetModelDeploymentModelStatesResult>
    def get_model_deployment_model_states(compartment_id: Optional[str] = None,
                                          display_name: Optional[str] = None,
                                          filters: Optional[Sequence[GetModelDeploymentModelStatesFilter]] = None,
                                          inference_key: Optional[str] = None,
                                          model_deployment_id: Optional[str] = None,
                                          model_id: Optional[str] = None,
                                          project_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetModelDeploymentModelStatesResult
    def get_model_deployment_model_states_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                          display_name: Optional[pulumi.Input[str]] = None,
                                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetModelDeploymentModelStatesFilterArgs]]]] = None,
                                          inference_key: Optional[pulumi.Input[str]] = None,
                                          model_deployment_id: Optional[pulumi.Input[str]] = None,
                                          model_id: Optional[pulumi.Input[str]] = None,
                                          project_id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetModelDeploymentModelStatesResult]
    func GetModelDeploymentModelStates(ctx *Context, args *GetModelDeploymentModelStatesArgs, opts ...InvokeOption) (*GetModelDeploymentModelStatesResult, error)
    func GetModelDeploymentModelStatesOutput(ctx *Context, args *GetModelDeploymentModelStatesOutputArgs, opts ...InvokeOption) GetModelDeploymentModelStatesResultOutput

    > Note: This function is named GetModelDeploymentModelStates in the Go SDK.

    public static class GetModelDeploymentModelStates 
    {
        public static Task<GetModelDeploymentModelStatesResult> InvokeAsync(GetModelDeploymentModelStatesArgs args, InvokeOptions? opts = null)
        public static Output<GetModelDeploymentModelStatesResult> Invoke(GetModelDeploymentModelStatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetModelDeploymentModelStatesResult> getModelDeploymentModelStates(GetModelDeploymentModelStatesArgs args, InvokeOptions options)
    public static Output<GetModelDeploymentModelStatesResult> getModelDeploymentModelStates(GetModelDeploymentModelStatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataScience/getModelDeploymentModelStates:getModelDeploymentModelStates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    Filter results by the OCID of the compartment.
    ModelDeploymentId string
    The OCID of the model deployment.
    DisplayName string
    Filter results by its user-friendly name.
    Filters List<GetModelDeploymentModelStatesFilter>
    InferenceKey string
    Filter results by the inference key.
    ModelId string
    Filter results by the model ocid.
    ProjectId string
    Filter results by the OCID of the project.
    CompartmentId string
    Filter results by the OCID of the compartment.
    ModelDeploymentId string
    The OCID of the model deployment.
    DisplayName string
    Filter results by its user-friendly name.
    Filters []GetModelDeploymentModelStatesFilter
    InferenceKey string
    Filter results by the inference key.
    ModelId string
    Filter results by the model ocid.
    ProjectId string
    Filter results by the OCID of the project.
    compartmentId String
    Filter results by the OCID of the compartment.
    modelDeploymentId String
    The OCID of the model deployment.
    displayName String
    Filter results by its user-friendly name.
    filters List<GetModelDeploymentModelStatesFilter>
    inferenceKey String
    Filter results by the inference key.
    modelId String
    Filter results by the model ocid.
    projectId String
    Filter results by the OCID of the project.
    compartmentId string
    Filter results by the OCID of the compartment.
    modelDeploymentId string
    The OCID of the model deployment.
    displayName string
    Filter results by its user-friendly name.
    filters GetModelDeploymentModelStatesFilter[]
    inferenceKey string
    Filter results by the inference key.
    modelId string
    Filter results by the model ocid.
    projectId string
    Filter results by the OCID of the project.
    compartment_id str
    Filter results by the OCID of the compartment.
    model_deployment_id str
    The OCID of the model deployment.
    display_name str
    Filter results by its user-friendly name.
    filters Sequence[GetModelDeploymentModelStatesFilter]
    inference_key str
    Filter results by the inference key.
    model_id str
    Filter results by the model ocid.
    project_id str
    Filter results by the OCID of the project.
    compartmentId String
    Filter results by the OCID of the compartment.
    modelDeploymentId String
    The OCID of the model deployment.
    displayName String
    Filter results by its user-friendly name.
    filters List<Property Map>
    inferenceKey String
    Filter results by the inference key.
    modelId String
    Filter results by the model ocid.
    projectId String
    Filter results by the OCID of the project.

    getModelDeploymentModelStates Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ModelDeploymentId string
    ModelDeploymentModelStates List<GetModelDeploymentModelStatesModelDeploymentModelState>
    The list of model_deployment_model_states.
    DisplayName string
    A user-friendly display name for the resource.
    Filters List<GetModelDeploymentModelStatesFilter>
    InferenceKey string
    SaaS friendly name for the model OCID.
    ModelId string
    The OCID of the deployed model in model deployment.
    ProjectId string
    The OCID of the project associated with the model.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ModelDeploymentId string
    ModelDeploymentModelStates []GetModelDeploymentModelStatesModelDeploymentModelState
    The list of model_deployment_model_states.
    DisplayName string
    A user-friendly display name for the resource.
    Filters []GetModelDeploymentModelStatesFilter
    InferenceKey string
    SaaS friendly name for the model OCID.
    ModelId string
    The OCID of the deployed model in model deployment.
    ProjectId string
    The OCID of the project associated with the model.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    modelDeploymentId String
    modelDeploymentModelStates List<GetModelDeploymentModelStatesModelDeploymentModelState>
    The list of model_deployment_model_states.
    displayName String
    A user-friendly display name for the resource.
    filters List<GetModelDeploymentModelStatesFilter>
    inferenceKey String
    SaaS friendly name for the model OCID.
    modelId String
    The OCID of the deployed model in model deployment.
    projectId String
    The OCID of the project associated with the model.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    modelDeploymentId string
    modelDeploymentModelStates GetModelDeploymentModelStatesModelDeploymentModelState[]
    The list of model_deployment_model_states.
    displayName string
    A user-friendly display name for the resource.
    filters GetModelDeploymentModelStatesFilter[]
    inferenceKey string
    SaaS friendly name for the model OCID.
    modelId string
    The OCID of the deployed model in model deployment.
    projectId string
    The OCID of the project associated with the model.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    model_deployment_id str
    model_deployment_model_states Sequence[GetModelDeploymentModelStatesModelDeploymentModelState]
    The list of model_deployment_model_states.
    display_name str
    A user-friendly display name for the resource.
    filters Sequence[GetModelDeploymentModelStatesFilter]
    inference_key str
    SaaS friendly name for the model OCID.
    model_id str
    The OCID of the deployed model in model deployment.
    project_id str
    The OCID of the project associated with the model.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    modelDeploymentId String
    modelDeploymentModelStates List<Property Map>
    The list of model_deployment_model_states.
    displayName String
    A user-friendly display name for the resource.
    filters List<Property Map>
    inferenceKey String
    SaaS friendly name for the model OCID.
    modelId String
    The OCID of the deployed model in model deployment.
    projectId String
    The OCID of the project associated with the model.

    Supporting Types

    GetModelDeploymentModelStatesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetModelDeploymentModelStatesModelDeploymentModelState

    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    Filter results by its user-friendly name.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    InferenceKey string
    Filter results by the inference key.
    ModelId string
    Filter results by the model ocid.
    ProjectId string
    Filter results by the OCID of the project.
    State string
    The state of the deployed model in model deployment.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    Filter results by its user-friendly name.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    InferenceKey string
    Filter results by the inference key.
    ModelId string
    Filter results by the model ocid.
    ProjectId string
    Filter results by the OCID of the project.
    State string
    The state of the deployed model in model deployment.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    Filter results by its user-friendly name.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    inferenceKey String
    Filter results by the inference key.
    modelId String
    Filter results by the model ocid.
    projectId String
    Filter results by the OCID of the project.
    state String
    The state of the deployed model in model deployment.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    Filter results by its user-friendly name.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    inferenceKey string
    Filter results by the inference key.
    modelId string
    Filter results by the model ocid.
    projectId string
    Filter results by the OCID of the project.
    state string
    The state of the deployed model in model deployment.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    Filter results by its user-friendly name.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    inference_key str
    Filter results by the inference key.
    model_id str
    Filter results by the model ocid.
    project_id str
    Filter results by the OCID of the project.
    state str
    The state of the deployed model in model deployment.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    Filter results by its user-friendly name.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    inferenceKey String
    Filter results by the inference key.
    modelId String
    Filter results by the model ocid.
    projectId String
    Filter results by the OCID of the project.
    state String
    The state of the deployed model in model deployment.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi