1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataScience
  5. getModelProvenance
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.DataScience.getModelProvenance

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 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

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testModelProvenance = oci.DataScience.getModelProvenance({
    modelId: testModel.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_model_provenance = oci.DataScience.get_model_provenance(model_id=test_model["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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: testModel.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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 = testModel.Id,
    });

});
Copy
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(testModel.id())
            .build());

    }
}
Copy
variables:
  testModelProvenance:
    fn::invoke:
      function: oci:DataScience:getModelProvenance
      arguments:
        modelId: ${testModel.id}
Copy

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>
Copy
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]
Copy
func GetModelProvenance(ctx *Context, args *GetModelProvenanceArgs, opts ...InvokeOption) (*GetModelProvenanceResult, error)
func GetModelProvenanceOutput(ctx *Context, args *GetModelProvenanceOutputArgs, opts ...InvokeOption) GetModelProvenanceResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetModelProvenanceResult> getModelProvenance(GetModelProvenanceArgs args, InvokeOptions options)
public static Output<GetModelProvenanceResult> getModelProvenance(GetModelProvenanceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataScience/getModelProvenance:getModelProvenance
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ModelId This property is required. string
The OCID of the model.
ModelId This property is required. string
The OCID of the model.
modelId This property is required. String
The OCID of the model.
modelId This property is required. string
The OCID of the model.
model_id This property is required. str
The OCID of the model.
modelId This property is required. 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.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi