equinix.networkedge.AclTemplate

Explore with Pulumi AI

Example Usage

using System.Collections.Generic;
using Pulumi;
using Equinix = Pulumi.Equinix;

return await Deployment.RunAsync(() => 
{
    var aclTemplate = new Equinix.NetworkEdge.AclTemplate("aclTemplate", new()
    {
        Name = "test",
        Description = "Test ACL template",
        InboundRules = new[]
        {
            new Equinix.NetworkEdge.Inputs.AclTemplateInboundRuleArgs
            {
                Subnet = "1.1.1.1/32",
                Protocol = "IP",
                SrcPort = "any",
                DstPort = "any",
                Description = "inbound rule description",
            },
            new Equinix.NetworkEdge.Inputs.AclTemplateInboundRuleArgs
            {
                Subnet = "2.2.2.2/28",
                Protocol = "TCP",
                SrcPort = "any",
                DstPort = "any",
                Description = "inbound rule description",
            },
        },
    });

    return new Dictionary<string, object?>
    {
        ["templateId"] = aclTemplate.Id,
    };
});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		aclTemplate, err := networkedge.NewAclTemplate(ctx, "aclTemplate", &networkedge.AclTemplateArgs{
			Name:        pulumi.String("test"),
			Description: pulumi.String("Test ACL template"),
			InboundRules: networkedge.AclTemplateInboundRuleArray{
				&networkedge.AclTemplateInboundRuleArgs{
					Subnet:      pulumi.String("1.1.1.1/32"),
					Protocol:    pulumi.String("IP"),
					SrcPort:     pulumi.String("any"),
					DstPort:     pulumi.String("any"),
					Description: pulumi.String("inbound rule description"),
				},
				&networkedge.AclTemplateInboundRuleArgs{
					Subnet:      pulumi.String("2.2.2.2/28"),
					Protocol:    pulumi.String("TCP"),
					SrcPort:     pulumi.String("any"),
					DstPort:     pulumi.String("any"),
					Description: pulumi.String("inbound rule description"),
				},
			},
		})
		if err != nil {
			return err
		}
		ctx.Export("templateId", aclTemplate.ID())
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.equinix.pulumi.networkedge.AclTemplate;
import com.equinix.pulumi.networkedge.AclTemplateArgs;
import com.equinix.pulumi.networkedge.inputs.AclTemplateInboundRuleArgs;
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 aclTemplate = new AclTemplate("aclTemplate", AclTemplateArgs.builder()        
            .name("test")
            .description("Test ACL template")
            .inboundRules(            
                AclTemplateInboundRuleArgs.builder()
                    .subnet("1.1.1.1/32")
                    .protocol("IP")
                    .srcPort("any")
                    .dstPort("any")
                    .description("inbound rule description")
                    .build(),
                AclTemplateInboundRuleArgs.builder()
                    .subnet("2.2.2.2/28")
                    .protocol("TCP")
                    .srcPort("any")
                    .dstPort("any")
                    .description("inbound rule description")
                    .build())
            .build());

        ctx.export("templateId", aclTemplate.id());
    }
}
import pulumi
import pulumi_equinix as equinix

acl_template = equinix.networkedge.AclTemplate("aclTemplate",
    name="test",
    description="Test ACL template",
    inbound_rules=[
        equinix.networkedge.AclTemplateInboundRuleArgs(
            subnet="1.1.1.1/32",
            protocol="IP",
            src_port="any",
            dst_port="any",
            description="inbound rule description",
        ),
        equinix.networkedge.AclTemplateInboundRuleArgs(
            subnet="2.2.2.2/28",
            protocol="TCP",
            src_port="any",
            dst_port="any",
            description="inbound rule description",
        ),
    ])
pulumi.export("templateId", acl_template.id)
import * as pulumi from "@pulumi/pulumi";
import * as equinix from "@equinix-labs/pulumi-equinix";

