1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataScience
  5. getModelProvenance
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

oci.DataScience.getModelProvenance

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

    This data source provides details about a specific Model Provenance resource in Oracle Cloud Infrastructure Data Science service.

    Gets provenance information for specified model.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testModelProvenance = Oci.DataScience.GetModelProvenance.Invoke(new()
        {
            ModelId = oci_datascience_model.Test_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.GetModelProvenance(ctx, &datascience.GetModelProvenanceArgs{
    			ModelId: oci_datascience_model.Test_model.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.GetModelProvenanceArgs;
    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 testModelProvenance = DataScienceFunctions.getModelProvenance(GetModelProvenanceArgs.builder()
                .modelId(oci_datascience_model.test_model().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_model_provenance = oci.DataScience.get_model_provenance(model_id=oci_datascience_model["test_model"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testModelProvenance = oci.DataScience.getModelProvenance({
        modelId: oci_datascience_model.test_model.id,
    });
    
    variables:
      testModelProvenance:
        fn::invoke:
          Function: oci:DataScience:getModelProvenance
          Arguments:
            modelId: ${oci_datascience_model.test_model.id}
    

    Using getModelProvenance

    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 getModelProvenance(args: GetModelProvenanceArgs, opts?: InvokeOptions): Promise<GetModelProvenanceResult>
    function getModelProvenanceOutput(args: GetModelProvenanceOutputArgs, opts?: InvokeOptions): Output<GetModelProvenanceResult>
    def get_model_provenance(model_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetModelProvenanceResult
    def get_model_provenance_output(model_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetModelProvenanceResult]
    func GetModelProvenance(ctx *Context, args *GetModelProvenanceArgs, opts ...InvokeOption) (*GetModelProvenanceResult, error)
    func GetModelProvenanceOutput(ctx *Context, args *GetModelProvenanceOutputArgs, opts ...InvokeOption) GetModelProvenanceResultOutput

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

    public static class GetModelProvenance 
    {
        public static Task<GetModelProvenanceResult> InvokeAsync(GetModelProvenanceArgs args, InvokeOptions? opts = null)
        public static Output<GetModelProvenanceResult> Invoke(GetModelProvenanceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetModelProvenanceResult> getModelProvenance(GetModelProvenanceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataScience/getModelProvenance:getModelProvenance
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ModelId string

    The OCID of the model.

    ModelId string

    The OCID of the model.

    modelId String

    The OCID of the model.

    modelId string

    The OCID of the model.

    model_id str

    The OCID of the model.

    modelId String

    The OCID of the model.

    getModelProvenance Result

    The following output properties are available:

    GitBranch string

    For model reproducibility purposes. Branch of the git repository associated with model training.

    GitCommit string

    For model reproducibility purposes. Commit ID of the git repository associated with model training.

    Id string
    ModelId string
    RepositoryUrl string

    For model reproducibility purposes. URL of the git repository associated with model training.

    ScriptDir string

    For model reproducibility purposes. Path to model artifacts.

    TrainingId string

    The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.

    TrainingScript string

    For model reproducibility purposes. Path to the python script or notebook in which the model was trained."

    GitBranch string

    For model reproducibility purposes. Branch of the git repository associated with model training.

    GitCommit string

    For model reproducibility purposes. Commit ID of the git repository associated with model training.

    Id string
    ModelId string
    RepositoryUrl string

    For model reproducibility purposes. URL of the git repository associated with model training.

    ScriptDir string

    For model reproducibility purposes. Path to model artifacts.

    TrainingId string

    The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.

    TrainingScript string

    For model reproducibility purposes. Path to the python script or notebook in which the model was trained."

    gitBranch String

    For model reproducibility purposes. Branch of the git repository associated with model training.

    gitCommit String

    For model reproducibility purposes. Commit ID of the git repository associated with model training.

    id String
    modelId String
    repositoryUrl String

    For model reproducibility purposes. URL of the git repository associated with model training.

    scriptDir String

    For model reproducibility purposes. Path to model artifacts.

    trainingId String

    The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.

    trainingScript String

    For model reproducibility purposes. Path to the python script or notebook in which the model was trained."

    gitBranch string

    For model reproducibility purposes. Branch of the git repository associated with model training.

    gitCommit string

    For model reproducibility purposes. Commit ID of the git repository associated with model training.

    id string
    modelId string
    repositoryUrl string

    For model reproducibility purposes. URL of the git repository associated with model training.

    scriptDir string

    For model reproducibility purposes. Path to model artifacts.

    trainingId string

    The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.

    trainingScript string

    For model reproducibility purposes. Path to the python script or notebook in which the model was trained."

    git_branch str

    For model reproducibility purposes. Branch of the git repository associated with model training.

    git_commit str

    For model reproducibility purposes. Commit ID of the git repository associated with model training.

    id str
    model_id str
    repository_url str

    For model reproducibility purposes. URL of the git repository associated with model training.

    script_dir str

    For model reproducibility purposes. Path to model artifacts.

    training_id str

    The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.

    training_script str

    For model reproducibility purposes. Path to the python script or notebook in which the model was trained."

    gitBranch String

    For model reproducibility purposes. Branch of the git repository associated with model training.

    gitCommit String

    For model reproducibility purposes. Commit ID of the git repository associated with model training.

    id String
    modelId String
    repositoryUrl String

    For model reproducibility purposes. URL of the git repository associated with model training.

    scriptDir String

    For model reproducibility purposes. Path to model artifacts.

    trainingId String

    The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.

    trainingScript String

    For model reproducibility purposes. Path to the python script or notebook in which the model was trained."

    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 v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi