tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getDcdbProjectSecurityGroups
Start a Neo task
Explain and create a tencentcloud.getDcdbProjectSecurityGroups resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of dcdb project_security_groups
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const projectSecurityGroups = tencentcloud.getDcdbProjectSecurityGroups({
product: "dcdb",
projectId: 0,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
project_security_groups = tencentcloud.get_dcdb_project_security_groups(product="dcdb",
project_id=0)
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.GetDcdbProjectSecurityGroups(ctx, &tencentcloud.GetDcdbProjectSecurityGroupsArgs{
Product: "dcdb",
ProjectId: pulumi.Float64Ref(0),
}, 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 projectSecurityGroups = Tencentcloud.GetDcdbProjectSecurityGroups.Invoke(new()
{
Product = "dcdb",
ProjectId = 0,
});
});
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.GetDcdbProjectSecurityGroupsArgs;
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 projectSecurityGroups = TencentcloudFunctions.getDcdbProjectSecurityGroups(GetDcdbProjectSecurityGroupsArgs.builder()
.product("dcdb")
.projectId(0)
.build());
}
}
variables:
projectSecurityGroups:
fn::invoke:
function: tencentcloud:getDcdbProjectSecurityGroups
arguments:
product: dcdb
projectId: 0
Using getDcdbProjectSecurityGroups
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 getDcdbProjectSecurityGroups(args: GetDcdbProjectSecurityGroupsArgs, opts?: InvokeOptions): Promise<GetDcdbProjectSecurityGroupsResult>
function getDcdbProjectSecurityGroupsOutput(args: GetDcdbProjectSecurityGroupsOutputArgs, opts?: InvokeOptions): Output<GetDcdbProjectSecurityGroupsResult>def get_dcdb_project_security_groups(id: Optional[str] = None,
product: Optional[str] = None,
project_id: Optional[float] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDcdbProjectSecurityGroupsResult
def get_dcdb_project_security_groups_output(id: Optional[pulumi.Input[str]] = None,
product: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDcdbProjectSecurityGroupsResult]func GetDcdbProjectSecurityGroups(ctx *Context, args *GetDcdbProjectSecurityGroupsArgs, opts ...InvokeOption) (*GetDcdbProjectSecurityGroupsResult, error)
func GetDcdbProjectSecurityGroupsOutput(ctx *Context, args *GetDcdbProjectSecurityGroupsOutputArgs, opts ...InvokeOption) GetDcdbProjectSecurityGroupsResultOutput> Note: This function is named GetDcdbProjectSecurityGroups in the Go SDK.
public static class GetDcdbProjectSecurityGroups
{
public static Task<GetDcdbProjectSecurityGroupsResult> InvokeAsync(GetDcdbProjectSecurityGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetDcdbProjectSecurityGroupsResult> Invoke(GetDcdbProjectSecurityGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDcdbProjectSecurityGroupsResult> getDcdbProjectSecurityGroups(GetDcdbProjectSecurityGroupsArgs args, InvokeOptions options)
public static Output<GetDcdbProjectSecurityGroupsResult> getDcdbProjectSecurityGroups(GetDcdbProjectSecurityGroupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDcdbProjectSecurityGroups:getDcdbProjectSecurityGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Product string
- Database engine name. Valid value:
dcdb. - Id string
- Project
Id double - Project ID.
- Result
Output stringFile - Used to save results.
- Product string
- Database engine name. Valid value:
dcdb. - Id string
- Project
Id float64 - Project ID.
- Result
Output stringFile - Used to save results.
- product String
- Database engine name. Valid value:
dcdb. - id String
- project
Id Double - Project ID.
- result
Output StringFile - Used to save results.
- product string
- Database engine name. Valid value:
dcdb. - id string
- project
Id number - Project ID.
- result
Output stringFile - Used to save results.
- product str
- Database engine name. Valid value:
dcdb. - id str
- project_
id float - Project ID.
- result_
output_ strfile - Used to save results.
- product String
- Database engine name. Valid value:
dcdb. - id String
- project
Id Number - Project ID.
- result
Output StringFile - Used to save results.
getDcdbProjectSecurityGroups Result
The following output properties are available:
- Groups
List<Get
Dcdb Project Security Groups Group> - Security group details.
- Id string
- Product string
- Project
Id double - Project ID.
- Result
Output stringFile
- Groups
[]Get
Dcdb Project Security Groups Group - Security group details.
- Id string
- Product string
- Project
Id float64 - Project ID.
- Result
Output stringFile
- groups
List<Get
Dcdb Project Security Groups Group> - Security group details.
- id String
- product String
- project
Id Double - Project ID.
- result
Output StringFile
- groups
Get
Dcdb Project Security Groups Group[] - Security group details.
- id string
- product string
- project
Id number - Project ID.
- result
Output stringFile
- groups
Sequence[Get
Dcdb Project Security Groups Group] - Security group details.
- id str
- product str
- project_
id float - Project ID.
- result_
output_ strfile
- groups List<Property Map>
- Security group details.
- id String
- product String
- project
Id Number - Project ID.
- result
Output StringFile
Supporting Types
GetDcdbProjectSecurityGroupsGroup
- Create
Time string - Creation time in the format of yyyy-mm-dd hh:mm:ss.
- Inbounds
List<Get
Dcdb Project Security Groups Group Inbound> - Inbound rule.
- Outbounds
List<Get
Dcdb Project Security Groups Group Outbound> - Outbound rule.
- Project
Id double - Project ID.
- Security
Group stringId - Security group ID.
- Security
Group stringName - Security group name.
- Security
Group stringRemark - Security group remarks.
- Create
Time string - Creation time in the format of yyyy-mm-dd hh:mm:ss.
- Inbounds
[]Get
Dcdb Project Security Groups Group Inbound - Inbound rule.
- Outbounds
[]Get
Dcdb Project Security Groups Group Outbound - Outbound rule.
- Project
Id float64 - Project ID.
- Security
Group stringId - Security group ID.
- Security
Group stringName - Security group name.
- Security
Group stringRemark - Security group remarks.
- create
Time String - Creation time in the format of yyyy-mm-dd hh:mm:ss.
- inbounds
List<Get
Dcdb Project Security Groups Group Inbound> - Inbound rule.
- outbounds
List<Get
Dcdb Project Security Groups Group Outbound> - Outbound rule.
- project
Id Double - Project ID.
- security
Group StringId - Security group ID.
- security
Group StringName - Security group name.
- security
Group StringRemark - Security group remarks.
- create
Time string - Creation time in the format of yyyy-mm-dd hh:mm:ss.
- inbounds
Get
Dcdb Project Security Groups Group Inbound[] - Inbound rule.
- outbounds
Get
Dcdb Project Security Groups Group Outbound[] - Outbound rule.
- project
Id number - Project ID.
- security
Group stringId - Security group ID.
- security
Group stringName - Security group name.
- security
Group stringRemark - Security group remarks.
- create_
time str - Creation time in the format of yyyy-mm-dd hh:mm:ss.
- inbounds
Sequence[Get
Dcdb Project Security Groups Group Inbound] - Inbound rule.
- outbounds
Sequence[Get
Dcdb Project Security Groups Group Outbound] - Outbound rule.
- project_
id float - Project ID.
- security_
group_ strid - Security group ID.
- security_
group_ strname - Security group name.
- security_
group_ strremark - Security group remarks.
- create
Time String - Creation time in the format of yyyy-mm-dd hh:mm:ss.
- inbounds List<Property Map>
- Inbound rule.
- outbounds List<Property Map>
- Outbound rule.
- project
Id Number - Project ID.
- security
Group StringId - Security group ID.
- security
Group StringName - Security group name.
- security
Group StringRemark - Security group remarks.
GetDcdbProjectSecurityGroupsGroupInbound
- Action string
- Policy, which can be
ACCEPTorDROP. - Cidr
Ip string - Source IP or source IP range, such as 192.168.0.0/16.
- Ip
Protocol string - Network protocol. UDP and TCP are supported.
- Port
Range string - Port.
- Action string
- Policy, which can be
ACCEPTorDROP. - Cidr
Ip string - Source IP or source IP range, such as 192.168.0.0/16.
- Ip
Protocol string - Network protocol. UDP and TCP are supported.
- Port
Range string - Port.
- action String
- Policy, which can be
ACCEPTorDROP. - cidr
Ip String - Source IP or source IP range, such as 192.168.0.0/16.
- ip
Protocol String - Network protocol. UDP and TCP are supported.
- port
Range String - Port.
- action string
- Policy, which can be
ACCEPTorDROP. - cidr
Ip string - Source IP or source IP range, such as 192.168.0.0/16.
- ip
Protocol string - Network protocol. UDP and TCP are supported.
- port
Range string - Port.
- action str
- Policy, which can be
ACCEPTorDROP. - cidr_
ip str - Source IP or source IP range, such as 192.168.0.0/16.
- ip_
protocol str - Network protocol. UDP and TCP are supported.
- port_
range str - Port.
- action String
- Policy, which can be
ACCEPTorDROP. - cidr
Ip String - Source IP or source IP range, such as 192.168.0.0/16.
- ip
Protocol String - Network protocol. UDP and TCP are supported.
- port
Range String - Port.
GetDcdbProjectSecurityGroupsGroupOutbound
- Action string
- Policy, which can be
ACCEPTorDROP. - Cidr
Ip string - Source IP or source IP range, such as 192.168.0.0/16.
- Ip
Protocol string - Network protocol. UDP and TCP are supported.
- Port
Range string - Port.
- Action string
- Policy, which can be
ACCEPTorDROP. - Cidr
Ip string - Source IP or source IP range, such as 192.168.0.0/16.
- Ip
Protocol string - Network protocol. UDP and TCP are supported.
- Port
Range string - Port.
- action String
- Policy, which can be
ACCEPTorDROP. - cidr
Ip String - Source IP or source IP range, such as 192.168.0.0/16.
- ip
Protocol String - Network protocol. UDP and TCP are supported.
- port
Range String - Port.
- action string
- Policy, which can be
ACCEPTorDROP. - cidr
Ip string - Source IP or source IP range, such as 192.168.0.0/16.
- ip
Protocol string - Network protocol. UDP and TCP are supported.
- port
Range string - Port.
- action str
- Policy, which can be
ACCEPTorDROP. - cidr_
ip str - Source IP or source IP range, such as 192.168.0.0/16.
- ip_
protocol str - Network protocol. UDP and TCP are supported.
- port_
range str - Port.
- action String
- Policy, which can be
ACCEPTorDROP. - cidr
Ip String - Source IP or source IP range, such as 192.168.0.0/16.
- ip
Protocol String - Network protocol. UDP and TCP are supported.
- port
Range String - Port.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
