1. Packages
  2. DataRobot
  3. API Docs
  4. DatasetFromUrl
DataRobot v0.8.19 published on Friday, Mar 28, 2025 by DataRobot, Inc.

datarobot.DatasetFromUrl

Explore with Pulumi AI

Data set from file

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as datarobot from "@datarobot/pulumi-datarobot";

const example = new datarobot.DatasetFromUrl("example", {
    url: "[URL to upload from]",
    useCaseIds: [datarobot_use_case.example.id],
});
export const exampleId = example.id;
Copy
import pulumi
import pulumi_datarobot as datarobot

example = datarobot.DatasetFromUrl("example",
    url="[URL to upload from]",
    use_case_ids=[datarobot_use_case["example"]["id"]])
pulumi.export("exampleId", example.id)
Copy
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.NewDatasetFromUrl(ctx, "example", &datarobot.DatasetFromUrlArgs{
			Url: pulumi.String("[URL to upload from]"),
			UseCaseIds: pulumi.StringArray{
				datarobot_use_case.Example.Id,
			},
		})
		if err != nil {
			return err
		}
		ctx.Export("exampleId", example.ID())
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datarobot = DataRobotPulumi.Datarobot;

return await Deployment.RunAsync(() => 
{
    var example = new Datarobot.DatasetFromUrl("example", new()
    {
        Url = "[URL to upload from]",
        UseCaseIds = new[]
        {
            datarobot_use_case.Example.Id,
        },
    });

    return new Dictionary<string, object?>
    {
        ["exampleId"] = example.Id,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datarobot.DatasetFromUrl;
import com.pulumi.datarobot.DatasetFromUrlArgs;
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 example = new DatasetFromUrl("example", DatasetFromUrlArgs.builder()
            .url("[URL to upload from]")
            .useCaseIds(datarobot_use_case.example().id())
            .build());

        ctx.export("exampleId", example.id());
    }
}
Copy
resources:
  example:
    type: datarobot:DatasetFromUrl
    properties:
      url: '[URL to upload from]'
      useCaseIds:
        - ${datarobot_use_case.example.id}
outputs:
  exampleId: ${example.id}
Copy

Create DatasetFromUrl Resource

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

Constructor syntax

new DatasetFromUrl(name: string, args: DatasetFromUrlArgs, opts?: CustomResourceOptions);
@overload
def DatasetFromUrl(resource_name: str,
                   args: DatasetFromUrlArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def DatasetFromUrl(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   url: Optional[str] = None,
                   name: Optional[str] = None,
                   use_case_ids: Optional[Sequence[str]] = None)
func NewDatasetFromUrl(ctx *Context, name string, args DatasetFromUrlArgs, opts ...ResourceOption) (*DatasetFromUrl, error)
public DatasetFromUrl(string name, DatasetFromUrlArgs args, CustomResourceOptions? opts = null)
public DatasetFromUrl(String name, DatasetFromUrlArgs args)
public DatasetFromUrl(String name, DatasetFromUrlArgs args, CustomResourceOptions options)
type: datarobot:DatasetFromUrl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DatasetFromUrlArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DatasetFromUrlArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DatasetFromUrlArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DatasetFromUrlArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DatasetFromUrlArgs
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 datasetFromUrlResource = new Datarobot.DatasetFromUrl("datasetFromUrlResource", new()
{
    Url = "string",
    Name = "string",
    UseCaseIds = new[]
    {
        "string",
    },
});
Copy
example, err := datarobot.NewDatasetFromUrl(ctx, "datasetFromUrlResource", &datarobot.DatasetFromUrlArgs{
	Url:  pulumi.String("string"),
	Name: pulumi.String("string"),
	UseCaseIds: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var datasetFromUrlResource = new DatasetFromUrl("datasetFromUrlResource", DatasetFromUrlArgs.builder()
    .url("string")
    .name("string")
    .useCaseIds("string")
    .build());
Copy
dataset_from_url_resource = datarobot.DatasetFromUrl("datasetFromUrlResource",
    url="string",
    name="string",
    use_case_ids=["string"])
Copy
const datasetFromUrlResource = new datarobot.DatasetFromUrl("datasetFromUrlResource", {
    url: "string",
    name: "string",
    useCaseIds: ["string"],
});
Copy
type: datarobot:DatasetFromUrl
properties:
    name: string
    url: string
    useCaseIds:
        - string
Copy

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

Url This property is required. string
The URL to upload the Dataset from.
Name string
The name of the Dataset.
UseCaseIds List<string>
The list of Use Case IDs to add the Dataset to.
Url This property is required. string
The URL to upload the Dataset from.
Name string
The name of the Dataset.
UseCaseIds []string
The list of Use Case IDs to add the Dataset to.
url This property is required. String
The URL to upload the Dataset from.
name String
The name of the Dataset.
useCaseIds List<String>
The list of Use Case IDs to add the Dataset to.
url This property is required. string
The URL to upload the Dataset from.
name string
The name of the Dataset.
useCaseIds string[]
The list of Use Case IDs to add the Dataset to.
url This property is required. str
The URL to upload the Dataset from.
name str
The name of the Dataset.
use_case_ids Sequence[str]
The list of Use Case IDs to add the Dataset to.
url This property is required. String
The URL to upload the Dataset from.
name String
The name of the Dataset.
useCaseIds List<String>
The list of Use Case IDs to add the Dataset to.

Outputs

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

Get an existing DatasetFromUrl 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?: DatasetFromUrlState, opts?: CustomResourceOptions): DatasetFromUrl
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        url: Optional[str] = None,
        use_case_ids: Optional[Sequence[str]] = None) -> DatasetFromUrl
func GetDatasetFromUrl(ctx *Context, name string, id IDInput, state *DatasetFromUrlState, opts ...ResourceOption) (*DatasetFromUrl, error)
public static DatasetFromUrl Get(string name, Input<string> id, DatasetFromUrlState? state, CustomResourceOptions? opts = null)
public static DatasetFromUrl get(String name, Output<String> id, DatasetFromUrlState state, CustomResourceOptions options)
resources:  _:    type: datarobot:DatasetFromUrl    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Name string
The name of the Dataset.
Url string
The URL to upload the Dataset from.
UseCaseIds List<string>
The list of Use Case IDs to add the Dataset to.
Name string
The name of the Dataset.
Url string
The URL to upload the Dataset from.
UseCaseIds []string
The list of Use Case IDs to add the Dataset to.
name String
The name of the Dataset.
url String
The URL to upload the Dataset from.
useCaseIds List<String>
The list of Use Case IDs to add the Dataset to.
name string
The name of the Dataset.
url string
The URL to upload the Dataset from.
useCaseIds string[]
The list of Use Case IDs to add the Dataset to.
name str
The name of the Dataset.
url str
The URL to upload the Dataset from.
use_case_ids Sequence[str]
The list of Use Case IDs to add the Dataset to.
name String
The name of the Dataset.
url String
The URL to upload the Dataset from.
useCaseIds List<String>
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 datarobot Terraform Provider.