nxos.Ipv4PrefixListRuleEntry
Explore with Pulumi AI
This resource can manage an IPv4 Prefix List entry configuration.
- API Documentation: rtpfxEntry
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nxos = Lbrlabs.PulumiPackage.Nxos;
return await Deployment.RunAsync(() =>
{
var example = new Nxos.Ipv4PrefixListRuleEntry("example", new()
{
Action = "permit",
Criteria = "inexact",
FromRange = 26,
Order = 10,
Prefix = "192.168.1.0/24",
RuleName = "RULE1",
ToRange = 32,
});
});
package main
import (
"github.com/lbrlabs/pulumi-nxos/sdk/go/nxos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nxos.NewIpv4PrefixListRuleEntry(ctx, "example", &nxos.Ipv4PrefixListRuleEntryArgs{
Action: pulumi.String("permit"),
Criteria: pulumi.String("inexact"),
FromRange: pulumi.Int(26),
Order: pulumi.Int(10),
Prefix: pulumi.String("192.168.1.0/24"),
RuleName: pulumi.String("RULE1"),
ToRange: pulumi.Int(32),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nxos.Ipv4PrefixListRuleEntry;
import com.pulumi.nxos.Ipv4PrefixListRuleEntryArgs;
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 example = new Ipv4PrefixListRuleEntry("example", Ipv4PrefixListRuleEntryArgs.builder()
.action("permit")
.criteria("inexact")
.fromRange(26)
.order(10)
.prefix("192.168.1.0/24")
.ruleName("RULE1")
.toRange(32)
.build());
}
}
import pulumi
import lbrlabs_pulumi_nxos as nxos
example = nxos.Ipv4PrefixListRuleEntry("example",
action="permit",
criteria="inexact",
from_range=26,
order=10,
prefix="192.168.1.0/24",
rule_name="RULE1",
to_range=32)
import * as pulumi from "@pulumi/pulumi";
import * as nxos from "@lbrlabs/pulumi-nxos";
const example = new nxos.Ipv4PrefixListRuleEntry("example", {
action: "permit",
criteria: "inexact",
fromRange: 26,
order: 10,
prefix: "192.168.1.0/24",
ruleName: "RULE1",
toRange: 32,
});
resources:
example:
type: nxos:Ipv4PrefixListRuleEntry
properties:
action: permit
criteria: inexact
fromRange: 26
order: 10
prefix: 192.168.1.0/24
ruleName: RULE1
toRange: 32
Create Ipv4PrefixListRuleEntry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ipv4PrefixListRuleEntry(name: string, args: Ipv4PrefixListRuleEntryArgs, opts?: CustomResourceOptions);
@overload
def Ipv4PrefixListRuleEntry(resource_name: str,
args: Ipv4PrefixListRuleEntryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ipv4PrefixListRuleEntry(resource_name: str,
opts: Optional[ResourceOptions] = None,
order: Optional[int] = None,
rule_name: Optional[str] = None,
action: Optional[str] = None,
criteria: Optional[str] = None,
device: Optional[str] = None,
from_range: Optional[int] = None,
prefix: Optional[str] = None,
to_range: Optional[int] = None)
func NewIpv4PrefixListRuleEntry(ctx *Context, name string, args Ipv4PrefixListRuleEntryArgs, opts ...ResourceOption) (*Ipv4PrefixListRuleEntry, error)
public Ipv4PrefixListRuleEntry(string name, Ipv4PrefixListRuleEntryArgs args, CustomResourceOptions? opts = null)
public Ipv4PrefixListRuleEntry(String name, Ipv4PrefixListRuleEntryArgs args)
public Ipv4PrefixListRuleEntry(String name, Ipv4PrefixListRuleEntryArgs args, CustomResourceOptions options)
type: nxos:Ipv4PrefixListRuleEntry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args Ipv4PrefixListRuleEntryArgs
- 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 Ipv4PrefixListRuleEntryArgs
- 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 Ipv4PrefixListRuleEntryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Ipv4PrefixListRuleEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Ipv4PrefixListRuleEntryArgs
- 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 ipv4PrefixListRuleEntryResource = new Nxos.Ipv4PrefixListRuleEntry("ipv4PrefixListRuleEntryResource", new()
{
Order = 0,
RuleName = "string",
Action = "string",
Criteria = "string",
Device = "string",
FromRange = 0,
Prefix = "string",
ToRange = 0,
});
example, err := nxos.NewIpv4PrefixListRuleEntry(ctx, "ipv4PrefixListRuleEntryResource", &nxos.Ipv4PrefixListRuleEntryArgs{
Order: pulumi.Int(0),
RuleName: pulumi.String("string"),
Action: pulumi.String("string"),
Criteria: pulumi.String("string"),
Device: pulumi.String("string"),
FromRange: pulumi.Int(0),
Prefix: pulumi.String("string"),
ToRange: pulumi.Int(0),
})
var ipv4PrefixListRuleEntryResource = new Ipv4PrefixListRuleEntry("ipv4PrefixListRuleEntryResource", Ipv4PrefixListRuleEntryArgs.builder()
.order(0)
.ruleName("string")
.action("string")
.criteria("string")
.device("string")
.fromRange(0)
.prefix("string")
.toRange(0)
.build());
ipv4_prefix_list_rule_entry_resource = nxos.Ipv4PrefixListRuleEntry("ipv4PrefixListRuleEntryResource",
order=0,
rule_name="string",
action="string",
criteria="string",
device="string",
from_range=0,
prefix="string",
to_range=0)
const ipv4PrefixListRuleEntryResource = new nxos.Ipv4PrefixListRuleEntry("ipv4PrefixListRuleEntryResource", {
order: 0,
ruleName: "string",
action: "string",
criteria: "string",
device: "string",
fromRange: 0,
prefix: "string",
toRange: 0,
});
type: nxos:Ipv4PrefixListRuleEntry
properties:
action: string
criteria: string
device: string
fromRange: 0
order: 0
prefix: string
ruleName: string
toRange: 0
Ipv4PrefixListRuleEntry 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 Ipv4PrefixListRuleEntry resource accepts the following input properties:
- Order int
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- Rule
Name string - IPv4 Prefix List Rule name.
- Action string
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- Criteria string
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- Device string
- A device name from the provider configuration.
- From
Range int - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- Prefix string
- IPv4 Prefix List Rule Entry prefix.
- To
Range int - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- Order int
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- Rule
Name string - IPv4 Prefix List Rule name.
- Action string
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- Criteria string
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- Device string
- A device name from the provider configuration.
- From
Range int - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- Prefix string
- IPv4 Prefix List Rule Entry prefix.
- To
Range int - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- order Integer
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- rule
Name String - IPv4 Prefix List Rule name.
- action String
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- criteria String
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- device String
- A device name from the provider configuration.
- from
Range Integer - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- prefix String
- IPv4 Prefix List Rule Entry prefix.
- to
Range Integer - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- order number
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- rule
Name string - IPv4 Prefix List Rule name.
- action string
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- criteria string
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- device string
- A device name from the provider configuration.
- from
Range number - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- prefix string
- IPv4 Prefix List Rule Entry prefix.
- to
Range number - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- order int
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- rule_
name str - IPv4 Prefix List Rule name.
- action str
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- criteria str
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- device str
- A device name from the provider configuration.
- from_
range int - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- prefix str
- IPv4 Prefix List Rule Entry prefix.
- to_
range int - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- order Number
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- rule
Name String - IPv4 Prefix List Rule name.
- action String
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- criteria String
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- device String
- A device name from the provider configuration.
- from
Range Number - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- prefix String
- IPv4 Prefix List Rule Entry prefix.
- to
Range Number - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
Outputs
All input properties are implicitly available as output properties. Additionally, the Ipv4PrefixListRuleEntry resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Ipv4PrefixListRuleEntry Resource
Get an existing Ipv4PrefixListRuleEntry 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?: Ipv4PrefixListRuleEntryState, opts?: CustomResourceOptions): Ipv4PrefixListRuleEntry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
criteria: Optional[str] = None,
device: Optional[str] = None,
from_range: Optional[int] = None,
order: Optional[int] = None,
prefix: Optional[str] = None,
rule_name: Optional[str] = None,
to_range: Optional[int] = None) -> Ipv4PrefixListRuleEntry
func GetIpv4PrefixListRuleEntry(ctx *Context, name string, id IDInput, state *Ipv4PrefixListRuleEntryState, opts ...ResourceOption) (*Ipv4PrefixListRuleEntry, error)
public static Ipv4PrefixListRuleEntry Get(string name, Input<string> id, Ipv4PrefixListRuleEntryState? state, CustomResourceOptions? opts = null)
public static Ipv4PrefixListRuleEntry get(String name, Output<String> id, Ipv4PrefixListRuleEntryState 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.
- Action string
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- Criteria string
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- Device string
- A device name from the provider configuration.
- From
Range int - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- Order int
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- Prefix string
- IPv4 Prefix List Rule Entry prefix.
- Rule
Name string - IPv4 Prefix List Rule name.
- To
Range int - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- Action string
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- Criteria string
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- Device string
- A device name from the provider configuration.
- From
Range int - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- Order int
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- Prefix string
- IPv4 Prefix List Rule Entry prefix.
- Rule
Name string - IPv4 Prefix List Rule name.
- To
Range int - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- action String
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- criteria String
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- device String
- A device name from the provider configuration.
- from
Range Integer - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- order Integer
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- prefix String
- IPv4 Prefix List Rule Entry prefix.
- rule
Name String - IPv4 Prefix List Rule name.
- to
Range Integer - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- action string
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- criteria string
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- device string
- A device name from the provider configuration.
- from
Range number - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- order number
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- prefix string
- IPv4 Prefix List Rule Entry prefix.
- rule
Name string - IPv4 Prefix List Rule name.
- to
Range number - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- action str
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- criteria str
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- device str
- A device name from the provider configuration.
- from_
range int - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- order int
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- prefix str
- IPv4 Prefix List Rule Entry prefix.
- rule_
name str - IPv4 Prefix List Rule name.
- to_
range int - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
- action String
- IPv4 Prefix List Rule Entry action. - Choices:
deny
,permit
- Default value:permit
- criteria String
- IPv4 Prefix List Rule Entry criteria. - Choices:
exact
,inexact
- Default value:exact
- device String
- A device name from the provider configuration.
- from
Range Number - IPv4 Prefix List Rule Entry start range. - Range:
0
-128
- Default value:0
- order Number
- IPv4 Prefix List Rule Entry order. - Range:
0
-4294967294
- prefix String
- IPv4 Prefix List Rule Entry prefix.
- rule
Name String - IPv4 Prefix List Rule name.
- to
Range Number - IPv4 Prefix List Rule Entry end range. - Range:
0
-128
- Default value:0
Import
$ pulumi import nxos:index/ipv4PrefixListRuleEntry:Ipv4PrefixListRuleEntry example "sys/rpm/pfxlistv4-[RULE1]/ent-[10]"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- nxos lbrlabs/pulumi-nxos
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nxos
Terraform Provider.