const aclTemplate = new equinix.networkedge.AclTemplate("aclTemplate", {
    name: "test",
    description: "Test ACL template",
    inboundRules: [
        {
            subnet: "1.1.1.1/32",
            protocol: "IP",
            srcPort: "any",
            dstPort: "any",
            description: "inbound rule description",
        },
        {
            subnet: "2.2.2.2/28",
            protocol: "TCP",
            srcPort: "any",
            dstPort: "any",
            description: "inbound rule description",
        },
    ],
});
export const templateId = aclTemplate.id;
resources:
  aclTemplate:
    type: equinix:networkedge:AclTemplate
    properties:
      name: test
      description: Test ACL template
      inboundRules:
      - subnet: 1.1.1.1/32
        protocol: IP
        srcPort: any
        dstPort: any
        description: inbound rule description
      - subnet: 2.2.2.2/28
        protocol: TCP
        srcPort: any
        dstPort: any
        description: inbound rule description
outputs:
  templateId: ${aclTemplate.id}

Create AclTemplate Resource

new AclTemplate(name: string, args: AclTemplateArgs, opts?: CustomResourceOptions);
@overload
def AclTemplate(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                description: Optional[str] = None,
                inbound_rules: Optional[Sequence[AclTemplateInboundRuleArgs]] = None,
                metro_code: Optional[str] = None,
                name: Optional[str] = None)
@overload
def AclTemplate(resource_name: str,
                args: AclTemplateArgs,
                opts: Optional[ResourceOptions] = None)
func NewAclTemplate(ctx *Context, name string, args AclTemplateArgs, opts ...ResourceOption) (*AclTemplate, error)
public AclTemplate(string name, AclTemplateArgs args, CustomResourceOptions? opts = null)
public AclTemplate(String name, AclTemplateArgs args)
public AclTemplate(String name, AclTemplateArgs args, CustomResourceOptions options)
type: equinix:networkedge:AclTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

AclTemplate Resource Properties

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

Inputs

The AclTemplate resource accepts the following input properties:

InboundRules List<AclTemplateInboundRuleArgs>

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

Description string

Inbound rule description, up to 200 characters.

MetroCode string

ACL template location metro code.

Deprecated:

Metro Code is no longer required

Name string

ACL template name.

InboundRules []AclTemplateInboundRuleArgs

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

Description string

Inbound rule description, up to 200 characters.

MetroCode string

ACL template location metro code.

Deprecated:

Metro Code is no longer required

Name string

ACL template name.

inboundRules List<AclTemplateInboundRuleArgs>

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

description String

Inbound rule description, up to 200 characters.

metroCode String

ACL template location metro code.

Deprecated:

Metro Code is no longer required

name String

ACL template name.

inboundRules AclTemplateInboundRuleArgs[]

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

description string

Inbound rule description, up to 200 characters.

metroCode string

ACL template location metro code.

Deprecated:

Metro Code is no longer required

name string

ACL template name.

inbound_rules Sequence[AclTemplateInboundRuleArgs]

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

description str

Inbound rule description, up to 200 characters.

metro_code str

ACL template location metro code.

Deprecated:

Metro Code is no longer required

name str

ACL template name.

inboundRules List<Property Map>

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

description String

Inbound rule description, up to 200 characters.

metroCode String

ACL template location metro code.

Deprecated:

Metro Code is no longer required

name String

ACL template name.

Outputs

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

DeviceAclStatus string

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

DeviceDetails List<AclTemplateDeviceDetail>

List of the devices where the ACL template is applied.

DeviceId string

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

Id string

The provider-assigned unique ID for this managed resource.

Uuid string

Device uuid.

DeviceAclStatus string

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

DeviceDetails []AclTemplateDeviceDetail

List of the devices where the ACL template is applied.

DeviceId string

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

Id string

The provider-assigned unique ID for this managed resource.

Uuid string

Device uuid.

deviceAclStatus String

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

deviceDetails List<AclTemplateDeviceDetail>

List of the devices where the ACL template is applied.

deviceId String

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

id String

The provider-assigned unique ID for this managed resource.

uuid String

Device uuid.

deviceAclStatus string

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

deviceDetails AclTemplateDeviceDetail[]

List of the devices where the ACL template is applied.

deviceId string

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

id string

The provider-assigned unique ID for this managed resource.

uuid string

Device uuid.

device_acl_status str

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

device_details Sequence[AclTemplateDeviceDetail]

List of the devices where the ACL template is applied.

device_id str

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

id str

The provider-assigned unique ID for this managed resource.

uuid str

Device uuid.

deviceAclStatus String

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

deviceDetails List<Property Map>

List of the devices where the ACL template is applied.

deviceId String

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

id String

The provider-assigned unique ID for this managed resource.

uuid String

Device uuid.

Look up Existing AclTemplate Resource

Get an existing AclTemplate 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?: AclTemplateState, opts?: CustomResourceOptions): AclTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        device_acl_status: Optional[str] = None,
        device_details: Optional[Sequence[AclTemplateDeviceDetailArgs]] = None,
        device_id: Optional[str] = None,
        inbound_rules: Optional[Sequence[AclTemplateInboundRuleArgs]] = None,
        metro_code: Optional[str] = None,
        name: Optional[str] = None,
        uuid: Optional[str] = None) -> AclTemplate
func GetAclTemplate(ctx *Context, name string, id IDInput, state *AclTemplateState, opts ...ResourceOption) (*AclTemplate, error)
public static AclTemplate Get(string name, Input<string> id, AclTemplateState? state, CustomResourceOptions? opts = null)
public static AclTemplate get(String name, Output<String> id, AclTemplateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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:
Description string

Inbound rule description, up to 200 characters.

DeviceAclStatus string

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

DeviceDetails List<AclTemplateDeviceDetailArgs>

List of the devices where the ACL template is applied.

DeviceId string

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

InboundRules List<AclTemplateInboundRuleArgs>

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

MetroCode string

ACL template location metro code.

Deprecated:

Metro Code is no longer required

Name string

ACL template name.

Uuid string

Device uuid.

Description string

Inbound rule description, up to 200 characters.

DeviceAclStatus string

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

DeviceDetails []AclTemplateDeviceDetailArgs

List of the devices where the ACL template is applied.

DeviceId string

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

InboundRules []AclTemplateInboundRuleArgs

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

MetroCode string

ACL template location metro code.

Deprecated:

Metro Code is no longer required

Name string

ACL template name.

Uuid string

Device uuid.

description String

Inbound rule description, up to 200 characters.

deviceAclStatus String

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

deviceDetails List<AclTemplateDeviceDetailArgs>

List of the devices where the ACL template is applied.

deviceId String

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

inboundRules List<AclTemplateInboundRuleArgs>

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

metroCode String

ACL template location metro code.

Deprecated:

Metro Code is no longer required

name String

ACL template name.

uuid String

Device uuid.

description string

Inbound rule description, up to 200 characters.

deviceAclStatus string

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

deviceDetails AclTemplateDeviceDetailArgs[]

List of the devices where the ACL template is applied.

deviceId string

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

inboundRules AclTemplateInboundRuleArgs[]

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

metroCode string

ACL template location metro code.

Deprecated:

Metro Code is no longer required

name string

ACL template name.

uuid string

Device uuid.

description str

Inbound rule description, up to 200 characters.

device_acl_status str

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

device_details Sequence[AclTemplateDeviceDetailArgs]

List of the devices where the ACL template is applied.

device_id str

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

inbound_rules Sequence[AclTemplateInboundRuleArgs]

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

metro_code str

ACL template location metro code.

Deprecated:

Metro Code is no longer required

name str

ACL template name.

uuid str

Device uuid.

description String

Inbound rule description, up to 200 characters.

deviceAclStatus String

Status of ACL template provisioning process, where template was applied. One of PROVISIONING, PROVISIONED.

deviceDetails List<Property Map>

List of the devices where the ACL template is applied.

deviceId String

(Deprecated) Identifier of a network device where template was applied.

Deprecated:

Refer to device details get device information

inboundRules List<Property Map>

One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.

metroCode String

ACL template location metro code.

Deprecated:

Metro Code is no longer required

name String

ACL template name.

uuid String

Device uuid.

Supporting Types

AclRuleProtocolType

IP
IP
TCP
TCP
UDP
UDP
AclRuleProtocolTypeIP
IP
AclRuleProtocolTypeTCP
TCP
AclRuleProtocolTypeUDP
UDP
IP
IP
TCP
TCP
UDP
UDP
IP
IP
TCP
TCP
UDP
UDP
IP
IP
TCP
TCP
UDP
UDP
"IP"
IP
"TCP"
TCP
"UDP"
UDP

AclTemplateDeviceDetail

AclStatus string

Device ACL provisioning status where template was applied. One of PROVISIONING, PROVISIONED.

Name string

ACL template name.

Uuid string

Device uuid.

AclStatus string

Device ACL provisioning status where template was applied. One of PROVISIONING, PROVISIONED.

Name string

ACL template name.

Uuid string

Device uuid.

aclStatus String

Device ACL provisioning status where template was applied. One of PROVISIONING, PROVISIONED.

name String

ACL template name.

uuid String

Device uuid.

aclStatus string

Device ACL provisioning status where template was applied. One of PROVISIONING, PROVISIONED.

name string

ACL template name.

uuid string

Device uuid.

acl_status str

Device ACL provisioning status where template was applied. One of PROVISIONING, PROVISIONED.

name str

ACL template name.

uuid str

Device uuid.

aclStatus String

Device ACL provisioning status where template was applied. One of PROVISIONING, PROVISIONED.

name String

ACL template name.

uuid String

Device uuid.

AclTemplateInboundRule

DstPort string

Inbound traffic destination ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

Protocol string | Pulumi.Equinix.NetworkEdge.AclRuleProtocolType

Inbound traffic protocol. One of IP, TCP, UDP.

SrcPort string

Inbound traffic source ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

Description string

Inbound rule description, up to 200 characters.

SequenceNumber int
SourceType string

Deprecated:

Source Type will not be returned

Subnet string

Inbound traffic source IP subnet in CIDR format.

Subnets List<string>

Inbound traffic source IP subnets in CIDR format.

Deprecated:

Use Subnet instead

DstPort string

Inbound traffic destination ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

Protocol string | AclRuleProtocolType

Inbound traffic protocol. One of IP, TCP, UDP.

SrcPort string

Inbound traffic source ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

Description string

Inbound rule description, up to 200 characters.

SequenceNumber int
SourceType string

Deprecated:

Source Type will not be returned

Subnet string

Inbound traffic source IP subnet in CIDR format.

Subnets []string

Inbound traffic source IP subnets in CIDR format.

Deprecated:

Use Subnet instead

dstPort String

Inbound traffic destination ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

protocol String | AclRuleProtocolType

Inbound traffic protocol. One of IP, TCP, UDP.

srcPort String

Inbound traffic source ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

description String

Inbound rule description, up to 200 characters.

sequenceNumber Integer
sourceType String

Deprecated:

Source Type will not be returned

subnet String

Inbound traffic source IP subnet in CIDR format.

subnets List<String>

Inbound traffic source IP subnets in CIDR format.

Deprecated:

Use Subnet instead

dstPort string

Inbound traffic destination ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

protocol string | AclRuleProtocolType

Inbound traffic protocol. One of IP, TCP, UDP.

srcPort string

Inbound traffic source ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

description string

Inbound rule description, up to 200 characters.

sequenceNumber number
sourceType string

Deprecated:

Source Type will not be returned

subnet string

Inbound traffic source IP subnet in CIDR format.

subnets string[]

Inbound traffic source IP subnets in CIDR format.

Deprecated:

Use Subnet instead

dst_port str

Inbound traffic destination ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

protocol str | AclRuleProtocolType

Inbound traffic protocol. One of IP, TCP, UDP.

src_port str

Inbound traffic source ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

description str

Inbound rule description, up to 200 characters.

sequence_number int
source_type str

Deprecated:

Source Type will not be returned

subnet str

Inbound traffic source IP subnet in CIDR format.

subnets Sequence[str]

Inbound traffic source IP subnets in CIDR format.

Deprecated:

Use Subnet instead

dstPort String

Inbound traffic destination ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

protocol String | "IP" | "TCP" | "UDP"

Inbound traffic protocol. One of IP, TCP, UDP.

srcPort String

Inbound traffic source ports. Allowed values are a comma separated list of ports, e.g., 20,22,23, port range, e.g., 1023-1040 or word any.

description String

Inbound rule description, up to 200 characters.

sequenceNumber Number
sourceType String

Deprecated:

Source Type will not be returned

subnet String

Inbound traffic source IP subnet in CIDR format.

subnets List<String>

Inbound traffic source IP subnets in CIDR format.

Deprecated:

Use Subnet instead

Package Details

Repository
equinix equinix/pulumi-equinix
License
Apache-2.0
Notes

This Pulumi package is based on the equinix Terraform Provider.