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

tencentcloud.getSqlserverProjectSecurityGroups

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getSqlserverProjectSecurityGroups({
        projectId: 0,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_sqlserver_project_security_groups(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.GetSqlserverProjectSecurityGroups(ctx, &tencentcloud.GetSqlserverProjectSecurityGroupsArgs{
    			ProjectId: 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 example = Tencentcloud.GetSqlserverProjectSecurityGroups.Invoke(new()
        {
            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.GetSqlserverProjectSecurityGroupsArgs;
    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 example = TencentcloudFunctions.getSqlserverProjectSecurityGroups(GetSqlserverProjectSecurityGroupsArgs.builder()
                .projectId(0)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getSqlserverProjectSecurityGroups
          arguments:
            projectId: 0
    

    Using getSqlserverProjectSecurityGroups

    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 getSqlserverProjectSecurityGroups(args: GetSqlserverProjectSecurityGroupsArgs, opts?: InvokeOptions): Promise<GetSqlserverProjectSecurityGroupsResult>
    function getSqlserverProjectSecurityGroupsOutput(args: GetSqlserverProjectSecurityGroupsOutputArgs, opts?: InvokeOptions): Output<GetSqlserverProjectSecurityGroupsResult>
    def get_sqlserver_project_security_groups(id: Optional[str] = None,
                                              project_id: Optional[float] = None,
                                              result_output_file: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetSqlserverProjectSecurityGroupsResult
    def get_sqlserver_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,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetSqlserverProjectSecurityGroupsResult]
    func GetSqlserverProjectSecurityGroups(ctx *Context, args *GetSqlserverProjectSecurityGroupsArgs, opts ...InvokeOption) (*GetSqlserverProjectSecurityGroupsResult, error)
    func GetSqlserverProjectSecurityGroupsOutput(ctx *Context, args *GetSqlserverProjectSecurityGroupsOutputArgs, opts ...InvokeOption) GetSqlserverProjectSecurityGroupsResultOutput

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

    public static class GetSqlserverProjectSecurityGroups 
    {
        public static Task<GetSqlserverProjectSecurityGroupsResult> InvokeAsync(GetSqlserverProjectSecurityGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetSqlserverProjectSecurityGroupsResult> Invoke(GetSqlserverProjectSecurityGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSqlserverProjectSecurityGroupsResult> getSqlserverProjectSecurityGroups(GetSqlserverProjectSecurityGroupsArgs args, InvokeOptions options)
    public static Output<GetSqlserverProjectSecurityGroupsResult> getSqlserverProjectSecurityGroups(GetSqlserverProjectSecurityGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getSqlserverProjectSecurityGroups:getSqlserverProjectSecurityGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId double
    Project ID, which can be viewed through the console project management.
    Id string
    ResultOutputFile string
    Used to save results.
    ProjectId float64
    Project ID, which can be viewed through the console project management.
    Id string
    ResultOutputFile string
    Used to save results.
    projectId Double
    Project ID, which can be viewed through the console project management.
    id String
    resultOutputFile String
    Used to save results.
    projectId number
    Project ID, which can be viewed through the console project management.
    id string
    resultOutputFile string
    Used to save results.
    project_id float
    Project ID, which can be viewed through the console project management.
    id str
    result_output_file str
    Used to save results.
    projectId Number
    Project ID, which can be viewed through the console project management.
    id String
    resultOutputFile String
    Used to save results.

    getSqlserverProjectSecurityGroups Result

    The following output properties are available:

    id String
    projectId Number
    project ID.
    securityGroupSets List<Property Map>
    Security group details.
    resultOutputFile String

    Supporting Types

    GetSqlserverProjectSecurityGroupsSecurityGroupSet

    CreateTime string
    Creation time, time format: yyyy-mm-dd hh:mm:ss.
    InboundSets List<GetSqlserverProjectSecurityGroupsSecurityGroupSetInboundSet>
    inbound rules.
    OutboundSets List<GetSqlserverProjectSecurityGroupsSecurityGroupSetOutboundSet>
    outbound rules.
    ProjectId double
    Project ID, which can be viewed through the console project management.
    SecurityGroupId string
    Security group ID.
    SecurityGroupName string
    security group name.
    SecurityGroupRemark string
    Security Group Remarks.
    CreateTime string
    Creation time, time format: yyyy-mm-dd hh:mm:ss.
    InboundSets []GetSqlserverProjectSecurityGroupsSecurityGroupSetInboundSet
    inbound rules.
    OutboundSets []GetSqlserverProjectSecurityGroupsSecurityGroupSetOutboundSet
    outbound rules.
    ProjectId float64
    Project ID, which can be viewed through the console project management.
    SecurityGroupId string
    Security group ID.
    SecurityGroupName string
    security group name.
    SecurityGroupRemark string
    Security Group Remarks.
    createTime String
    Creation time, time format: yyyy-mm-dd hh:mm:ss.
    inboundSets List<GetSqlserverProjectSecurityGroupsSecurityGroupSetInboundSet>
    inbound rules.
    outboundSets List<GetSqlserverProjectSecurityGroupsSecurityGroupSetOutboundSet>
    outbound rules.
    projectId Double
    Project ID, which can be viewed through the console project management.
    securityGroupId String
    Security group ID.
    securityGroupName String
    security group name.
    securityGroupRemark String
    Security Group Remarks.
    createTime string
    Creation time, time format: yyyy-mm-dd hh:mm:ss.
    inboundSets GetSqlserverProjectSecurityGroupsSecurityGroupSetInboundSet[]
    inbound rules.
    outboundSets GetSqlserverProjectSecurityGroupsSecurityGroupSetOutboundSet[]
    outbound rules.
    projectId number
    Project ID, which can be viewed through the console project management.
    securityGroupId string
    Security group ID.
    securityGroupName string
    security group name.
    securityGroupRemark string
    Security Group Remarks.
    create_time str
    Creation time, time format: yyyy-mm-dd hh:mm:ss.
    inbound_sets Sequence[GetSqlserverProjectSecurityGroupsSecurityGroupSetInboundSet]
    inbound rules.
    outbound_sets Sequence[GetSqlserverProjectSecurityGroupsSecurityGroupSetOutboundSet]
    outbound rules.
    project_id float
    Project ID, which can be viewed through the console project management.
    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, time format: yyyy-mm-dd hh:mm:ss.
    inboundSets List<Property Map>
    inbound rules.
    outboundSets List<Property Map>
    outbound rules.
    projectId Number
    Project ID, which can be viewed through the console project management.
    securityGroupId String
    Security group ID.
    securityGroupName String
    security group name.
    securityGroupRemark String
    Security Group Remarks.

    GetSqlserverProjectSecurityGroupsSecurityGroupSetInboundSet

    Action string
    Policy, ACCEPT or DROP.
    CidrIp string
    Destination IP or IP segment, such as 172.16.0.0/12.
    Dir string
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    IpProtocol string
    Network protocol, support UDP, TCP, etc.
    PortRange string
    port or port range.
    Action string
    Policy, ACCEPT or DROP.
    CidrIp string
    Destination IP or IP segment, such as 172.16.0.0/12.
    Dir string
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    IpProtocol string
    Network protocol, support UDP, TCP, etc.
    PortRange string
    port or port range.
    action String
    Policy, ACCEPT or DROP.
    cidrIp String
    Destination IP or IP segment, such as 172.16.0.0/12.
    dir String
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    ipProtocol String
    Network protocol, support UDP, TCP, etc.
    portRange String
    port or port range.
    action string
    Policy, ACCEPT or DROP.
    cidrIp string
    Destination IP or IP segment, such as 172.16.0.0/12.
    dir string
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    ipProtocol string
    Network protocol, support UDP, TCP, etc.
    portRange string
    port or port range.
    action str
    Policy, ACCEPT or DROP.
    cidr_ip str
    Destination IP or IP segment, such as 172.16.0.0/12.
    dir str
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    ip_protocol str
    Network protocol, support UDP, TCP, etc.
    port_range str
    port or port range.
    action String
    Policy, ACCEPT or DROP.
    cidrIp String
    Destination IP or IP segment, such as 172.16.0.0/12.
    dir String
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    ipProtocol String
    Network protocol, support UDP, TCP, etc.
    portRange String
    port or port range.

    GetSqlserverProjectSecurityGroupsSecurityGroupSetOutboundSet

    Action string
    Policy, ACCEPT or DROP.
    CidrIp string
    Destination IP or IP segment, such as 172.16.0.0/12.
    Dir string
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    IpProtocol string
    Network protocol, support UDP, TCP, etc.
    PortRange string
    port or port range.
    Action string
    Policy, ACCEPT or DROP.
    CidrIp string
    Destination IP or IP segment, such as 172.16.0.0/12.
    Dir string
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    IpProtocol string
    Network protocol, support UDP, TCP, etc.
    PortRange string
    port or port range.
    action String
    Policy, ACCEPT or DROP.
    cidrIp String
    Destination IP or IP segment, such as 172.16.0.0/12.
    dir String
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    ipProtocol String
    Network protocol, support UDP, TCP, etc.
    portRange String
    port or port range.
    action string
    Policy, ACCEPT or DROP.
    cidrIp string
    Destination IP or IP segment, such as 172.16.0.0/12.
    dir string
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    ipProtocol string
    Network protocol, support UDP, TCP, etc.
    portRange string
    port or port range.
    action str
    Policy, ACCEPT or DROP.
    cidr_ip str
    Destination IP or IP segment, such as 172.16.0.0/12.
    dir str
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    ip_protocol str
    Network protocol, support UDP, TCP, etc.
    port_range str
    port or port range.
    action String
    Policy, ACCEPT or DROP.
    cidrIp String
    Destination IP or IP segment, such as 172.16.0.0/12.
    dir String
    The direction defined by the rules, OUTPUT-outgoing rules INPUT-inbound rules.
    ipProtocol String
    Network protocol, support UDP, TCP, etc.
    portRange String
    port or port range.

    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