1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsNetworkAclRule
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsNetworkAclRule

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information of an network ACL rule data source. For more information, about managing IBM Cloud Network ACL , see about network acl.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Using getIsNetworkAclRule

    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 getIsNetworkAclRule(args: GetIsNetworkAclRuleArgs, opts?: InvokeOptions): Promise<GetIsNetworkAclRuleResult>
    function getIsNetworkAclRuleOutput(args: GetIsNetworkAclRuleOutputArgs, opts?: InvokeOptions): Output<GetIsNetworkAclRuleResult>
    def get_is_network_acl_rule(id: Optional[str] = None,
                                name: Optional[str] = None,
                                network_acl: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetIsNetworkAclRuleResult
    def get_is_network_acl_rule_output(id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                network_acl: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetIsNetworkAclRuleResult]
    func LookupIsNetworkAclRule(ctx *Context, args *LookupIsNetworkAclRuleArgs, opts ...InvokeOption) (*LookupIsNetworkAclRuleResult, error)
    func LookupIsNetworkAclRuleOutput(ctx *Context, args *LookupIsNetworkAclRuleOutputArgs, opts ...InvokeOption) LookupIsNetworkAclRuleResultOutput

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

    public static class GetIsNetworkAclRule 
    {
        public static Task<GetIsNetworkAclRuleResult> InvokeAsync(GetIsNetworkAclRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetIsNetworkAclRuleResult> Invoke(GetIsNetworkAclRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsNetworkAclRuleResult> getIsNetworkAclRule(GetIsNetworkAclRuleArgs args, InvokeOptions options)
    public static Output<GetIsNetworkAclRuleResult> getIsNetworkAclRule(GetIsNetworkAclRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsNetworkAclRule:getIsNetworkAclRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The network ACL rule name.
    NetworkAcl string
    The network ACL identifier.
    Id string
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    Name string
    The network ACL rule name.
    NetworkAcl string
    The network ACL identifier.
    Id string
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    name String
    The network ACL rule name.
    networkAcl String
    The network ACL identifier.
    id String
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    name string
    The network ACL rule name.
    networkAcl string
    The network ACL identifier.
    id string
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    name str
    The network ACL rule name.
    network_acl str
    The network ACL identifier.
    id str
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    name String
    The network ACL rule name.
    networkAcl String
    The network ACL identifier.
    id String
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.

    getIsNetworkAclRule Result

    The following output properties are available:

    Action string
    (String) Whether to allow or deny matching traffic.
    Before string
    (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
    Destination string
    (String) The destination IP address or CIDR block.
    Direction string
    (String) Whether the traffic to be matched is inbound or outbound.
    Href string
    (String) The URL for this network ACL rule.
    Icmps List<GetIsNetworkAclRuleIcmp>
    (List) The protocol ICMP
    Id string
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    IpVersion string
    (String) The IP version for this rule.
    Name string
    NetworkAcl string
    Protocol string
    (String) The protocol to enforce.
    RuleId string
    (String) The network ACL rule ID.
    Source string
    (String) The source IP address or CIDR block.
    Tcps List<GetIsNetworkAclRuleTcp>
    (List) TCP protocol.
    Udps List<GetIsNetworkAclRuleUdp>
    (List) UDP protocol
    Action string
    (String) Whether to allow or deny matching traffic.
    Before string
    (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
    Destination string
    (String) The destination IP address or CIDR block.
    Direction string
    (String) Whether the traffic to be matched is inbound or outbound.
    Href string
    (String) The URL for this network ACL rule.
    Icmps []GetIsNetworkAclRuleIcmp
    (List) The protocol ICMP
    Id string
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    IpVersion string
    (String) The IP version for this rule.
    Name string
    NetworkAcl string
    Protocol string
    (String) The protocol to enforce.
    RuleId string
    (String) The network ACL rule ID.
    Source string
    (String) The source IP address or CIDR block.
    Tcps []GetIsNetworkAclRuleTcp
    (List) TCP protocol.
    Udps []GetIsNetworkAclRuleUdp
    (List) UDP protocol
    action String
    (String) Whether to allow or deny matching traffic.
    before String
    (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
    destination String
    (String) The destination IP address or CIDR block.
    direction String
    (String) Whether the traffic to be matched is inbound or outbound.
    href String
    (String) The URL for this network ACL rule.
    icmps List<GetIsNetworkAclRuleIcmp>
    (List) The protocol ICMP
    id String
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    ipVersion String
    (String) The IP version for this rule.
    name String
    networkAcl String
    protocol String
    (String) The protocol to enforce.
    ruleId String
    (String) The network ACL rule ID.
    source String
    (String) The source IP address or CIDR block.
    tcps List<GetIsNetworkAclRuleTcp>
    (List) TCP protocol.
    udps List<GetIsNetworkAclRuleUdp>
    (List) UDP protocol
    action string
    (String) Whether to allow or deny matching traffic.
    before string
    (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
    destination string
    (String) The destination IP address or CIDR block.
    direction string
    (String) Whether the traffic to be matched is inbound or outbound.
    href string
    (String) The URL for this network ACL rule.
    icmps GetIsNetworkAclRuleIcmp[]
    (List) The protocol ICMP
    id string
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    ipVersion string
    (String) The IP version for this rule.
    name string
    networkAcl string
    protocol string
    (String) The protocol to enforce.
    ruleId string
    (String) The network ACL rule ID.
    source string
    (String) The source IP address or CIDR block.
    tcps GetIsNetworkAclRuleTcp[]
    (List) TCP protocol.
    udps GetIsNetworkAclRuleUdp[]
    (List) UDP protocol
    action str
    (String) Whether to allow or deny matching traffic.
    before str
    (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
    destination str
    (String) The destination IP address or CIDR block.
    direction str
    (String) Whether the traffic to be matched is inbound or outbound.
    href str
    (String) The URL for this network ACL rule.
    icmps Sequence[GetIsNetworkAclRuleIcmp]
    (List) The protocol ICMP
    id str
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    ip_version str
    (String) The IP version for this rule.
    name str
    network_acl str
    protocol str
    (String) The protocol to enforce.
    rule_id str
    (String) The network ACL rule ID.
    source str
    (String) The source IP address or CIDR block.
    tcps Sequence[GetIsNetworkAclRuleTcp]
    (List) TCP protocol.
    udps Sequence[GetIsNetworkAclRuleUdp]
    (List) UDP protocol
    action String
    (String) Whether to allow or deny matching traffic.
    before String
    (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
    destination String
    (String) The destination IP address or CIDR block.
    direction String
    (String) Whether the traffic to be matched is inbound or outbound.
    href String
    (String) The URL for this network ACL rule.
    icmps List<Property Map>
    (List) The protocol ICMP
    id String
    (String) The network ACL rule identfier. This id is composed of <network_acl\>/\<rule_id\>.
    ipVersion String
    (String) The IP version for this rule.
    name String
    networkAcl String
    protocol String
    (String) The protocol to enforce.
    ruleId String
    (String) The network ACL rule ID.
    source String
    (String) The source IP address or CIDR block.
    tcps List<Property Map>
    (List) TCP protocol.
    udps List<Property Map>
    (List) UDP protocol

    Supporting Types

    GetIsNetworkAclRuleIcmp

    Code double
    (Integer) The ICMP traffic code to allow. Valid values from 0 to 255. If unspecified, all codes are allowed. This can only be specified if type is also specified.
    Type double
    (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
    Code float64
    (Integer) The ICMP traffic code to allow. Valid values from 0 to 255. If unspecified, all codes are allowed. This can only be specified if type is also specified.
    Type float64
    (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
    code Double
    (Integer) The ICMP traffic code to allow. Valid values from 0 to 255. If unspecified, all codes are allowed. This can only be specified if type is also specified.
    type Double
    (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
    code number
    (Integer) The ICMP traffic code to allow. Valid values from 0 to 255. If unspecified, all codes are allowed. This can only be specified if type is also specified.
    type number
    (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
    code float
    (Integer) The ICMP traffic code to allow. Valid values from 0 to 255. If unspecified, all codes are allowed. This can only be specified if type is also specified.
    type float
    (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
    code Number
    (Integer) The ICMP traffic code to allow. Valid values from 0 to 255. If unspecified, all codes are allowed. This can only be specified if type is also specified.
    type Number
    (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.

    GetIsNetworkAclRuleTcp

    PortMax double
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    PortMin double
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    SourcePortMax double
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    SourcePortMin double
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    PortMax float64
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    PortMin float64
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    SourcePortMax float64
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    SourcePortMin float64
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    portMax Double
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    portMin Double
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    sourcePortMax Double
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    sourcePortMin Double
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    portMax number
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    portMin number
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    sourcePortMax number
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    sourcePortMin number
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    port_max float
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    port_min float
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    source_port_max float
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    source_port_min float
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    portMax Number
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    portMin Number
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    sourcePortMax Number
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    sourcePortMin Number
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.

    GetIsNetworkAclRuleUdp

    PortMax double
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    PortMin double
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    SourcePortMax double
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    SourcePortMin double
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    PortMax float64
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    PortMin float64
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    SourcePortMax float64
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    SourcePortMin float64
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    portMax Double
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    portMin Double
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    sourcePortMax Double
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    sourcePortMin Double
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    portMax number
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    portMin number
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    sourcePortMax number
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    sourcePortMin number
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    port_max float
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    port_min float
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    source_port_max float
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    source_port_min float
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    portMax Number
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    portMin Number
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
    sourcePortMax Number
    (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
    sourcePortMin Number
    (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud