1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsSubnetNetworkAclAttachment
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.IsSubnetNetworkAclAttachment

Explore with Pulumi AI

Create, update, or delete a subnet network ACL attachment resource. For more information, about subnet network ACL attachment, see setting up network ACLs.

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";
Copy
import pulumi
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

Example Usage

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

const exampleIsNetworkAcl = new ibm.IsNetworkAcl("exampleIsNetworkAcl", {rules: [
    {
        name: "outbound",
        action: "allow",
        source: "0.0.0.0/0",
        destination: "0.0.0.0/0",
        direction: "outbound",
        icmp: {
            code: 1,
            type: 1,
        },
    },
    {
        name: "inbound",
        action: "allow",
        source: "0.0.0.0/0",
        destination: "0.0.0.0/0",
        direction: "inbound",
        icmp: {
            code: 1,
            type: 1,
        },
    },
]});
const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
    vpc: ibm_is_vpc.example.id,
    zone: "us-south-1",
    ipv4CidrBlock: "192.168.0.0/1",
});
const exampleIsSubnetNetworkAclAttachment = new ibm.IsSubnetNetworkAclAttachment("exampleIsSubnetNetworkAclAttachment", {
    subnet: exampleIsSubnet.isSubnetId,
    networkAcl: exampleIsNetworkAcl.isNetworkAclId,
});
Copy
import pulumi
import pulumi_ibm as ibm

example_is_network_acl = ibm.IsNetworkAcl("exampleIsNetworkAcl", rules=[
    {
        "name": "outbound",
        "action": "allow",
        "source": "0.0.0.0/0",
        "destination": "0.0.0.0/0",
        "direction": "outbound",
        "icmp": {
            "code": 1,
            "type": 1,
        },
    },
    {
        "name": "inbound",
        "action": "allow",
        "source": "0.0.0.0/0",
        "destination": "0.0.0.0/0",
        "direction": "inbound",
        "icmp": {
            "code": 1,
            "type": 1,
        },
    },
])
example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
    vpc=ibm_is_vpc["example"]["id"],
    zone="us-south-1",
    ipv4_cidr_block="192.168.0.0/1")
example_is_subnet_network_acl_attachment = ibm.IsSubnetNetworkAclAttachment("exampleIsSubnetNetworkAclAttachment",
    subnet=example_is_subnet.is_subnet_id,
    network_acl=example_is_network_acl.is_network_acl_id)
