1. Packages
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getEnterpriseProjectV1
Viewing docs for opentelekomcloud 1.37.3
published on Friday, Jul 31, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.3
published on Friday, Jul 31, 2026 by opentelekomcloud

    Use this data source to get an enterprise project from T-Cloud Public (former OpenTelekomCloud)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const test = opentelekomcloud.getEnterpriseProjectV1({
        name: "default",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    test = opentelekomcloud.get_enterprise_project_v1(name="default")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.LookupEnterpriseProjectV1(ctx, &opentelekomcloud.LookupEnterpriseProjectV1Args{
    			Name: pulumi.StringRef("default"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Opentelekomcloud.GetEnterpriseProjectV1.Invoke(new()
        {
            Name = "default",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetEnterpriseProjectV1Args;
    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 = OpentelekomcloudFunctions.getEnterpriseProjectV1(GetEnterpriseProjectV1Args.builder()
                .name("default")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getEnterpriseProjectV1
          arguments:
            name: default
    
    Example coming soon!
    

    Using getEnterpriseProjectV1

    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 getEnterpriseProjectV1(args: GetEnterpriseProjectV1Args, opts?: InvokeOptions): Promise<GetEnterpriseProjectV1Result>
    function getEnterpriseProjectV1Output(args: GetEnterpriseProjectV1OutputArgs, opts?: InvokeOptions): Output<GetEnterpriseProjectV1Result>
    def get_enterprise_project_v1(id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  status: Optional[float] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetEnterpriseProjectV1Result
    def get_enterprise_project_v1_output(id: pulumi.Input[Optional[str]] = None,
                                  name: pulumi.Input[Optional[str]] = None,
                                  status: pulumi.Input[Optional[float]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetEnterpriseProjectV1Result]
    func LookupEnterpriseProjectV1(ctx *Context, args *LookupEnterpriseProjectV1Args, opts ...InvokeOption) (*LookupEnterpriseProjectV1Result, error)
    func LookupEnterpriseProjectV1Output(ctx *Context, args *LookupEnterpriseProjectV1OutputArgs, opts ...InvokeOption) LookupEnterpriseProjectV1ResultOutput

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

    public static class GetEnterpriseProjectV1 
    {
        public static Task<GetEnterpriseProjectV1Result> InvokeAsync(GetEnterpriseProjectV1Args args, InvokeOptions? opts = null)
        public static Output<GetEnterpriseProjectV1Result> Invoke(GetEnterpriseProjectV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnterpriseProjectV1Result> getEnterpriseProjectV1(GetEnterpriseProjectV1Args args, InvokeOptions options)
    public static Output<GetEnterpriseProjectV1Result> getEnterpriseProjectV1(GetEnterpriseProjectV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getEnterpriseProjectV1:getEnterpriseProjectV1
      arguments:
        # arguments dictionary
    data "opentelekomcloud_get_enterprise_project_v1" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Specifies the ID of an enterprise project. The value 0 indicates enterprise project default.
    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 enterprise project default.
    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 enterprise project default.
    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 String
    Specifies the ID of an enterprise project. The value 0 indicates enterprise project default.
    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 enterprise project default.
    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 enterprise project default.
    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 enterprise project default.
    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.

    getEnterpriseProjectV1 Result

    The following output properties are available:

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    Viewing docs for opentelekomcloud 1.37.3
    published on Friday, Jul 31, 2026 by opentelekomcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial