1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getEnterpriseProject
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getEnterpriseProject

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get an enterprise project from Flexibleengine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const test = flexibleengine.getEnterpriseProject({
        name: "test",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    test = flexibleengine.get_enterprise_project(name="test")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.LookupEnterpriseProject(ctx, &flexibleengine.LookupEnterpriseProjectArgs{
    			Name: pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Flexibleengine.GetEnterpriseProject.Invoke(new()
        {
            Name = "test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetEnterpriseProjectArgs;
    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 test = FlexibleengineFunctions.getEnterpriseProject(GetEnterpriseProjectArgs.builder()
                .name("test")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getEnterpriseProject
          arguments:
            name: test
    

    Using getEnterpriseProject

    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 getEnterpriseProject(args: GetEnterpriseProjectArgs, opts?: InvokeOptions): Promise<GetEnterpriseProjectResult>
    function getEnterpriseProjectOutput(args: GetEnterpriseProjectOutputArgs, opts?: InvokeOptions): Output<GetEnterpriseProjectResult>
    def get_enterprise_project(id: Optional[str] = None,
                               name: Optional[str] = None,
                               status: Optional[float] = None,
                               opts: Optional[InvokeOptions] = None) -> GetEnterpriseProjectResult
    def get_enterprise_project_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               status: Optional[pulumi.Input[float]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetEnterpriseProjectResult]
    func LookupEnterpriseProject(ctx *Context, args *LookupEnterpriseProjectArgs, opts ...InvokeOption) (*LookupEnterpriseProjectResult, error)
    func LookupEnterpriseProjectOutput(ctx *Context, args *LookupEnterpriseProjectOutputArgs, opts ...InvokeOption) LookupEnterpriseProjectResultOutput

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

    public static class GetEnterpriseProject 
    {
        public static Task<GetEnterpriseProjectResult> InvokeAsync(GetEnterpriseProjectArgs args, InvokeOptions? opts = null)
        public static Output<GetEnterpriseProjectResult> Invoke(GetEnterpriseProjectInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnterpriseProjectResult> getEnterpriseProject(GetEnterpriseProjectArgs args, InvokeOptions options)
    public static Output<GetEnterpriseProjectResult> getEnterpriseProject(GetEnterpriseProjectArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getEnterpriseProject:getEnterpriseProject
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Specifies the ID of an enterprise project. The value "0" indicates the default enterprise project.
    Name string
    Specifies the enterprise project name. Fuzzy search is supported.
    Status double
    Specifies the status of an enterprise project.

    • 1 indicates Enabled.
    • 2 indicates Disabled.
    Id string
    Specifies the ID of an enterprise project. The value "0" indicates the default enterprise project.
    Name string
    Specifies the enterprise project name. Fuzzy search is supported.
    Status float64
    Specifies the status of an enterprise project.

    • 1 indicates Enabled.
    • 2 indicates Disabled.
    id String
    Specifies the ID of an enterprise project. The value "0" indicates the default enterprise project.
    name String
    Specifies the enterprise project name. Fuzzy search is supported.
    status Double
    Specifies the status of an enterprise project.

    • 1 indicates Enabled.
    • 2 indicates Disabled.
    id string
    Specifies the ID of an enterprise project. The value "0" indicates the default enterprise project.
    name string
    Specifies the enterprise project name. Fuzzy search is supported.
    status number
    Specifies the status of an enterprise project.

    • 1 indicates Enabled.
    • 2 indicates Disabled.
    id str
    Specifies the ID of an enterprise project. The value "0" indicates the default enterprise project.
    name str
    Specifies the enterprise project name. Fuzzy search is supported.
    status float
    Specifies the status of an enterprise project.

    • 1 indicates Enabled.
    • 2 indicates Disabled.
    id String
    Specifies the ID of an enterprise project. The value "0" indicates the default enterprise project.
    name String
    Specifies the enterprise project name. Fuzzy search is supported.
    status Number
    Specifies the status of an enterprise project.

    • 1 indicates Enabled.
    • 2 indicates Disabled.

    getEnterpriseProject Result

    The following output properties are available:

    CreatedAt string
    The UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
    Description string
    The supplementary information about the enterprise project.
    Id string
    Name string
    Status double
    UpdatedAt string
    The UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
    CreatedAt string
    The UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
    Description string
    The supplementary information about the enterprise project.
    Id string
    Name string
    Status float64
    UpdatedAt string
    The UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
    createdAt String
    The UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
    description String
    The supplementary information about the enterprise project.
    id String
    name String
    status Double
    updatedAt String
    The UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
    createdAt string
    The UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
    description string
    The supplementary information about the enterprise project.
    id string
    name string
    status number
    updatedAt string
    The UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
    created_at str
    The UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
    description str
    The supplementary information about the enterprise project.
    id str
    name str
    status float
    updated_at str
    The UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
    createdAt String
    The UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
    description String
    The supplementary information about the enterprise project.
    id String
    name String
    status Number
    updatedAt String
    The UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud