Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DataScience.getModelProvenance
Explore with Pulumi AI
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,
});
import pulumi
import pulumi_oci as oci
test_model_provenance = oci.DataScience.get_model_provenance(model_id=test_model["id"])
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
})
}
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,
});
});
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());
}
}
variables:
testModelProvenance:
fn::invoke:
Function: oci:DataScience:getModelProvenance
Arguments:
modelId: ${testModel.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:
getModelProvenance Result
The following output properties are available:
- Git
Branch string - For model reproducibility purposes. Branch of the git repository associated with model training.
- Git
Commit string - For model reproducibility purposes. Commit ID of the git repository associated with model training.
- Id string
- Model
Id string - Repository
Url string - For model reproducibility purposes. URL of the git repository associated with model training.
- Script
Dir string - For model reproducibility purposes. Path to model artifacts.
- Training
Id string - The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.
- Training
Script string - For model reproducibility purposes. Path to the python script or notebook in which the model was trained."
- Git
Branch string - For model reproducibility purposes. Branch of the git repository associated with model training.
- Git
Commit string - For model reproducibility purposes. Commit ID of the git repository associated with model training.
- Id string
- Model
Id string - Repository
Url string - For model reproducibility purposes. URL of the git repository associated with model training.
- Script
Dir string - For model reproducibility purposes. Path to model artifacts.
- Training
Id string - The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.
- Training
Script string - For model reproducibility purposes. Path to the python script or notebook in which the model was trained."
- git
Branch String - For model reproducibility purposes. Branch of the git repository associated with model training.
- git
Commit String - For model reproducibility purposes. Commit ID of the git repository associated with model training.
- id String
- model
Id String - repository
Url String - For model reproducibility purposes. URL of the git repository associated with model training.
- script
Dir String - For model reproducibility purposes. Path to model artifacts.
- training
Id String - The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.
- training
Script String - For model reproducibility purposes. Path to the python script or notebook in which the model was trained."
- git
Branch string - For model reproducibility purposes. Branch of the git repository associated with model training.
- git
Commit string - For model reproducibility purposes. Commit ID of the git repository associated with model training.
- id string
- model
Id string - repository
Url string - For model reproducibility purposes. URL of the git repository associated with model training.
- script
Dir string - For model reproducibility purposes. Path to model artifacts.
- training
Id string - The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.
- training
Script 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."
- git
Branch String - For model reproducibility purposes. Branch of the git repository associated with model training.
- git
Commit String - For model reproducibility purposes. Commit ID of the git repository associated with model training.
- id String
- model
Id String - repository
Url String - For model reproducibility purposes. URL of the git repository associated with model training.
- script
Dir String - For model reproducibility purposes. Path to model artifacts.
- training
Id String - The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.
- training
Script 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.