1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataScience
  5. ModelGroupArtifact
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DataScience.ModelGroupArtifact

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This resource provides the Model Group Artifact resource in Oracle Cloud Infrastructure Data Science service.

    Creates artifact for the Model Group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testModelGroupArtifact = new oci.datascience.ModelGroupArtifact("test_model_group_artifact", {
        modelGroupArtifact: modelGroupArtifactModelGroupArtifact,
        contentLength: modelGroupArtifactContentLength,
        modelGroupId: testModelGroup.id,
        contentDisposition: modelGroupArtifactContentDisposition,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_model_group_artifact = oci.datascience.ModelGroupArtifact("test_model_group_artifact",
        model_group_artifact=model_group_artifact_model_group_artifact,
        content_length=model_group_artifact_content_length,
        model_group_id=test_model_group["id"],
        content_disposition=model_group_artifact_content_disposition)
    
    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.NewModelGroupArtifact(ctx, "test_model_group_artifact", &datascience.ModelGroupArtifactArgs{
    			ModelGroupArtifact: pulumi.Any(modelGroupArtifactModelGroupArtifact),
    			ContentLength:      pulumi.Any(modelGroupArtifactContentLength),
    			ModelGroupId:       pulumi.Any(testModelGroup.Id),
    			ContentDisposition: pulumi.Any(modelGroupArtifactContentDisposition),
    		})
    		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 testModelGroupArtifact = new Oci.DataScience.ModelGroupArtifact("test_model_group_artifact", new()
        {
            GroupArtifact = modelGroupArtifactModelGroupArtifact,
            ContentLength = modelGroupArtifactContentLength,
            ModelGroupId = testModelGroup.Id,
            ContentDisposition = modelGroupArtifactContentDisposition,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataScience.ModelGroupArtifact;
    import com.pulumi.oci.DataScience.ModelGroupArtifactArgs;
    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) {
            var testModelGroupArtifact = new ModelGroupArtifact("testModelGroupArtifact", ModelGroupArtifactArgs.builder()
                .modelGroupArtifact(modelGroupArtifactModelGroupArtifact)
                .contentLength(modelGroupArtifactContentLength)
                .modelGroupId(testModelGroup.id())
                .contentDisposition(modelGroupArtifactContentDisposition)
                .build());
    
        }
    }
    
    resources:
      testModelGroupArtifact:
        type: oci:DataScience:ModelGroupArtifact
        name: test_model_group_artifact
        properties:
          modelGroupArtifact: ${modelGroupArtifactModelGroupArtifact}
          contentLength: ${modelGroupArtifactContentLength}
          modelGroupId: ${testModelGroup.id}
          contentDisposition: ${modelGroupArtifactContentDisposition}
    

    Create ModelGroupArtifact Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ModelGroupArtifact(name: string, args: ModelGroupArtifactArgs, opts?: CustomResourceOptions);
    @overload
    def ModelGroupArtifact(resource_name: str,
                           args: ModelGroupArtifactArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ModelGroupArtifact(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           content_length: Optional[str] = None,
                           model_group_artifact: Optional[str] = None,
                           model_group_id: Optional[str] = None,
                           content_disposition: Optional[str] = None)
    func NewModelGroupArtifact(ctx *Context, name string, args ModelGroupArtifactArgs, opts ...ResourceOption) (*ModelGroupArtifact, error)
    public ModelGroupArtifact(string name, ModelGroupArtifactArgs args, CustomResourceOptions? opts = null)
    public ModelGroupArtifact(String name, ModelGroupArtifactArgs args)
    public ModelGroupArtifact(String name, ModelGroupArtifactArgs args, CustomResourceOptions options)
    
    type: oci:DataScience:ModelGroupArtifact
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ModelGroupArtifactArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ModelGroupArtifactArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ModelGroupArtifactArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ModelGroupArtifactArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ModelGroupArtifactArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var modelGroupArtifactResource = new Oci.DataScience.ModelGroupArtifact("modelGroupArtifactResource", new()
    {
        ContentLength = "string",
        GroupArtifact = "string",
        ModelGroupId = "string",
        ContentDisposition = "string",
    });
    
    example, err := datascience.NewModelGroupArtifact(ctx, "modelGroupArtifactResource", &datascience.ModelGroupArtifactArgs{
    	ContentLength:      pulumi.String("string"),
    	ModelGroupArtifact: pulumi.String("string"),
    	ModelGroupId:       pulumi.String("string"),
    	ContentDisposition: pulumi.String("string"),
    })
    
    var modelGroupArtifactResource = new ModelGroupArtifact("modelGroupArtifactResource", ModelGroupArtifactArgs.builder()
        .contentLength("string")
        .modelGroupArtifact("string")
        .modelGroupId("string")
        .contentDisposition("string")
        .build());
    
    model_group_artifact_resource = oci.datascience.ModelGroupArtifact("modelGroupArtifactResource",
        content_length="string",
        model_group_artifact="string",
        model_group_id="string",
        content_disposition="string")
    
    const modelGroupArtifactResource = new oci.datascience.ModelGroupArtifact("modelGroupArtifactResource", {
        contentLength: "string",
        modelGroupArtifact: "string",
        modelGroupId: "string",
        contentDisposition: "string",
    });
    
    type: oci:DataScience:ModelGroupArtifact
    properties:
        contentDisposition: string
        contentLength: string
        modelGroupArtifact: string
        modelGroupId: string
    

    ModelGroupArtifact Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ModelGroupArtifact resource accepts the following input properties:

    ContentLength string
    The content length of the body.
    GroupArtifact string
    The model group artifact to upload.
    ModelGroupId string

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ContentDisposition string
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    ContentLength string
    The content length of the body.
    ModelGroupArtifact string
    The model group artifact to upload.
    ModelGroupId string

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ContentDisposition string
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    contentLength String
    The content length of the body.
    modelGroupArtifact String
    The model group artifact to upload.
    modelGroupId String

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    contentDisposition String
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    contentLength string
    The content length of the body.
    modelGroupArtifact string
    The model group artifact to upload.
    modelGroupId string

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    contentDisposition string
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    content_length str
    The content length of the body.
    model_group_artifact str
    The model group artifact to upload.
    model_group_id str

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    content_disposition str
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    contentLength String
    The content length of the body.
    modelGroupArtifact String
    The model group artifact to upload.
    modelGroupId String

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    contentDisposition String
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ModelGroupArtifact resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ModelGroupArtifact Resource

    Get an existing ModelGroupArtifact resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ModelGroupArtifactState, opts?: CustomResourceOptions): ModelGroupArtifact
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content_disposition: Optional[str] = None,
            content_length: Optional[str] = None,
            model_group_artifact: Optional[str] = None,
            model_group_id: Optional[str] = None) -> ModelGroupArtifact
    func GetModelGroupArtifact(ctx *Context, name string, id IDInput, state *ModelGroupArtifactState, opts ...ResourceOption) (*ModelGroupArtifact, error)
    public static ModelGroupArtifact Get(string name, Input<string> id, ModelGroupArtifactState? state, CustomResourceOptions? opts = null)
    public static ModelGroupArtifact get(String name, Output<String> id, ModelGroupArtifactState state, CustomResourceOptions options)
    resources:  _:    type: oci:DataScience:ModelGroupArtifact    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ContentDisposition string
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    ContentLength string
    The content length of the body.
    GroupArtifact string
    The model group artifact to upload.
    ModelGroupId string

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ContentDisposition string
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    ContentLength string
    The content length of the body.
    ModelGroupArtifact string
    The model group artifact to upload.
    ModelGroupId string

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    contentDisposition String
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    contentLength String
    The content length of the body.
    modelGroupArtifact String
    The model group artifact to upload.
    modelGroupId String

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    contentDisposition string
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    contentLength string
    The content length of the body.
    modelGroupArtifact string
    The model group artifact to upload.
    modelGroupId string

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    content_disposition str
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    content_length str
    The content length of the body.
    model_group_artifact str
    The model group artifact to upload.
    model_group_id str

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    contentDisposition String
    This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example: {"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
    contentLength String
    The content length of the body.
    modelGroupArtifact String
    The model group artifact to upload.
    modelGroupId String

    The OCID of the modelGroup.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    ModelGroupArtifacts can be imported using the id, e.g.

    $ pulumi import oci:DataScience/modelGroupArtifact:ModelGroupArtifact test_model_group_artifact "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi