1. Packages
  2. Packages
  3. Databricks Provider
  4. API Docs
  5. MlflowModel
Viewing docs for Databricks v0.4.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
databricks logo
Viewing docs for Databricks v0.4.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    This resource allows you to create MLflow models in Databricks.

    Access Control

    • databricks.Permissions can control which groups or individual users can Read, Edit, Manage Staging Versions, Manage Production Versions, and Manage individual models.

    The following resources are often used in the same context:

    Example Usage

    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var test = new Databricks.MlflowModel("test", new Databricks.MlflowModelArgs
            {
                Description = "My MLflow model description",
                Tags = 
                {
                    new Databricks.Inputs.MlflowModelTagArgs
                    {
                        Key = "key1",
                        Value = "value1",
                    },
                    new Databricks.Inputs.MlflowModelTagArgs
                    {
                        Key = "key2",
                        Value = "value2",
                    },
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewMlflowModel(ctx, "test", &databricks.MlflowModelArgs{
    			Description: pulumi.String("My MLflow model description"),
    			Tags: MlflowModelTagArray{
    				&MlflowModelTagArgs{
    					Key:   pulumi.String("key1"),
    					Value: pulumi.String("value1"),
    				},
    				&MlflowModelTagArgs{
    					Key:   pulumi.String("key2"),
    					Value: pulumi.String("value2"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const test = new databricks.MlflowModel("test", {
        description: "My MLflow model description",
        tags: [
            {
                key: "key1",
                value: "value1",
            },
            {
                key: "key2",
                value: "value2",
            },
        ],
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    test = databricks.MlflowModel("test",
        description="My MLflow model description",
        tags=[
            databricks.MlflowModelTagArgs(
                key="key1",
                value="value1",
            ),
            databricks.MlflowModelTagArgs(
                key="key2",
                value="value2",
            ),
        ])
    

    Example coming soon!

    Create MlflowModel Resource

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

    Constructor syntax

    new MlflowModel(name: string, args?: MlflowModelArgs, opts?: CustomResourceOptions);
    @overload
    def MlflowModel(resource_name: str,
                    args: Optional[MlflowModelArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def MlflowModel(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    creation_timestamp: Optional[int] = None,
                    description: Optional[str] = None,
                    last_updated_timestamp: Optional[int] = None,
                    name: Optional[str] = None,
                    registered_model_id: Optional[str] = None,
                    tags: Optional[Sequence[MlflowModelTagArgs]] = None,
                    user_id: Optional[str] = None)
    func NewMlflowModel(ctx *Context, name string, args *MlflowModelArgs, opts ...ResourceOption) (*MlflowModel, error)
    public MlflowModel(string name, MlflowModelArgs? args = null, CustomResourceOptions? opts = null)
    public MlflowModel(String name, MlflowModelArgs args)
    public MlflowModel(String name, MlflowModelArgs args, CustomResourceOptions options)
    
    type: databricks:MlflowModel
    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 MlflowModelArgs
    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 MlflowModelArgs
    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 MlflowModelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MlflowModelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MlflowModelArgs
    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 mlflowModelResource = new Databricks.MlflowModel("mlflowModelResource", new()
    {
        CreationTimestamp = 0,
        Description = "string",
        LastUpdatedTimestamp = 0,
        Name = "string",
        RegisteredModelId = "string",
        Tags = new[]
        {
            new Databricks.Inputs.MlflowModelTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        UserId = "string",
    });
    
    example, err := databricks.NewMlflowModel(ctx, "mlflowModelResource", &databricks.MlflowModelArgs{
    	CreationTimestamp:    pulumi.Int(0),
    	Description:          pulumi.String("string"),
    	LastUpdatedTimestamp: pulumi.Int(0),
    	Name:                 pulumi.String("string"),
    	RegisteredModelId:    pulumi.String("string"),
    	Tags: databricks.MlflowModelTagArray{
    		&databricks.MlflowModelTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	UserId: pulumi.String("string"),
    })
    
    var mlflowModelResource = new MlflowModel("mlflowModelResource", MlflowModelArgs.builder()
        .creationTimestamp(0)
        .description("string")
        .lastUpdatedTimestamp(0)
        .name("string")
        .registeredModelId("string")
        .tags(MlflowModelTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .userId("string")
        .build());
    
    mlflow_model_resource = databricks.MlflowModel("mlflowModelResource",
        creation_timestamp=0,
        description="string",
        last_updated_timestamp=0,
        name="string",
        registered_model_id="string",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        user_id="string")
    
    const mlflowModelResource = new databricks.MlflowModel("mlflowModelResource", {
        creationTimestamp: 0,
        description: "string",
        lastUpdatedTimestamp: 0,
        name: "string",
        registeredModelId: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
        userId: "string",
    });
    
    type: databricks:MlflowModel
    properties:
        creationTimestamp: 0
        description: string
        lastUpdatedTimestamp: 0
        name: string
        registeredModelId: string
        tags:
            - key: string
              value: string
        userId: string
    

    MlflowModel 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 MlflowModel resource accepts the following input properties:

    CreationTimestamp int
    Description string
    The description of the MLflow model.
    LastUpdatedTimestamp int
    Name string
    Name of MLflow model. Change of name triggers new resource.
    RegisteredModelId string
    Tags List<MlflowModelTag>
    Tags for the MLflow model.
    UserId string
    CreationTimestamp int
    Description string
    The description of the MLflow model.
    LastUpdatedTimestamp int
    Name string
    Name of MLflow model. Change of name triggers new resource.
    RegisteredModelId string
    Tags []MlflowModelTagArgs
    Tags for the MLflow model.
    UserId string
    creationTimestamp Integer
    description String
    The description of the MLflow model.
    lastUpdatedTimestamp Integer
    name String
    Name of MLflow model. Change of name triggers new resource.
    registeredModelId String
    tags List<MlflowModelTag>
    Tags for the MLflow model.
    userId String
    creationTimestamp number
    description string
    The description of the MLflow model.
    lastUpdatedTimestamp number
    name string
    Name of MLflow model. Change of name triggers new resource.
    registeredModelId string
    tags MlflowModelTag[]
    Tags for the MLflow model.
    userId string
    creation_timestamp int
    description str
    The description of the MLflow model.
    last_updated_timestamp int
    name str
    Name of MLflow model. Change of name triggers new resource.
    registered_model_id str
    tags Sequence[MlflowModelTagArgs]
    Tags for the MLflow model.
    user_id str
    creationTimestamp Number
    description String
    The description of the MLflow model.
    lastUpdatedTimestamp Number
    name String
    Name of MLflow model. Change of name triggers new resource.
    registeredModelId String
    tags List<Property Map>
    Tags for the MLflow model.
    userId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MlflowModel 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 MlflowModel Resource

    Get an existing MlflowModel 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?: MlflowModelState, opts?: CustomResourceOptions): MlflowModel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_timestamp: Optional[int] = None,
            description: Optional[str] = None,
            last_updated_timestamp: Optional[int] = None,
            name: Optional[str] = None,
            registered_model_id: Optional[str] = None,
            tags: Optional[Sequence[MlflowModelTagArgs]] = None,
            user_id: Optional[str] = None) -> MlflowModel
    func GetMlflowModel(ctx *Context, name string, id IDInput, state *MlflowModelState, opts ...ResourceOption) (*MlflowModel, error)
    public static MlflowModel Get(string name, Input<string> id, MlflowModelState? state, CustomResourceOptions? opts = null)
    public static MlflowModel get(String name, Output<String> id, MlflowModelState state, CustomResourceOptions options)
    resources:  _:    type: databricks:MlflowModel    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:
    CreationTimestamp int
    Description string
    The description of the MLflow model.
    LastUpdatedTimestamp int
    Name string
    Name of MLflow model. Change of name triggers new resource.
    RegisteredModelId string
    Tags List<MlflowModelTag>
    Tags for the MLflow model.
    UserId string
    CreationTimestamp int
    Description string
    The description of the MLflow model.
    LastUpdatedTimestamp int
    Name string
    Name of MLflow model. Change of name triggers new resource.
    RegisteredModelId string
    Tags []MlflowModelTagArgs
    Tags for the MLflow model.
    UserId string
    creationTimestamp Integer
    description String
    The description of the MLflow model.
    lastUpdatedTimestamp Integer
    name String
    Name of MLflow model. Change of name triggers new resource.
    registeredModelId String
    tags List<MlflowModelTag>
    Tags for the MLflow model.
    userId String
    creationTimestamp number
    description string
    The description of the MLflow model.
    lastUpdatedTimestamp number
    name string
    Name of MLflow model. Change of name triggers new resource.
    registeredModelId string
    tags MlflowModelTag[]
    Tags for the MLflow model.
    userId string
    creation_timestamp int
    description str
    The description of the MLflow model.
    last_updated_timestamp int
    name str
    Name of MLflow model. Change of name triggers new resource.
    registered_model_id str
    tags Sequence[MlflowModelTagArgs]
    Tags for the MLflow model.
    user_id str
    creationTimestamp Number
    description String
    The description of the MLflow model.
    lastUpdatedTimestamp Number
    name String
    Name of MLflow model. Change of name triggers new resource.
    registeredModelId String
    tags List<Property Map>
    Tags for the MLflow model.
    userId String

    Supporting Types

    MlflowModelTag, MlflowModelTagArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    Import

    The model resource can be imported using the name bash

     $ pulumi import databricks:index/mlflowModel:MlflowModel this <name>
    

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

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Viewing docs for Databricks v0.4.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.