Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs
nxos.getIpv4AccessListEntry
Explore with Pulumi AI
This data source can read IPv4 Access List Entries.
- API Documentation: ipv4aclACE
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nxos = Pulumi.Nxos;
return await Deployment.RunAsync(() =>
{
var example = Nxos.GetIpv4AccessListEntry.Invoke(new()
{
Name = "ACL1",
SequenceNumber = 10,
});
});
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.LookupIpv4AccessListEntry(ctx, &nxos.LookupIpv4AccessListEntryArgs{
Name: "ACL1",
SequenceNumber: 10,
}, nil)
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.NxosFunctions;
import com.pulumi.nxos.inputs.GetIpv4AccessListEntryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = NxosFunctions.getIpv4AccessListEntry(GetIpv4AccessListEntryArgs.builder()
.name("ACL1")
.sequenceNumber(10)
.build());
}
}
import pulumi
import pulumi_nxos as nxos
example = nxos.get_ipv4_access_list_entry(name="ACL1",
sequence_number=10)
import * as pulumi from "@pulumi/pulumi";
import * as nxos from "@pulumi/nxos";
const example = nxos.getIpv4AccessListEntry({
name: "ACL1",
sequenceNumber: 10,
});
variables:
example:
fn::invoke:
Function: nxos:getIpv4AccessListEntry
Arguments:
name: ACL1
sequenceNumber: 10
Using getIpv4AccessListEntry
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIpv4AccessListEntry(args: GetIpv4AccessListEntryArgs, opts?: InvokeOptions): Promise<GetIpv4AccessListEntryResult>
function getIpv4AccessListEntryOutput(args: GetIpv4AccessListEntryOutputArgs, opts?: InvokeOptions): Output<GetIpv4AccessListEntryResult>
def get_ipv4_access_list_entry(device: Optional[str] = None,
name: Optional[str] = None,
sequence_number: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetIpv4AccessListEntryResult
def get_ipv4_access_list_entry_output(device: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
sequence_number: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIpv4AccessListEntryResult]
func LookupIpv4AccessListEntry(ctx *Context, args *LookupIpv4AccessListEntryArgs, opts ...InvokeOption) (*LookupIpv4AccessListEntryResult, error)
func LookupIpv4AccessListEntryOutput(ctx *Context, args *LookupIpv4AccessListEntryOutputArgs, opts ...InvokeOption) LookupIpv4AccessListEntryResultOutput
> Note: This function is named LookupIpv4AccessListEntry
in the Go SDK.
public static class GetIpv4AccessListEntry
{
public static Task<GetIpv4AccessListEntryResult> InvokeAsync(GetIpv4AccessListEntryArgs args, InvokeOptions? opts = null)
public static Output<GetIpv4AccessListEntryResult> Invoke(GetIpv4AccessListEntryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpv4AccessListEntryResult> getIpv4AccessListEntry(GetIpv4AccessListEntryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nxos:index/getIpv4AccessListEntry:getIpv4AccessListEntry
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Access list name.
- Sequence
Number int - Sequence number.
- Device string
- A device name from the provider configuration.
- Name string
- Access list name.
- Sequence
Number int - Sequence number.
- Device string
- A device name from the provider configuration.
- name String
- Access list name.
- sequence
Number Integer - Sequence number.
- device String
- A device name from the provider configuration.
- name string
- Access list name.
- sequence
Number number - Sequence number.
- device string
- A device name from the provider configuration.
- name str
- Access list name.
- sequence_
number int - Sequence number.
- device str
- A device name from the provider configuration.
- name String
- Access list name.
- sequence
Number Number - Sequence number.
- device String
- A device name from the provider configuration.
getIpv4AccessListEntry Result
The following output properties are available:
- Ack bool
- Match TCP ACK flag.
- Action string
- Action.
- Destination
Address stringGroup - Destination address group.
- Destination
Port1 string - First destination port number or name.
- Destination
Port2 string - Second destination port number or name.
- Destination
Port stringGroup - Destination port group.
- Destination
Port stringMask - Destination port mask number or name.
- Destination
Port stringOperator - Destination port operator.
- Destination
Prefix string - Destination prefix.
- Destination
Prefix stringLength - Destination prefix length.
- Destination
Prefix stringMask - Destination prefix mask.
- Dscp int
- Match DSCP.
- Est bool
- Match TCP EST flag.
- Fin bool
- Match TCP FIN flag.
- Fragment bool
- Match non-initial fragment.
- Http
Option stringType - HTTP option method.
- Icmp
Code int - ICMP code.
- Icmp
Type int - ICMP type.
- Id string
- The distinguished name of the object.
- Logging bool
- Log matches against ACL entry.
- Name string
- Access list name.
- Packet
Length1 string - First packet length. Either
invalid
or a number between 19 and 9210. - Packet
Length2 string - Second packet length. Either
invalid
or a number between 19 and 9210. - Packet
Length stringOperator - Packet length operator.
- Precedence string
- Precedence. Either
unspecified
or a number between 0 and 7. - Protocol string
- Protocol name or number.
- Protocol
Mask string - Protocol mask name or number.
- Psh bool
- Match TCP PSH flag.
- Redirect string
- Redirect action.
- Remark string
- ACL comment.
- Rev bool
- Match TCP REV flag.
- Rst bool
- Match TCP RST flag.
- Sequence
Number int - Sequence number.
- Source
Address stringGroup - Source address group.
- Source
Port1 string - First source port name or number.
- Source
Port2 string - Second source port name or number.
- Source
Port stringGroup - Source port group.
- Source
Port stringMask - Source port mask name or number.
- Source
Port stringOperator - Source port operator.
- Source
Prefix string - Source prefix.
- Source
Prefix stringLength - Source prefix length.
- Source
Prefix stringMask - Source prefix mask.
- Syn bool
- Match TCP SYN flag.
- Time
Range string - Time range name.
- Ttl int
- TTL.
- Urg bool
- Match TCP URG flag.
- Vlan int
- VLAN ID.
- Vni string
- NVE VNI ID. Either
invalid
or a number between 0 and 16777216. - Device string
- A device name from the provider configuration.
- Ack bool
- Match TCP ACK flag.
- Action string
- Action.
- Destination
Address stringGroup - Destination address group.
- Destination
Port1 string - First destination port number or name.
- Destination
Port2 string - Second destination port number or name.
- Destination
Port stringGroup - Destination port group.
- Destination
Port stringMask - Destination port mask number or name.
- Destination
Port stringOperator - Destination port operator.
- Destination
Prefix string - Destination prefix.
- Destination
Prefix stringLength - Destination prefix length.
- Destination
Prefix stringMask - Destination prefix mask.
- Dscp int
- Match DSCP.
- Est bool
- Match TCP EST flag.
- Fin bool
- Match TCP FIN flag.
- Fragment bool
- Match non-initial fragment.
- Http
Option stringType - HTTP option method.
- Icmp
Code int - ICMP code.
- Icmp
Type int - ICMP type.
- Id string
- The distinguished name of the object.
- Logging bool
- Log matches against ACL entry.
- Name string
- Access list name.
- Packet
Length1 string - First packet length. Either
invalid
or a number between 19 and 9210. - Packet
Length2 string - Second packet length. Either
invalid
or a number between 19 and 9210. - Packet
Length stringOperator - Packet length operator.
- Precedence string
- Precedence. Either
unspecified
or a number between 0 and 7. - Protocol string
- Protocol name or number.
- Protocol
Mask string - Protocol mask name or number.
- Psh bool
- Match TCP PSH flag.
- Redirect string
- Redirect action.
- Remark string
- ACL comment.
- Rev bool
- Match TCP REV flag.
- Rst bool
- Match TCP RST flag.
- Sequence
Number int - Sequence number.
- Source
Address stringGroup - Source address group.
- Source
Port1 string - First source port name or number.
- Source
Port2 string - Second source port name or number.
- Source
Port stringGroup - Source port group.
- Source
Port stringMask - Source port mask name or number.
- Source
Port stringOperator - Source port operator.
- Source
Prefix string - Source prefix.
- Source
Prefix stringLength - Source prefix length.
- Source
Prefix stringMask - Source prefix mask.
- Syn bool
- Match TCP SYN flag.
- Time
Range string - Time range name.
- Ttl int
- TTL.
- Urg bool
- Match TCP URG flag.
- Vlan int
- VLAN ID.
- Vni string
- NVE VNI ID. Either
invalid
or a number between 0 and 16777216. - Device string
- A device name from the provider configuration.
- ack Boolean
- Match TCP ACK flag.
- action String
- Action.
- destination
Address StringGroup - Destination address group.
- destination
Port1 String - First destination port number or name.
- destination
Port2 String - Second destination port number or name.
- destination
Port StringGroup - Destination port group.
- destination
Port StringMask - Destination port mask number or name.
- destination
Port StringOperator - Destination port operator.
- destination
Prefix String - Destination prefix.
- destination
Prefix StringLength - Destination prefix length.
- destination
Prefix StringMask - Destination prefix mask.
- dscp Integer
- Match DSCP.
- est Boolean
- Match TCP EST flag.
- fin Boolean
- Match TCP FIN flag.
- fragment Boolean
- Match non-initial fragment.
- http
Option StringType - HTTP option method.
- icmp
Code Integer - ICMP code.
- icmp
Type Integer - ICMP type.
- id String
- The distinguished name of the object.
- logging Boolean
- Log matches against ACL entry.
- name String
- Access list name.
- packet
Length1 String - First packet length. Either
invalid
or a number between 19 and 9210. - packet
Length2 String - Second packet length. Either
invalid
or a number between 19 and 9210. - packet
Length StringOperator - Packet length operator.
- precedence String
- Precedence. Either
unspecified
or a number between 0 and 7. - protocol String
- Protocol name or number.
- protocol
Mask String - Protocol mask name or number.
- psh Boolean
- Match TCP PSH flag.
- redirect String
- Redirect action.
- remark String
- ACL comment.
- rev Boolean
- Match TCP REV flag.
- rst Boolean
- Match TCP RST flag.
- sequence
Number Integer - Sequence number.
- source
Address StringGroup - Source address group.
- source
Port1 String - First source port name or number.
- source
Port2 String - Second source port name or number.
- source
Port StringGroup - Source port group.
- source
Port StringMask - Source port mask name or number.
- source
Port StringOperator - Source port operator.
- source
Prefix String - Source prefix.
- source
Prefix StringLength - Source prefix length.
- source
Prefix StringMask - Source prefix mask.
- syn Boolean
- Match TCP SYN flag.
- time
Range String - Time range name.
- ttl Integer
- TTL.
- urg Boolean
- Match TCP URG flag.
- vlan Integer
- VLAN ID.
- vni String
- NVE VNI ID. Either
invalid
or a number between 0 and 16777216. - device String
- A device name from the provider configuration.
- ack boolean
- Match TCP ACK flag.
- action string
- Action.
- destination
Address stringGroup - Destination address group.
- destination
Port1 string - First destination port number or name.
- destination
Port2 string - Second destination port number or name.
- destination
Port stringGroup - Destination port group.
- destination
Port stringMask - Destination port mask number or name.
- destination
Port stringOperator - Destination port operator.
- destination
Prefix string - Destination prefix.
- destination
Prefix stringLength - Destination prefix length.
- destination
Prefix stringMask - Destination prefix mask.
- dscp number
- Match DSCP.
- est boolean
- Match TCP EST flag.
- fin boolean
- Match TCP FIN flag.
- fragment boolean
- Match non-initial fragment.
- http
Option stringType - HTTP option method.
- icmp
Code number - ICMP code.
- icmp
Type number - ICMP type.
- id string
- The distinguished name of the object.
- logging boolean
- Log matches against ACL entry.
- name string
- Access list name.
- packet
Length1 string - First packet length. Either
invalid
or a number between 19 and 9210. - packet
Length2 string - Second packet length. Either
invalid
or a number between 19 and 9210. - packet
Length stringOperator - Packet length operator.
- precedence string
- Precedence. Either
unspecified
or a number between 0 and 7. - protocol string
- Protocol name or number.
- protocol
Mask string - Protocol mask name or number.
- psh boolean
- Match TCP PSH flag.
- redirect string
- Redirect action.
- remark string
- ACL comment.
- rev boolean
- Match TCP REV flag.
- rst boolean
- Match TCP RST flag.
- sequence
Number number - Sequence number.
- source
Address stringGroup - Source address group.
- source
Port1 string - First source port name or number.
- source
Port2 string - Second source port name or number.
- source
Port stringGroup - Source port group.
- source
Port stringMask - Source port mask name or number.
- source
Port stringOperator - Source port operator.
- source
Prefix string - Source prefix.
- source
Prefix stringLength - Source prefix length.
- source
Prefix stringMask - Source prefix mask.
- syn boolean
- Match TCP SYN flag.
- time
Range string - Time range name.
- ttl number
- TTL.
- urg boolean
- Match TCP URG flag.
- vlan number
- VLAN ID.
- vni string
- NVE VNI ID. Either
invalid
or a number between 0 and 16777216. - device string
- A device name from the provider configuration.
- ack bool
- Match TCP ACK flag.
- action str
- Action.
- destination_
address_ strgroup - Destination address group.
- destination_
port1 str - First destination port number or name.
- destination_
port2 str - Second destination port number or name.
- destination_
port_ strgroup - Destination port group.
- destination_
port_ strmask - Destination port mask number or name.
- destination_
port_ stroperator - Destination port operator.
- destination_
prefix str - Destination prefix.
- destination_
prefix_ strlength - Destination prefix length.
- destination_
prefix_ strmask - Destination prefix mask.
- dscp int
- Match DSCP.
- est bool
- Match TCP EST flag.
- fin bool
- Match TCP FIN flag.
- fragment bool
- Match non-initial fragment.
- http_
option_ strtype - HTTP option method.
- icmp_
code int - ICMP code.
- icmp_
type int - ICMP type.
- id str
- The distinguished name of the object.
- logging bool
- Log matches against ACL entry.
- name str
- Access list name.
- packet_
length1 str - First packet length. Either
invalid
or a number between 19 and 9210. - packet_
length2 str - Second packet length. Either
invalid
or a number between 19 and 9210. - packet_
length_ stroperator - Packet length operator.
- precedence str
- Precedence. Either
unspecified
or a number between 0 and 7. - protocol str
- Protocol name or number.
- protocol_
mask str - Protocol mask name or number.
- psh bool
- Match TCP PSH flag.
- redirect str
- Redirect action.
- remark str
- ACL comment.
- rev bool
- Match TCP REV flag.
- rst bool
- Match TCP RST flag.
- sequence_
number int - Sequence number.
- source_
address_ strgroup - Source address group.
- source_
port1 str - First source port name or number.
- source_
port2 str - Second source port name or number.
- source_
port_ strgroup - Source port group.
- source_
port_ strmask - Source port mask name or number.
- source_
port_ stroperator - Source port operator.
- source_
prefix str - Source prefix.
- source_
prefix_ strlength - Source prefix length.
- source_
prefix_ strmask - Source prefix mask.
- syn bool
- Match TCP SYN flag.
- time_
range str - Time range name.
- ttl int
- TTL.
- urg bool
- Match TCP URG flag.
- vlan int
- VLAN ID.
- vni str
- NVE VNI ID. Either
invalid
or a number between 0 and 16777216. - device str
- A device name from the provider configuration.
- ack Boolean
- Match TCP ACK flag.
- action String
- Action.
- destination
Address StringGroup - Destination address group.
- destination
Port1 String - First destination port number or name.
- destination
Port2 String - Second destination port number or name.
- destination
Port StringGroup - Destination port group.
- destination
Port StringMask - Destination port mask number or name.
- destination
Port StringOperator - Destination port operator.
- destination
Prefix String - Destination prefix.
- destination
Prefix StringLength - Destination prefix length.
- destination
Prefix StringMask - Destination prefix mask.
- dscp Number
- Match DSCP.
- est Boolean
- Match TCP EST flag.
- fin Boolean
- Match TCP FIN flag.
- fragment Boolean
- Match non-initial fragment.
- http
Option StringType - HTTP option method.
- icmp
Code Number - ICMP code.
- icmp
Type Number - ICMP type.
- id String
- The distinguished name of the object.
- logging Boolean
- Log matches against ACL entry.
- name String
- Access list name.
- packet
Length1 String - First packet length. Either
invalid
or a number between 19 and 9210. - packet
Length2 String - Second packet length. Either
invalid
or a number between 19 and 9210. - packet
Length StringOperator - Packet length operator.
- precedence String
- Precedence. Either
unspecified
or a number between 0 and 7. - protocol String
- Protocol name or number.
- protocol
Mask String - Protocol mask name or number.
- psh Boolean
- Match TCP PSH flag.
- redirect String
- Redirect action.
- remark String
- ACL comment.
- rev Boolean
- Match TCP REV flag.
- rst Boolean
- Match TCP RST flag.
- sequence
Number Number - Sequence number.
- source
Address StringGroup - Source address group.
- source
Port1 String - First source port name or number.
- source
Port2 String - Second source port name or number.
- source
Port StringGroup - Source port group.
- source
Port StringMask - Source port mask name or number.
- source
Port StringOperator - Source port operator.
- source
Prefix String - Source prefix.
- source
Prefix StringLength - Source prefix length.
- source
Prefix StringMask - Source prefix mask.
- syn Boolean
- Match TCP SYN flag.
- time
Range String - Time range name.
- ttl Number
- TTL.
- urg Boolean
- Match TCP URG flag.
- vlan Number
- VLAN ID.
- vni String
- NVE VNI ID. Either
invalid
or a number between 0 and 16777216. - device String
- A device name from the provider configuration.
Package Details
- Repository
- nxos lbrlabs/pulumi-nxos
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nxos
Terraform Provider.