1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getSqlserverProjectSecurityGroups
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.getSqlserverProjectSecurityGroups

Explore with Pulumi AI

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,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.get_sqlserver_project_security_groups(project_id=0)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: tencentcloud:getSqlserverProjectSecurityGroups
      arguments:
        projectId: 0
Copy

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>
Copy
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]
Copy
func GetSqlserverProjectSecurityGroups(ctx *Context, args *GetSqlserverProjectSecurityGroupsArgs, opts ...InvokeOption) (*GetSqlserverProjectSecurityGroupsResult, error)
func GetSqlserverProjectSecurityGroupsOutput(ctx *Context, args *GetSqlserverProjectSecurityGroupsOutputArgs, opts ...InvokeOption) GetSqlserverProjectSecurityGroupsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSqlserverProjectSecurityGroupsResult> getSqlserverProjectSecurityGroups(GetSqlserverProjectSecurityGroupsArgs args, InvokeOptions options)
public static Output<GetSqlserverProjectSecurityGroupsResult> getSqlserverProjectSecurityGroups(GetSqlserverProjectSecurityGroupsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getSqlserverProjectSecurityGroups:getSqlserverProjectSecurityGroups
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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

GetSqlserverProjectSecurityGroupsSecurityGroupSetInboundSet

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

GetSqlserverProjectSecurityGroupsSecurityGroupSetOutboundSet

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