1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. AccessListStandard
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.AccessListStandard

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This resource can manage the Access List Standard configuration.

    Example Usage

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.iosxe.AccessListStandard;
    import com.pulumi.iosxe.AccessListStandardArgs;
    import com.pulumi.iosxe.inputs.AccessListStandardEntryArgs;
    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 AccessListStandard("example", AccessListStandardArgs.builder()        
                .entries(AccessListStandardEntryArgs.builder()
                    .deny_log(true)
                    .deny_prefix("10.0.0.0")
                    .deny_prefix_mask("0.0.0.255")
                    .remark("Description")
                    .sequence(10)
                    .build())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      example:
        type: iosxe:AccessListStandard
        properties:
          entries:
            - deny_log: true
              deny_prefix: 10.0.0.0
              deny_prefix_mask: 0.0.0.255
              remark: Description
              sequence: 10
    

    Create AccessListStandard Resource

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

    Constructor syntax

    new AccessListStandard(name: string, args?: AccessListStandardArgs, opts?: CustomResourceOptions);
    @overload
    def AccessListStandard(resource_name: str,
                           args: Optional[AccessListStandardArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccessListStandard(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           device: Optional[str] = None,
                           entries: Optional[Sequence[AccessListStandardEntryArgs]] = None,
                           name: Optional[str] = None)
    func NewAccessListStandard(ctx *Context, name string, args *AccessListStandardArgs, opts ...ResourceOption) (*AccessListStandard, error)
    public AccessListStandard(string name, AccessListStandardArgs? args = null, CustomResourceOptions? opts = null)
    public AccessListStandard(String name, AccessListStandardArgs args)
    public AccessListStandard(String name, AccessListStandardArgs args, CustomResourceOptions options)
    
    type: iosxe:AccessListStandard
    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 AccessListStandardArgs
    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 AccessListStandardArgs
    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 AccessListStandardArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessListStandardArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccessListStandardArgs
    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 accessListStandardResource = new Iosxe.AccessListStandard("accessListStandardResource", new()
    {
        Device = "string",
        Entries = new[]
        {
            new Iosxe.Inputs.AccessListStandardEntryArgs
            {
                Sequence = 0,
                DenyAny = false,
                DenyHost = "string",
                DenyLog = false,
                DenyPrefix = "string",
                DenyPrefixMask = "string",
                PermitAny = false,
                PermitHost = "string",
                PermitLog = false,
                PermitPrefix = "string",
                PermitPrefixMask = "string",
                Remark = "string",
            },
        },
        Name = "string",
    });
    
    example, err := iosxe.NewAccessListStandard(ctx, "accessListStandardResource", &iosxe.AccessListStandardArgs{
    	Device: pulumi.String("string"),
    	Entries: iosxe.AccessListStandardEntryArray{
    		&iosxe.AccessListStandardEntryArgs{
    			Sequence:         pulumi.Int(0),
    			DenyAny:          pulumi.Bool(false),
    			DenyHost:         pulumi.String("string"),
    			DenyLog:          pulumi.Bool(false),
    			DenyPrefix:       pulumi.String("string"),
    			DenyPrefixMask:   pulumi.String("string"),
    			PermitAny:        pulumi.Bool(false),
    			PermitHost:       pulumi.String("string"),
    			PermitLog:        pulumi.Bool(false),
    			PermitPrefix:     pulumi.String("string"),
    			PermitPrefixMask: pulumi.String("string"),
    			Remark:           pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var accessListStandardResource = new AccessListStandard("accessListStandardResource", AccessListStandardArgs.builder()
        .device("string")
        .entries(AccessListStandardEntryArgs.builder()
            .sequence(0)
            .denyAny(false)
            .denyHost("string")
            .denyLog(false)
            .denyPrefix("string")
            .denyPrefixMask("string")
            .permitAny(false)
            .permitHost("string")
            .permitLog(false)
            .permitPrefix("string")
            .permitPrefixMask("string")
            .remark("string")
            .build())
        .name("string")
        .build());
    
    access_list_standard_resource = iosxe.AccessListStandard("accessListStandardResource",
        device="string",
        entries=[{
            "sequence": 0,
            "deny_any": False,
            "deny_host": "string",
            "deny_log": False,
            "deny_prefix": "string",
            "deny_prefix_mask": "string",
            "permit_any": False,
            "permit_host": "string",
            "permit_log": False,
            "permit_prefix": "string",
            "permit_prefix_mask": "string",
            "remark": "string",
        }],
        name="string")
    
    const accessListStandardResource = new iosxe.AccessListStandard("accessListStandardResource", {
        device: "string",
        entries: [{
            sequence: 0,
            denyAny: false,
            denyHost: "string",
            denyLog: false,
            denyPrefix: "string",
            denyPrefixMask: "string",
            permitAny: false,
            permitHost: "string",
            permitLog: false,
            permitPrefix: "string",
            permitPrefixMask: "string",
            remark: "string",
        }],
        name: "string",
    });
    
    type: iosxe:AccessListStandard
    properties:
        device: string
        entries:
            - denyAny: false
              denyHost: string
              denyLog: false
              denyPrefix: string
              denyPrefixMask: string
              permitAny: false
              permitHost: string
              permitLog: false
              permitPrefix: string
              permitPrefixMask: string
              remark: string
              sequence: 0
        name: string
    

    AccessListStandard 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 AccessListStandard resource accepts the following input properties:

    Device string
    A device name from the provider configuration.
    Entries List<Lbrlabs.PulumiPackage.Iosxe.Inputs.AccessListStandardEntry>
    Name string
    Device string
    A device name from the provider configuration.
    Entries []AccessListStandardEntryArgs
    Name string
    device String
    A device name from the provider configuration.
    entries List<AccessListStandardEntry>
    name String
    device string
    A device name from the provider configuration.
    entries AccessListStandardEntry[]
    name string
    device str
    A device name from the provider configuration.
    entries Sequence[AccessListStandardEntryArgs]
    name str
    device String
    A device name from the provider configuration.
    entries List<Property Map>
    name String

    Outputs

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

    Get an existing AccessListStandard 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?: AccessListStandardState, opts?: CustomResourceOptions): AccessListStandard
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            device: Optional[str] = None,
            entries: Optional[Sequence[AccessListStandardEntryArgs]] = None,
            name: Optional[str] = None) -> AccessListStandard
    func GetAccessListStandard(ctx *Context, name string, id IDInput, state *AccessListStandardState, opts ...ResourceOption) (*AccessListStandard, error)
    public static AccessListStandard Get(string name, Input<string> id, AccessListStandardState? state, CustomResourceOptions? opts = null)
    public static AccessListStandard get(String name, Output<String> id, AccessListStandardState 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:
    Device string
    A device name from the provider configuration.
    Entries List<Lbrlabs.PulumiPackage.Iosxe.Inputs.AccessListStandardEntry>
    Name string
    Device string
    A device name from the provider configuration.
    Entries []AccessListStandardEntryArgs
    Name string
    device String
    A device name from the provider configuration.
    entries List<AccessListStandardEntry>
    name String
    device string
    A device name from the provider configuration.
    entries AccessListStandardEntry[]
    name string
    device str
    A device name from the provider configuration.
    entries Sequence[AccessListStandardEntryArgs]
    name str
    device String
    A device name from the provider configuration.
    entries List<Property Map>
    name String

    Supporting Types

    AccessListStandardEntry, AccessListStandardEntryArgs

    Sequence int
    • Range: 1-2147483647
    DenyAny bool
    Any source prefix
    DenyHost string
    A single source host
    DenyLog bool
    Log matches against this entry
    DenyPrefix string
    Network address prefix
    DenyPrefixMask string
    Wildcard bits
    PermitAny bool
    Any source prefix
    PermitHost string
    A single source host
    PermitLog bool
    Log matches against this entry
    PermitPrefix string
    Network address prefix
    PermitPrefixMask string
    Wildcard bits
    Remark string
    Access list entry comment
    Sequence int
    • Range: 1-2147483647
    DenyAny bool
    Any source prefix
    DenyHost string
    A single source host
    DenyLog bool
    Log matches against this entry
    DenyPrefix string
    Network address prefix
    DenyPrefixMask string
    Wildcard bits
    PermitAny bool
    Any source prefix
    PermitHost string
    A single source host
    PermitLog bool
    Log matches against this entry
    PermitPrefix string
    Network address prefix
    PermitPrefixMask string
    Wildcard bits
    Remark string
    Access list entry comment
    sequence Integer
    • Range: 1-2147483647
    denyAny Boolean
    Any source prefix
    denyHost String
    A single source host
    denyLog Boolean
    Log matches against this entry
    denyPrefix String
    Network address prefix
    denyPrefixMask String
    Wildcard bits
    permitAny Boolean
    Any source prefix
    permitHost String
    A single source host
    permitLog Boolean
    Log matches against this entry
    permitPrefix String
    Network address prefix
    permitPrefixMask String
    Wildcard bits
    remark String
    Access list entry comment
    sequence number
    • Range: 1-2147483647
    denyAny boolean
    Any source prefix
    denyHost string
    A single source host
    denyLog boolean
    Log matches against this entry
    denyPrefix string
    Network address prefix
    denyPrefixMask string
    Wildcard bits
    permitAny boolean
    Any source prefix
    permitHost string
    A single source host
    permitLog boolean
    Log matches against this entry
    permitPrefix string
    Network address prefix
    permitPrefixMask string
    Wildcard bits
    remark string
    Access list entry comment
    sequence int
    • Range: 1-2147483647
    deny_any bool
    Any source prefix
    deny_host str
    A single source host
    deny_log bool
    Log matches against this entry
    deny_prefix str
    Network address prefix
    deny_prefix_mask str
    Wildcard bits
    permit_any bool
    Any source prefix
    permit_host str
    A single source host
    permit_log bool
    Log matches against this entry
    permit_prefix str
    Network address prefix
    permit_prefix_mask str
    Wildcard bits
    remark str
    Access list entry comment
    sequence Number
    • Range: 1-2147483647
    denyAny Boolean
    Any source prefix
    denyHost String
    A single source host
    denyLog Boolean
    Log matches against this entry
    denyPrefix String
    Network address prefix
    denyPrefixMask String
    Wildcard bits
    permitAny Boolean
    Any source prefix
    permitHost String
    A single source host
    permitLog Boolean
    Log matches against this entry
    permitPrefix String
    Network address prefix
    permitPrefixMask String
    Wildcard bits
    remark String
    Access list entry comment

    Import

     $ pulumi import iosxe:index/accessListStandard:AccessListStandard example "Cisco-IOS-XE-native:native/ip/access-list/Cisco-IOS-XE-acl:standard=SACL1"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs