1. Packages
  2. Cisco NX OS Resource Provider
  3. API Docs
  4. getIpv4AccessListEntry
Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs

nxos.getIpv4AccessListEntry

Explore with Pulumi AI

Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs

This data source can read IPv4 Access List Entries.

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,
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as nxos from "@pulumi/nxos";

const example = nxos.getIpv4AccessListEntry({
    name: "ACL1",
    sequenceNumber: 10,
});
Copy
import pulumi
import pulumi_nxos as nxos

example = nxos.get_ipv4_access_list_entry(name="ACL1",
    sequence_number=10)
Copy
variables:
  example:
    fn::invoke:
      Function: nxos:getIpv4AccessListEntry
      Arguments:
        name: ACL1
        sequenceNumber: 10
Copy

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>
Copy
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]
Copy
func LookupIpv4AccessListEntry(ctx *Context, args *LookupIpv4AccessListEntryArgs, opts ...InvokeOption) (*LookupIpv4AccessListEntryResult, error)
func LookupIpv4AccessListEntryOutput(ctx *Context, args *LookupIpv4AccessListEntryOutputArgs, opts ...InvokeOption) LookupIpv4AccessListEntryResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetIpv4AccessListEntryResult> getIpv4AccessListEntry(GetIpv4AccessListEntryArgs args, InvokeOptions options)
public static Output<GetIpv4AccessListEntryResult> getIpv4AccessListEntry(GetIpv4AccessListEntryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: nxos:index/getIpv4AccessListEntry:getIpv4AccessListEntry
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Access list name.
SequenceNumber This property is required. int
Sequence number.
Device string
A device name from the provider configuration.
Name This property is required. string
Access list name.
SequenceNumber This property is required. int
Sequence number.
Device string
A device name from the provider configuration.
name This property is required. String
Access list name.
sequenceNumber This property is required. Integer
Sequence number.
device String
A device name from the provider configuration.
name This property is required. string
Access list name.
sequenceNumber This property is required. number
Sequence number.
device string
A device name from the provider configuration.
name This property is required. str
Access list name.
sequence_number This property is required. int
Sequence number.
device str
A device name from the provider configuration.
name This property is required. String
Access list name.
sequenceNumber This property is required. 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.
DestinationAddressGroup string
Destination address group.
DestinationPort1 string
First destination port number or name.
DestinationPort2 string
Second destination port number or name.
DestinationPortGroup string
Destination port group.
DestinationPortMask string
Destination port mask number or name.
DestinationPortOperator string
Destination port operator.
DestinationPrefix string
Destination prefix.
DestinationPrefixLength string
Destination prefix length.
DestinationPrefixMask string
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.
HttpOptionType string
HTTP option method.
IcmpCode int
ICMP code.
IcmpType int
ICMP type.
Id string
The distinguished name of the object.
Logging bool
Log matches against ACL entry.
Name string
Access list name.
PacketLength1 string
First packet length. Either invalid or a number between 19 and 9210.
PacketLength2 string
Second packet length. Either invalid or a number between 19 and 9210.
PacketLengthOperator string
Packet length operator.
Precedence string
Precedence. Either unspecified or a number between 0 and 7.
Protocol string
Protocol name or number.
ProtocolMask 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.
SequenceNumber int
Sequence number.
SourceAddressGroup string
Source address group.
SourcePort1 string
First source port name or number.
SourcePort2 string
Second source port name or number.
SourcePortGroup string
Source port group.
SourcePortMask string
Source port mask name or number.
SourcePortOperator string
Source port operator.
SourcePrefix string
Source prefix.
SourcePrefixLength string
Source prefix length.
SourcePrefixMask string
Source prefix mask.
Syn bool
Match TCP SYN flag.
TimeRange 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.
DestinationAddressGroup string
Destination address group.
DestinationPort1 string
First destination port number or name.
DestinationPort2 string
Second destination port number or name.
DestinationPortGroup string
Destination port group.
DestinationPortMask string
Destination port mask number or name.
DestinationPortOperator string
Destination port operator.
DestinationPrefix string
Destination prefix.
DestinationPrefixLength string
Destination prefix length.
DestinationPrefixMask string
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.
HttpOptionType string
HTTP option method.
IcmpCode int
ICMP code.
IcmpType int
ICMP type.
Id string
The distinguished name of the object.
Logging bool
Log matches against ACL entry.
Name string
Access list name.
PacketLength1 string
First packet length. Either invalid or a number between 19 and 9210.
PacketLength2 string
Second packet length. Either invalid or a number between 19 and 9210.
PacketLengthOperator string
Packet length operator.
Precedence string
Precedence. Either unspecified or a number between 0 and 7.
Protocol string
Protocol name or number.
ProtocolMask 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.
SequenceNumber int
Sequence number.
SourceAddressGroup string
Source address group.
SourcePort1 string
First source port name or number.
SourcePort2 string
Second source port name or number.
SourcePortGroup string
Source port group.
SourcePortMask string
Source port mask name or number.
SourcePortOperator string
Source port operator.
SourcePrefix string
Source prefix.
SourcePrefixLength string
Source prefix length.
SourcePrefixMask string
Source prefix mask.
Syn bool
Match TCP SYN flag.
TimeRange 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.
destinationAddressGroup String
Destination address group.
destinationPort1 String
First destination port number or name.
destinationPort2 String
Second destination port number or name.
destinationPortGroup String
Destination port group.
destinationPortMask String
Destination port mask number or name.
destinationPortOperator String
Destination port operator.
destinationPrefix String
Destination prefix.
destinationPrefixLength String
Destination prefix length.
destinationPrefixMask String
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.
httpOptionType String
HTTP option method.
icmpCode Integer
ICMP code.
icmpType Integer
ICMP type.
id String
The distinguished name of the object.
logging Boolean
Log matches against ACL entry.
name String
Access list name.
packetLength1 String
First packet length. Either invalid or a number between 19 and 9210.
packetLength2 String
Second packet length. Either invalid or a number between 19 and 9210.
packetLengthOperator String
Packet length operator.
precedence String
Precedence. Either unspecified or a number between 0 and 7.
protocol String
Protocol name or number.
protocolMask 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.
sequenceNumber Integer
Sequence number.
sourceAddressGroup String
Source address group.
sourcePort1 String
First source port name or number.
sourcePort2 String
Second source port name or number.
sourcePortGroup String
Source port group.
sourcePortMask String
Source port mask name or number.
sourcePortOperator String
Source port operator.
sourcePrefix String
Source prefix.
sourcePrefixLength String
Source prefix length.
sourcePrefixMask String
Source prefix mask.
syn Boolean
Match TCP SYN flag.
timeRange 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.
destinationAddressGroup string
Destination address group.
destinationPort1 string
First destination port number or name.
destinationPort2 string
Second destination port number or name.
destinationPortGroup string
Destination port group.
destinationPortMask string
Destination port mask number or name.
destinationPortOperator string
Destination port operator.
destinationPrefix string
Destination prefix.
destinationPrefixLength string
Destination prefix length.
destinationPrefixMask string
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.
httpOptionType string
HTTP option method.
icmpCode number
ICMP code.
icmpType number
ICMP type.
id string
The distinguished name of the object.
logging boolean
Log matches against ACL entry.
name string
Access list name.
packetLength1 string
First packet length. Either invalid or a number between 19 and 9210.
packetLength2 string
Second packet length. Either invalid or a number between 19 and 9210.
packetLengthOperator string
Packet length operator.
precedence string
Precedence. Either unspecified or a number between 0 and 7.
protocol string
Protocol name or number.
protocolMask 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.
sequenceNumber number
Sequence number.
sourceAddressGroup string
Source address group.
sourcePort1 string
First source port name or number.
sourcePort2 string
Second source port name or number.
sourcePortGroup string
Source port group.
sourcePortMask string
Source port mask name or number.
sourcePortOperator string
Source port operator.
sourcePrefix string
Source prefix.
sourcePrefixLength string
Source prefix length.
sourcePrefixMask string
Source prefix mask.
syn boolean
Match TCP SYN flag.
timeRange 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_group str
Destination address group.
destination_port1 str
First destination port number or name.
destination_port2 str
Second destination port number or name.
destination_port_group str
Destination port group.
destination_port_mask str
Destination port mask number or name.
destination_port_operator str
Destination port operator.
destination_prefix str
Destination prefix.
destination_prefix_length str
Destination prefix length.
destination_prefix_mask str
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_type str
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_operator str
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_group str
Source address group.
source_port1 str
First source port name or number.
source_port2 str
Second source port name or number.
source_port_group str
Source port group.
source_port_mask str
Source port mask name or number.
source_port_operator str
Source port operator.
source_prefix str
Source prefix.
source_prefix_length str
Source prefix length.
source_prefix_mask str
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.
destinationAddressGroup String
Destination address group.
destinationPort1 String
First destination port number or name.
destinationPort2 String
Second destination port number or name.
destinationPortGroup String
Destination port group.
destinationPortMask String
Destination port mask number or name.
destinationPortOperator String
Destination port operator.
destinationPrefix String
Destination prefix.
destinationPrefixLength String
Destination prefix length.
destinationPrefixMask String
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.
httpOptionType String
HTTP option method.
icmpCode Number
ICMP code.
icmpType Number
ICMP type.
id String
The distinguished name of the object.
logging Boolean
Log matches against ACL entry.
name String
Access list name.
packetLength1 String
First packet length. Either invalid or a number between 19 and 9210.
packetLength2 String
Second packet length. Either invalid or a number between 19 and 9210.
packetLengthOperator String
Packet length operator.
precedence String
Precedence. Either unspecified or a number between 0 and 7.
protocol String
Protocol name or number.
protocolMask 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.
sequenceNumber Number
Sequence number.
sourceAddressGroup String
Source address group.
sourcePort1 String
First source port name or number.
sourcePort2 String
Second source port name or number.
sourcePortGroup String
Source port group.
sourcePortMask String
Source port mask name or number.
sourcePortOperator String
Source port operator.
sourcePrefix String
Source prefix.
sourcePrefixLength String
Source prefix length.
sourcePrefixMask String
Source prefix mask.
syn Boolean
Match TCP SYN flag.
timeRange 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.
Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs