
Equinix v0.2.1, May 4 23

Equinix v0.2.1, May 4 23
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:
- Inbound
Rules List<AclTemplate Inbound Rule Args> 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.
- Metro
Code string ACL template location metro code.
Metro Code is no longer required
- Name string
ACL template name.
- Inbound
Rules []AclTemplate Inbound Rule Args 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.
- Metro
Code string ACL template location metro code.
Metro Code is no longer required
- Name string
ACL template name.
- inbound
Rules List<AclTemplate Inbound Rule Args> 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.
- metro
Code String ACL template location metro code.
Metro Code is no longer required
- name String
ACL template name.
- inbound
Rules AclTemplate Inbound Rule Args[] 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.
- metro
Code string ACL template location metro code.
Metro Code is no longer required
- name string
ACL template name.
- inbound_
rules Sequence[AclTemplate Inbound Rule Args] 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.
Metro Code is no longer required
- name str
ACL template name.
- inbound
Rules 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.
- metro
Code String ACL template location metro code.
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:
- Device
Acl stringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- Device
Details List<AclTemplate Device Detail> List of the devices where the ACL template is applied.
- Device
Id string (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- Id string
The provider-assigned unique ID for this managed resource.
- Uuid string
Device uuid.
- Device
Acl stringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- Device
Details []AclTemplate Device Detail List of the devices where the ACL template is applied.
- Device
Id string (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- Id string
The provider-assigned unique ID for this managed resource.
- Uuid string
Device uuid.
- device
Acl StringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- device
Details List<AclTemplate Device Detail> List of the devices where the ACL template is applied.
- device
Id String (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- id String
The provider-assigned unique ID for this managed resource.
- uuid String
Device uuid.
- device
Acl stringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- device
Details AclTemplate Device Detail[] List of the devices where the ACL template is applied.
- device
Id string (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- id string
The provider-assigned unique ID for this managed resource.
- uuid string
Device uuid.
- device_
acl_ strstatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- device_
details Sequence[AclTemplate Device Detail] List of the devices where the ACL template is applied.
- device_
id str (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- id str
The provider-assigned unique ID for this managed resource.
- uuid str
Device uuid.
- device
Acl StringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- device
Details List<Property Map> List of the devices where the ACL template is applied.
- device
Id String (Deprecated) Identifier of a network device where template was applied.
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.
- Description string
Inbound rule description, up to 200 characters.
- Device
Acl stringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- Device
Details List<AclTemplate Device Detail Args> List of the devices where the ACL template is applied.
- Device
Id string (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- Inbound
Rules List<AclTemplate Inbound Rule Args> One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.
- Metro
Code string ACL template location metro code.
Metro Code is no longer required
- Name string
ACL template name.
- Uuid string
Device uuid.
- Description string
Inbound rule description, up to 200 characters.
- Device
Acl stringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- Device
Details []AclTemplate Device Detail Args List of the devices where the ACL template is applied.
- Device
Id string (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- Inbound
Rules []AclTemplate Inbound Rule Args One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.
- Metro
Code string ACL template location metro code.
Metro Code is no longer required
- Name string
ACL template name.
- Uuid string
Device uuid.
- description String
Inbound rule description, up to 200 characters.
- device
Acl StringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- device
Details List<AclTemplate Device Detail Args> List of the devices where the ACL template is applied.
- device
Id String (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- inbound
Rules List<AclTemplate Inbound Rule Args> One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.
- metro
Code String ACL template location metro code.
Metro Code is no longer required
- name String
ACL template name.
- uuid String
Device uuid.
- description string
Inbound rule description, up to 200 characters.
- device
Acl stringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- device
Details AclTemplate Device Detail Args[] List of the devices where the ACL template is applied.
- device
Id string (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- inbound
Rules AclTemplate Inbound Rule Args[] One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.
- metro
Code string ACL template location metro code.
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_ strstatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- device_
details Sequence[AclTemplate Device Detail Args] List of the devices where the ACL template is applied.
- device_
id str (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- inbound_
rules Sequence[AclTemplate Inbound Rule Args] 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.
Metro Code is no longer required
- name str
ACL template name.
- uuid str
Device uuid.
- description String
Inbound rule description, up to 200 characters.
- device
Acl StringStatus Status of ACL template provisioning process, where template was applied. One of
PROVISIONING
,PROVISIONED
.- device
Details List<Property Map> List of the devices where the ACL template is applied.
- device
Id String (Deprecated) Identifier of a network device where template was applied.
Refer to device details get device information
- inbound
Rules List<Property Map> One or more rules to specify allowed inbound traffic. Rules are ordered, matching traffic rule stops processing subsequent ones.
- metro
Code String ACL template location metro code.
Metro Code is no longer required
- name String
ACL template name.
- uuid String
Device uuid.
Supporting Types
AclRuleProtocolType
- IP
- IP
- TCP
- TCP
- UDP
- UDP
- Acl
Rule Protocol Type IP - IP
- Acl
Rule Protocol Type TCP - TCP
- Acl
Rule Protocol Type UDP - 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
- acl_
status str Device ACL provisioning status where template was applied. One of
PROVISIONING
,PROVISIONED
.- name str
ACL template name.
- uuid str
Device uuid.
AclTemplateInboundRule
- Dst
Port 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 wordany
.- Protocol
string | Pulumi.
Equinix. Network Edge. Acl Rule Protocol Type Inbound traffic protocol. One of
IP
,TCP
,UDP
.- Src
Port 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 wordany
.- Description string
Inbound rule description, up to 200 characters.
- Sequence
Number int - Source
Type string 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.
Use Subnet instead
- Dst
Port 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 wordany
.- Protocol
string | Acl
Rule Protocol Type Inbound traffic protocol. One of
IP
,TCP
,UDP
.- Src
Port 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 wordany
.- Description string
Inbound rule description, up to 200 characters.
- Sequence
Number int - Source
Type string 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.
Use Subnet instead
- dst
Port 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 wordany
.- protocol
String | Acl
Rule Protocol Type Inbound traffic protocol. One of
IP
,TCP
,UDP
.- src
Port 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 wordany
.- description String
Inbound rule description, up to 200 characters.
- sequence
Number Integer - source
Type String 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.
Use Subnet instead
- dst
Port 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 wordany
.- protocol
string | Acl
Rule Protocol Type Inbound traffic protocol. One of
IP
,TCP
,UDP
.- src
Port 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 wordany
.- description string
Inbound rule description, up to 200 characters.
- sequence
Number number - source
Type string 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.
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 wordany
.- protocol
str | Acl
Rule Protocol Type 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 wordany
.- description str
Inbound rule description, up to 200 characters.
- sequence_
number int - source_
type str 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.
Use Subnet instead
- dst
Port 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 wordany
.- protocol String | "IP" | "TCP" | "UDP"
Inbound traffic protocol. One of
IP
,TCP
,UDP
.- src
Port 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 wordany
.- description String
Inbound rule description, up to 200 characters.
- sequence
Number Number - source
Type String 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.
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.