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

nxos.Ipv4AccessListPolicyIngressInterface

Explore with Pulumi AI

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

    This resource can manage an IPv4 Access List Policy Ingress Interface.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nxos = Lbrlabs.PulumiPackage.Nxos;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Nxos.Ipv4AccessListPolicyIngressInterface("example", new()
        {
            AccessListName = "ACL1",
            InterfaceId = "eth1/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.NewIpv4AccessListPolicyIngressInterface(ctx, "example", &nxos.Ipv4AccessListPolicyIngressInterfaceArgs{
    			AccessListName: pulumi.String("ACL1"),
    			InterfaceId:    pulumi.String("eth1/10"),
    		})
    		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.Ipv4AccessListPolicyIngressInterface;
    import com.pulumi.nxos.Ipv4AccessListPolicyIngressInterfaceArgs;
    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 Ipv4AccessListPolicyIngressInterface("example", Ipv4AccessListPolicyIngressInterfaceArgs.builder()        
                .accessListName("ACL1")
                .interfaceId("eth1/10")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_nxos as nxos
    
    example = nxos.Ipv4AccessListPolicyIngressInterface("example",
        access_list_name="ACL1",
        interface_id="eth1/10")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as nxos from "@lbrlabs/pulumi-nxos";
    
    const example = new nxos.Ipv4AccessListPolicyIngressInterface("example", {
        accessListName: "ACL1",
        interfaceId: "eth1/10",
    });
    
    resources:
      example:
        type: nxos:Ipv4AccessListPolicyIngressInterface
        properties:
          accessListName: ACL1
          interfaceId: eth1/10
    

    Create Ipv4AccessListPolicyIngressInterface Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Ipv4AccessListPolicyIngressInterface(name: string, args: Ipv4AccessListPolicyIngressInterfaceArgs, opts?: CustomResourceOptions);
    @overload
    def Ipv4AccessListPolicyIngressInterface(resource_name: str,
                                             args: Ipv4AccessListPolicyIngressInterfaceArgs,
                                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ipv4AccessListPolicyIngressInterface(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             interface_id: Optional[str] = None,
                                             access_list_name: Optional[str] = None,
                                             device: Optional[str] = None)
    func NewIpv4AccessListPolicyIngressInterface(ctx *Context, name string, args Ipv4AccessListPolicyIngressInterfaceArgs, opts ...ResourceOption) (*Ipv4AccessListPolicyIngressInterface, error)
    public Ipv4AccessListPolicyIngressInterface(string name, Ipv4AccessListPolicyIngressInterfaceArgs args, CustomResourceOptions? opts = null)
    public Ipv4AccessListPolicyIngressInterface(String name, Ipv4AccessListPolicyIngressInterfaceArgs args)
    public Ipv4AccessListPolicyIngressInterface(String name, Ipv4AccessListPolicyIngressInterfaceArgs args, CustomResourceOptions options)
    
    type: nxos:Ipv4AccessListPolicyIngressInterface
    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 Ipv4AccessListPolicyIngressInterfaceArgs
    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 Ipv4AccessListPolicyIngressInterfaceArgs
    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 Ipv4AccessListPolicyIngressInterfaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Ipv4AccessListPolicyIngressInterfaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Ipv4AccessListPolicyIngressInterfaceArgs
    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 ipv4AccessListPolicyIngressInterfaceResource = new Nxos.Ipv4AccessListPolicyIngressInterface("ipv4AccessListPolicyIngressInterfaceResource", new()
    {
        InterfaceId = "string",
        AccessListName = "string",
        Device = "string",
    });
    
    example, err := nxos.NewIpv4AccessListPolicyIngressInterface(ctx, "ipv4AccessListPolicyIngressInterfaceResource", &nxos.Ipv4AccessListPolicyIngressInterfaceArgs{
    	InterfaceId:    pulumi.String("string"),
    	AccessListName: pulumi.String("string"),
    	Device:         pulumi.String("string"),
    })
    
    var ipv4AccessListPolicyIngressInterfaceResource = new Ipv4AccessListPolicyIngressInterface("ipv4AccessListPolicyIngressInterfaceResource", Ipv4AccessListPolicyIngressInterfaceArgs.builder()
        .interfaceId("string")
        .accessListName("string")
        .device("string")
        .build());
    
    ipv4_access_list_policy_ingress_interface_resource = nxos.Ipv4AccessListPolicyIngressInterface("ipv4AccessListPolicyIngressInterfaceResource",
        interface_id="string",
        access_list_name="string",
        device="string")
    
    const ipv4AccessListPolicyIngressInterfaceResource = new nxos.Ipv4AccessListPolicyIngressInterface("ipv4AccessListPolicyIngressInterfaceResource", {
        interfaceId: "string",
        accessListName: "string",
        device: "string",
    });
    
    type: nxos:Ipv4AccessListPolicyIngressInterface
    properties:
        accessListName: string
        device: string
        interfaceId: string
    

    Ipv4AccessListPolicyIngressInterface Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Ipv4AccessListPolicyIngressInterface resource accepts the following input properties:

    InterfaceId string
    Must match first field in the output of show intf brief. Example: eth1/1.
    AccessListName string
    Access list name.
    Device string
    A device name from the provider configuration.
    InterfaceId string
    Must match first field in the output of show intf brief. Example: eth1/1.
    AccessListName string
    Access list name.
    Device string
    A device name from the provider configuration.
    interfaceId String
    Must match first field in the output of show intf brief. Example: eth1/1.
    accessListName String
    Access list name.
    device String
    A device name from the provider configuration.
    interfaceId string
    Must match first field in the output of show intf brief. Example: eth1/1.
    accessListName string
    Access list name.
    device string
    A device name from the provider configuration.
    interface_id str
    Must match first field in the output of show intf brief. Example: eth1/1.
    access_list_name str
    Access list name.
    device str
    A device name from the provider configuration.
    interfaceId String
    Must match first field in the output of show intf brief. Example: eth1/1.
    accessListName String
    Access list name.
    device String
    A device name from the provider configuration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Ipv4AccessListPolicyIngressInterface 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 Ipv4AccessListPolicyIngressInterface Resource

    Get an existing Ipv4AccessListPolicyIngressInterface 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?: Ipv4AccessListPolicyIngressInterfaceState, opts?: CustomResourceOptions): Ipv4AccessListPolicyIngressInterface
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_list_name: Optional[str] = None,
            device: Optional[str] = None,
            interface_id: Optional[str] = None) -> Ipv4AccessListPolicyIngressInterface
    func GetIpv4AccessListPolicyIngressInterface(ctx *Context, name string, id IDInput, state *Ipv4AccessListPolicyIngressInterfaceState, opts ...ResourceOption) (*Ipv4AccessListPolicyIngressInterface, error)
    public static Ipv4AccessListPolicyIngressInterface Get(string name, Input<string> id, Ipv4AccessListPolicyIngressInterfaceState? state, CustomResourceOptions? opts = null)
    public static Ipv4AccessListPolicyIngressInterface get(String name, Output<String> id, Ipv4AccessListPolicyIngressInterfaceState 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:
    AccessListName string
    Access list name.
    Device string
    A device name from the provider configuration.
    InterfaceId string
    Must match first field in the output of show intf brief. Example: eth1/1.
    AccessListName string
    Access list name.
    Device string
    A device name from the provider configuration.
    InterfaceId string
    Must match first field in the output of show intf brief. Example: eth1/1.
    accessListName String
    Access list name.
    device String
    A device name from the provider configuration.
    interfaceId String
    Must match first field in the output of show intf brief. Example: eth1/1.
    accessListName string
    Access list name.
    device string
    A device name from the provider configuration.
    interfaceId string
    Must match first field in the output of show intf brief. Example: eth1/1.
    access_list_name str
    Access list name.
    device str
    A device name from the provider configuration.
    interface_id str
    Must match first field in the output of show intf brief. Example: eth1/1.
    accessListName String
    Access list name.
    device String
    A device name from the provider configuration.
    interfaceId String
    Must match first field in the output of show intf brief. Example: eth1/1.

    Import

     $ pulumi import nxos:index/ipv4AccessListPolicyIngressInterface:Ipv4AccessListPolicyIngressInterface example "sys/acl/ipv4/policy/ingress/intf-[eth1/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.
    nxos logo
    Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs