oci.DataScience.getModelDeployment
This data source provides details about a specific Model Deployment resource in Oracle Cloud Infrastructure Datascience service.
Retrieves the model deployment for the specified modelDeploymentId
.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testModelDeployment = Oci.DataScience.GetModelDeployment.Invoke(new()
{
ModelDeploymentId = oci_datascience_model_deployment.Test_model_deployment.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DataScience"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataScience.GetModelDeployment(ctx, &datascience.GetModelDeploymentArgs{
ModelDeploymentId: oci_datascience_model_deployment.Test_model_deployment.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetModelDeploymentArgs;
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 testModelDeployment = DataScienceFunctions.getModelDeployment(GetModelDeploymentArgs.builder()
.modelDeploymentId(oci_datascience_model_deployment.test_model_deployment().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_model_deployment = oci.DataScience.get_model_deployment(model_deployment_id=oci_datascience_model_deployment["test_model_deployment"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testModelDeployment = oci.DataScience.getModelDeployment({
modelDeploymentId: oci_datascience_model_deployment.test_model_deployment.id,
});
variables:
testModelDeployment:
fn::invoke:
Function: oci:DataScience:getModelDeployment
Arguments:
modelDeploymentId: ${oci_datascience_model_deployment.test_model_deployment.id}
Using getModelDeployment
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 getModelDeployment(args: GetModelDeploymentArgs, opts?: InvokeOptions): Promise<GetModelDeploymentResult>
function getModelDeploymentOutput(args: GetModelDeploymentOutputArgs, opts?: InvokeOptions): Output<GetModelDeploymentResult>
def get_model_deployment(model_deployment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelDeploymentResult
def get_model_deployment_output(model_deployment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetModelDeploymentResult]
func GetModelDeployment(ctx *Context, args *GetModelDeploymentArgs, opts ...InvokeOption) (*GetModelDeploymentResult, error)
func GetModelDeploymentOutput(ctx *Context, args *GetModelDeploymentOutputArgs, opts ...InvokeOption) GetModelDeploymentResultOutput
> Note: This function is named GetModelDeployment
in the Go SDK.
public static class GetModelDeployment
{
public static Task<GetModelDeploymentResult> InvokeAsync(GetModelDeploymentArgs args, InvokeOptions? opts = null)
public static Output<GetModelDeploymentResult> Invoke(GetModelDeploymentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetModelDeploymentResult> getModelDeployment(GetModelDeploymentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataScience/getModelDeployment:getModelDeployment
arguments:
# arguments dictionary
The following arguments are supported:
- Model
Deployment stringId The OCID of the model deployment.
- Model
Deployment stringId The OCID of the model deployment.
- model
Deployment StringId The OCID of the model deployment.
- model
Deployment stringId The OCID of the model deployment.
- model_
deployment_ strid The OCID of the model deployment.
- model
Deployment StringId The OCID of the model deployment.
getModelDeployment Result
The following output properties are available:
- Category
Log List<GetDetails Model Deployment Category Log Detail> The log details for each category.
- Compartment
Id string The OCID of the model deployment's compartment.
- Created
By string The OCID of the user who created the model deployment.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Description string
A short description of the model deployment.
- Display
Name string A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- Dictionary<string, object>
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"}
- Id string
The OCID of the model deployment.
- Lifecycle
Details string Details about the state of the model deployment.
- Model
Deployment List<GetConfiguration Details Model Deployment Model Deployment Configuration Detail> The model deployment configuration details.
- Model
Deployment stringId - Model
Deployment stringUrl The URL to interact with the model deployment.
- Project
Id string The OCID of the project associated with the model deployment.
- State string
The state of the model deployment.
- Time
Created string The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
- Category
Log []GetDetails Model Deployment Category Log Detail The log details for each category.
- Compartment
Id string The OCID of the model deployment's compartment.
- Created
By string The OCID of the user who created the model deployment.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Description string
A short description of the model deployment.
- Display
Name string A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- map[string]interface{}
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"}
- Id string
The OCID of the model deployment.
- Lifecycle
Details string Details about the state of the model deployment.
- Model
Deployment []GetConfiguration Details Model Deployment Model Deployment Configuration Detail The model deployment configuration details.
- Model
Deployment stringId - Model
Deployment stringUrl The URL to interact with the model deployment.
- Project
Id string The OCID of the project associated with the model deployment.
- State string
The state of the model deployment.
- Time
Created string The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
- category
Log List<GetDetails Model Deployment Category Log Detail> The log details for each category.
- compartment
Id String The OCID of the model deployment's compartment.
- created
By String The OCID of the user who created the model deployment.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description String
A short description of the model deployment.
- display
Name String A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- Map<String,Object>
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"}
- id String
The OCID of the model deployment.
- lifecycle
Details String Details about the state of the model deployment.
- model
Deployment List<GetConfiguration Details Model Deployment Model Deployment Configuration Detail> The model deployment configuration details.
- model
Deployment StringId - model
Deployment StringUrl The URL to interact with the model deployment.
- project
Id String The OCID of the project associated with the model deployment.
- state String
The state of the model deployment.
- time
Created String The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
- category
Log GetDetails Model Deployment Category Log Detail[] The log details for each category.
- compartment
Id string The OCID of the model deployment's compartment.
- created
By string The OCID of the user who created the model deployment.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description string
A short description of the model deployment.
- display
Name string A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- {[key: string]: any}
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"}
- id string
The OCID of the model deployment.
- lifecycle
Details string Details about the state of the model deployment.
- model
Deployment GetConfiguration Details Model Deployment Model Deployment Configuration Detail[] The model deployment configuration details.
- model
Deployment stringId - model
Deployment stringUrl The URL to interact with the model deployment.
- project
Id string The OCID of the project associated with the model deployment.
- state string
The state of the model deployment.
- time
Created string The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
- category_
log_ Getdetails Model Deployment Category Log Detail] The log details for each category.
- compartment_
id str The OCID of the model deployment's compartment.
- created_
by str The OCID of the user who created the model deployment.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description str
A short description of the model deployment.
- display_
name str A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- Mapping[str, Any]
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"}
- id str
The OCID of the model deployment.
- lifecycle_
details str Details about the state of the model deployment.
- model_
deployment_ Getconfiguration_ details Model Deployment Model Deployment Configuration Detail] The model deployment configuration details.
- model_
deployment_ strid - model_
deployment_ strurl The URL to interact with the model deployment.
- project_
id str The OCID of the project associated with the model deployment.
- state str
The state of the model deployment.
- time_
created str The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
- category
Log List<Property Map>Details The log details for each category.
- compartment
Id String The OCID of the model deployment's compartment.
- created
By String The OCID of the user who created the model deployment.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description String
A short description of the model deployment.
- display
Name String A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- Map<Any>
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"}
- id String
The OCID of the model deployment.
- lifecycle
Details String Details about the state of the model deployment.
- model
Deployment List<Property Map>Configuration Details The model deployment configuration details.
- model
Deployment StringId - model
Deployment StringUrl The URL to interact with the model deployment.
- project
Id String The OCID of the project associated with the model deployment.
- state String
The state of the model deployment.
- time
Created String The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
Supporting Types
GetModelDeploymentCategoryLogDetail
- Accesses
List<Get
Model Deployment Category Log Detail Access> The log details.
- Predicts
List<Get
Model Deployment Category Log Detail Predict> The log details.
- Accesses
[]Get
Model Deployment Category Log Detail Access The log details.
- Predicts
[]Get
Model Deployment Category Log Detail Predict The log details.
- accesses
List<Get
Model Deployment Category Log Detail Access> The log details.
- predicts
List<Get
Model Deployment Category Log Detail Predict> The log details.
- accesses
Get
Model Deployment Category Log Detail Access[] The log details.
- predicts
Get
Model Deployment Category Log Detail Predict[] The log details.
- accesses
Get
Model Deployment Category Log Detail Access] The log details.
- predicts
Get
Model Deployment Category Log Detail Predict] The log details.
- accesses List<Property Map>
The log details.
- predicts List<Property Map>
The log details.
GetModelDeploymentCategoryLogDetailAccess
- Log
Group stringId The OCID of a log group to work with.
- Log
Id string The OCID of a log to work with.
- Log
Group stringId The OCID of a log group to work with.
- Log
Id string The OCID of a log to work with.
- log
Group StringId The OCID of a log group to work with.
- log
Id String The OCID of a log to work with.
- log
Group stringId The OCID of a log group to work with.
- log
Id string The OCID of a log to work with.
- log_
group_ strid The OCID of a log group to work with.
- log_
id str The OCID of a log to work with.
- log
Group StringId The OCID of a log group to work with.
- log
Id String The OCID of a log to work with.
GetModelDeploymentCategoryLogDetailPredict
- Log
Group stringId The OCID of a log group to work with.
- Log
Id string The OCID of a log to work with.
- Log
Group stringId The OCID of a log group to work with.
- Log
Id string The OCID of a log to work with.
- log
Group StringId The OCID of a log group to work with.
- log
Id String The OCID of a log to work with.
- log
Group stringId The OCID of a log group to work with.
- log
Id string The OCID of a log to work with.
- log_
group_ strid The OCID of a log group to work with.
- log_
id str The OCID of a log to work with.
- log
Group StringId The OCID of a log group to work with.
- log
Id String The OCID of a log to work with.
GetModelDeploymentModelDeploymentConfigurationDetail
- Deployment
Type string The type of the model deployment.
- Model
Configuration List<GetDetails Model Deployment Model Deployment Configuration Detail Model Configuration Detail> The model configuration details.
- Deployment
Type string The type of the model deployment.
- Model
Configuration []GetDetails Model Deployment Model Deployment Configuration Detail Model Configuration Detail The model configuration details.
- deployment
Type String The type of the model deployment.
- model
Configuration List<GetDetails Model Deployment Model Deployment Configuration Detail Model Configuration Detail> The model configuration details.
- deployment
Type string The type of the model deployment.
- model
Configuration GetDetails Model Deployment Model Deployment Configuration Detail Model Configuration Detail[] The model configuration details.
- deployment_
type str The type of the model deployment.
- model_
configuration_ Getdetails Model Deployment Model Deployment Configuration Detail Model Configuration Detail] The model configuration details.
- deployment
Type String The type of the model deployment.
- model
Configuration List<Property Map>Details The model configuration details.
GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetail
- Bandwidth
Mbps int The network bandwidth for the model.
- Instance
Configurations List<GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration> The model deployment instance configuration
- Model
Id string The OCID of the model you want to deploy.
- Scaling
Policies List<GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Scaling Policy> The scaling policy to apply to each model of the deployment.
- Bandwidth
Mbps int The network bandwidth for the model.
- Instance
Configurations []GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration The model deployment instance configuration
- Model
Id string The OCID of the model you want to deploy.
- Scaling
Policies []GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Scaling Policy The scaling policy to apply to each model of the deployment.
- bandwidth
Mbps Integer The network bandwidth for the model.
- instance
Configurations List<GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration> The model deployment instance configuration
- model
Id String The OCID of the model you want to deploy.
- scaling
Policies List<GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Scaling Policy> The scaling policy to apply to each model of the deployment.
- bandwidth
Mbps number The network bandwidth for the model.
- instance
Configurations GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration[] The model deployment instance configuration
- model
Id string The OCID of the model you want to deploy.
- scaling
Policies GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Scaling Policy[] The scaling policy to apply to each model of the deployment.
- bandwidth_
mbps int The network bandwidth for the model.
- instance_
configurations GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration] The model deployment instance configuration
- model_
id str The OCID of the model you want to deploy.
- scaling_
policies GetModel Deployment Model Deployment Configuration Detail Model Configuration Detail Scaling Policy] The scaling policy to apply to each model of the deployment.
- bandwidth
Mbps Number The network bandwidth for the model.
- instance
Configurations List<Property Map> The model deployment instance configuration
- model
Id String The OCID of the model you want to deploy.
- scaling
Policies List<Property Map> The scaling policy to apply to each model of the deployment.
GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailInstanceConfiguration
- Instance
Shape stringName The shape used to launch the model deployment instances.
- Model
Deployment List<GetInstance Shape Config Details Model Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration Model Deployment Instance Shape Config Detail> Details for the model-deployment instance shape configuration.
- Instance
Shape stringName The shape used to launch the model deployment instances.
- Model
Deployment []GetInstance Shape Config Details Model Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration Model Deployment Instance Shape Config Detail Details for the model-deployment instance shape configuration.
- instance
Shape StringName The shape used to launch the model deployment instances.
- model
Deployment List<GetInstance Shape Config Details Model Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration Model Deployment Instance Shape Config Detail> Details for the model-deployment instance shape configuration.
- instance
Shape stringName The shape used to launch the model deployment instances.
- model
Deployment GetInstance Shape Config Details Model Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration Model Deployment Instance Shape Config Detail[] Details for the model-deployment instance shape configuration.
- instance_
shape_ strname The shape used to launch the model deployment instances.
- model_
deployment_ Getinstance_ shape_ config_ details Model Deployment Model Deployment Configuration Detail Model Configuration Detail Instance Configuration Model Deployment Instance Shape Config Detail] Details for the model-deployment instance shape configuration.
- instance
Shape StringName The shape used to launch the model deployment instances.
- model
Deployment List<Property Map>Instance Shape Config Details Details for the model-deployment instance shape configuration.
GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailInstanceConfigurationModelDeploymentInstanceShapeConfigDetail
- Memory
In doubleGbs A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- Ocpus double
A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- Memory
In float64Gbs A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- Ocpus float64
A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- memory
In DoubleGbs A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- ocpus Double
A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- memory
In numberGbs A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- ocpus number
A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- memory_
in_ floatgbs A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- ocpus float
A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- memory
In NumberGbs A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- ocpus Number
A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailScalingPolicy
- Instance
Count int The number of instances for the model deployment.
- Policy
Type string The type of scaling policy.
- Instance
Count int The number of instances for the model deployment.
- Policy
Type string The type of scaling policy.
- instance
Count Integer The number of instances for the model deployment.
- policy
Type String The type of scaling policy.
- instance
Count number The number of instances for the model deployment.
- policy
Type string The type of scaling policy.
- instance_
count int The number of instances for the model deployment.
- policy_
type str The type of scaling policy.
- instance
Count Number The number of instances for the model deployment.
- policy
Type String The type of scaling policy.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.