Copy
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 {
		exampleIsNetworkAcl, err := ibm.NewIsNetworkAcl(ctx, "exampleIsNetworkAcl", &ibm.IsNetworkAclArgs{
			Rules: ibm.IsNetworkAclRuleTypeArray{
				&ibm.IsNetworkAclRuleTypeArgs{
					Name:        pulumi.String("outbound"),
					Action:      pulumi.String("allow"),
					Source:      pulumi.String("0.0.0.0/0"),
					Destination: pulumi.String("0.0.0.0/0"),
					Direction:   pulumi.String("outbound"),
					Icmp: &ibm.IsNetworkAclRuleIcmpArgs{
						Code: pulumi.Float64(1),
						Type: pulumi.Float64(1),
					},
				},
				&ibm.IsNetworkAclRuleTypeArgs{
					Name:        pulumi.String("inbound"),
					Action:      pulumi.String("allow"),
					Source:      pulumi.String("0.0.0.0/0"),
					Destination: pulumi.String("0.0.0.0/0"),
					Direction:   pulumi.String("inbound"),
					Icmp: &ibm.IsNetworkAclRuleIcmpArgs{
						Code: pulumi.Float64(1),
						Type: pulumi.Float64(1),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
			Vpc:           pulumi.Any(ibm_is_vpc.Example.Id),
			Zone:          pulumi.String("us-south-1"),
			Ipv4CidrBlock: pulumi.String("192.168.0.0/1"),
		})
		if err != nil {
			return err
		}
		_, err = ibm.NewIsSubnetNetworkAclAttachment(ctx, "exampleIsSubnetNetworkAclAttachment", &ibm.IsSubnetNetworkAclAttachmentArgs{
			Subnet:     exampleIsSubnet.IsSubnetId,
			NetworkAcl: exampleIsNetworkAcl.IsNetworkAclId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var exampleIsNetworkAcl = new Ibm.IsNetworkAcl("exampleIsNetworkAcl", new()
    {
        Rules = new[]
        {
            new Ibm.Inputs.IsNetworkAclRuleArgs
            {
                Name = "outbound",
                Action = "allow",
                Source = "0.0.0.0/0",
                Destination = "0.0.0.0/0",
                Direction = "outbound",
                Icmp = new Ibm.Inputs.IsNetworkAclRuleIcmpArgs
                {
                    Code = 1,
                    Type = 1,
                },
            },
            new Ibm.Inputs.IsNetworkAclRuleArgs
            {
                Name = "inbound",
                Action = "allow",
                Source = "0.0.0.0/0",
                Destination = "0.0.0.0/0",
                Direction = "inbound",
                Icmp = new Ibm.Inputs.IsNetworkAclRuleIcmpArgs
                {
                    Code = 1,
                    Type = 1,
                },
            },
        },
    });

    var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
    {
        Vpc = ibm_is_vpc.Example.Id,
        Zone = "us-south-1",
        Ipv4CidrBlock = "192.168.0.0/1",
    });

    var exampleIsSubnetNetworkAclAttachment = new Ibm.IsSubnetNetworkAclAttachment("exampleIsSubnetNetworkAclAttachment", new()
    {
        Subnet = exampleIsSubnet.IsSubnetId,
        NetworkAcl = exampleIsNetworkAcl.IsNetworkAclId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsNetworkAcl;
import com.pulumi.ibm.IsNetworkAclArgs;
import com.pulumi.ibm.inputs.IsNetworkAclRuleArgs;
import com.pulumi.ibm.inputs.IsNetworkAclRuleIcmpArgs;
import com.pulumi.ibm.IsSubnet;
import com.pulumi.ibm.IsSubnetArgs;
import com.pulumi.ibm.IsSubnetNetworkAclAttachment;
import com.pulumi.ibm.IsSubnetNetworkAclAttachmentArgs;
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) {
        var exampleIsNetworkAcl = new IsNetworkAcl("exampleIsNetworkAcl", IsNetworkAclArgs.builder()
            .rules(            
                IsNetworkAclRuleArgs.builder()
                    .name("outbound")
                    .action("allow")
                    .source("0.0.0.0/0")
                    .destination("0.0.0.0/0")
                    .direction("outbound")
                    .icmp(IsNetworkAclRuleIcmpArgs.builder()
                        .code(1)
                        .type(1)
                        .build())
                    .build(),
                IsNetworkAclRuleArgs.builder()
                    .name("inbound")
                    .action("allow")
                    .source("0.0.0.0/0")
                    .destination("0.0.0.0/0")
                    .direction("inbound")
                    .icmp(IsNetworkAclRuleIcmpArgs.builder()
                        .code(1)
                        .type(1)
                        .build())
                    .build())
            .build());

        var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
            .vpc(ibm_is_vpc.example().id())
            .zone("us-south-1")
            .ipv4CidrBlock("192.168.0.0/1")
            .build());

        var exampleIsSubnetNetworkAclAttachment = new IsSubnetNetworkAclAttachment("exampleIsSubnetNetworkAclAttachment", IsSubnetNetworkAclAttachmentArgs.builder()
            .subnet(exampleIsSubnet.isSubnetId())
            .networkAcl(exampleIsNetworkAcl.isNetworkAclId())
            .build());

    }
}
Copy
resources:
  exampleIsNetworkAcl:
    type: ibm:IsNetworkAcl
    properties:
      rules:
        - name: outbound
          action: allow
          source: 0.0.0.0/0
          destination: 0.0.0.0/0
          direction: outbound
          icmp:
            code: 1
            type: 1
        - name: inbound
          action: allow
          source: 0.0.0.0/0
          destination: 0.0.0.0/0
          direction: inbound
          icmp:
            code: 1
            type: 1
  exampleIsSubnet:
    type: ibm:IsSubnet
    properties:
      vpc: ${ibm_is_vpc.example.id}
      zone: us-south-1
      ipv4CidrBlock: 192.168.0.0/1
  exampleIsSubnetNetworkAclAttachment:
    type: ibm:IsSubnetNetworkAclAttachment
    properties:
      subnet: ${exampleIsSubnet.isSubnetId}
      networkAcl: ${exampleIsNetworkAcl.isNetworkAclId}
Copy

Create IsSubnetNetworkAclAttachment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new IsSubnetNetworkAclAttachment(name: string, args: IsSubnetNetworkAclAttachmentArgs, opts?: CustomResourceOptions);
@overload
def IsSubnetNetworkAclAttachment(resource_name: str,
                                 args: IsSubnetNetworkAclAttachmentArgs,
                                 opts: Optional[ResourceOptions] = None)

@overload
def IsSubnetNetworkAclAttachment(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 network_acl: Optional[str] = None,
                                 subnet: Optional[str] = None,
                                 is_subnet_network_acl_attachment_id: Optional[str] = None,
                                 timeouts: Optional[IsSubnetNetworkAclAttachmentTimeoutsArgs] = None)
func NewIsSubnetNetworkAclAttachment(ctx *Context, name string, args IsSubnetNetworkAclAttachmentArgs, opts ...ResourceOption) (*IsSubnetNetworkAclAttachment, error)
public IsSubnetNetworkAclAttachment(string name, IsSubnetNetworkAclAttachmentArgs args, CustomResourceOptions? opts = null)
public IsSubnetNetworkAclAttachment(String name, IsSubnetNetworkAclAttachmentArgs args)
public IsSubnetNetworkAclAttachment(String name, IsSubnetNetworkAclAttachmentArgs args, CustomResourceOptions options)
type: ibm:IsSubnetNetworkAclAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IsSubnetNetworkAclAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IsSubnetNetworkAclAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IsSubnetNetworkAclAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IsSubnetNetworkAclAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IsSubnetNetworkAclAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var isSubnetNetworkAclAttachmentResource = new Ibm.IsSubnetNetworkAclAttachment("isSubnetNetworkAclAttachmentResource", new()
{
    NetworkAcl = "string",
    Subnet = "string",
    IsSubnetNetworkAclAttachmentId = "string",
    Timeouts = new Ibm.Inputs.IsSubnetNetworkAclAttachmentTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
});
Copy
example, err := ibm.NewIsSubnetNetworkAclAttachment(ctx, "isSubnetNetworkAclAttachmentResource", &ibm.IsSubnetNetworkAclAttachmentArgs{
NetworkAcl: pulumi.String("string"),
Subnet: pulumi.String("string"),
IsSubnetNetworkAclAttachmentId: pulumi.String("string"),
Timeouts: &.IsSubnetNetworkAclAttachmentTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
Copy
var isSubnetNetworkAclAttachmentResource = new IsSubnetNetworkAclAttachment("isSubnetNetworkAclAttachmentResource", IsSubnetNetworkAclAttachmentArgs.builder()
    .networkAcl("string")
    .subnet("string")
    .isSubnetNetworkAclAttachmentId("string")
    .timeouts(IsSubnetNetworkAclAttachmentTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .build());
Copy
is_subnet_network_acl_attachment_resource = ibm.IsSubnetNetworkAclAttachment("isSubnetNetworkAclAttachmentResource",
    network_acl="string",
    subnet="string",
    is_subnet_network_acl_attachment_id="string",
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    })
Copy
const isSubnetNetworkAclAttachmentResource = new ibm.IsSubnetNetworkAclAttachment("isSubnetNetworkAclAttachmentResource", {
    networkAcl: "string",
    subnet: "string",
    isSubnetNetworkAclAttachmentId: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
});
Copy
type: ibm:IsSubnetNetworkAclAttachment
properties:
    isSubnetNetworkAclAttachmentId: string
    networkAcl: string
    subnet: string
    timeouts:
        create: string
        delete: string
        update: string
Copy

IsSubnetNetworkAclAttachment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IsSubnetNetworkAclAttachment resource accepts the following input properties:

NetworkAcl This property is required. string
The network ACL identity.
Subnet This property is required. string
The subnet identifier.
IsSubnetNetworkAclAttachmentId string
(String) The unique identifier of the Network ACL rule.
Timeouts IsSubnetNetworkAclAttachmentTimeouts
NetworkAcl This property is required. string
The network ACL identity.
Subnet This property is required. string
The subnet identifier.
IsSubnetNetworkAclAttachmentId string
(String) The unique identifier of the Network ACL rule.
Timeouts IsSubnetNetworkAclAttachmentTimeoutsArgs
networkAcl This property is required. String
The network ACL identity.
subnet This property is required. String
The subnet identifier.
isSubnetNetworkAclAttachmentId String
(String) The unique identifier of the Network ACL rule.
timeouts IsSubnetNetworkAclAttachmentTimeouts
networkAcl This property is required. string
The network ACL identity.
subnet This property is required. string
The subnet identifier.
isSubnetNetworkAclAttachmentId string
(String) The unique identifier of the Network ACL rule.
timeouts IsSubnetNetworkAclAttachmentTimeouts
network_acl This property is required. str
The network ACL identity.
subnet This property is required. str
The subnet identifier.
is_subnet_network_acl_attachment_id str
(String) The unique identifier of the Network ACL rule.
timeouts IsSubnetNetworkAclAttachmentTimeoutsArgs
networkAcl This property is required. String
The network ACL identity.
subnet This property is required. String
The subnet identifier.
isSubnetNetworkAclAttachmentId String
(String) The unique identifier of the Network ACL rule.
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the IsSubnetNetworkAclAttachment resource produces the following output properties:

Crn string
(String) The CRN of this network ACL.
Id string
The provider-assigned unique ID for this managed resource.
Name string
(String) The user-defined name of the rule.
ResourceGroup string
(String) The resource group (Id), of this network ACL.
Rules List<IsSubnetNetworkAclAttachmentRule>
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
Vpc string
(String) The VPC to which this network ACL is a part of.
Crn string
(String) The CRN of this network ACL.
Id string
The provider-assigned unique ID for this managed resource.
Name string
(String) The user-defined name of the rule.
ResourceGroup string
(String) The resource group (Id), of this network ACL.
Rules []IsSubnetNetworkAclAttachmentRule
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
Vpc string
(String) The VPC to which this network ACL is a part of.
crn String
(String) The CRN of this network ACL.
id String
The provider-assigned unique ID for this managed resource.
name String
(String) The user-defined name of the rule.
resourceGroup String
(String) The resource group (Id), of this network ACL.
rules List<IsSubnetNetworkAclAttachmentRule>
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
vpc String
(String) The VPC to which this network ACL is a part of.
crn string
(String) The CRN of this network ACL.
id string
The provider-assigned unique ID for this managed resource.
name string
(String) The user-defined name of the rule.
resourceGroup string
(String) The resource group (Id), of this network ACL.
rules IsSubnetNetworkAclAttachmentRule[]
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
vpc string
(String) The VPC to which this network ACL is a part of.
crn str
(String) The CRN of this network ACL.
id str
The provider-assigned unique ID for this managed resource.
name str
(String) The user-defined name of the rule.
resource_group str
(String) The resource group (Id), of this network ACL.
rules Sequence[IsSubnetNetworkAclAttachmentRule]
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
vpc str
(String) The VPC to which this network ACL is a part of.
crn String
(String) The CRN of this network ACL.
id String
The provider-assigned unique ID for this managed resource.
name String
(String) The user-defined name of the rule.
resourceGroup String
(String) The resource group (Id), of this network ACL.
rules List<Property Map>
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
vpc String
(String) The VPC to which this network ACL is a part of.

Look up Existing IsSubnetNetworkAclAttachment Resource

Get an existing IsSubnetNetworkAclAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IsSubnetNetworkAclAttachmentState, opts?: CustomResourceOptions): IsSubnetNetworkAclAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        crn: Optional[str] = None,
        is_subnet_network_acl_attachment_id: Optional[str] = None,
        name: Optional[str] = None,
        network_acl: Optional[str] = None,
        resource_group: Optional[str] = None,
        rules: Optional[Sequence[IsSubnetNetworkAclAttachmentRuleArgs]] = None,
        subnet: Optional[str] = None,
        timeouts: Optional[IsSubnetNetworkAclAttachmentTimeoutsArgs] = None,
        vpc: Optional[str] = None) -> IsSubnetNetworkAclAttachment
func GetIsSubnetNetworkAclAttachment(ctx *Context, name string, id IDInput, state *IsSubnetNetworkAclAttachmentState, opts ...ResourceOption) (*IsSubnetNetworkAclAttachment, error)
public static IsSubnetNetworkAclAttachment Get(string name, Input<string> id, IsSubnetNetworkAclAttachmentState? state, CustomResourceOptions? opts = null)
public static IsSubnetNetworkAclAttachment get(String name, Output<String> id, IsSubnetNetworkAclAttachmentState state, CustomResourceOptions options)
resources:  _:    type: ibm:IsSubnetNetworkAclAttachment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Crn string
(String) The CRN of this network ACL.
IsSubnetNetworkAclAttachmentId string
(String) The unique identifier of the Network ACL rule.
Name string
(String) The user-defined name of the rule.
NetworkAcl string
The network ACL identity.
ResourceGroup string
(String) The resource group (Id), of this network ACL.
Rules List<IsSubnetNetworkAclAttachmentRule>
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
Subnet string
The subnet identifier.
Timeouts IsSubnetNetworkAclAttachmentTimeouts
Vpc string
(String) The VPC to which this network ACL is a part of.
Crn string
(String) The CRN of this network ACL.
IsSubnetNetworkAclAttachmentId string
(String) The unique identifier of the Network ACL rule.
Name string
(String) The user-defined name of the rule.
NetworkAcl string
The network ACL identity.
ResourceGroup string
(String) The resource group (Id), of this network ACL.
Rules []IsSubnetNetworkAclAttachmentRuleArgs
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
Subnet string
The subnet identifier.
Timeouts IsSubnetNetworkAclAttachmentTimeoutsArgs
Vpc string
(String) The VPC to which this network ACL is a part of.
crn String
(String) The CRN of this network ACL.
isSubnetNetworkAclAttachmentId String
(String) The unique identifier of the Network ACL rule.
name String
(String) The user-defined name of the rule.
networkAcl String
The network ACL identity.
resourceGroup String
(String) The resource group (Id), of this network ACL.
rules List<IsSubnetNetworkAclAttachmentRule>
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
subnet String
The subnet identifier.
timeouts IsSubnetNetworkAclAttachmentTimeouts
vpc String
(String) The VPC to which this network ACL is a part of.
crn string
(String) The CRN of this network ACL.
isSubnetNetworkAclAttachmentId string
(String) The unique identifier of the Network ACL rule.
name string
(String) The user-defined name of the rule.
networkAcl string
The network ACL identity.
resourceGroup string
(String) The resource group (Id), of this network ACL.
rules IsSubnetNetworkAclAttachmentRule[]
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
subnet string
The subnet identifier.
timeouts IsSubnetNetworkAclAttachmentTimeouts
vpc string
(String) The VPC to which this network ACL is a part of.
crn str
(String) The CRN of this network ACL.
is_subnet_network_acl_attachment_id str
(String) The unique identifier of the Network ACL rule.
name str
(String) The user-defined name of the rule.
network_acl str
The network ACL identity.
resource_group str
(String) The resource group (Id), of this network ACL.
rules Sequence[IsSubnetNetworkAclAttachmentRuleArgs]
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
subnet str
The subnet identifier.
timeouts IsSubnetNetworkAclAttachmentTimeoutsArgs
vpc str
(String) The VPC to which this network ACL is a part of.
crn String
(String) The CRN of this network ACL.
isSubnetNetworkAclAttachmentId String
(String) The unique identifier of the Network ACL rule.
name String
(String) The user-defined name of the rule.
networkAcl String
The network ACL identity.
resourceGroup String
(String) The resource group (Id), of this network ACL.
rules List<Property Map>
(List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
subnet String
The subnet identifier.
timeouts Property Map
vpc String
(String) The VPC to which this network ACL is a part of.

Supporting Types

IsSubnetNetworkAclAttachmentRule
, IsSubnetNetworkAclAttachmentRuleArgs

Action This property is required. string
(String) Specify to allow or deny matching traffic.
Destination This property is required. string
(String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
Direction This property is required. string
Icmps This property is required. List<IsSubnetNetworkAclAttachmentRuleIcmp>
(List) The protocol ICMP.
Id This property is required. string
(String) The unique identifier of the Network ACL rule.
IpVersion This property is required. string
(String) The IP version of the rule.
Name This property is required. string
(String) The user-defined name of the rule.
Source This property is required. string
(String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
Tcps This property is required. List<IsSubnetNetworkAclAttachmentRuleTcp>
(List) The TCP protocol.
Udps This property is required. List<IsSubnetNetworkAclAttachmentRuleUdp>
(List) The UDP protocol.
Action This property is required. string
(String) Specify to allow or deny matching traffic.
Destination This property is required. string
(String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
Direction This property is required. string
Icmps This property is required. []IsSubnetNetworkAclAttachmentRuleIcmp
(List) The protocol ICMP.
Id This property is required. string
(String) The unique identifier of the Network ACL rule.
IpVersion This property is required. string
(String) The IP version of the rule.
Name This property is required. string
(String) The user-defined name of the rule.
Source This property is required. string
(String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
Tcps This property is required. []IsSubnetNetworkAclAttachmentRuleTcp
(List) The TCP protocol.
Udps This property is required. []IsSubnetNetworkAclAttachmentRuleUdp
(List) The UDP protocol.
action This property is required. String
(String) Specify to allow or deny matching traffic.
destination This property is required. String
(String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
direction This property is required. String
icmps This property is required. List<IsSubnetNetworkAclAttachmentRuleIcmp>
(List) The protocol ICMP.
id This property is required. String
(String) The unique identifier of the Network ACL rule.
ipVersion This property is required. String
(String) The IP version of the rule.
name This property is required. String
(String) The user-defined name of the rule.
source This property is required. String
(String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
tcps This property is required. List<IsSubnetNetworkAclAttachmentRuleTcp>
(List) The TCP protocol.
udps This property is required. List<IsSubnetNetworkAclAttachmentRuleUdp>
(List) The UDP protocol.
action This property is required. string
(String) Specify to allow or deny matching traffic.
destination This property is required. string
(String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
direction This property is required. string
icmps This property is required. IsSubnetNetworkAclAttachmentRuleIcmp[]
(List) The protocol ICMP.
id This property is required. string
(String) The unique identifier of the Network ACL rule.
ipVersion This property is required. string
(String) The IP version of the rule.
name This property is required. string
(String) The user-defined name of the rule.
source This property is required. string
(String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
tcps This property is required. IsSubnetNetworkAclAttachmentRuleTcp[]
(List) The TCP protocol.
udps This property is required. IsSubnetNetworkAclAttachmentRuleUdp[]
(List) The UDP protocol.
action This property is required. str
(String) Specify to allow or deny matching traffic.
destination This property is required. str
(String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
direction This property is required. str
icmps This property is required. Sequence[IsSubnetNetworkAclAttachmentRuleIcmp]
(List) The protocol ICMP.
id This property is required. str
(String) The unique identifier of the Network ACL rule.
ip_version This property is required. str
(String) The IP version of the rule.
name This property is required. str
(String) The user-defined name of the rule.
source This property is required. str
(String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
tcps This property is required. Sequence[IsSubnetNetworkAclAttachmentRuleTcp]
(List) The TCP protocol.
udps This property is required. Sequence[IsSubnetNetworkAclAttachmentRuleUdp]
(List) The UDP protocol.
action This property is required. String
(String) Specify to allow or deny matching traffic.
destination This property is required. String
(String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
direction This property is required. String
icmps This property is required. List<Property Map>
(List) The protocol ICMP.
id This property is required. String
(String) The unique identifier of the Network ACL rule.
ipVersion This property is required. String
(String) The IP version of the rule.
name This property is required. String
(String) The user-defined name of the rule.
source This property is required. String
(String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
tcps This property is required. List<Property Map>
(List) The TCP protocol.
udps This property is required. List<Property Map>
(List) The UDP protocol.

IsSubnetNetworkAclAttachmentRuleIcmp
, IsSubnetNetworkAclAttachmentRuleIcmpArgs

Code This property is required. double
(String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
Type This property is required. double
(String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
Code This property is required. float64
(String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
Type This property is required. float64
(String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
code This property is required. Double
(String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
type This property is required. Double
(String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
code This property is required. number
(String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
type This property is required. number
(String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
code This property is required. float
(String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
type This property is required. float
(String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
code This property is required. Number
(String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
type This property is required. Number
(String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.

IsSubnetNetworkAclAttachmentRuleTcp
, IsSubnetNetworkAclAttachmentRuleTcpArgs

PortMax This property is required. double
PortMin This property is required. double
SourcePortMax This property is required. double
(String) The inclusive maximum bound of UDP source port range.
SourcePortMin This property is required. double
(String) The inclusive minimum bound of UDP source port range.
PortMax This property is required. float64
PortMin This property is required. float64
SourcePortMax This property is required. float64
(String) The inclusive maximum bound of UDP source port range.
SourcePortMin This property is required. float64
(String) The inclusive minimum bound of UDP source port range.
portMax This property is required. Double
portMin This property is required. Double
sourcePortMax This property is required. Double
(String) The inclusive maximum bound of UDP source port range.
sourcePortMin This property is required. Double
(String) The inclusive minimum bound of UDP source port range.
portMax This property is required. number
portMin This property is required. number
sourcePortMax This property is required. number
(String) The inclusive maximum bound of UDP source port range.
sourcePortMin This property is required. number
(String) The inclusive minimum bound of UDP source port range.
port_max This property is required. float
port_min This property is required. float
source_port_max This property is required. float
(String) The inclusive maximum bound of UDP source port range.
source_port_min This property is required. float
(String) The inclusive minimum bound of UDP source port range.
portMax This property is required. Number
portMin This property is required. Number
sourcePortMax This property is required. Number
(String) The inclusive maximum bound of UDP source port range.
sourcePortMin This property is required. Number
(String) The inclusive minimum bound of UDP source port range.

IsSubnetNetworkAclAttachmentRuleUdp
, IsSubnetNetworkAclAttachmentRuleUdpArgs

PortMax This property is required. double
PortMin This property is required. double
SourcePortMax This property is required. double
(String) The inclusive maximum bound of UDP source port range.
SourcePortMin This property is required. double
(String) The inclusive minimum bound of UDP source port range.
PortMax This property is required. float64
PortMin This property is required. float64
SourcePortMax This property is required. float64
(String) The inclusive maximum bound of UDP source port range.
SourcePortMin This property is required. float64
(String) The inclusive minimum bound of UDP source port range.
portMax This property is required. Double
portMin This property is required. Double
sourcePortMax This property is required. Double
(String) The inclusive maximum bound of UDP source port range.
sourcePortMin This property is required. Double
(String) The inclusive minimum bound of UDP source port range.
portMax This property is required. number
portMin This property is required. number
sourcePortMax This property is required. number
(String) The inclusive maximum bound of UDP source port range.
sourcePortMin This property is required. number
(String) The inclusive minimum bound of UDP source port range.
port_max This property is required. float
port_min This property is required. float
source_port_max This property is required. float
(String) The inclusive maximum bound of UDP source port range.
source_port_min This property is required. float
(String) The inclusive minimum bound of UDP source port range.
portMax This property is required. Number
portMin This property is required. Number
sourcePortMax This property is required. Number
(String) The inclusive maximum bound of UDP source port range.
sourcePortMin This property is required. Number
(String) The inclusive minimum bound of UDP source port range.

IsSubnetNetworkAclAttachmentTimeouts
, IsSubnetNetworkAclAttachmentTimeoutsArgs

Create string
Delete string
Update string
Create string
Delete string
Update string
create String
delete String
update String
create string
delete string
update string
create str
delete str
update str
create String
delete String
update String

Import

The ibm_is_subnet_network_acl_attachment resource can be imported by using the ID.

Syntax

$ pulumi import ibm:index/isSubnetNetworkAclAttachment:IsSubnetNetworkAclAttachment example <subnet_network_acl_ID>
Copy

Example

$ pulumi import ibm:index/isSubnetNetworkAclAttachment:IsSubnetNetworkAclAttachment example d7bec597-4726-451f-8a63-1111e6f19c32c
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.