published on Wednesday, Nov 18, 2026 by DataRobot, Inc.
published on Wednesday, Nov 18, 2026 by DataRobot, Inc.
Data set from file
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datarobot from "@datarobot/pulumi-datarobot";
const example = new datarobot.DatasetFromFile("example", {
filePath: "[Path to file to upload]",
useCaseIds: [exampleDatarobotUseCase.id],
name: "Example Dataset",
});
export const exampleId = example.id;
import pulumi
import pulumi_datarobot as datarobot
example = datarobot.DatasetFromFile("example",
file_path="[Path to file to upload]",
use_case_ids=[example_datarobot_use_case["id"]],
name="Example Dataset")
pulumi.export("exampleId", example.id)
package main
import (
"github.com/datarobot-community/pulumi-datarobot/sdk/go/datarobot"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := datarobot.NewDatasetFromFile(ctx, "example", &datarobot.DatasetFromFileArgs{
FilePath: pulumi.String("[Path to file to upload]"),
UseCaseIds: pulumi.StringArray{
exampleDatarobotUseCase.Id,
},
Name: pulumi.String("Example Dataset"),
})
if err != nil {
return err
}
ctx.Export("exampleId", example.ID())
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datarobot = DataRobotPulumi.Datarobot;
return await Deployment.RunAsync(() =>
{
var example = new Datarobot.DatasetFromFile("example", new()
{
FilePath = "[Path to file to upload]",
UseCaseIds = new[]
{
exampleDatarobotUseCase.Id,
},
Name = "Example Dataset",
});
return new Dictionary<string, object?>
{
["exampleId"] = example.Id,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datarobot.DatasetFromFile;
import com.pulumi.datarobot.DatasetFromFileArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new DatasetFromFile("example", DatasetFromFileArgs.builder()
.filePath("[Path to file to upload]")
.useCaseIds(exampleDatarobotUseCase.id())
.name("Example Dataset")
.build());
ctx.export("exampleId", example.id());
}
}
resources:
example:
type: datarobot:DatasetFromFile
properties:
filePath: '[Path to file to upload]'
useCaseIds:
- ${exampleDatarobotUseCase.id}
name: Example Dataset
outputs:
exampleId: ${example.id}
pulumi {
required_providers {
datarobot = {
source = "pulumi/datarobot"
}
}
}
resource "datarobot_datasetfromfile" "example" {
file_path = "[Path to file to upload]"
use_case_ids = [exampleDatarobotUseCase.id]
name = "Example Dataset"
}
output "exampleId" {
value = datarobot_datasetfromfile.example.id
}
Create DatasetFromFile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatasetFromFile(name: string, args: DatasetFromFileArgs, opts?: CustomResourceOptions);@overload
def DatasetFromFile(resource_name: str,
args: DatasetFromFileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DatasetFromFile(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_path: Optional[str] = None,
name: Optional[str] = None,
use_case_ids: Optional[Sequence[str]] = None)func NewDatasetFromFile(ctx *Context, name string, args DatasetFromFileArgs, opts ...ResourceOption) (*DatasetFromFile, error)public DatasetFromFile(string name, DatasetFromFileArgs args, CustomResourceOptions? opts = null)
public DatasetFromFile(String name, DatasetFromFileArgs args)
public DatasetFromFile(String name, DatasetFromFileArgs args, CustomResourceOptions options)
type: datarobot:DatasetFromFile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "datarobot_dataset_from_file" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DatasetFromFileArgs
- 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 DatasetFromFileArgs
- 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 DatasetFromFileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatasetFromFileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatasetFromFileArgs
- 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 datasetFromFileResource = new Datarobot.DatasetFromFile("datasetFromFileResource", new()
{
FilePath = "string",
Name = "string",
UseCaseIds = new[]
{
"string",
},
});
example, err := datarobot.NewDatasetFromFile(ctx, "datasetFromFileResource", &datarobot.DatasetFromFileArgs{
FilePath: pulumi.String("string"),
Name: pulumi.String("string"),
UseCaseIds: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "datarobot_dataset_from_file" "datasetFromFileResource" {
lifecycle {
create_before_destroy = true
}
file_path = "string"
name = "string"
use_case_ids = ["string"]
}
var datasetFromFileResource = new DatasetFromFile("datasetFromFileResource", DatasetFromFileArgs.builder()
.filePath("string")
.name("string")
.useCaseIds("string")
.build());
dataset_from_file_resource = datarobot.DatasetFromFile("datasetFromFileResource",
file_path="string",
name="string",
use_case_ids=["string"])
const datasetFromFileResource = new datarobot.DatasetFromFile("datasetFromFileResource", {
filePath: "string",
name: "string",
useCaseIds: ["string"],
});
type: datarobot:DatasetFromFile
properties:
filePath: string
name: string
useCaseIds:
- string
DatasetFromFile 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 DatasetFromFile resource accepts the following input properties:
- File
Path string - The path to the file to upload.
- Name string
- The name of the Dataset. Defaults to the file name.
- Use
Case List<string>Ids - The list of Use Case IDs to add the Dataset to.
- File
Path string - The path to the file to upload.
- Name string
- The name of the Dataset. Defaults to the file name.
- Use
Case []stringIds - The list of Use Case IDs to add the Dataset to.
- file_
path string - The path to the file to upload.
- name string
- The name of the Dataset. Defaults to the file name.
- use_
case_ list(string)ids - The list of Use Case IDs to add the Dataset to.
- file
Path String - The path to the file to upload.
- name String
- The name of the Dataset. Defaults to the file name.
- use
Case List<String>Ids - The list of Use Case IDs to add the Dataset to.
- file
Path string - The path to the file to upload.
- name string
- The name of the Dataset. Defaults to the file name.
- use
Case string[]Ids - The list of Use Case IDs to add the Dataset to.
- file_
path str - The path to the file to upload.
- name str
- The name of the Dataset. Defaults to the file name.
- use_
case_ Sequence[str]ids - The list of Use Case IDs to add the Dataset to.
- file
Path String - The path to the file to upload.
- name String
- The name of the Dataset. Defaults to the file name.
- use
Case List<String>Ids - The list of Use Case IDs to add the Dataset to.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatasetFromFile resource produces the following output properties:
Look up Existing DatasetFromFile Resource
Get an existing DatasetFromFile 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?: DatasetFromFileState, opts?: CustomResourceOptions): DatasetFromFile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
file_hash: Optional[str] = None,
file_path: Optional[str] = None,
name: Optional[str] = None,
use_case_ids: Optional[Sequence[str]] = None) -> DatasetFromFilefunc GetDatasetFromFile(ctx *Context, name string, id IDInput, state *DatasetFromFileState, opts ...ResourceOption) (*DatasetFromFile, error)public static DatasetFromFile Get(string name, Input<string> id, DatasetFromFileState? state, CustomResourceOptions? opts = null)public static DatasetFromFile get(String name, Output<String> id, DatasetFromFileState state, CustomResourceOptions options)resources: existingDatasetFromFile: type: datarobot:DatasetFromFile get: id: ${id}import {
to = datarobot_dataset_from_file.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state DatasetFromFileState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state DatasetFromFileState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state DatasetFromFileState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state DatasetFromFileState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- File
Hash string - The hash of the file contents.
- File
Path string - The path to the file to upload.
- Name string
- The name of the Dataset. Defaults to the file name.
- Use
Case List<string>Ids - The list of Use Case IDs to add the Dataset to.
- File
Hash string - The hash of the file contents.
- File
Path string - The path to the file to upload.
- Name string
- The name of the Dataset. Defaults to the file name.
- Use
Case []stringIds - The list of Use Case IDs to add the Dataset to.
- file_
hash string - The hash of the file contents.
- file_
path string - The path to the file to upload.
- name string
- The name of the Dataset. Defaults to the file name.
- use_
case_ list(string)ids - The list of Use Case IDs to add the Dataset to.
- file
Hash String - The hash of the file contents.
- file
Path String - The path to the file to upload.
- name String
- The name of the Dataset. Defaults to the file name.
- use
Case List<String>Ids - The list of Use Case IDs to add the Dataset to.
- file
Hash string - The hash of the file contents.
- file
Path string - The path to the file to upload.
- name string
- The name of the Dataset. Defaults to the file name.
- use
Case string[]Ids - The list of Use Case IDs to add the Dataset to.
- file_
hash str - The hash of the file contents.
- file_
path str - The path to the file to upload.
- name str
- The name of the Dataset. Defaults to the file name.
- use_
case_ Sequence[str]ids - The list of Use Case IDs to add the Dataset to.
- file
Hash String - The hash of the file contents.
- file
Path String - The path to the file to upload.
- name String
- The name of the Dataset. Defaults to the file name.
- use
Case List<String>Ids - The list of Use Case IDs to add the Dataset to.
Package Details
- Repository
- datarobot datarobot-community/pulumi-datarobot
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datarobotTerraform Provider.
published on Wednesday, Nov 18, 2026 by DataRobot, Inc.