Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides details about a specific Model Defined Metadata Artifact Content resource in Oracle Cloud Infrastructure Data Science service.
Downloads model defined metadata artifact content for specified model metadata key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testModelDefinedMetadataArtifactContent = oci.DataScience.getModelDefinedMetadataArtifactContent({
metadatumKeyName: testKey.name,
modelId: testModel.id,
range: modelDefinedMetadataArtifactContentRange,
});
import pulumi
import pulumi_oci as oci
test_model_defined_metadata_artifact_content = oci.DataScience.get_model_defined_metadata_artifact_content(metadatum_key_name=test_key["name"],
model_id=test_model["id"],
range=model_defined_metadata_artifact_content_range)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/datascience"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datascience.GetModelDefinedMetadataArtifactContent(ctx, &datascience.GetModelDefinedMetadataArtifactContentArgs{
MetadatumKeyName: testKey.Name,
ModelId: testModel.Id,
Range: pulumi.StringRef(modelDefinedMetadataArtifactContentRange),
}, 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 testModelDefinedMetadataArtifactContent = Oci.DataScience.GetModelDefinedMetadataArtifactContent.Invoke(new()
{
MetadatumKeyName = testKey.Name,
ModelId = testModel.Id,
Range = modelDefinedMetadataArtifactContentRange,
});
});
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.GetModelDefinedMetadataArtifactContentArgs;
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 testModelDefinedMetadataArtifactContent = DataScienceFunctions.getModelDefinedMetadataArtifactContent(GetModelDefinedMetadataArtifactContentArgs.builder()
.metadatumKeyName(testKey.name())
.modelId(testModel.id())
.range(modelDefinedMetadataArtifactContentRange)
.build());
}
}
variables:
testModelDefinedMetadataArtifactContent:
fn::invoke:
function: oci:DataScience:getModelDefinedMetadataArtifactContent
arguments:
metadatumKeyName: ${testKey.name}
modelId: ${testModel.id}
range: ${modelDefinedMetadataArtifactContentRange}
Using getModelDefinedMetadataArtifactContent
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 getModelDefinedMetadataArtifactContent(args: GetModelDefinedMetadataArtifactContentArgs, opts?: InvokeOptions): Promise<GetModelDefinedMetadataArtifactContentResult>
function getModelDefinedMetadataArtifactContentOutput(args: GetModelDefinedMetadataArtifactContentOutputArgs, opts?: InvokeOptions): Output<GetModelDefinedMetadataArtifactContentResult>def get_model_defined_metadata_artifact_content(metadatum_key_name: Optional[str] = None,
model_id: Optional[str] = None,
range: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelDefinedMetadataArtifactContentResult
def get_model_defined_metadata_artifact_content_output(metadatum_key_name: Optional[pulumi.Input[str]] = None,
model_id: Optional[pulumi.Input[str]] = None,
range: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetModelDefinedMetadataArtifactContentResult]func GetModelDefinedMetadataArtifactContent(ctx *Context, args *GetModelDefinedMetadataArtifactContentArgs, opts ...InvokeOption) (*GetModelDefinedMetadataArtifactContentResult, error)
func GetModelDefinedMetadataArtifactContentOutput(ctx *Context, args *GetModelDefinedMetadataArtifactContentOutputArgs, opts ...InvokeOption) GetModelDefinedMetadataArtifactContentResultOutput> Note: This function is named GetModelDefinedMetadataArtifactContent in the Go SDK.
public static class GetModelDefinedMetadataArtifactContent
{
public static Task<GetModelDefinedMetadataArtifactContentResult> InvokeAsync(GetModelDefinedMetadataArtifactContentArgs args, InvokeOptions? opts = null)
public static Output<GetModelDefinedMetadataArtifactContentResult> Invoke(GetModelDefinedMetadataArtifactContentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetModelDefinedMetadataArtifactContentResult> getModelDefinedMetadataArtifactContent(GetModelDefinedMetadataArtifactContentArgs args, InvokeOptions options)
public static Output<GetModelDefinedMetadataArtifactContentResult> getModelDefinedMetadataArtifactContent(GetModelDefinedMetadataArtifactContentArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataScience/getModelDefinedMetadataArtifactContent:getModelDefinedMetadataArtifactContent
arguments:
# arguments dictionaryThe following arguments are supported:
- Metadatum
Key stringName - The name of the model metadatum in the metadata.
- Model
Id string - The OCID of the model.
- Range string
- Optional byte range to fetch, as described in RFC 7233, section 2.1. Note that only a single range of bytes is supported.
- Metadatum
Key stringName - The name of the model metadatum in the metadata.
- Model
Id string - The OCID of the model.
- Range string
- Optional byte range to fetch, as described in RFC 7233, section 2.1. Note that only a single range of bytes is supported.
- metadatum
Key StringName - The name of the model metadatum in the metadata.
- model
Id String - The OCID of the model.
- range String
- Optional byte range to fetch, as described in RFC 7233, section 2.1. Note that only a single range of bytes is supported.
- metadatum
Key stringName - The name of the model metadatum in the metadata.
- model
Id string - The OCID of the model.
- range string
- Optional byte range to fetch, as described in RFC 7233, section 2.1. Note that only a single range of bytes is supported.
- metadatum_
key_ strname - The name of the model metadatum in the metadata.
- model_
id str - The OCID of the model.
- range str
- Optional byte range to fetch, as described in RFC 7233, section 2.1. Note that only a single range of bytes is supported.
- metadatum
Key StringName - The name of the model metadatum in the metadata.
- model
Id String - The OCID of the model.
- range String
- Optional byte range to fetch, as described in RFC 7233, section 2.1. Note that only a single range of bytes is supported.
getModelDefinedMetadataArtifactContent Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatum
Key stringName - Model
Id string - Range string
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatum
Key stringName - Model
Id string - Range string
- id String
- The provider-assigned unique ID for this managed resource.
- metadatum
Key StringName - model
Id String - range String
- id string
- The provider-assigned unique ID for this managed resource.
- metadatum
Key stringName - model
Id string - range string
- id str
- The provider-assigned unique ID for this managed resource.
- metadatum_
key_ strname - model_
id str - range str
- id String
- The provider-assigned unique ID for this managed resource.
- metadatum
Key StringName - model
Id String - range String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
