tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getMysqlProjectSecurityGroup
Start a Neo task
Explain and create a tencentcloud.getMysqlProjectSecurityGroup resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of mysql project_security_group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const projectSecurityGroup = tencentcloud.getMysqlProjectSecurityGroup({
projectId: 1250480,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
project_security_group = tencentcloud.get_mysql_project_security_group(project_id=1250480)
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.GetMysqlProjectSecurityGroup(ctx, &tencentcloud.GetMysqlProjectSecurityGroupArgs{
ProjectId: pulumi.Float64Ref(1250480),
}, 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 projectSecurityGroup = Tencentcloud.GetMysqlProjectSecurityGroup.Invoke(new()
{
ProjectId = 1250480,
});
});
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.GetMysqlProjectSecurityGroupArgs;
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 projectSecurityGroup = TencentcloudFunctions.getMysqlProjectSecurityGroup(GetMysqlProjectSecurityGroupArgs.builder()
.projectId(1250480)
.build());
}
}
variables:
projectSecurityGroup:
fn::invoke:
function: tencentcloud:getMysqlProjectSecurityGroup
arguments:
projectId: 1.25048e+06
Using getMysqlProjectSecurityGroup
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 getMysqlProjectSecurityGroup(args: GetMysqlProjectSecurityGroupArgs, opts?: InvokeOptions): Promise<GetMysqlProjectSecurityGroupResult>
function getMysqlProjectSecurityGroupOutput(args: GetMysqlProjectSecurityGroupOutputArgs, opts?: InvokeOptions): Output<GetMysqlProjectSecurityGroupResult>def get_mysql_project_security_group(id: Optional[str] = None,
project_id: Optional[float] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMysqlProjectSecurityGroupResult
def get_mysql_project_security_group_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[GetMysqlProjectSecurityGroupResult]func GetMysqlProjectSecurityGroup(ctx *Context, args *GetMysqlProjectSecurityGroupArgs, opts ...InvokeOption) (*GetMysqlProjectSecurityGroupResult, error)
func GetMysqlProjectSecurityGroupOutput(ctx *Context, args *GetMysqlProjectSecurityGroupOutputArgs, opts ...InvokeOption) GetMysqlProjectSecurityGroupResultOutput> Note: This function is named GetMysqlProjectSecurityGroup in the Go SDK.
public static class GetMysqlProjectSecurityGroup
{
public static Task<GetMysqlProjectSecurityGroupResult> InvokeAsync(GetMysqlProjectSecurityGroupArgs args, InvokeOptions? opts = null)
public static Output<GetMysqlProjectSecurityGroupResult> Invoke(GetMysqlProjectSecurityGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMysqlProjectSecurityGroupResult> getMysqlProjectSecurityGroup(GetMysqlProjectSecurityGroupArgs args, InvokeOptions options)
public static Output<GetMysqlProjectSecurityGroupResult> getMysqlProjectSecurityGroup(GetMysqlProjectSecurityGroupArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMysqlProjectSecurityGroup:getMysqlProjectSecurityGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Project
Id double - project id.
- Result
Output stringFile - Used to save results.
- Id string
- Project
Id float64 - project id.
- Result
Output stringFile - Used to save results.
- id String
- project
Id Double - project id.
- result
Output StringFile - Used to save results.
- id string
- project
Id number - project id.
- result
Output stringFile - Used to save results.
- id str
- project_
id float - project id.
- result_
output_ strfile - Used to save results.
- id String
- project
Id Number - project id.
- result
Output StringFile - Used to save results.
getMysqlProjectSecurityGroup Result
The following output properties are available:
- Groups
List<Get
Mysql Project Security Group Group> - Security group details.
- Id string
- Project
Id double - project id.
- Result
Output stringFile
- Groups
[]Get
Mysql Project Security Group Group - Security group details.
- Id string
- Project
Id float64 - project id.
- Result
Output stringFile
- groups
List<Get
Mysql Project Security Group Group> - Security group details.
- id String
- project
Id Double - project id.
- result
Output StringFile
- groups
Get
Mysql Project Security Group Group[] - Security group details.
- id string
- project
Id number - project id.
- result
Output stringFile
- groups
Sequence[Get
Mysql Project Security Group Group] - Security group details.
- id str
- project_
id float - project id.
- result_
output_ strfile
- groups List<Property Map>
- Security group details.
- id String
- project
Id Number - project id.
- result
Output StringFile
Supporting Types
GetMysqlProjectSecurityGroupGroup
- Create
Time string - Creation time, time format: yyyy-mm-dd hh:mm:sss.
- Inbounds
List<Get
Mysql Project Security Group Group Inbound> - inbound rules.
- Outbounds
List<Get
Mysql Project Security Group Group Outbound> - outbound rules.
- Project
Id double - project id.
- Security
Group stringId - Security group ID.
- Security
Group stringName - Security group name.
- Security
Group stringRemark - Security group remark.
- Create
Time string - Creation time, time format: yyyy-mm-dd hh:mm:sss.
- Inbounds
[]Get
Mysql Project Security Group Group Inbound - inbound rules.
- Outbounds
[]Get
Mysql Project Security Group Group Outbound - outbound rules.
- Project
Id float64 - project id.
- Security
Group stringId - Security group ID.
- Security
Group stringName - Security group name.
- Security
Group stringRemark - Security group remark.
- create
Time String - Creation time, time format: yyyy-mm-dd hh:mm:sss.
- inbounds
List<Get
Mysql Project Security Group Group Inbound> - inbound rules.
- outbounds
List<Get
Mysql Project Security Group Group Outbound> - outbound rules.
- project
Id Double - project id.
- security
Group StringId - Security group ID.
- security
Group StringName - Security group name.
- security
Group StringRemark - Security group remark.
- create
Time string - Creation time, time format: yyyy-mm-dd hh:mm:sss.
- inbounds
Get
Mysql Project Security Group Group Inbound[] - inbound rules.
- outbounds
Get
Mysql Project Security Group Group Outbound[] - outbound rules.
- project
Id number - project id.
- security
Group stringId - Security group ID.
- security
Group stringName - Security group name.
- security
Group stringRemark - Security group remark.
- create_
time str - Creation time, time format: yyyy-mm-dd hh:mm:sss.
- inbounds
Sequence[Get
Mysql Project Security Group Group Inbound] - inbound rules.
- outbounds
Sequence[Get
Mysql Project Security Group Group Outbound] - outbound rules.
- project_
id float - project id.
- security_
group_ strid - Security group ID.
- security_
group_ strname - Security group name.
- security_
group_ strremark - Security group remark.
- create
Time String - Creation time, time format: yyyy-mm-dd hh:mm:sss.
- inbounds List<Property Map>
- inbound rules.
- outbounds List<Property Map>
- outbound rules.
- project
Id Number - project id.
- security
Group StringId - Security group ID.
- security
Group StringName - Security group name.
- security
Group StringRemark - Security group remark.
GetMysqlProjectSecurityGroupGroupInbound
- action str
- Policy, ACCEPT or DROP.
- cidr_
ip str - Destination IP or IP segment, such as 172.16.0.0/12.
- desc str
- Rule description.
- dir str
- The direction defined by the rule, the inbound rule is OUTPUT.
- ip_
protocol str - Network protocol, support UDP, TCP, etc.
- port_
range str - port or port range.
GetMysqlProjectSecurityGroupGroupOutbound
- action str
- Policy, ACCEPT or DROP.
- cidr_
ip str - Destination IP or IP segment, such as 172.16.0.0/12.
- desc str
- Rule description.
- dir str
- The direction defined by the rule, the inbound rule is OUTPUT.
- ip_
protocol str - Network protocol, support UDP, TCP, etc.
- port_
range str - port or port range.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
