tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDcdbProjects
Explore with Pulumi AI
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
- Result
Output stringFile - Used to save results.
- Id string
- Result
Output stringFile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
- id string
- result
Output stringFile - Used to save results.
- id str
- result_
output_ strfile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
getDcdbProjects Result
The following output properties are available:
- Id string
- Projects
List<Get
Dcdb Projects Project> - Project list.
- Result
Output stringFile
- Id string
- Projects
[]Get
Dcdb Projects Project - Project list.
- Result
Output stringFile
- id String
- projects
List<Get
Dcdb Projects Project> - Project list.
- result
Output StringFile
- id string
- projects
Get
Dcdb Projects Project[] - Project list.
- result
Output stringFile
- id str
- projects
Sequence[Get
Dcdb Projects Project] - Project list.
- result_
output_ strfile
- id String
- projects List<Property Map>
- Project list.
- result
Output StringFile
Supporting Types
GetDcdbProjectsProject
- App
Id double - Application ID.
- Create
Time string - Creation time.
- Creator
Uin double - Creator UIN.
- Info string
- Description.
- Is
Default double - Whether it is the default project. Valid values:
1
(yes),0
(no). - Name string
- Project name.
- Owner
Uin double - The UIN of the resource owner (root account).
- Project
Id double - Project ID.
- Src
App doubleId - Source APPID.
- Src
Plat string - Source platform.
- Status double
- Project status. Valid values:
0
(normal),-1
(disabled),3
(default project).
- App
Id float64 - Application ID.
- Create
Time string - Creation time.
- Creator
Uin float64 - Creator UIN.
- Info string
- Description.
- Is
Default float64 - Whether it is the default project. Valid values:
1
(yes),0
(no). - Name string
- Project name.
- Owner
Uin float64 - The UIN of the resource owner (root account).
- Project
Id float64 - Project ID.
- Src
App float64Id - Source APPID.
- Src
Plat string - Source platform.
- Status float64
- Project status. Valid values:
0
(normal),-1
(disabled),3
(default project).
- app
Id Double - Application ID.
- create
Time String - Creation time.
- creator
Uin Double - Creator UIN.
- info String
- Description.
- is
Default Double - Whether it is the default project. Valid values:
1
(yes),0
(no). - name String
- Project name.
- owner
Uin Double - The UIN of the resource owner (root account).
- project
Id Double - Project ID.
- src
App DoubleId - Source APPID.
- src
Plat String - Source platform.
- status Double
- Project status. Valid values:
0
(normal),-1
(disabled),3
(default project).
- app
Id number - Application ID.
- create
Time string - Creation time.
- creator
Uin number - Creator UIN.
- info string
- Description.
- is
Default number - Whether it is the default project. Valid values:
1
(yes),0
(no). - name string
- Project name.
- owner
Uin number - The UIN of the resource owner (root account).
- project
Id number - Project ID.
- src
App numberId - Source APPID.
- src
Plat 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_ floatid - Source APPID.
- src_
plat str - Source platform.
- status float
- Project status. Valid values:
0
(normal),-1
(disabled),3
(default project).
- app
Id Number - Application ID.
- create
Time String - Creation time.
- creator
Uin Number - Creator UIN.
- info String
- Description.
- is
Default Number - Whether it is the default project. Valid values:
1
(yes),0
(no). - name String
- Project name.
- owner
Uin Number - The UIN of the resource owner (root account).
- project
Id Number - Project ID.
- src
App NumberId - Source APPID.
- src
Plat 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack