1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDcdbProjects
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getDcdbProjects

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of dcdb projects

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const projects = tencentcloud.getDcdbProjects({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    projects = tencentcloud.get_dcdb_projects()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetDcdbProjects(ctx, &tencentcloud.GetDcdbProjectsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var projects = Tencentcloud.GetDcdbProjects.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetDcdbProjectsArgs;
    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 projects = TencentcloudFunctions.getDcdbProjects();
    
        }
    }
    
    variables:
      projects:
        fn::invoke:
          function: tencentcloud:getDcdbProjects
          arguments: {}
    

    Using getDcdbProjects

    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 getDcdbProjects(args: GetDcdbProjectsArgs, opts?: InvokeOptions): Promise<GetDcdbProjectsResult>
    function getDcdbProjectsOutput(args: GetDcdbProjectsOutputArgs, opts?: InvokeOptions): Output<GetDcdbProjectsResult>
    def get_dcdb_projects(id: Optional[str] = None,
                          result_output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDcdbProjectsResult
    def get_dcdb_projects_output(id: Optional[pulumi.Input[str]] = None,
                          result_output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDcdbProjectsResult]
    func GetDcdbProjects(ctx *Context, args *GetDcdbProjectsArgs, opts ...InvokeOption) (*GetDcdbProjectsResult, error)
    func GetDcdbProjectsOutput(ctx *Context, args *GetDcdbProjectsOutputArgs, opts ...InvokeOption) GetDcdbProjectsResultOutput

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

    public static class GetDcdbProjects 
    {
        public static Task<GetDcdbProjectsResult> InvokeAsync(GetDcdbProjectsArgs args, InvokeOptions? opts = null)
        public static Output<GetDcdbProjectsResult> Invoke(GetDcdbProjectsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcdbProjectsResult> getDcdbProjects(GetDcdbProjectsArgs args, InvokeOptions options)
    public static Output<GetDcdbProjectsResult> getDcdbProjects(GetDcdbProjectsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDcdbProjects:getDcdbProjects
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used to save results.
    Id string
    ResultOutputFile string
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.
    id string
    resultOutputFile string
    Used to save results.
    id str
    result_output_file str
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.

    getDcdbProjects Result

    The following output properties are available:

    Supporting Types

    GetDcdbProjectsProject

    AppId double
    Application ID.
    CreateTime string
    Creation time.
    CreatorUin double
    Creator UIN.
    Info string
    Description.
    IsDefault double
    Whether it is the default project. Valid values: 1 (yes), 0 (no).
    Name string
    Project name.
    OwnerUin double
    The UIN of the resource owner (root account).
    ProjectId double
    Project ID.
    SrcAppId double
    Source APPID.
    SrcPlat string
    Source platform.
    Status double
    Project status. Valid values: 0 (normal), -1 (disabled), 3 (default project).
    AppId float64
    Application ID.
    CreateTime string
    Creation time.
    CreatorUin float64
    Creator UIN.
    Info string
    Description.
    IsDefault float64
    Whether it is the default project. Valid values: 1 (yes), 0 (no).
    Name string
    Project name.
    OwnerUin float64
    The UIN of the resource owner (root account).
    ProjectId float64
    Project ID.
    SrcAppId float64
    Source APPID.
    SrcPlat string
    Source platform.
    Status float64
    Project status. Valid values: 0 (normal), -1 (disabled), 3 (default project).
    appId Double
    Application ID.
    createTime String
    Creation time.
    creatorUin Double
    Creator UIN.
    info String
    Description.
    isDefault Double
    Whether it is the default project. Valid values: 1 (yes), 0 (no).
    name String
    Project name.
    ownerUin Double
    The UIN of the resource owner (root account).
    projectId Double
    Project ID.
    srcAppId Double
    Source APPID.
    srcPlat String
    Source platform.
    status Double
    Project status. Valid values: 0 (normal), -1 (disabled), 3 (default project).
    appId number
    Application ID.
    createTime string
    Creation time.
    creatorUin number
    Creator UIN.
    info string
    Description.
    isDefault number
    Whether it is the default project. Valid values: 1 (yes), 0 (no).
    name string
    Project name.
    ownerUin number
    The UIN of the resource owner (root account).
    projectId number
    Project ID.
    srcAppId number
    Source APPID.
    srcPlat string
    Source platform.
    status number
    Project status. Valid values: 0 (normal), -1 (disabled), 3 (default project).
    app_id float
    Application ID.
    create_time str
    Creation time.
    creator_uin float
    Creator UIN.
    info str
    Description.
    is_default float
    Whether it is the default project. Valid values: 1 (yes), 0 (no).
    name str
    Project name.
    owner_uin float
    The UIN of the resource owner (root account).
    project_id float
    Project ID.
    src_app_id float
    Source APPID.
    src_plat str
    Source platform.
    status float
    Project status. Valid values: 0 (normal), -1 (disabled), 3 (default project).
    appId Number
    Application ID.
    createTime String
    Creation time.
    creatorUin Number
    Creator UIN.
    info String
    Description.
    isDefault Number
    Whether it is the default project. Valid values: 1 (yes), 0 (no).
    name String
    Project name.
    ownerUin Number
    The UIN of the resource owner (root account).
    projectId Number
    Project ID.
    srcAppId Number
    Source APPID.
    srcPlat String
    Source platform.
    status Number
    Project status. Valid values: 0 (normal), -1 (disabled), 3 (default project).

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack