Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi
oci.DataScience.getModelGroupArtifactContent
Explore with Pulumi AI
This data source provides details about a specific Model Group Artifact Content resource in Oracle Cloud Infrastructure Data Science service.
Downloads the model artifact for the specified model group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testModelGroupArtifactContent = oci.DataScience.getModelGroupArtifactContent({
modelGroupId: testModelGroup.id,
range: modelGroupArtifactContentRange,
});
import pulumi
import pulumi_oci as oci
test_model_group_artifact_content = oci.DataScience.get_model_group_artifact_content(model_group_id=test_model_group["id"],
range=model_group_artifact_content_range)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datascience"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datascience.GetModelGroupArtifactContent(ctx, &datascience.GetModelGroupArtifactContentArgs{
ModelGroupId: testModelGroup.Id,
Range: pulumi.StringRef(modelGroupArtifactContentRange),
}, 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 testModelGroupArtifactContent = Oci.DataScience.GetModelGroupArtifactContent.Invoke(new()
{
ModelGroupId = testModelGroup.Id,
Range = modelGroupArtifactContentRange,
});
});
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.GetModelGroupArtifactContentArgs;
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 testModelGroupArtifactContent = DataScienceFunctions.getModelGroupArtifactContent(GetModelGroupArtifactContentArgs.builder()
.modelGroupId(testModelGroup.id())
.range(modelGroupArtifactContentRange)
.build());
}
}
variables:
testModelGroupArtifactContent:
fn::invoke:
function: oci:DataScience:getModelGroupArtifactContent
arguments:
modelGroupId: ${testModelGroup.id}
range: ${modelGroupArtifactContentRange}
Using getModelGroupArtifactContent
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 getModelGroupArtifactContent(args: GetModelGroupArtifactContentArgs, opts?: InvokeOptions): Promise<GetModelGroupArtifactContentResult>
function getModelGroupArtifactContentOutput(args: GetModelGroupArtifactContentOutputArgs, opts?: InvokeOptions): Output<GetModelGroupArtifactContentResult>
def get_model_group_artifact_content(model_group_id: Optional[str] = None,
range: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelGroupArtifactContentResult
def get_model_group_artifact_content_output(model_group_id: Optional[pulumi.Input[str]] = None,
range: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetModelGroupArtifactContentResult]
func GetModelGroupArtifactContent(ctx *Context, args *GetModelGroupArtifactContentArgs, opts ...InvokeOption) (*GetModelGroupArtifactContentResult, error)
func GetModelGroupArtifactContentOutput(ctx *Context, args *GetModelGroupArtifactContentOutputArgs, opts ...InvokeOption) GetModelGroupArtifactContentResultOutput
> Note: This function is named GetModelGroupArtifactContent
in the Go SDK.
public static class GetModelGroupArtifactContent
{
public static Task<GetModelGroupArtifactContentResult> InvokeAsync(GetModelGroupArtifactContentArgs args, InvokeOptions? opts = null)
public static Output<GetModelGroupArtifactContentResult> Invoke(GetModelGroupArtifactContentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetModelGroupArtifactContentResult> getModelGroupArtifactContent(GetModelGroupArtifactContentArgs args, InvokeOptions options)
public static Output<GetModelGroupArtifactContentResult> getModelGroupArtifactContent(GetModelGroupArtifactContentArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataScience/getModelGroupArtifactContent:getModelGroupArtifactContent
arguments:
# arguments dictionary
The following arguments are supported:
- Model
Group stringId - The OCID of the modelGroup.
- 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.
- Model
Group stringId - The OCID of the modelGroup.
- 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.
- model
Group StringId - The OCID of the modelGroup.
- 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.
- model
Group stringId - The OCID of the modelGroup.
- 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.
- model_
group_ strid - The OCID of the modelGroup.
- 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.
- model
Group StringId - The OCID of the modelGroup.
- 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.
getModelGroupArtifactContent Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Model
Group stringId - Range string
- Id string
- The provider-assigned unique ID for this managed resource.
- Model
Group stringId - Range string
- id String
- The provider-assigned unique ID for this managed resource.
- model
Group StringId - range String
- id string
- The provider-assigned unique ID for this managed resource.
- model
Group stringId - range string
- id str
- The provider-assigned unique ID for this managed resource.
- model_
group_ strid - range str
- id String
- The provider-assigned unique ID for this managed resource.
- model
Group StringId - range String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.