Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DataScience.getModel
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Model resource in Oracle Cloud Infrastructure Data Science service.
Gets the specified model’s information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testModel = oci.DataScience.getModel({
modelId: testModelOciDatascienceModel.id,
});
import pulumi
import pulumi_oci as oci
test_model = oci.DataScience.get_model(model_id=test_model_oci_datascience_model["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.GetModel(ctx, &datascience.GetModelArgs{
ModelId: testModelOciDatascienceModel.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 testModel = Oci.DataScience.GetModel.Invoke(new()
{
ModelId = testModelOciDatascienceModel.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.GetModelArgs;
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 testModel = DataScienceFunctions.getModel(GetModelArgs.builder()
.modelId(testModelOciDatascienceModel.id())
.build());
}
}
variables:
testModel:
fn::invoke:
Function: oci:DataScience:getModel
Arguments:
modelId: ${testModelOciDatascienceModel.id}
Using getModel
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 getModel(args: GetModelArgs, opts?: InvokeOptions): Promise<GetModelResult>
function getModelOutput(args: GetModelOutputArgs, opts?: InvokeOptions): Output<GetModelResult>
def get_model(model_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelResult
def get_model_output(model_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetModelResult]
func GetModel(ctx *Context, args *GetModelArgs, opts ...InvokeOption) (*GetModelResult, error)
func GetModelOutput(ctx *Context, args *GetModelOutputArgs, opts ...InvokeOption) GetModelResultOutput
> Note: This function is named GetModel
in the Go SDK.
public static class GetModel
{
public static Task<GetModelResult> InvokeAsync(GetModelArgs args, InvokeOptions? opts = null)
public static Output<GetModelResult> Invoke(GetModelInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataScience/getModel:getModel
arguments:
# arguments dictionary
The following arguments are supported:
getModel Result
The following output properties are available:
- Artifact
Content stringDisposition - Artifact
Content stringLength - Artifact
Content stringMd5 - Artifact
Last stringModified - Compartment
Id string - The OCID of the model's compartment.
- Created
By string - The OCID of the user who created the model.
- Custom
Metadata List<GetLists Model Custom Metadata List> - An array of custom metadata details for the model.
- Defined
Metadata List<GetLists Model Defined Metadata List> - An array of defined metadata details for the model.
- 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.
- Display
Name string - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- Empty
Model bool - 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.
- Input
Schema string - Input schema file content in String format
- Model
Artifact string - Model
Id string - Output
Schema string - Output schema file content in String format
- Project
Id string - The OCID of the project associated with the model.
- State string
- The state of the model.
- 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
- Artifact
Content stringDisposition - Artifact
Content stringLength - Artifact
Content stringMd5 - Artifact
Last stringModified - Compartment
Id string - The OCID of the model's compartment.
- Created
By string - The OCID of the user who created the model.
- Custom
Metadata []GetLists Model Custom Metadata List - An array of custom metadata details for the model.
- Defined
Metadata []GetLists Model Defined Metadata List - An array of defined metadata details for the model.
- 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.
- Display
Name string - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- Empty
Model bool - 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.
- Input
Schema string - Input schema file content in String format
- Model
Artifact string - Model
Id string - Output
Schema string - Output schema file content in String format
- Project
Id string - The OCID of the project associated with the model.
- State string
- The state of the model.
- 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
- artifact
Content StringDisposition - artifact
Content StringLength - artifact
Content StringMd5 - artifact
Last StringModified - compartment
Id String - The OCID of the model's compartment.
- created
By String - The OCID of the user who created the model.
- custom
Metadata List<GetLists Model Custom Metadata List> - An array of custom metadata details for the model.
- defined
Metadata List<GetLists Model Defined Metadata List> - An array of defined metadata details for the model.
- 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.
- display
Name String - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- empty
Model Boolean - 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.
- input
Schema String - Input schema file content in String format
- model
Artifact String - model
Id String - output
Schema String - Output schema file content in String format
- project
Id String - The OCID of the project associated with the model.
- state String
- The state of the model.
- 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
- artifact
Content stringDisposition - artifact
Content stringLength - artifact
Content stringMd5 - artifact
Last stringModified - compartment
Id string - The OCID of the model's compartment.
- created
By string - The OCID of the user who created the model.
- custom
Metadata GetLists Model Custom Metadata List[] - An array of custom metadata details for the model.
- defined
Metadata GetLists Model Defined Metadata List[] - An array of defined metadata details for the model.
- {[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.
- display
Name string - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- empty
Model boolean - {[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.
- input
Schema string - Input schema file content in String format
- model
Artifact string - model
Id string - output
Schema string - Output schema file content in String format
- project
Id string - The OCID of the project associated with the model.
- state string
- The state of the model.
- 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
- artifact_
content_ strdisposition - artifact_
content_ strlength - artifact_
content_ strmd5 - artifact_
last_ strmodified - compartment_
id str - The OCID of the model's compartment.
- created_
by str - The OCID of the user who created the model.
- custom_
metadata_ Sequence[datascience.lists Get Model Custom Metadata List] - An array of custom metadata details for the model.
- defined_
metadata_ Sequence[datascience.lists Get Model Defined Metadata List] - An array of defined metadata details for the model.
- 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.
- display_
name str - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- empty_
model bool - 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.
- input_
schema str - Input schema file content in String format
- model_
artifact str - model_
id str - output_
schema str - Output schema file content in String format
- project_
id str - The OCID of the project associated with the model.
- state str
- The state of the model.
- 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
- artifact
Content StringDisposition - artifact
Content StringLength - artifact
Content StringMd5 - artifact
Last StringModified - compartment
Id String - The OCID of the model's compartment.
- created
By String - The OCID of the user who created the model.
- custom
Metadata List<Property Map>Lists - An array of custom metadata details for the model.
- defined
Metadata List<Property Map>Lists - An array of defined metadata details for the model.
- 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.
- display
Name String - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- empty
Model Boolean - 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.
- input
Schema String - Input schema file content in String format
- model
Artifact String - model
Id String - output
Schema String - Output schema file content in String format
- project
Id String - The OCID of the project associated with the model.
- state String
- The state of the model.
- 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
GetModelCustomMetadataList
- Category string
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- Description string
- A short description of the model.
- Key string
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- Value string
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- Category string
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- Description string
- A short description of the model.
- Key string
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- Value string
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- category String
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- description String
- A short description of the model.
- key String
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- value String
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- category string
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- description string
- A short description of the model.
- key string
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- value string
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- category str
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- description str
- A short description of the model.
- key str
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- value str
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- category String
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- description String
- A short description of the model.
- key String
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- value String
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
GetModelDefinedMetadataList
- Category string
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- Description string
- A short description of the model.
- Key string
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- Value string
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- Category string
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- Description string
- A short description of the model.
- Key string
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- Value string
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- category String
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- description String
- A short description of the model.
- key String
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- value String
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- category string
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- description string
- A short description of the model.
- key string
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- value string
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- category str
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- description str
- A short description of the model.
- key str
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- value str
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
- category String
- Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,other".
- description String
- A short description of the model.
- key String
- Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:
- useCaseType
- libraryName
- libraryVersion
- estimatorClass
- hyperParameters
- testartifactresults
- value String
- Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi