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

tencentcloud.getCynosdbProjectSecurityGroups

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 cynosdb project_security_groups

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const projectSecurityGroups = tencentcloud.getCynosdbProjectSecurityGroups({
        projectId: 1250480,
        searchKey: "自定义模版",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    project_security_groups = tencentcloud.get_cynosdb_project_security_groups(project_id=1250480,
        search_key="自定义模版")
    
    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.GetCynosdbProjectSecurityGroups(ctx, &tencentcloud.GetCynosdbProjectSecurityGroupsArgs{
    			ProjectId: pulumi.Float64Ref(1250480),
    			SearchKey: pulumi.StringRef("自定义模版"),
    		}, 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.GetCynosdbProjectSecurityGroups.Invoke(new()
        {
            ProjectId = 1250480,
            SearchKey = "自定义模版",
        });
    
    });
    
    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.GetCynosdbProjectSecurityGroupsArgs;
    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.getCynosdbProjectSecurityGroups(GetCynosdbProjectSecurityGroupsArgs.builder()
                .projectId(1250480)
                .searchKey("自定义模版")
                .build());
    
        }
    }
    
    variables:
      projectSecurityGroups:
        fn::invoke:
          function: tencentcloud:getCynosdbProjectSecurityGroups
          arguments:
            projectId: 1.25048e+06
            searchKey: 自定义模版
    

    Using getCynosdbProjectSecurityGroups

    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 getCynosdbProjectSecurityGroups(args: GetCynosdbProjectSecurityGroupsArgs, opts?: InvokeOptions): Promise<GetCynosdbProjectSecurityGroupsResult>
    function getCynosdbProjectSecurityGroupsOutput(args: GetCynosdbProjectSecurityGroupsOutputArgs, opts?: InvokeOptions): Output<GetCynosdbProjectSecurityGroupsResult>
    def get_cynosdb_project_security_groups(id: Optional[str] = None,
                                            project_id: Optional[float] = None,
                                            result_output_file: Optional[str] = None,
                                            search_key: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetCynosdbProjectSecurityGroupsResult
    def get_cynosdb_project_security_groups_output(id: Optional[pulumi.Input[str]] = None,
                                            project_id: Optional[pulumi.Input[float]] = None,
                                            result_output_file: Optional[pulumi.Input[str]] = None,
                                            search_key: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbProjectSecurityGroupsResult]
    func GetCynosdbProjectSecurityGroups(ctx *Context, args *GetCynosdbProjectSecurityGroupsArgs, opts ...InvokeOption) (*GetCynosdbProjectSecurityGroupsResult, error)
    func GetCynosdbProjectSecurityGroupsOutput(ctx *Context, args *GetCynosdbProjectSecurityGroupsOutputArgs, opts ...InvokeOption) GetCynosdbProjectSecurityGroupsResultOutput

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

    public static class GetCynosdbProjectSecurityGroups 
    {
        public static Task<GetCynosdbProjectSecurityGroupsResult> InvokeAsync(GetCynosdbProjectSecurityGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetCynosdbProjectSecurityGroupsResult> Invoke(GetCynosdbProjectSecurityGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCynosdbProjectSecurityGroupsResult> getCynosdbProjectSecurityGroups(GetCynosdbProjectSecurityGroupsArgs args, InvokeOptions options)
    public static Output<GetCynosdbProjectSecurityGroupsResult> getCynosdbProjectSecurityGroups(GetCynosdbProjectSecurityGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCynosdbProjectSecurityGroups:getCynosdbProjectSecurityGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    id.
    ProjectId double
    Project ID.
    ResultOutputFile string
    Used to save results.
    SearchKey string
    Search Keywords.
    Id string
    id.
    ProjectId float64
    Project ID.
    ResultOutputFile string
    Used to save results.
    SearchKey string
    Search Keywords.
    id String
    id.
    projectId Double
    Project ID.
    resultOutputFile String
    Used to save results.
    searchKey String
    Search Keywords.
    id string
    id.
    projectId number
    Project ID.
    resultOutputFile string
    Used to save results.
    searchKey string
    Search Keywords.
    id str
    id.
    project_id float
    Project ID.
    result_output_file str
    Used to save results.
    search_key str
    Search Keywords.
    id String
    id.
    projectId Number
    Project ID.
    resultOutputFile String
    Used to save results.
    searchKey String
    Search Keywords.

    getCynosdbProjectSecurityGroups Result

    The following output properties are available:

    Groups List<GetCynosdbProjectSecurityGroupsGroup>
    Security Group Details.
    Id string
    id.
    ProjectId double
    Project ID.
    ResultOutputFile string
    SearchKey string
    Groups []GetCynosdbProjectSecurityGroupsGroup
    Security Group Details.
    Id string
    id.
    ProjectId float64
    Project ID.
    ResultOutputFile string
    SearchKey string
    groups List<GetCynosdbProjectSecurityGroupsGroup>
    Security Group Details.
    id String
    id.
    projectId Double
    Project ID.
    resultOutputFile String
    searchKey String
    groups GetCynosdbProjectSecurityGroupsGroup[]
    Security Group Details.
    id string
    id.
    projectId number
    Project ID.
    resultOutputFile string
    searchKey string
    groups List<Property Map>
    Security Group Details.
    id String
    id.
    projectId Number
    Project ID.
    resultOutputFile String
    searchKey String

    Supporting Types

    GetCynosdbProjectSecurityGroupsGroup

    CreateTime string
    Creation time, time format: yyyy mm dd hh: mm: ss.
    Inbounds List<GetCynosdbProjectSecurityGroupsGroupInbound>
    Inbound Rules.
    Outbounds List<GetCynosdbProjectSecurityGroupsGroupOutbound>
    Outbound rules.
    ProjectId double
    Project ID.
    SecurityGroupId string
    Security Group ID.
    SecurityGroupName string
    Security Group Name.
    SecurityGroupRemark string
    Security Group Notes.
    CreateTime string
    Creation time, time format: yyyy mm dd hh: mm: ss.
    Inbounds []GetCynosdbProjectSecurityGroupsGroupInbound
    Inbound Rules.
    Outbounds []GetCynosdbProjectSecurityGroupsGroupOutbound
    Outbound rules.
    ProjectId float64
    Project ID.
    SecurityGroupId string
    Security Group ID.
    SecurityGroupName string
    Security Group Name.
    SecurityGroupRemark string
    Security Group Notes.
    createTime String
    Creation time, time format: yyyy mm dd hh: mm: ss.
    inbounds List<GetCynosdbProjectSecurityGroupsGroupInbound>
    Inbound Rules.
    outbounds List<GetCynosdbProjectSecurityGroupsGroupOutbound>
    Outbound rules.
    projectId Double
    Project ID.
    securityGroupId String
    Security Group ID.
    securityGroupName String
    Security Group Name.
    securityGroupRemark String
    Security Group Notes.
    createTime string
    Creation time, time format: yyyy mm dd hh: mm: ss.
    inbounds GetCynosdbProjectSecurityGroupsGroupInbound[]
    Inbound Rules.
    outbounds GetCynosdbProjectSecurityGroupsGroupOutbound[]
    Outbound rules.
    projectId number
    Project ID.
    securityGroupId string
    Security Group ID.
    securityGroupName string
    Security Group Name.
    securityGroupRemark string
    Security Group Notes.
    create_time str
    Creation time, time format: yyyy mm dd hh: mm: ss.
    inbounds Sequence[GetCynosdbProjectSecurityGroupsGroupInbound]
    Inbound Rules.
    outbounds Sequence[GetCynosdbProjectSecurityGroupsGroupOutbound]
    Outbound rules.
    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 Notes.
    createTime String
    Creation time, time format: yyyy mm dd hh: mm: ss.
    inbounds List<Property Map>
    Inbound Rules.
    outbounds List<Property Map>
    Outbound rules.
    projectId Number
    Project ID.
    securityGroupId String
    Security Group ID.
    securityGroupName String
    Security Group Name.
    securityGroupRemark String
    Security Group Notes.

    GetCynosdbProjectSecurityGroupsGroupInbound

    Action string
    Action.
    AddressModule string
    Address module.
    CidrIp string
    Cidr Ip.
    Desc string
    Description.
    Id string
    id.
    IpProtocol string
    Ip protocol.
    PortRange string
    Port range.
    ServiceModule string
    Service module.
    Action string
    Action.
    AddressModule string
    Address module.
    CidrIp string
    Cidr Ip.
    Desc string
    Description.
    Id string
    id.
    IpProtocol string
    Ip protocol.
    PortRange string
    Port range.
    ServiceModule string
    Service module.
    action String
    Action.
    addressModule String
    Address module.
    cidrIp String
    Cidr Ip.
    desc String
    Description.
    id String
    id.
    ipProtocol String
    Ip protocol.
    portRange String
    Port range.
    serviceModule String
    Service module.
    action string
    Action.
    addressModule string
    Address module.
    cidrIp string
    Cidr Ip.
    desc string
    Description.
    id string
    id.
    ipProtocol string
    Ip protocol.
    portRange string
    Port range.
    serviceModule string
    Service module.
    action str
    Action.
    address_module str
    Address module.
    cidr_ip str
    Cidr Ip.
    desc str
    Description.
    id str
    id.
    ip_protocol str
    Ip protocol.
    port_range str
    Port range.
    service_module str
    Service module.
    action String
    Action.
    addressModule String
    Address module.
    cidrIp String
    Cidr Ip.
    desc String
    Description.
    id String
    id.
    ipProtocol String
    Ip protocol.
    portRange String
    Port range.
    serviceModule String
    Service module.

    GetCynosdbProjectSecurityGroupsGroupOutbound

    Action string
    Action.
    AddressModule string
    Address module.
    CidrIp string
    Cidr Ip.
    Desc string
    Description.
    Id string
    id.
    IpProtocol string
    Ip protocol.
    PortRange string
    Port range.
    ServiceModule string
    Service module.
    Action string
    Action.
    AddressModule string
    Address module.
    CidrIp string
    Cidr Ip.
    Desc string
    Description.
    Id string
    id.
    IpProtocol string
    Ip protocol.
    PortRange string
    Port range.
    ServiceModule string
    Service module.
    action String
    Action.
    addressModule String
    Address module.
    cidrIp String
    Cidr Ip.
    desc String
    Description.
    id String
    id.
    ipProtocol String
    Ip protocol.
    portRange String
    Port range.
    serviceModule String
    Service module.
    action string
    Action.
    addressModule string
    Address module.
    cidrIp string
    Cidr Ip.
    desc string
    Description.
    id string
    id.
    ipProtocol string
    Ip protocol.
    portRange string
    Port range.
    serviceModule string
    Service module.
    action str
    Action.
    address_module str
    Address module.
    cidr_ip str
    Cidr Ip.
    desc str
    Description.
    id str
    id.
    ip_protocol str
    Ip protocol.
    port_range str
    Port range.
    service_module str
    Service module.
    action String
    Action.
    addressModule String
    Address module.
    cidrIp String
    Cidr Ip.
    desc String
    Description.
    id String
    id.
    ipProtocol String
    Ip protocol.
    portRange String
    Port range.
    serviceModule String
    Service module.

    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