tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCynosdbProjectSecurityGroups
Explore with Pulumi AI
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.
- Project
Id double - Project ID.
- Result
Output stringFile - Used to save results.
- Search
Key string - Search Keywords.
- Id string
- id.
- Project
Id float64 - Project ID.
- Result
Output stringFile - Used to save results.
- Search
Key string - Search Keywords.
- id String
- id.
- project
Id Double - Project ID.
- result
Output StringFile - Used to save results.
- search
Key String - Search Keywords.
- id string
- id.
- project
Id number - Project ID.
- result
Output stringFile - Used to save results.
- search
Key string - Search Keywords.
- id str
- id.
- project_
id float - Project ID.
- result_
output_ strfile - Used to save results.
- search_
key str - Search Keywords.
- id String
- id.
- project
Id Number - Project ID.
- result
Output StringFile - Used to save results.
- search
Key String - Search Keywords.
getCynosdbProjectSecurityGroups Result
The following output properties are available:
- Groups
List<Get
Cynosdb Project Security Groups Group> - Security Group Details.
- Id string
- id.
- Project
Id double - Project ID.
- Result
Output stringFile - Search
Key string
- Groups
[]Get
Cynosdb Project Security Groups Group - Security Group Details.
- Id string
- id.
- Project
Id float64 - Project ID.
- Result
Output stringFile - Search
Key string
- groups
List<Get
Cynosdb Project Security Groups Group> - Security Group Details.
- id String
- id.
- project
Id Double - Project ID.
- result
Output StringFile - search
Key String
- groups
Get
Cynosdb Project Security Groups Group[] - Security Group Details.
- id string
- id.
- project
Id number - Project ID.
- result
Output stringFile - search
Key string
- groups
Sequence[Get
Cynosdb Project Security Groups Group] - Security Group Details.
- id str
- id.
- project_
id float - Project ID.
- result_
output_ strfile - search_
key str
- groups List<Property Map>
- Security Group Details.
- id String
- id.
- project
Id Number - Project ID.
- result
Output StringFile - search
Key String
Supporting Types
GetCynosdbProjectSecurityGroupsGroup
- Create
Time string - Creation time, time format: yyyy mm dd hh: mm: ss.
- Inbounds
List<Get
Cynosdb Project Security Groups Group Inbound> - Inbound Rules.
- Outbounds
List<Get
Cynosdb Project Security Groups 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 Notes.
- Create
Time string - Creation time, time format: yyyy mm dd hh: mm: ss.
- Inbounds
[]Get
Cynosdb Project Security Groups Group Inbound - Inbound Rules.
- Outbounds
[]Get
Cynosdb Project Security Groups 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 Notes.
- create
Time String - Creation time, time format: yyyy mm dd hh: mm: ss.
- inbounds
List<Get
Cynosdb Project Security Groups Group Inbound> - Inbound Rules.
- outbounds
List<Get
Cynosdb Project Security Groups 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 Notes.
- create
Time string - Creation time, time format: yyyy mm dd hh: mm: ss.
- inbounds
Get
Cynosdb Project Security Groups Group Inbound[] - Inbound Rules.
- outbounds
Get
Cynosdb Project Security Groups 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 Notes.
- create_
time str - Creation time, time format: yyyy mm dd hh: mm: ss.
- inbounds
Sequence[Get
Cynosdb Project Security Groups Group Inbound] - Inbound Rules.
- outbounds
Sequence[Get
Cynosdb Project Security Groups 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 Notes.
- create
Time String - Creation time, time format: yyyy mm dd hh: mm: ss.
- 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 Notes.
GetCynosdbProjectSecurityGroupsGroupInbound
- Action string
- Action.
- Address
Module string - Address module.
- Cidr
Ip string - Cidr Ip.
- Desc string
- Description.
- Id string
- id.
- Ip
Protocol string - Ip protocol.
- Port
Range string - Port range.
- Service
Module string - Service module.
- Action string
- Action.
- Address
Module string - Address module.
- Cidr
Ip string - Cidr Ip.
- Desc string
- Description.
- Id string
- id.
- Ip
Protocol string - Ip protocol.
- Port
Range string - Port range.
- Service
Module string - Service module.
- action String
- Action.
- address
Module String - Address module.
- cidr
Ip String - Cidr Ip.
- desc String
- Description.
- id String
- id.
- ip
Protocol String - Ip protocol.
- port
Range String - Port range.
- service
Module String - Service module.
- action string
- Action.
- address
Module string - Address module.
- cidr
Ip string - Cidr Ip.
- desc string
- Description.
- id string
- id.
- ip
Protocol string - Ip protocol.
- port
Range string - Port range.
- service
Module 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.
- address
Module String - Address module.
- cidr
Ip String - Cidr Ip.
- desc String
- Description.
- id String
- id.
- ip
Protocol String - Ip protocol.
- port
Range String - Port range.
- service
Module String - Service module.
GetCynosdbProjectSecurityGroupsGroupOutbound
- Action string
- Action.
- Address
Module string - Address module.
- Cidr
Ip string - Cidr Ip.
- Desc string
- Description.
- Id string
- id.
- Ip
Protocol string - Ip protocol.
- Port
Range string - Port range.
- Service
Module string - Service module.
- Action string
- Action.
- Address
Module string - Address module.
- Cidr
Ip string - Cidr Ip.
- Desc string
- Description.
- Id string
- id.
- Ip
Protocol string - Ip protocol.
- Port
Range string - Port range.
- Service
Module string - Service module.
- action String
- Action.
- address
Module String - Address module.
- cidr
Ip String - Cidr Ip.
- desc String
- Description.
- id String
- id.
- ip
Protocol String - Ip protocol.
- port
Range String - Port range.
- service
Module String - Service module.
- action string
- Action.
- address
Module string - Address module.
- cidr
Ip string - Cidr Ip.
- desc string
- Description.
- id string
- id.
- ip
Protocol string - Ip protocol.
- port
Range string - Port range.
- service
Module 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.
- address
Module String - Address module.
- cidr
Ip String - Cidr Ip.
- desc String
- Description.
- id String
- id.
- ip
Protocol String - Ip protocol.
- port
Range String - Port range.
- service
Module String - Service module.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack