Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
This data source provides details about a specific Model Custom Metadata Artifact Content resource in Oracle Cloud Infrastructure Data Science service.
Downloads model custom metadata artifact content for specified model metadata key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testModelCustomMetadataArtifactContent = oci.DataScience.getModelCustomMetadataArtifactContent({
metadatumKeyName: testKey.name,
modelId: testModel.id,
range: modelCustomMetadataArtifactContentRange,
});
import pulumi
import pulumi_oci as oci
test_model_custom_metadata_artifact_content = oci.DataScience.get_model_custom_metadata_artifact_content(metadatum_key_name=test_key["name"],
model_id=test_model["id"],
range=model_custom_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.GetModelCustomMetadataArtifactContent(ctx, &datascience.GetModelCustomMetadataArtifactContentArgs{
MetadatumKeyName: testKey.Name,
ModelId: testModel.Id,
Range: pulumi.StringRef(modelCustomMetadataArtifactContentRange),
}, 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 testModelCustomMetadataArtifactContent = Oci.DataScience.GetModelCustomMetadataArtifactContent.Invoke(new()
{
MetadatumKeyName = testKey.Name,
ModelId = testModel.Id,
Range = modelCustomMetadataArtifactContentRange,
});
});
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.GetModelCustomMetadataArtifactContentArgs;
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 testModelCustomMetadataArtifactContent = DataScienceFunctions.getModelCustomMetadataArtifactContent(GetModelCustomMetadataArtifactContentArgs.builder()
.metadatumKeyName(testKey.name())
.modelId(testModel.id())
.range(modelCustomMetadataArtifactContentRange)
.build());
}
}
variables:
testModelCustomMetadataArtifactContent:
fn::invoke:
function: oci:DataScience:getModelCustomMetadataArtifactContent
arguments:
metadatumKeyName: ${testKey.name}
modelId: ${testModel.id}
range: ${modelCustomMetadataArtifactContentRange}
Using getModelCustomMetadataArtifactContent
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 getModelCustomMetadataArtifactContent(args: GetModelCustomMetadataArtifactContentArgs, opts?: InvokeOptions): Promise<GetModelCustomMetadataArtifactContentResult>
function getModelCustomMetadataArtifactContentOutput(args: GetModelCustomMetadataArtifactContentOutputArgs, opts?: InvokeOptions): Output<GetModelCustomMetadataArtifactContentResult>def get_model_custom_metadata_artifact_content(metadatum_key_name: Optional[str] = None,
model_id: Optional[str] = None,
range: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelCustomMetadataArtifactContentResult
def get_model_custom_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[GetModelCustomMetadataArtifactContentResult]func GetModelCustomMetadataArtifactContent(ctx *Context, args *GetModelCustomMetadataArtifactContentArgs, opts ...InvokeOption) (*GetModelCustomMetadataArtifactContentResult, error)
func GetModelCustomMetadataArtifactContentOutput(ctx *Context, args *GetModelCustomMetadataArtifactContentOutputArgs, opts ...InvokeOption) GetModelCustomMetadataArtifactContentResultOutput> Note: This function is named GetModelCustomMetadataArtifactContent in the Go SDK.
public static class GetModelCustomMetadataArtifactContent
{
public static Task<GetModelCustomMetadataArtifactContentResult> InvokeAsync(GetModelCustomMetadataArtifactContentArgs args, InvokeOptions? opts = null)
public static Output<GetModelCustomMetadataArtifactContentResult> Invoke(GetModelCustomMetadataArtifactContentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetModelCustomMetadataArtifactContentResult> getModelCustomMetadataArtifactContent(GetModelCustomMetadataArtifactContentArgs args, InvokeOptions options)
public static Output<GetModelCustomMetadataArtifactContentResult> getModelCustomMetadataArtifactContent(GetModelCustomMetadataArtifactContentArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataScience/getModelCustomMetadataArtifactContent:getModelCustomMetadataArtifactContent
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.
getModelCustomMetadataArtifactContent 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.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
