1. Packages
  2. Packages
  3. Scaleway
  4. API Docs
  5. datalab
  6. getDatalab
Viewing docs for Scaleway v1.52.1
published on Thursday, Jul 9, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.52.1
published on Thursday, Jul 9, 2026 by pulumiverse

    Retrieves information about a Scaleway Datalab instance.

    Example Usage

    By ID

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const byId = scaleway.datalab.getDatalab({
        datalabId: main.id,
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    by_id = scaleway.datalab.get_datalab(datalab_id=main["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/datalab"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datalab.LookupDatalab(ctx, &datalab.LookupDatalabArgs{
    			DatalabId: pulumi.StringRef(main.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var byId = Scaleway.Datalab.GetDatalab.Invoke(new()
        {
            DatalabId = main.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.datalab.DatalabFunctions;
    import com.pulumi.scaleway.datalab.inputs.GetDatalabArgs;
    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) {
            final var byId = DatalabFunctions.getDatalab(GetDatalabArgs.builder()
                .datalabId(main.id())
                .build());
    
        }
    }
    
    variables:
      byId:
        fn::invoke:
          function: scaleway:datalab:getDatalab
          arguments:
            datalabId: ${main.id}
    
    Example coming soon!
    

    By Name

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const byName = scaleway.datalab.getDatalab({
        name: "my-datalab",
        region: "fr-par",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    by_name = scaleway.datalab.get_datalab(name="my-datalab",
        region="fr-par")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/datalab"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datalab.LookupDatalab(ctx, &datalab.LookupDatalabArgs{
    			Name:   pulumi.StringRef("my-datalab"),
    			Region: pulumi.StringRef("fr-par"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var byName = Scaleway.Datalab.GetDatalab.Invoke(new()
        {
            Name = "my-datalab",
            Region = "fr-par",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.datalab.DatalabFunctions;
    import com.pulumi.scaleway.datalab.inputs.GetDatalabArgs;
    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) {
            final var byName = DatalabFunctions.getDatalab(GetDatalabArgs.builder()
                .name("my-datalab")
                .region("fr-par")
                .build());
    
        }
    }
    
    variables:
      byName:
        fn::invoke:
          function: scaleway:datalab:getDatalab
          arguments:
            name: my-datalab
            region: fr-par
    
    Example coming soon!
    

    Using getDatalab

    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 getDatalab(args: GetDatalabArgs, opts?: InvokeOptions): Promise<GetDatalabResult>
    function getDatalabOutput(args: GetDatalabOutputArgs, opts?: InvokeOptions): Output<GetDatalabResult>
    def get_datalab(datalab_id: Optional[str] = None,
                    name: Optional[str] = None,
                    project_id: Optional[str] = None,
                    region: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDatalabResult
    def get_datalab_output(datalab_id: pulumi.Input[Optional[str]] = None,
                    name: pulumi.Input[Optional[str]] = None,
                    project_id: pulumi.Input[Optional[str]] = None,
                    region: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDatalabResult]
    func LookupDatalab(ctx *Context, args *LookupDatalabArgs, opts ...InvokeOption) (*LookupDatalabResult, error)
    func LookupDatalabOutput(ctx *Context, args *LookupDatalabOutputArgs, opts ...InvokeOption) LookupDatalabResultOutput

    > Note: This function is named LookupDatalab in the Go SDK.

    public static class GetDatalab 
    {
        public static Task<GetDatalabResult> InvokeAsync(GetDatalabArgs args, InvokeOptions? opts = null)
        public static Output<GetDatalabResult> Invoke(GetDatalabInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatalabResult> getDatalab(GetDatalabArgs args, InvokeOptions options)
    public static Output<GetDatalabResult> getDatalab(GetDatalabArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:datalab/getDatalab:getDatalab
      arguments:
        # arguments dictionary
    data "scaleway_datalab_getdatalab" "name" {
        # arguments
    }

    The following arguments are supported:

    DatalabId string
    The ID of the Datalab instance to look up. Only one of datalabId and name should be specified.
    Name string
    The name of the Datalab instance to look up. Only one of datalabId and name should be specified.
    ProjectId string
    The project ID the Datalab belongs to.
    Region string
    region) The region the Datalab is in.
    DatalabId string
    The ID of the Datalab instance to look up. Only one of datalabId and name should be specified.
    Name string
    The name of the Datalab instance to look up. Only one of datalabId and name should be specified.
    ProjectId string
    The project ID the Datalab belongs to.
    Region string
    region) The region the Datalab is in.
    datalab_id string
    The ID of the Datalab instance to look up. Only one of datalabId and name should be specified.
    name string
    The name of the Datalab instance to look up. Only one of datalabId and name should be specified.
    project_id string
    The project ID the Datalab belongs to.
    region string
    region) The region the Datalab is in.
    datalabId String
    The ID of the Datalab instance to look up. Only one of datalabId and name should be specified.
    name String
    The name of the Datalab instance to look up. Only one of datalabId and name should be specified.
    projectId String
    The project ID the Datalab belongs to.
    region String
    region) The region the Datalab is in.
    datalabId string
    The ID of the Datalab instance to look up. Only one of datalabId and name should be specified.
    name string
    The name of the Datalab instance to look up. Only one of datalabId and name should be specified.
    projectId string
    The project ID the Datalab belongs to.
    region string
    region) The region the Datalab is in.
    datalab_id str
    The ID of the Datalab instance to look up. Only one of datalabId and name should be specified.
    name str
    The name of the Datalab instance to look up. Only one of datalabId and name should be specified.
    project_id str
    The project ID the Datalab belongs to.
    region str
    region) The region the Datalab is in.
    datalabId String
    The ID of the Datalab instance to look up. Only one of datalabId and name should be specified.
    name String
    The name of the Datalab instance to look up. Only one of datalabId and name should be specified.
    projectId String
    The project ID the Datalab belongs to.
    region String
    region) The region the Datalab is in.

    getDatalab Result

    The following output properties are available:

    Supporting Types

    GetDatalabMain

    NodeType string
    The node type for the main node.
    RootVolume Pulumiverse.Scaleway.Datalab.Inputs.GetDatalabMainRootVolume
    Volume details for the main node.
    SparkMasterUrl string
    The Spark master URL within the VPC.
    SparkUiUrl string
    The Spark UI URL.
    NodeType string
    The node type for the main node.
    RootVolume GetDatalabMainRootVolume
    Volume details for the main node.
    SparkMasterUrl string
    The Spark master URL within the VPC.
    SparkUiUrl string
    The Spark UI URL.
    node_type string
    The node type for the main node.
    root_volume object
    Volume details for the main node.
    spark_master_url string
    The Spark master URL within the VPC.
    spark_ui_url string
    The Spark UI URL.
    nodeType String
    The node type for the main node.
    rootVolume GetDatalabMainRootVolume
    Volume details for the main node.
    sparkMasterUrl String
    The Spark master URL within the VPC.
    sparkUiUrl String
    The Spark UI URL.
    nodeType string
    The node type for the main node.
    rootVolume GetDatalabMainRootVolume
    Volume details for the main node.
    sparkMasterUrl string
    The Spark master URL within the VPC.
    sparkUiUrl string
    The Spark UI URL.
    node_type str
    The node type for the main node.
    root_volume GetDatalabMainRootVolume
    Volume details for the main node.
    spark_master_url str
    The Spark master URL within the VPC.
    spark_ui_url str
    The Spark UI URL.
    nodeType String
    The node type for the main node.
    rootVolume Property Map
    Volume details for the main node.
    sparkMasterUrl String
    The Spark master URL within the VPC.
    sparkUiUrl String
    The Spark UI URL.

    GetDatalabMainRootVolume

    Size int
    Type string
    Size int
    Type string
    size number
    type string
    size Integer
    type String
    size number
    type string
    size int
    type str
    size Number
    type String

    GetDatalabTotalStorage

    Size int
    Type string
    Size int
    Type string
    size number
    type string
    size Integer
    type String
    size number
    type string
    size int
    type str
    size Number
    type String

    GetDatalabWorker

    NodeCount int
    The number of worker nodes.
    NodeType string
    The node type for worker nodes.
    RootVolume Pulumiverse.Scaleway.Datalab.Inputs.GetDatalabWorkerRootVolume
    Volume details for worker nodes.
    NodeCount int
    The number of worker nodes.
    NodeType string
    The node type for worker nodes.
    RootVolume GetDatalabWorkerRootVolume
    Volume details for worker nodes.
    node_count number
    The number of worker nodes.
    node_type string
    The node type for worker nodes.
    root_volume object
    Volume details for worker nodes.
    nodeCount Integer
    The number of worker nodes.
    nodeType String
    The node type for worker nodes.
    rootVolume GetDatalabWorkerRootVolume
    Volume details for worker nodes.
    nodeCount number
    The number of worker nodes.
    nodeType string
    The node type for worker nodes.
    rootVolume GetDatalabWorkerRootVolume
    Volume details for worker nodes.
    node_count int
    The number of worker nodes.
    node_type str
    The node type for worker nodes.
    root_volume GetDatalabWorkerRootVolume
    Volume details for worker nodes.
    nodeCount Number
    The number of worker nodes.
    nodeType String
    The node type for worker nodes.
    rootVolume Property Map
    Volume details for worker nodes.

    GetDatalabWorkerRootVolume

    Size int
    Type string
    Size int
    Type string
    size number
    type string
    size Integer
    type String
    size number
    type string
    size int
    type str
    size Number
    type String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Viewing docs for Scaleway v1.52.1
    published on Thursday, Jul 9, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial