ibm.getIsNetworkAclRules
Explore with Pulumi AI
Import the details of an existing IBM Cloud Infrastructure Network ACL Rules as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. 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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = ibm.getIsNetworkAclRules({
networkAcl: ibm_is_network_acl.example.id,
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_network_acl_rules(network_acl=ibm_is_network_acl["example"]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetIsNetworkAclRules(ctx, &ibm.GetIsNetworkAclRulesArgs{
NetworkAcl: ibm_is_network_acl.Example.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = Ibm.GetIsNetworkAclRules.Invoke(new()
{
NetworkAcl = ibm_is_network_acl.Example.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsNetworkAclRulesArgs;
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 example = IbmFunctions.getIsNetworkAclRules(GetIsNetworkAclRulesArgs.builder()
.networkAcl(ibm_is_network_acl.example().id())
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsNetworkAclRules
arguments:
networkAcl: ${ibm_is_network_acl.example.id}
Using getIsNetworkAclRules
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 getIsNetworkAclRules(args: GetIsNetworkAclRulesArgs, opts?: InvokeOptions): Promise<GetIsNetworkAclRulesResult>
function getIsNetworkAclRulesOutput(args: GetIsNetworkAclRulesOutputArgs, opts?: InvokeOptions): Output<GetIsNetworkAclRulesResult>
def get_is_network_acl_rules(direction: Optional[str] = None,
id: Optional[str] = None,
network_acl: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsNetworkAclRulesResult
def get_is_network_acl_rules_output(direction: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
network_acl: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsNetworkAclRulesResult]
func GetIsNetworkAclRules(ctx *Context, args *GetIsNetworkAclRulesArgs, opts ...InvokeOption) (*GetIsNetworkAclRulesResult, error)
func GetIsNetworkAclRulesOutput(ctx *Context, args *GetIsNetworkAclRulesOutputArgs, opts ...InvokeOption) GetIsNetworkAclRulesResultOutput
> Note: This function is named GetIsNetworkAclRules
in the Go SDK.
public static class GetIsNetworkAclRules
{
public static Task<GetIsNetworkAclRulesResult> InvokeAsync(GetIsNetworkAclRulesArgs args, InvokeOptions? opts = null)
public static Output<GetIsNetworkAclRulesResult> Invoke(GetIsNetworkAclRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsNetworkAclRulesResult> getIsNetworkAclRules(GetIsNetworkAclRulesArgs args, InvokeOptions options)
public static Output<GetIsNetworkAclRulesResult> getIsNetworkAclRules(GetIsNetworkAclRulesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsNetworkAclRules:getIsNetworkAclRules
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Acl This property is required. string - The network ACL identifier.
- Direction string
- The direction of the rules to filter. Available options are
inbound
andoutbound
- Id string
- Network
Acl This property is required. string - The network ACL identifier.
- Direction string
- The direction of the rules to filter. Available options are
inbound
andoutbound
- Id string
- network
Acl This property is required. String - The network ACL identifier.
- direction String
- The direction of the rules to filter. Available options are
inbound
andoutbound
- id String
- network
Acl This property is required. string - The network ACL identifier.
- direction string
- The direction of the rules to filter. Available options are
inbound
andoutbound
- id string
- network_
acl This property is required. str - The network ACL identifier.
- direction str
- The direction of the rules to filter. Available options are
inbound
andoutbound
- id str
- network
Acl This property is required. String - The network ACL identifier.
- direction String
- The direction of the rules to filter. Available options are
inbound
andoutbound
- id String
getIsNetworkAclRules Result
The following output properties are available:
- Id string
- Network
Acl string - Rules
List<Get
Is Network Acl Rules Rule> - (List of Objects) List of all rules in the network acl.
- Direction string
- (String) Whether the traffic to be matched is inbound or outbound.
- Id string
- Network
Acl string - Rules
[]Get
Is Network Acl Rules Rule - (List of Objects) List of all rules in the network acl.
- Direction string
- (String) Whether the traffic to be matched is inbound or outbound.
- id String
- network
Acl String - rules
List<Get
Is Network Acl Rules Rule> - (List of Objects) List of all rules in the network acl.
- direction String
- (String) Whether the traffic to be matched is inbound or outbound.
- id string
- network
Acl string - rules
Get
Is Network Acl Rules Rule[] - (List of Objects) List of all rules in the network acl.
- direction string
- (String) Whether the traffic to be matched is inbound or outbound.
- id str
- network_
acl str - rules
Sequence[Get
Is Network Acl Rules Rule] - (List of Objects) List of all rules in the network acl.
- direction str
- (String) Whether the traffic to be matched is inbound or outbound.
- id String
- network
Acl String - rules List<Property Map>
- (List of Objects) List of all rules in the network acl.
- direction String
- (String) Whether the traffic to be matched is inbound or outbound.
Supporting Types
GetIsNetworkAclRulesRule
- Action
This property is required. string - (String) Whether to allow or deny matching traffic.
- Before
This property is required. string - (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
- Destination
This property is required. string - (String) The destination IP address or CIDR block.
- Direction
This property is required. string - The direction of the rules to filter. Available options are
inbound
andoutbound
- Href
This property is required. string - (String) The URL for this network ACL rule.
- Icmps
This property is required. List<GetIs Network Acl Rules Rule Icmp> - (List) The protocol ICMP
- Ip
Version This property is required. string - (String) The IP version for this rule.
- Name
This property is required. string - (String) The user-defined name for this rule.
- Protocol
This property is required. string - (String) The protocol to enforce.
- Rule
Id This property is required. string - (String) The network ACL rule identifier.
- Source
This property is required. string - (String) The source IP address or CIDR block.
- Tcps
This property is required. List<GetIs Network Acl Rules Rule Tcp> - (List) TCP protocol.
- Udps
This property is required. List<GetIs Network Acl Rules Rule Udp> - (List) UDP protocol
- Action
This property is required. string - (String) Whether to allow or deny matching traffic.
- Before
This property is required. string - (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
- Destination
This property is required. string - (String) The destination IP address or CIDR block.
- Direction
This property is required. string - The direction of the rules to filter. Available options are
inbound
andoutbound
- Href
This property is required. string - (String) The URL for this network ACL rule.
- Icmps
This property is required. []GetIs Network Acl Rules Rule Icmp - (List) The protocol ICMP
- Ip
Version This property is required. string - (String) The IP version for this rule.
- Name
This property is required. string - (String) The user-defined name for this rule.
- Protocol
This property is required. string - (String) The protocol to enforce.
- Rule
Id This property is required. string - (String) The network ACL rule identifier.
- Source
This property is required. string - (String) The source IP address or CIDR block.
- Tcps
This property is required. []GetIs Network Acl Rules Rule Tcp - (List) TCP protocol.
- Udps
This property is required. []GetIs Network Acl Rules Rule Udp - (List) UDP protocol
- action
This property is required. String - (String) Whether to allow or deny matching traffic.
- before
This property is required. String - (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
- destination
This property is required. String - (String) The destination IP address or CIDR block.
- direction
This property is required. String - The direction of the rules to filter. Available options are
inbound
andoutbound
- href
This property is required. String - (String) The URL for this network ACL rule.
- icmps
This property is required. List<GetIs Network Acl Rules Rule Icmp> - (List) The protocol ICMP
- ip
Version This property is required. String - (String) The IP version for this rule.
- name
This property is required. String - (String) The user-defined name for this rule.
- protocol
This property is required. String - (String) The protocol to enforce.
- rule
Id This property is required. String - (String) The network ACL rule identifier.
- source
This property is required. String - (String) The source IP address or CIDR block.
- tcps
This property is required. List<GetIs Network Acl Rules Rule Tcp> - (List) TCP protocol.
- udps
This property is required. List<GetIs Network Acl Rules Rule Udp> - (List) UDP protocol
- action
This property is required. string - (String) Whether to allow or deny matching traffic.
- before
This property is required. string - (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
- destination
This property is required. string - (String) The destination IP address or CIDR block.
- direction
This property is required. string - The direction of the rules to filter. Available options are
inbound
andoutbound
- href
This property is required. string - (String) The URL for this network ACL rule.
- icmps
This property is required. GetIs Network Acl Rules Rule Icmp[] - (List) The protocol ICMP
- ip
Version This property is required. string - (String) The IP version for this rule.
- name
This property is required. string - (String) The user-defined name for this rule.
- protocol
This property is required. string - (String) The protocol to enforce.
- rule
Id This property is required. string - (String) The network ACL rule identifier.
- source
This property is required. string - (String) The source IP address or CIDR block.
- tcps
This property is required. GetIs Network Acl Rules Rule Tcp[] - (List) TCP protocol.
- udps
This property is required. GetIs Network Acl Rules Rule Udp[] - (List) UDP protocol
- action
This property is required. str - (String) Whether to allow or deny matching traffic.
- before
This property is required. str - (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
- destination
This property is required. str - (String) The destination IP address or CIDR block.
- direction
This property is required. str - The direction of the rules to filter. Available options are
inbound
andoutbound
- href
This property is required. str - (String) The URL for this network ACL rule.
- icmps
This property is required. Sequence[GetIs Network Acl Rules Rule Icmp] - (List) The protocol ICMP
- ip_
version This property is required. str - (String) The IP version for this rule.
- name
This property is required. str - (String) The user-defined name for this rule.
- protocol
This property is required. str - (String) The protocol to enforce.
- rule_
id This property is required. str - (String) The network ACL rule identifier.
- source
This property is required. str - (String) The source IP address or CIDR block.
- tcps
This property is required. Sequence[GetIs Network Acl Rules Rule Tcp] - (List) TCP protocol.
- udps
This property is required. Sequence[GetIs Network Acl Rules Rule Udp] - (List) UDP protocol
- action
This property is required. String - (String) Whether to allow or deny matching traffic.
- before
This property is required. String - (String) The unique identifier of the rule that this rule is immediately before.If absent, this is the last rule.
- destination
This property is required. String - (String) The destination IP address or CIDR block.
- direction
This property is required. String - The direction of the rules to filter. Available options are
inbound
andoutbound
- href
This property is required. String - (String) The URL for this network ACL rule.
- icmps
This property is required. List<Property Map> - (List) The protocol ICMP
- ip
Version This property is required. String - (String) The IP version for this rule.
- name
This property is required. String - (String) The user-defined name for this rule.
- protocol
This property is required. String - (String) The protocol to enforce.
- rule
Id This property is required. String - (String) The network ACL rule identifier.
- source
This property is required. String - (String) The source IP address or CIDR block.
- tcps
This property is required. List<Property Map> - (List) TCP protocol.
- udps
This property is required. List<Property Map> - (List) UDP protocol
GetIsNetworkAclRulesRuleIcmp
- Code
This property is required. 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
This property is required. double - (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
- Code
This property is required. 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
This property is required. float64 - (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
- code
This property is required. 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
This property is required. Double - (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
- code
This property is required. 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
This property is required. number - (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
- code
This property is required. 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
This property is required. float - (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
- code
This property is required. 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
This property is required. Number - (Integer) The ICMP traffic type to allow. Valid values from 0 to 254. If unspecified, all types are allowed by this rule.
GetIsNetworkAclRulesRuleTcp
- Port
Max This property is required. double - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- Port
Min This property is required. double - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- Source
Port Max This property is required. double - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- Source
Port Min This property is required. double - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- Port
Max This property is required. float64 - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- Port
Min This property is required. float64 - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- Source
Port Max This property is required. float64 - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- Source
Port Min This property is required. float64 - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- port
Max This property is required. Double - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- port
Min This property is required. Double - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- source
Port Max This property is required. Double - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- source
Port Min This property is required. Double - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- port
Max This property is required. number - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- port
Min This property is required. number - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- source
Port Max This property is required. number - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- source
Port Min This property is required. number - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- port_
max This property is required. float - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- port_
min This property is required. float - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- source_
port_ max This property is required. float - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- source_
port_ min This property is required. float - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- port
Max This property is required. Number - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- port
Min This property is required. Number - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- source
Port Max This property is required. Number - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- source
Port Min This property is required. Number - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
GetIsNetworkAclRulesRuleUdp
- Port
Max This property is required. double - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- Port
Min This property is required. double - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- Source
Port Max This property is required. double - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- Source
Port Min This property is required. double - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- Port
Max This property is required. float64 - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- Port
Min This property is required. float64 - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- Source
Port Max This property is required. float64 - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- Source
Port Min This property is required. float64 - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- port
Max This property is required. Double - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- port
Min This property is required. Double - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- source
Port Max This property is required. Double - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- source
Port Min This property is required. Double - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- port
Max This property is required. number - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- port
Min This property is required. number - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- source
Port Max This property is required. number - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- source
Port Min This property is required. number - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- port_
max This property is required. float - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- port_
min This property is required. float - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- source_
port_ max This property is required. float - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- source_
port_ min This property is required. float - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- port
Max This property is required. Number - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- port
Min This property is required. Number - (Integer) The lowest port in the range of ports to be matched; if unspecified, 1 is used.
- source
Port Max This property is required. Number - (Integer) The highest port in the range of ports to be matched; if unspecified, 65535 is used.
- source
Port Min This property is required. 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.