1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. SecurityGroupRules
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.vpc.SecurityGroupRules

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

Use this data source to query detailed information of security group rules

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";

const default = volcengine.vpc.SecurityGroupRules({
    securityGroupId: "sg-13f2nau7x93wg3n6nu3z5sxib",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

default = volcengine.vpc.security_group_rules(security_group_id="sg-13f2nau7x93wg3n6nu3z5sxib")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpc.SecurityGroupRules(ctx, &vpc.SecurityGroupRulesArgs{
			SecurityGroupId: "sg-13f2nau7x93wg3n6nu3z5sxib",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var @default = Volcengine.Vpc.SecurityGroupRules.Invoke(new()
    {
        SecurityGroupId = "sg-13f2nau7x93wg3n6nu3z5sxib",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc.inputs.SecurityGroupRulesArgs;
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 default = VpcFunctions.SecurityGroupRules(SecurityGroupRulesArgs.builder()
            .securityGroupId("sg-13f2nau7x93wg3n6nu3z5sxib")
            .build());

    }
}
Copy
variables:
  default:
    fn::invoke:
      Function: volcengine:vpc:SecurityGroupRules
      Arguments:
        securityGroupId: sg-13f2nau7x93wg3n6nu3z5sxib
Copy

Using SecurityGroupRules

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 securityGroupRules(args: SecurityGroupRulesArgs, opts?: InvokeOptions): Promise<SecurityGroupRulesResult>
function securityGroupRulesOutput(args: SecurityGroupRulesOutputArgs, opts?: InvokeOptions): Output<SecurityGroupRulesResult>
Copy
def security_group_rules(cidr_ip: Optional[str] = None,
                         direction: Optional[str] = None,
                         output_file: Optional[str] = None,
                         protocol: Optional[str] = None,
                         security_group_id: Optional[str] = None,
                         source_group_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> SecurityGroupRulesResult
def security_group_rules_output(cidr_ip: Optional[pulumi.Input[str]] = None,
                         direction: Optional[pulumi.Input[str]] = None,
                         output_file: Optional[pulumi.Input[str]] = None,
                         protocol: Optional[pulumi.Input[str]] = None,
                         security_group_id: Optional[pulumi.Input[str]] = None,
                         source_group_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[SecurityGroupRulesResult]
Copy
func SecurityGroupRules(ctx *Context, args *SecurityGroupRulesArgs, opts ...InvokeOption) (*SecurityGroupRulesResult, error)
func SecurityGroupRulesOutput(ctx *Context, args *SecurityGroupRulesOutputArgs, opts ...InvokeOption) SecurityGroupRulesResultOutput
Copy
public static class SecurityGroupRules 
{
    public static Task<SecurityGroupRulesResult> InvokeAsync(SecurityGroupRulesArgs args, InvokeOptions? opts = null)
    public static Output<SecurityGroupRulesResult> Invoke(SecurityGroupRulesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<SecurityGroupRulesResult> securityGroupRules(SecurityGroupRulesArgs args, InvokeOptions options)
public static Output<SecurityGroupRulesResult> securityGroupRules(SecurityGroupRulesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:vpc:SecurityGroupRules
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SecurityGroupId This property is required. string
SecurityGroup ID.
CidrIp string
Cidr ip of egress/ingress Rule.
Direction string
Direction of rule, ingress (inbound) or egress (outbound).
OutputFile string
File name where to save data source results.
Protocol string
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
SourceGroupId string
ID of the source security group whose access permission you want to set.
SecurityGroupId This property is required. string
SecurityGroup ID.
CidrIp string
Cidr ip of egress/ingress Rule.
Direction string
Direction of rule, ingress (inbound) or egress (outbound).
OutputFile string
File name where to save data source results.
Protocol string
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
SourceGroupId string
ID of the source security group whose access permission you want to set.
securityGroupId This property is required. String
SecurityGroup ID.
cidrIp String
Cidr ip of egress/ingress Rule.
direction String
Direction of rule, ingress (inbound) or egress (outbound).
outputFile String
File name where to save data source results.
protocol String
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
sourceGroupId String
ID of the source security group whose access permission you want to set.
securityGroupId This property is required. string
SecurityGroup ID.
cidrIp string
Cidr ip of egress/ingress Rule.
direction string
Direction of rule, ingress (inbound) or egress (outbound).
outputFile string
File name where to save data source results.
protocol string
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
sourceGroupId string
ID of the source security group whose access permission you want to set.
security_group_id This property is required. str
SecurityGroup ID.
cidr_ip str
Cidr ip of egress/ingress Rule.
direction str
Direction of rule, ingress (inbound) or egress (outbound).
output_file str
File name where to save data source results.
protocol str
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
source_group_id str
ID of the source security group whose access permission you want to set.
securityGroupId This property is required. String
SecurityGroup ID.
cidrIp String
Cidr ip of egress/ingress Rule.
direction String
Direction of rule, ingress (inbound) or egress (outbound).
outputFile String
File name where to save data source results.
protocol String
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
sourceGroupId String
ID of the source security group whose access permission you want to set.

SecurityGroupRules Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
SecurityGroupId string
Id of SecurityGroup.
SecurityGroupRules List<SecurityGroupRulesSecurityGroupRule>
The collection of SecurityGroup query.
CidrIp string
Cidr ip of egress/ingress Rule.
Direction string
Direction of rule, ingress (inbound) or egress (outbound).
OutputFile string
Protocol string
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
SourceGroupId string
ID of the source security group whose access permission you want to set.
Id string
The provider-assigned unique ID for this managed resource.
SecurityGroupId string
Id of SecurityGroup.
SecurityGroupRules []SecurityGroupRulesSecurityGroupRule
The collection of SecurityGroup query.
CidrIp string
Cidr ip of egress/ingress Rule.
Direction string
Direction of rule, ingress (inbound) or egress (outbound).
OutputFile string
Protocol string
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
SourceGroupId string
ID of the source security group whose access permission you want to set.
id String
The provider-assigned unique ID for this managed resource.
securityGroupId String
Id of SecurityGroup.
securityGroupRules List<SecurityGroupRulesSecurityGroupRule>
The collection of SecurityGroup query.
cidrIp String
Cidr ip of egress/ingress Rule.
direction String
Direction of rule, ingress (inbound) or egress (outbound).
outputFile String
protocol String
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
sourceGroupId String
ID of the source security group whose access permission you want to set.
id string
The provider-assigned unique ID for this managed resource.
securityGroupId string
Id of SecurityGroup.
securityGroupRules SecurityGroupRulesSecurityGroupRule[]
The collection of SecurityGroup query.
cidrIp string
Cidr ip of egress/ingress Rule.
direction string
Direction of rule, ingress (inbound) or egress (outbound).
outputFile string
protocol string
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
sourceGroupId string
ID of the source security group whose access permission you want to set.
id str
The provider-assigned unique ID for this managed resource.
security_group_id str
Id of SecurityGroup.
security_group_rules Sequence[SecurityGroupRulesSecurityGroupRule]
The collection of SecurityGroup query.
cidr_ip str
Cidr ip of egress/ingress Rule.
direction str
Direction of rule, ingress (inbound) or egress (outbound).
output_file str
protocol str
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
source_group_id str
ID of the source security group whose access permission you want to set.
id String
The provider-assigned unique ID for this managed resource.
securityGroupId String
Id of SecurityGroup.
securityGroupRules List<Property Map>
The collection of SecurityGroup query.
cidrIp String
Cidr ip of egress/ingress Rule.
direction String
Direction of rule, ingress (inbound) or egress (outbound).
outputFile String
protocol String
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
sourceGroupId String
ID of the source security group whose access permission you want to set.

Supporting Types

SecurityGroupRulesSecurityGroupRule

CidrIp This property is required. string
Cidr ip of egress/ingress Rule.
CreationTime This property is required. string
The creation time of security group rule.
Description This property is required. string
description of a group rule.
Direction This property is required. string
Direction of rule, ingress (inbound) or egress (outbound).
Policy This property is required. string
Access strategy.
PortEnd This property is required. int
Port end of egress/ingress Rule.
PortStart This property is required. int
Port start of egress/ingress Rule.
Priority This property is required. int
Priority of a security group rule.
Protocol This property is required. string
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
SecurityGroupId This property is required. string
SecurityGroup ID.
SourceGroupId This property is required. string
ID of the source security group whose access permission you want to set.
UpdateTime This property is required. string
The update time of security group rule.
CidrIp This property is required. string
Cidr ip of egress/ingress Rule.
CreationTime This property is required. string
The creation time of security group rule.
Description This property is required. string
description of a group rule.
Direction This property is required. string
Direction of rule, ingress (inbound) or egress (outbound).
Policy This property is required. string
Access strategy.
PortEnd This property is required. int
Port end of egress/ingress Rule.
PortStart This property is required. int
Port start of egress/ingress Rule.
Priority This property is required. int
Priority of a security group rule.
Protocol This property is required. string
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
SecurityGroupId This property is required. string
SecurityGroup ID.
SourceGroupId This property is required. string
ID of the source security group whose access permission you want to set.
UpdateTime This property is required. string
The update time of security group rule.
cidrIp This property is required. String
Cidr ip of egress/ingress Rule.
creationTime This property is required. String
The creation time of security group rule.
description This property is required. String
description of a group rule.
direction This property is required. String
Direction of rule, ingress (inbound) or egress (outbound).
policy This property is required. String
Access strategy.
portEnd This property is required. Integer
Port end of egress/ingress Rule.
portStart This property is required. Integer
Port start of egress/ingress Rule.
priority This property is required. Integer
Priority of a security group rule.
protocol This property is required. String
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
securityGroupId This property is required. String
SecurityGroup ID.
sourceGroupId This property is required. String
ID of the source security group whose access permission you want to set.
updateTime This property is required. String
The update time of security group rule.
cidrIp This property is required. string
Cidr ip of egress/ingress Rule.
creationTime This property is required. string
The creation time of security group rule.
description This property is required. string
description of a group rule.
direction This property is required. string
Direction of rule, ingress (inbound) or egress (outbound).
policy This property is required. string
Access strategy.
portEnd This property is required. number
Port end of egress/ingress Rule.
portStart This property is required. number
Port start of egress/ingress Rule.
priority This property is required. number
Priority of a security group rule.
protocol This property is required. string
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
securityGroupId This property is required. string
SecurityGroup ID.
sourceGroupId This property is required. string
ID of the source security group whose access permission you want to set.
updateTime This property is required. string
The update time of security group rule.
cidr_ip This property is required. str
Cidr ip of egress/ingress Rule.
creation_time This property is required. str
The creation time of security group rule.
description This property is required. str
description of a group rule.
direction This property is required. str
Direction of rule, ingress (inbound) or egress (outbound).
policy This property is required. str
Access strategy.
port_end This property is required. int
Port end of egress/ingress Rule.
port_start This property is required. int
Port start of egress/ingress Rule.
priority This property is required. int
Priority of a security group rule.
protocol This property is required. str
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
security_group_id This property is required. str
SecurityGroup ID.
source_group_id This property is required. str
ID of the source security group whose access permission you want to set.
update_time This property is required. str
The update time of security group rule.
cidrIp This property is required. String
Cidr ip of egress/ingress Rule.
creationTime This property is required. String
The creation time of security group rule.
description This property is required. String
description of a group rule.
direction This property is required. String
Direction of rule, ingress (inbound) or egress (outbound).
policy This property is required. String
Access strategy.
portEnd This property is required. Number
Port end of egress/ingress Rule.
portStart This property is required. Number
Port start of egress/ingress Rule.
priority This property is required. Number
Priority of a security group rule.
protocol This property is required. String
Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
securityGroupId This property is required. String
SecurityGroup ID.
sourceGroupId This property is required. String
ID of the source security group whose access permission you want to set.
updateTime This property is required. String
The update time of security group rule.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine