1. Packages
  2. DataRobot
  3. API Docs
  4. getExecutionEnvironment
DataRobot v0.10.23 published on Wednesday, Nov 12, 2025 by DataRobot, Inc.
datarobot logo
DataRobot v0.10.23 published on Wednesday, Nov 12, 2025 by DataRobot, Inc.

    Execution Environment

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datarobot from "@pulumi/datarobot";
    
    const lookupByName = datarobot.getExecutionEnvironment({
        name: "[DataRobot] Python 3.12",
    });
    const lookupByIdAndVersionId = datarobot.getExecutionEnvironment({
        id: "67a554bbfbef3a4ce2ab6700",
        versionId: "68e53eb0b995c5121a0b583b",
    });
    
    import pulumi
    import pulumi_datarobot as datarobot
    
    lookup_by_name = datarobot.get_execution_environment(name="[DataRobot] Python 3.12")
    lookup_by_id_and_version_id = datarobot.get_execution_environment(id="67a554bbfbef3a4ce2ab6700",
        version_id="68e53eb0b995c5121a0b583b")
    
    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 {
    		_, err := datarobot.LookupExecutionEnvironment(ctx, &datarobot.LookupExecutionEnvironmentArgs{
    			Name: pulumi.StringRef("[DataRobot] Python 3.12"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = datarobot.LookupExecutionEnvironment(ctx, &datarobot.LookupExecutionEnvironmentArgs{
    			Id:        pulumi.StringRef("67a554bbfbef3a4ce2ab6700"),
    			VersionId: pulumi.StringRef("68e53eb0b995c5121a0b583b"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datarobot = Pulumi.Datarobot;
    
    return await Deployment.RunAsync(() => 
    {
        var lookupByName = Datarobot.GetExecutionEnvironment.Invoke(new()
        {
            Name = "[DataRobot] Python 3.12",
        });
    
        var lookupByIdAndVersionId = Datarobot.GetExecutionEnvironment.Invoke(new()
        {
            Id = "67a554bbfbef3a4ce2ab6700",
            VersionId = "68e53eb0b995c5121a0b583b",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datarobot.DatarobotFunctions;
    import com.pulumi.datarobot.inputs.GetExecutionEnvironmentArgs;
    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) {
            final var lookupByName = DatarobotFunctions.getExecutionEnvironment(GetExecutionEnvironmentArgs.builder()
                .name("[DataRobot] Python 3.12")
                .build());
    
            final var lookupByIdAndVersionId = DatarobotFunctions.getExecutionEnvironment(GetExecutionEnvironmentArgs.builder()
                .id("67a554bbfbef3a4ce2ab6700")
                .versionId("68e53eb0b995c5121a0b583b")
                .build());
    
        }
    }
    
    variables:
      lookupByName:
        fn::invoke:
          function: datarobot:getExecutionEnvironment
          arguments:
            name: '[DataRobot] Python 3.12'
      lookupByIdAndVersionId:
        fn::invoke:
          function: datarobot:getExecutionEnvironment
          arguments:
            id: 67a554bbfbef3a4ce2ab6700
            versionId: 68e53eb0b995c5121a0b583b
    

    Using getExecutionEnvironment

    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 getExecutionEnvironment(args: GetExecutionEnvironmentArgs, opts?: InvokeOptions): Promise<GetExecutionEnvironmentResult>
    function getExecutionEnvironmentOutput(args: GetExecutionEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetExecutionEnvironmentResult>
    def get_execution_environment(id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  version_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetExecutionEnvironmentResult
    def get_execution_environment_output(id: Optional[pulumi.Input[str]] = None,
                                  name: Optional[pulumi.Input[str]] = None,
                                  version_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetExecutionEnvironmentResult]
    func LookupExecutionEnvironment(ctx *Context, args *LookupExecutionEnvironmentArgs, opts ...InvokeOption) (*LookupExecutionEnvironmentResult, error)
    func LookupExecutionEnvironmentOutput(ctx *Context, args *LookupExecutionEnvironmentOutputArgs, opts ...InvokeOption) LookupExecutionEnvironmentResultOutput

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

    public static class GetExecutionEnvironment 
    {
        public static Task<GetExecutionEnvironmentResult> InvokeAsync(GetExecutionEnvironmentArgs args, InvokeOptions? opts = null)
        public static Output<GetExecutionEnvironmentResult> Invoke(GetExecutionEnvironmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetExecutionEnvironmentResult> getExecutionEnvironment(GetExecutionEnvironmentArgs args, InvokeOptions options)
    public static Output<GetExecutionEnvironmentResult> getExecutionEnvironment(GetExecutionEnvironmentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datarobot:index/getExecutionEnvironment:getExecutionEnvironment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the Execution Environment. Either id or name must be provided.
    Name string
    The name of the Execution Environment. Either id or name must be provided.
    VersionId string
    The ID of the Execution Environment Version.
    Id string
    The ID of the Execution Environment. Either id or name must be provided.
    Name string
    The name of the Execution Environment. Either id or name must be provided.
    VersionId string
    The ID of the Execution Environment Version.
    id String
    The ID of the Execution Environment. Either id or name must be provided.
    name String
    The name of the Execution Environment. Either id or name must be provided.
    versionId String
    The ID of the Execution Environment Version.
    id string
    The ID of the Execution Environment. Either id or name must be provided.
    name string
    The name of the Execution Environment. Either id or name must be provided.
    versionId string
    The ID of the Execution Environment Version.
    id str
    The ID of the Execution Environment. Either id or name must be provided.
    name str
    The name of the Execution Environment. Either id or name must be provided.
    version_id str
    The ID of the Execution Environment Version.
    id String
    The ID of the Execution Environment. Either id or name must be provided.
    name String
    The name of the Execution Environment. Either id or name must be provided.
    versionId String
    The ID of the Execution Environment Version.

    getExecutionEnvironment Result

    The following output properties are available:

    Description string
    The description of the Execution Environment.
    Id string
    The ID of the Execution Environment. Either id or name must be provided.
    Name string
    The name of the Execution Environment. Either id or name must be provided.
    ProgrammingLanguage string
    The programming language of the Execution Environment.
    VersionId string
    The ID of the Execution Environment Version.
    Description string
    The description of the Execution Environment.
    Id string
    The ID of the Execution Environment. Either id or name must be provided.
    Name string
    The name of the Execution Environment. Either id or name must be provided.
    ProgrammingLanguage string
    The programming language of the Execution Environment.
    VersionId string
    The ID of the Execution Environment Version.
    description String
    The description of the Execution Environment.
    id String
    The ID of the Execution Environment. Either id or name must be provided.
    name String
    The name of the Execution Environment. Either id or name must be provided.
    programmingLanguage String
    The programming language of the Execution Environment.
    versionId String
    The ID of the Execution Environment Version.
    description string
    The description of the Execution Environment.
    id string
    The ID of the Execution Environment. Either id or name must be provided.
    name string
    The name of the Execution Environment. Either id or name must be provided.
    programmingLanguage string
    The programming language of the Execution Environment.
    versionId string
    The ID of the Execution Environment Version.
    description str
    The description of the Execution Environment.
    id str
    The ID of the Execution Environment. Either id or name must be provided.
    name str
    The name of the Execution Environment. Either id or name must be provided.
    programming_language str
    The programming language of the Execution Environment.
    version_id str
    The ID of the Execution Environment Version.
    description String
    The description of the Execution Environment.
    id String
    The ID of the Execution Environment. Either id or name must be provided.
    name String
    The name of the Execution Environment. Either id or name must be provided.
    programmingLanguage String
    The programming language of the Execution Environment.
    versionId String
    The ID of the Execution Environment Version.

    Package Details

    Repository
    datarobot datarobot-community/pulumi-datarobot
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datarobot Terraform Provider.
    datarobot logo
    DataRobot v0.10.23 published on Wednesday, Nov 12, 2025 by DataRobot, Inc.
      Meet Neo: Your AI Platform Teammate