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

tencentcloud.getDcdbProjectSecurityGroups

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 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 dictionary

    The following arguments are supported:

    Product string
    Database engine name. Valid value: dcdb.
    Id string
    ProjectId double
    Project ID.
    ResultOutputFile string
    Used to save results.
    Product string
    Database engine name. Valid value: dcdb.
    Id string
    ProjectId float64
    Project ID.
    ResultOutputFile string
    Used to save results.
    product String
    Database engine name. Valid value: dcdb.
    id String
    projectId Double
    Project ID.
    resultOutputFile String
    Used to save results.
    product string
    Database engine name. Valid value: dcdb.
    id string
    projectId number
    Project ID.
    resultOutputFile string
    Used to save results.
    product str
    Database engine name. Valid value: dcdb.
    id str
    project_id float
    Project ID.
    result_output_file str
    Used to save results.
    product String
    Database engine name. Valid value: dcdb.
    id String
    projectId Number
    Project ID.
    resultOutputFile String
    Used to save results.

    getDcdbProjectSecurityGroups Result

    The following output properties are available:

    Groups List<GetDcdbProjectSecurityGroupsGroup>
    Security group details.
    Id string
    Product string
    ProjectId double
    Project ID.
    ResultOutputFile string
    Groups []GetDcdbProjectSecurityGroupsGroup
    Security group details.
    Id string
    Product string
    ProjectId float64
    Project ID.
    ResultOutputFile string
    groups List<GetDcdbProjectSecurityGroupsGroup>
    Security group details.
    id String
    product String
    projectId Double
    Project ID.
    resultOutputFile String
    groups GetDcdbProjectSecurityGroupsGroup[]
    Security group details.
    id string
    product string
    projectId number
    Project ID.
    resultOutputFile string
    groups List<Property Map>
    Security group details.
    id String
    product String
    projectId Number
    Project ID.
    resultOutputFile String

    Supporting Types

    GetDcdbProjectSecurityGroupsGroup

    CreateTime string
    Creation time in the format of yyyy-mm-dd hh:mm:ss.
    Inbounds List<GetDcdbProjectSecurityGroupsGroupInbound>
    Inbound rule.
    Outbounds List<GetDcdbProjectSecurityGroupsGroupOutbound>
    Outbound rule.
    ProjectId double
    Project ID.
    SecurityGroupId string
    Security group ID.
    SecurityGroupName string
    Security group name.
    SecurityGroupRemark string
    Security group remarks.
    CreateTime string
    Creation time in the format of yyyy-mm-dd hh:mm:ss.
    Inbounds []GetDcdbProjectSecurityGroupsGroupInbound
    Inbound rule.
    Outbounds []GetDcdbProjectSecurityGroupsGroupOutbound
    Outbound rule.
    ProjectId float64
    Project ID.
    SecurityGroupId string
    Security group ID.
    SecurityGroupName string
    Security group name.
    SecurityGroupRemark string
    Security group remarks.
    createTime String
    Creation time in the format of yyyy-mm-dd hh:mm:ss.
    inbounds List<GetDcdbProjectSecurityGroupsGroupInbound>
    Inbound rule.
    outbounds List<GetDcdbProjectSecurityGroupsGroupOutbound>
    Outbound rule.
    projectId Double
    Project ID.
    securityGroupId String
    Security group ID.
    securityGroupName String
    Security group name.
    securityGroupRemark String
    Security group remarks.
    createTime string
    Creation time in the format of yyyy-mm-dd hh:mm:ss.
    inbounds GetDcdbProjectSecurityGroupsGroupInbound[]
    Inbound rule.
    outbounds GetDcdbProjectSecurityGroupsGroupOutbound[]
    Outbound rule.
    projectId number
    Project ID.
    securityGroupId string
    Security group ID.
    securityGroupName string
    Security group name.
    securityGroupRemark string
    Security group remarks.
    create_time str
    Creation time in the format of yyyy-mm-dd hh:mm:ss.
    inbounds Sequence[GetDcdbProjectSecurityGroupsGroupInbound]
    Inbound rule.
    outbounds Sequence[GetDcdbProjectSecurityGroupsGroupOutbound]
    Outbound rule.
    project_id float
    Project ID.
    security_group_id str
    Security group ID.
    security_group_name str
    Security group name.
    security_group_remark str
    Security group remarks.
    createTime 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.
    projectId Number
    Project ID.
    securityGroupId String
    Security group ID.
    securityGroupName String
    Security group name.
    securityGroupRemark String
    Security group remarks.

    GetDcdbProjectSecurityGroupsGroupInbound

    Action string
    Policy, which can be ACCEPT or DROP.
    CidrIp string
    Source IP or source IP range, such as 192.168.0.0/16.
    IpProtocol string
    Network protocol. UDP and TCP are supported.
    PortRange string
    Port.
    Action string
    Policy, which can be ACCEPT or DROP.
    CidrIp string
    Source IP or source IP range, such as 192.168.0.0/16.
    IpProtocol string
    Network protocol. UDP and TCP are supported.
    PortRange string
    Port.
    action String
    Policy, which can be ACCEPT or DROP.
    cidrIp String
    Source IP or source IP range, such as 192.168.0.0/16.
    ipProtocol String
    Network protocol. UDP and TCP are supported.
    portRange String
    Port.
    action string
    Policy, which can be ACCEPT or DROP.
    cidrIp string
    Source IP or source IP range, such as 192.168.0.0/16.
    ipProtocol string
    Network protocol. UDP and TCP are supported.
    portRange string
    Port.
    action str
    Policy, which can be ACCEPT or DROP.
    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 ACCEPT or DROP.
    cidrIp String
    Source IP or source IP range, such as 192.168.0.0/16.
    ipProtocol String
    Network protocol. UDP and TCP are supported.
    portRange String
    Port.

    GetDcdbProjectSecurityGroupsGroupOutbound

    Action string
    Policy, which can be ACCEPT or DROP.
    CidrIp string
    Source IP or source IP range, such as 192.168.0.0/16.
    IpProtocol string
    Network protocol. UDP and TCP are supported.
    PortRange string
    Port.
    Action string
    Policy, which can be ACCEPT or DROP.
    CidrIp string
    Source IP or source IP range, such as 192.168.0.0/16.
    IpProtocol string
    Network protocol. UDP and TCP are supported.
    PortRange string
    Port.
    action String
    Policy, which can be ACCEPT or DROP.
    cidrIp String
    Source IP or source IP range, such as 192.168.0.0/16.
    ipProtocol String
    Network protocol. UDP and TCP are supported.
    portRange String
    Port.
    action string
    Policy, which can be ACCEPT or DROP.
    cidrIp string
    Source IP or source IP range, such as 192.168.0.0/16.
    ipProtocol string
    Network protocol. UDP and TCP are supported.
    portRange string
    Port.
    action str
    Policy, which can be ACCEPT or DROP.
    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 ACCEPT or DROP.
    cidrIp String
    Source IP or source IP range, such as 192.168.0.0/16.
    ipProtocol String
    Network protocol. UDP and TCP are supported.
    portRange String
    Port.

    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