published on Thursday, May 21, 2026 by opentelekomcloud
published on Thursday, May 21, 2026 by opentelekomcloud
Up-to-date reference of API arguments for Network security group you can get at documentation portal
Use this data source to get a list of security group rules ids for a security_group_id.
This resource can be useful for getting back a list of security group rules ids for a Security Group.
Example Usage
The following example shows outputting all security group rules for security group.
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const securityGroupId = config.requireObject<any>("securityGroupId");
const sgIds = opentelekomcloud.getNetworkingSecgroupRuleIdsV2({
securityGroupId: securityGroupId,
});
export const secgroupRuleIds = sgIds.then(sgIds => .map(id => (id)));
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
security_group_id = config.require_object("securityGroupId")
sg_ids = opentelekomcloud.get_networking_secgroup_rule_ids_v2(security_group_id=security_group_id)
pulumi.export("secgroupRuleIds", [id for id in sg_ids.ids])
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var securityGroupId = config.RequireObject<dynamic>("securityGroupId");
var sgIds = Opentelekomcloud.GetNetworkingSecgroupRuleIdsV2.Invoke(new()
{
SecurityGroupId = securityGroupId,
});
return new Dictionary<string, object?>
{
["secgroupRuleIds"] = .Select(id =>
{
return id;
}).ToList(),
};
});
Example coming soon!
Example coming soon!
Example coming soon!
Using getNetworkingSecgroupRuleIdsV2
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 getNetworkingSecgroupRuleIdsV2(args: GetNetworkingSecgroupRuleIdsV2Args, opts?: InvokeOptions): Promise<GetNetworkingSecgroupRuleIdsV2Result>
function getNetworkingSecgroupRuleIdsV2Output(args: GetNetworkingSecgroupRuleIdsV2OutputArgs, opts?: InvokeOptions): Output<GetNetworkingSecgroupRuleIdsV2Result>def get_networking_secgroup_rule_ids_v2(id: Optional[str] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkingSecgroupRuleIdsV2Result
def get_networking_secgroup_rule_ids_v2_output(id: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
security_group_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingSecgroupRuleIdsV2Result]func GetNetworkingSecgroupRuleIdsV2(ctx *Context, args *GetNetworkingSecgroupRuleIdsV2Args, opts ...InvokeOption) (*GetNetworkingSecgroupRuleIdsV2Result, error)
func GetNetworkingSecgroupRuleIdsV2Output(ctx *Context, args *GetNetworkingSecgroupRuleIdsV2OutputArgs, opts ...InvokeOption) GetNetworkingSecgroupRuleIdsV2ResultOutput> Note: This function is named GetNetworkingSecgroupRuleIdsV2 in the Go SDK.
public static class GetNetworkingSecgroupRuleIdsV2
{
public static Task<GetNetworkingSecgroupRuleIdsV2Result> InvokeAsync(GetNetworkingSecgroupRuleIdsV2Args args, InvokeOptions? opts = null)
public static Output<GetNetworkingSecgroupRuleIdsV2Result> Invoke(GetNetworkingSecgroupRuleIdsV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkingSecgroupRuleIdsV2Result> getNetworkingSecgroupRuleIdsV2(GetNetworkingSecgroupRuleIdsV2Args args, InvokeOptions options)
public static Output<GetNetworkingSecgroupRuleIdsV2Result> getNetworkingSecgroupRuleIdsV2(GetNetworkingSecgroupRuleIdsV2Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getNetworkingSecgroupRuleIdsV2:getNetworkingSecgroupRuleIdsV2
arguments:
# arguments dictionarydata "opentelekomcloud_getnetworkingsecgroupruleidsv2" "name" {
# arguments
}The following arguments are supported:
- Security
Group stringId - Specifies the security group ID used as the query filter.
- Id string
- Region string
- Security
Group stringId - Specifies the security group ID used as the query filter.
- Id string
- Region string
- security_
group_ stringid - Specifies the security group ID used as the query filter.
- id string
- region string
- security
Group StringId - Specifies the security group ID used as the query filter.
- id String
- region String
- security
Group stringId - Specifies the security group ID used as the query filter.
- id string
- region string
- security_
group_ strid - Specifies the security group ID used as the query filter.
- id str
- region str
- security
Group StringId - Specifies the security group ID used as the query filter.
- id String
- region String
getNetworkingSecgroupRuleIdsV2 Result
The following output properties are available:
- Id string
- Ids List<string>
- A list of all the security group rule IDs found. This data source will fail if none are found.
- Region string
- Security
Group stringId
- Id string
- Ids []string
- A list of all the security group rule IDs found. This data source will fail if none are found.
- Region string
- Security
Group stringId
- id string
- ids list(string)
- A list of all the security group rule IDs found. This data source will fail if none are found.
- region string
- security_
group_ stringid
- id String
- ids List<String>
- A list of all the security group rule IDs found. This data source will fail if none are found.
- region String
- security
Group StringId
- id string
- ids string[]
- A list of all the security group rule IDs found. This data source will fail if none are found.
- region string
- security
Group stringId
- id str
- ids Sequence[str]
- A list of all the security group rule IDs found. This data source will fail if none are found.
- region str
- security_
group_ strid
- id String
- ids List<String>
- A list of all the security group rule IDs found. This data source will fail if none are found.
- region String
- security
Group StringId
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
published on Thursday, May 21, 2026 by opentelekomcloud