Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

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 Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testModelDeployment = Output.Create(Oci.DataScience.GetModelDeployment.InvokeAsync(new Oci.DataScience.GetModelDeploymentArgs
        {
            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
	})
}

Coming soon!

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,
});

Coming soon!

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:

ModelDeploymentId string

The OCID of the model deployment.

ModelDeploymentId string

The OCID of the model deployment.

modelDeploymentId String

The OCID of the model deployment.

modelDeploymentId string

The OCID of the model deployment.

model_deployment_id str

The OCID of the model deployment.

modelDeploymentId String

The OCID of the model deployment.

getModelDeployment Result

The following output properties are available:

CategoryLogDetails List<GetModelDeploymentCategoryLogDetail>

The log details for each category.

CompartmentId string

The OCID of the model deployment's compartment.

CreatedBy string

The OCID of the user who created the model deployment.

DefinedTags 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.

DisplayName 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

FreeformTags 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.

LifecycleDetails string

Details about the state of the model deployment.

ModelDeploymentConfigurationDetails List<GetModelDeploymentModelDeploymentConfigurationDetail>

The model deployment configuration details.

ModelDeploymentId string
ModelDeploymentUrl string

The URL to interact with the model deployment.

ProjectId string

The OCID of the project associated with the model deployment.

State string

The state of the model deployment.

TimeCreated string

The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

CategoryLogDetails []GetModelDeploymentCategoryLogDetail

The log details for each category.

CompartmentId string

The OCID of the model deployment's compartment.

CreatedBy string

The OCID of the user who created the model deployment.

DefinedTags 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.

DisplayName 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

FreeformTags 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.

LifecycleDetails string

Details about the state of the model deployment.

ModelDeploymentConfigurationDetails []GetModelDeploymentModelDeploymentConfigurationDetail

The model deployment configuration details.

ModelDeploymentId string
ModelDeploymentUrl string

The URL to interact with the model deployment.

ProjectId string

The OCID of the project associated with the model deployment.

State string

The state of the model deployment.

TimeCreated string

The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

categoryLogDetails List<GetModelDeploymentCategoryLogDetail>

The log details for each category.

compartmentId String

The OCID of the model deployment's compartment.

createdBy String

The OCID of the user who created the model deployment.

definedTags 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.

displayName 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

freeformTags 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.

lifecycleDetails String

Details about the state of the model deployment.

modelDeploymentConfigurationDetails List<GetModelDeploymentModelDeploymentConfigurationDetail>

The model deployment configuration details.

modelDeploymentId String
modelDeploymentUrl String

The URL to interact with the model deployment.

projectId String

The OCID of the project associated with the model deployment.

state String

The state of the model deployment.

timeCreated String

The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

categoryLogDetails GetModelDeploymentCategoryLogDetail[]

The log details for each category.

compartmentId string

The OCID of the model deployment's compartment.

createdBy string

The OCID of the user who created the model deployment.

definedTags {[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.

displayName 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

freeformTags {[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.

lifecycleDetails string

Details about the state of the model deployment.

modelDeploymentConfigurationDetails GetModelDeploymentModelDeploymentConfigurationDetail[]

The model deployment configuration details.

modelDeploymentId string
modelDeploymentUrl string

The URL to interact with the model deployment.

projectId string

The OCID of the project associated with the model deployment.

state string

The state of the model deployment.

timeCreated 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_details GetModelDeploymentCategoryLogDetail]

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.

defined_tags 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

freeform_tags 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_configuration_details GetModelDeploymentModelDeploymentConfigurationDetail]

The model deployment configuration details.

model_deployment_id str
model_deployment_url str

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

categoryLogDetails List<Property Map>

The log details for each category.

compartmentId String

The OCID of the model deployment's compartment.

createdBy String

The OCID of the user who created the model deployment.

definedTags 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.

displayName 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

freeformTags 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.

lifecycleDetails String

Details about the state of the model deployment.

modelDeploymentConfigurationDetails List<Property Map>

The model deployment configuration details.

modelDeploymentId String
modelDeploymentUrl String

The URL to interact with the model deployment.

projectId String

The OCID of the project associated with the model deployment.

state String

The state of the model deployment.

timeCreated 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

GetModelDeploymentCategoryLogDetailAccess

LogGroupId string

The OCID of a log group to work with.

LogId string

The OCID of a log to work with.

LogGroupId string

The OCID of a log group to work with.

LogId string

The OCID of a log to work with.

logGroupId String

The OCID of a log group to work with.

logId String

The OCID of a log to work with.

logGroupId string

The OCID of a log group to work with.

logId string

The OCID of a log to work with.

log_group_id str

The OCID of a log group to work with.

log_id str

The OCID of a log to work with.

logGroupId String

The OCID of a log group to work with.

logId String

The OCID of a log to work with.

GetModelDeploymentCategoryLogDetailPredict

LogGroupId string

The OCID of a log group to work with.

LogId string

The OCID of a log to work with.

LogGroupId string

The OCID of a log group to work with.

LogId string

The OCID of a log to work with.

logGroupId String

The OCID of a log group to work with.

logId String

The OCID of a log to work with.

logGroupId string

The OCID of a log group to work with.

logId string

The OCID of a log to work with.

log_group_id str

The OCID of a log group to work with.

log_id str

The OCID of a log to work with.

logGroupId String

The OCID of a log group to work with.

logId String

The OCID of a log to work with.

GetModelDeploymentModelDeploymentConfigurationDetail

deploymentType String

The type of the model deployment.

modelConfigurationDetails List<Property Map>

The model configuration details.

GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetail

BandwidthMbps int

The network bandwidth for the model.

InstanceConfigurations List<GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailInstanceConfiguration>

The model deployment instance configuration

ModelId string

The OCID of the model you want to deploy.

ScalingPolicies List<GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailScalingPolicy>

The scaling policy to apply to each model of the deployment.

BandwidthMbps int

The network bandwidth for the model.

InstanceConfigurations []GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailInstanceConfiguration

The model deployment instance configuration

ModelId string

The OCID of the model you want to deploy.

ScalingPolicies []GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailScalingPolicy

The scaling policy to apply to each model of the deployment.

bandwidthMbps Integer

The network bandwidth for the model.

instanceConfigurations List<GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailInstanceConfiguration>

The model deployment instance configuration

modelId String

The OCID of the model you want to deploy.

scalingPolicies List<GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailScalingPolicy>

The scaling policy to apply to each model of the deployment.

bandwidthMbps number

The network bandwidth for the model.

instanceConfigurations GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailInstanceConfiguration[]

The model deployment instance configuration

modelId string

The OCID of the model you want to deploy.

scalingPolicies GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailScalingPolicy[]

The scaling policy to apply to each model of the deployment.

bandwidth_mbps int

The network bandwidth for the model.

instance_configurations GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailInstanceConfiguration]

The model deployment instance configuration

model_id str

The OCID of the model you want to deploy.

scaling_policies GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailScalingPolicy]

The scaling policy to apply to each model of the deployment.

bandwidthMbps Number

The network bandwidth for the model.

instanceConfigurations List<Property Map>

The model deployment instance configuration

modelId String

The OCID of the model you want to deploy.

scalingPolicies List<Property Map>

The scaling policy to apply to each model of the deployment.

GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailInstanceConfiguration

InstanceShapeName string

The shape used to launch the model deployment instances.

InstanceShapeName string

The shape used to launch the model deployment instances.

instanceShapeName String

The shape used to launch the model deployment instances.

instanceShapeName string

The shape used to launch the model deployment instances.

instance_shape_name str

The shape used to launch the model deployment instances.

instanceShapeName String

The shape used to launch the model deployment instances.

GetModelDeploymentModelDeploymentConfigurationDetailModelConfigurationDetailScalingPolicy

InstanceCount int

The number of instances for the model deployment.

PolicyType string

The type of scaling policy.

InstanceCount int

The number of instances for the model deployment.

PolicyType string

The type of scaling policy.

instanceCount Integer

The number of instances for the model deployment.

policyType String

The type of scaling policy.

instanceCount number

The number of instances for the model deployment.

policyType 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.

instanceCount Number

The number of instances for the model deployment.

policyType String

The type of scaling policy.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.