1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMariadbProjectSecurityGroups
tencentcloud 1.81.185 published on Wednesday, Apr 23, 2025 by tencentcloudstack

tencentcloud.getMariadbProjectSecurityGroups

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.185 published on Wednesday, Apr 23, 2025 by tencentcloudstack

    Use this data source to query detailed information of mariadb project_security_groups

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const projectSecurityGroups = tencentcloud.getMariadbProjectSecurityGroups({
        product: "mariadb",
        projectId: 0,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    project_security_groups = tencentcloud.get_mariadb_project_security_groups(product="mariadb",
        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.GetMariadbProjectSecurityGroups(ctx, &tencentcloud.GetMariadbProjectSecurityGroupsArgs{
    			Product:   "mariadb",
    			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.GetMariadbProjectSecurityGroups.Invoke(new()
        {
            Product = "mariadb",
            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.GetMariadbProjectSecurityGroupsArgs;
    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.getMariadbProjectSecurityGroups(GetMariadbProjectSecurityGroupsArgs.builder()
                .product("mariadb")
                .projectId(0)
                .build());
    
        }
    }
    
    variables:
      projectSecurityGroups:
        fn::invoke:
          function: tencentcloud:getMariadbProjectSecurityGroups
          arguments:
            product: mariadb
            projectId: 0
    

    Using getMariadbProjectSecurityGroups

    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 getMariadbProjectSecurityGroups(args: GetMariadbProjectSecurityGroupsArgs, opts?: InvokeOptions): Promise<GetMariadbProjectSecurityGroupsResult>
    function getMariadbProjectSecurityGroupsOutput(args: GetMariadbProjectSecurityGroupsOutputArgs, opts?: InvokeOptions): Output<GetMariadbProjectSecurityGroupsResult>
    def get_mariadb_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) -> GetMariadbProjectSecurityGroupsResult
    def get_mariadb_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[GetMariadbProjectSecurityGroupsResult]
    func GetMariadbProjectSecurityGroups(ctx *Context, args *GetMariadbProjectSecurityGroupsArgs, opts ...InvokeOption) (*GetMariadbProjectSecurityGroupsResult, error)
    func GetMariadbProjectSecurityGroupsOutput(ctx *Context, args *GetMariadbProjectSecurityGroupsOutputArgs, opts ...InvokeOption) GetMariadbProjectSecurityGroupsResultOutput

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

    public static class GetMariadbProjectSecurityGroups 
    {
        public static Task<GetMariadbProjectSecurityGroupsResult> InvokeAsync(GetMariadbProjectSecurityGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetMariadbProjectSecurityGroupsResult> Invoke(GetMariadbProjectSecurityGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMariadbProjectSecurityGroupsResult> getMariadbProjectSecurityGroups(GetMariadbProjectSecurityGroupsArgs args, InvokeOptions options)
    public static Output<GetMariadbProjectSecurityGroupsResult> getMariadbProjectSecurityGroups(GetMariadbProjectSecurityGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMariadbProjectSecurityGroups:getMariadbProjectSecurityGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getMariadbProjectSecurityGroups Result

    The following output properties are available:

    Groups List<GetMariadbProjectSecurityGroupsGroup>
    Security group details.
    Id string
    Product string
    ProjectId double
    Project ID.
    ResultOutputFile string
    Groups []GetMariadbProjectSecurityGroupsGroup
    Security group details.
    Id string
    Product string
    ProjectId float64
    Project ID.
    ResultOutputFile string
    groups List<GetMariadbProjectSecurityGroupsGroup>
    Security group details.
    id String
    product String
    projectId Double
    Project ID.
    resultOutputFile String
    groups GetMariadbProjectSecurityGroupsGroup[]
    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

    GetMariadbProjectSecurityGroupsGroup

    CreateTime string
    Creation time in the format of yyyy-mm-dd hh:mm:ss.
    Inbounds List<GetMariadbProjectSecurityGroupsGroupInbound>
    Inbound rule.
    Outbounds List<GetMariadbProjectSecurityGroupsGroupOutbound>
    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 []GetMariadbProjectSecurityGroupsGroupInbound
    Inbound rule.
    Outbounds []GetMariadbProjectSecurityGroupsGroupOutbound
    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<GetMariadbProjectSecurityGroupsGroupInbound>
    Inbound rule.
    outbounds List<GetMariadbProjectSecurityGroupsGroupOutbound>
    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 GetMariadbProjectSecurityGroupsGroupInbound[]
    Inbound rule.
    outbounds GetMariadbProjectSecurityGroupsGroupOutbound[]
    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[GetMariadbProjectSecurityGroupsGroupInbound]
    Inbound rule.
    outbounds Sequence[GetMariadbProjectSecurityGroupsGroupOutbound]
    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.

    GetMariadbProjectSecurityGroupsGroupInbound

    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.

    GetMariadbProjectSecurityGroupsGroupOutbound

    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.185 published on Wednesday, Apr 23, 2025 by tencentcloudstack