1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. SecurityGroupRules
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.vpc.SecurityGroupRules

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

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

    Example Usage

    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",
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.vpc.security_group_rules(security_group_id="sg-13f2nau7x93wg3n6nu3z5sxib")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.vpc.SecurityGroupRules({
        securityGroupId: "sg-13f2nau7x93wg3n6nu3z5sxib",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:vpc:SecurityGroupRules
          Arguments:
            securityGroupId: sg-13f2nau7x93wg3n6nu3z5sxib
    

    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>
    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]
    func SecurityGroupRules(ctx *Context, args *SecurityGroupRulesArgs, opts ...InvokeOption) (*SecurityGroupRulesResult, error)
    func SecurityGroupRulesOutput(ctx *Context, args *SecurityGroupRulesOutputArgs, opts ...InvokeOption) SecurityGroupRulesResultOutput
    public static class SecurityGroupRules 
    {
        public static Task<SecurityGroupRulesResult> InvokeAsync(SecurityGroupRulesArgs args, InvokeOptions? opts = null)
        public static Output<SecurityGroupRulesResult> Invoke(SecurityGroupRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<SecurityGroupRulesResult> securityGroupRules(SecurityGroupRulesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:vpc:SecurityGroupRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SecurityGroupId 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 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 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 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 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 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 string
    Cidr ip of egress/ingress Rule.
    CreationTime string
    The creation time of security group rule.
    Description string
    description of a group rule.
    Direction string
    Direction of rule, ingress (inbound) or egress (outbound).
    Policy string
    Access strategy.
    PortEnd int
    Port end of egress/ingress Rule.
    PortStart int
    Port start of egress/ingress Rule.
    Priority int
    Priority of a security group rule.
    Protocol string
    Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
    SecurityGroupId string
    SecurityGroup ID.
    SourceGroupId string
    ID of the source security group whose access permission you want to set.
    UpdateTime string
    The update time of security group rule.
    CidrIp string
    Cidr ip of egress/ingress Rule.
    CreationTime string
    The creation time of security group rule.
    Description string
    description of a group rule.
    Direction string
    Direction of rule, ingress (inbound) or egress (outbound).
    Policy string
    Access strategy.
    PortEnd int
    Port end of egress/ingress Rule.
    PortStart int
    Port start of egress/ingress Rule.
    Priority int
    Priority of a security group rule.
    Protocol string
    Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
    SecurityGroupId string
    SecurityGroup ID.
    SourceGroupId string
    ID of the source security group whose access permission you want to set.
    UpdateTime string
    The update time of security group rule.
    cidrIp String
    Cidr ip of egress/ingress Rule.
    creationTime String
    The creation time of security group rule.
    description String
    description of a group rule.
    direction String
    Direction of rule, ingress (inbound) or egress (outbound).
    policy String
    Access strategy.
    portEnd Integer
    Port end of egress/ingress Rule.
    portStart Integer
    Port start of egress/ingress Rule.
    priority Integer
    Priority of a security group rule.
    protocol String
    Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
    securityGroupId String
    SecurityGroup ID.
    sourceGroupId String
    ID of the source security group whose access permission you want to set.
    updateTime String
    The update time of security group rule.
    cidrIp string
    Cidr ip of egress/ingress Rule.
    creationTime string
    The creation time of security group rule.
    description string
    description of a group rule.
    direction string
    Direction of rule, ingress (inbound) or egress (outbound).
    policy string
    Access strategy.
    portEnd number
    Port end of egress/ingress Rule.
    portStart number
    Port start of egress/ingress Rule.
    priority number
    Priority of a security group rule.
    protocol string
    Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
    securityGroupId string
    SecurityGroup ID.
    sourceGroupId string
    ID of the source security group whose access permission you want to set.
    updateTime string
    The update time of security group rule.
    cidr_ip str
    Cidr ip of egress/ingress Rule.
    creation_time str
    The creation time of security group rule.
    description str
    description of a group rule.
    direction str
    Direction of rule, ingress (inbound) or egress (outbound).
    policy str
    Access strategy.
    port_end int
    Port end of egress/ingress Rule.
    port_start int
    Port start of egress/ingress Rule.
    priority int
    Priority of a security group rule.
    protocol str
    Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
    security_group_id str
    SecurityGroup ID.
    source_group_id str
    ID of the source security group whose access permission you want to set.
    update_time str
    The update time of security group rule.
    cidrIp String
    Cidr ip of egress/ingress Rule.
    creationTime String
    The creation time of security group rule.
    description String
    description of a group rule.
    direction String
    Direction of rule, ingress (inbound) or egress (outbound).
    policy String
    Access strategy.
    portEnd Number
    Port end of egress/ingress Rule.
    portStart Number
    Port start of egress/ingress Rule.
    priority Number
    Priority of a security group rule.
    protocol String
    Protocol of the SecurityGroup, the value can be tcp or udp or icmp or all.
    securityGroupId String
    SecurityGroup ID.
    sourceGroupId String
    ID of the source security group whose access permission you want to set.
    updateTime 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 logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine