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

tencentcloud.getProjects

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 tag project

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const project = tencentcloud.getProjects({
        allList: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    project = tencentcloud.get_projects(all_list=1)
    
    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.GetProjects(ctx, &tencentcloud.GetProjectsArgs{
    			AllList: 1,
    		}, 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 project = Tencentcloud.GetProjects.Invoke(new()
        {
            AllList = 1,
        });
    
    });
    
    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.GetProjectsArgs;
    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 project = TencentcloudFunctions.getProjects(GetProjectsArgs.builder()
                .allList(1)
                .build());
    
        }
    }
    
    variables:
      project:
        fn::invoke:
          function: tencentcloud:getProjects
          arguments:
            allList: 1
    

    Using getProjects

    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 getProjects(args: GetProjectsArgs, opts?: InvokeOptions): Promise<GetProjectsResult>
    function getProjectsOutput(args: GetProjectsOutputArgs, opts?: InvokeOptions): Output<GetProjectsResult>
    def get_projects(all_list: Optional[float] = None,
                     id: Optional[str] = None,
                     result_output_file: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetProjectsResult
    def get_projects_output(all_list: Optional[pulumi.Input[float]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     result_output_file: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetProjectsResult]
    func GetProjects(ctx *Context, args *GetProjectsArgs, opts ...InvokeOption) (*GetProjectsResult, error)
    func GetProjectsOutput(ctx *Context, args *GetProjectsOutputArgs, opts ...InvokeOption) GetProjectsResultOutput

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

    public static class GetProjects 
    {
        public static Task<GetProjectsResult> InvokeAsync(GetProjectsArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectsResult> Invoke(GetProjectsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
    public static Output<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getProjects:getProjects
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AllList double
    1 means to list all project, 0 means to list visible project.
    Id string
    ResultOutputFile string
    Used to save results.
    AllList float64
    1 means to list all project, 0 means to list visible project.
    Id string
    ResultOutputFile string
    Used to save results.
    allList Double
    1 means to list all project, 0 means to list visible project.
    id String
    resultOutputFile String
    Used to save results.
    allList number
    1 means to list all project, 0 means to list visible project.
    id string
    resultOutputFile string
    Used to save results.
    all_list float
    1 means to list all project, 0 means to list visible project.
    id str
    result_output_file str
    Used to save results.
    allList Number
    1 means to list all project, 0 means to list visible project.
    id String
    resultOutputFile String
    Used to save results.

    getProjects Result

    The following output properties are available:

    AllList double
    Id string
    Projects List<GetProjectsProject>
    List of projects.
    ResultOutputFile string
    AllList float64
    Id string
    Projects []GetProjectsProject
    List of projects.
    ResultOutputFile string
    allList Double
    id String
    projects List<GetProjectsProject>
    List of projects.
    resultOutputFile String
    allList number
    id string
    projects GetProjectsProject[]
    List of projects.
    resultOutputFile string
    allList Number
    id String
    projects List<Property Map>
    List of projects.
    resultOutputFile String

    Supporting Types

    GetProjectsProject

    CreateTime string
    Create time.
    CreatorUin double
    Uin of Creator.
    ProjectId double
    ID of Project.
    ProjectInfo string
    Description of project.
    ProjectName string
    Name of Project.
    CreateTime string
    Create time.
    CreatorUin float64
    Uin of Creator.
    ProjectId float64
    ID of Project.
    ProjectInfo string
    Description of project.
    ProjectName string
    Name of Project.
    createTime String
    Create time.
    creatorUin Double
    Uin of Creator.
    projectId Double
    ID of Project.
    projectInfo String
    Description of project.
    projectName String
    Name of Project.
    createTime string
    Create time.
    creatorUin number
    Uin of Creator.
    projectId number
    ID of Project.
    projectInfo string
    Description of project.
    projectName string
    Name of Project.
    create_time str
    Create time.
    creator_uin float
    Uin of Creator.
    project_id float
    ID of Project.
    project_info str
    Description of project.
    project_name str
    Name of Project.
    createTime String
    Create time.
    creatorUin Number
    Uin of Creator.
    projectId Number
    ID of Project.
    projectInfo String
    Description of project.
    projectName String
    Name of 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