Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi
oci.DataScience.getModelDeploymentModelStates
Explore with Pulumi AI
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:
- Compartment
Id string - Filter results by the OCID of the compartment.
- Model
Deployment stringId - The OCID of the model deployment.
- Display
Name string - Filter results by its user-friendly name.
- Filters
List<Get
Model Deployment Model States Filter> - Inference
Key string - Filter results by the inference key.
- Model
Id string - Filter results by the model ocid.
- Project
Id string - Filter results by the OCID of the project.
- Compartment
Id string - Filter results by the OCID of the compartment.
- Model
Deployment stringId - The OCID of the model deployment.
- Display
Name string - Filter results by its user-friendly name.
- Filters
[]Get
Model Deployment Model States Filter - Inference
Key string - Filter results by the inference key.
- Model
Id string - Filter results by the model ocid.
- Project
Id string - Filter results by the OCID of the project.
- compartment
Id String - Filter results by the OCID of the compartment.
- model
Deployment StringId - The OCID of the model deployment.
- display
Name String - Filter results by its user-friendly name.
- filters
List<Get
Model Deployment Model States Filter> - inference
Key String - Filter results by the inference key.
- model
Id String - Filter results by the model ocid.
- project
Id String - Filter results by the OCID of the project.
- compartment
Id string - Filter results by the OCID of the compartment.
- model
Deployment stringId - The OCID of the model deployment.
- display
Name string - Filter results by its user-friendly name.
- filters
Get
Model Deployment Model States Filter[] - inference
Key string - Filter results by the inference key.
- model
Id string - Filter results by the model ocid.
- project
Id string - Filter results by the OCID of the project.
- compartment_
id str - Filter results by the OCID of the compartment.
- model_
deployment_ strid - The OCID of the model deployment.
- display_
name str - Filter results by its user-friendly name.
- filters
Sequence[Get
Model Deployment Model States Filter] - 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.
- compartment
Id String - Filter results by the OCID of the compartment.
- model
Deployment StringId - The OCID of the model deployment.
- display
Name String - Filter results by its user-friendly name.
- filters List<Property Map>
- inference
Key String - Filter results by the inference key.
- model
Id String - Filter results by the model ocid.
- project
Id String - Filter results by the OCID of the project.
getModelDeploymentModelStates Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Model
Deployment stringId - Model
Deployment List<GetModel States Model Deployment Model States Model Deployment Model State> - The list of model_deployment_model_states.
- Display
Name string - A user-friendly display name for the resource.
- Filters
List<Get
Model Deployment Model States Filter> - Inference
Key string - SaaS friendly name for the model OCID.
- Model
Id string - The OCID of the deployed model in model deployment.
- Project
Id string - The OCID of the project associated with the model.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Model
Deployment stringId - Model
Deployment []GetModel States Model Deployment Model States Model Deployment Model State - The list of model_deployment_model_states.
- Display
Name string - A user-friendly display name for the resource.
- Filters
[]Get
Model Deployment Model States Filter - Inference
Key string - SaaS friendly name for the model OCID.
- Model
Id string - The OCID of the deployed model in model deployment.
- Project
Id string - The OCID of the project associated with the model.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- model
Deployment StringId - model
Deployment List<GetModel States Model Deployment Model States Model Deployment Model State> - The list of model_deployment_model_states.
- display
Name String - A user-friendly display name for the resource.
- filters
List<Get
Model Deployment Model States Filter> - inference
Key String - SaaS friendly name for the model OCID.
- model
Id String - The OCID of the deployed model in model deployment.
- project
Id String - The OCID of the project associated with the model.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- model
Deployment stringId - model
Deployment GetModel States Model Deployment Model States Model Deployment Model State[] - The list of model_deployment_model_states.
- display
Name string - A user-friendly display name for the resource.
- filters
Get
Model Deployment Model States Filter[] - inference
Key string - SaaS friendly name for the model OCID.
- model
Id string - The OCID of the deployed model in model deployment.
- project
Id 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_ strid - model_
deployment_ Sequence[Getmodel_ states Model Deployment Model States Model Deployment Model State] - The list of model_deployment_model_states.
- display_
name str - A user-friendly display name for the resource.
- filters
Sequence[Get
Model Deployment Model States Filter] - 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.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- model
Deployment StringId - model
Deployment List<Property Map>Model States - The list of model_deployment_model_states.
- display
Name String - A user-friendly display name for the resource.
- filters List<Property Map>
- inference
Key String - SaaS friendly name for the model OCID.
- model
Id String - The OCID of the deployed model in model deployment.
- project
Id String - The OCID of the project associated with the model.
Supporting Types
GetModelDeploymentModelStatesFilter
GetModelDeploymentModelStatesModelDeploymentModelState
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - Filter results by its user-friendly name.
- 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"}
- Inference
Key string - Filter results by the inference key.
- Model
Id string - Filter results by the model ocid.
- Project
Id string - Filter results by the OCID of the project.
- State string
- The state of the deployed model in model deployment.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - Filter results by its user-friendly name.
- 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"}
- Inference
Key string - Filter results by the inference key.
- Model
Id string - Filter results by the model ocid.
- Project
Id string - Filter results by the OCID of the project.
- State string
- The state of the deployed model in model deployment.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - Filter results by its user-friendly name.
- 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"}
- inference
Key String - Filter results by the inference key.
- model
Id String - Filter results by the model ocid.
- project
Id String - Filter results by the OCID of the project.
- state String
- The state of the deployed model in model deployment.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - Filter results by its user-friendly name.
- {[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"}
- inference
Key string - Filter results by the inference key.
- model
Id string - Filter results by the model ocid.
- project
Id string - Filter results by the OCID of the project.
- state string
- The state of the deployed model in model deployment.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- 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.
- 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.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - Filter results by its user-friendly name.
- 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"}
- inference
Key String - Filter results by the inference key.
- model
Id String - Filter results by the model ocid.
- project
Id String - Filter results by the OCID of the project.
- state String
- The state of the deployed model in model deployment.
- 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.