iosxe.AccessListStandard
Explore with Pulumi AI
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=[iosxe.AccessListStandardEntryArgs(
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
The AccessListStandard resource accepts the following input properties:
- Device string
- A device name from the provider configuration.
- Entries
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Access List Standard Entry> - Name string
- Device string
- A device name from the provider configuration.
- Entries
[]Access
List Standard Entry Args - Name string
- device String
- A device name from the provider configuration.
- entries
List<Access
List Standard Entry> - name String
- device string
- A device name from the provider configuration.
- entries
Access
List Standard Entry[] - name string
- device str
- A device name from the provider configuration.
- entries
Sequence[Access
List Standard Entry Args] - 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.
- Device string
- A device name from the provider configuration.
- Entries
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Access List Standard Entry> - Name string
- Device string
- A device name from the provider configuration.
- Entries
[]Access
List Standard Entry Args - Name string
- device String
- A device name from the provider configuration.
- entries
List<Access
List Standard Entry> - name String
- device string
- A device name from the provider configuration.
- entries
Access
List Standard Entry[] - name string
- device str
- A device name from the provider configuration.
- entries
Sequence[Access
List Standard Entry Args] - 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
- Range:
- Deny
Any bool - Any source prefix
- Deny
Host string - A single source host
- Deny
Log bool - Log matches against this entry
- Deny
Prefix string - Network address prefix
- Deny
Prefix stringMask - Wildcard bits
- Permit
Any bool - Any source prefix
- Permit
Host string - A single source host
- Permit
Log bool - Log matches against this entry
- Permit
Prefix string - Network address prefix
- Permit
Prefix stringMask - Wildcard bits
- Remark string
- Access list entry comment
- Sequence int
- Range:
1
-2147483647
- Range:
- Deny
Any bool - Any source prefix
- Deny
Host string - A single source host
- Deny
Log bool - Log matches against this entry
- Deny
Prefix string - Network address prefix
- Deny
Prefix stringMask - Wildcard bits
- Permit
Any bool - Any source prefix
- Permit
Host string - A single source host
- Permit
Log bool - Log matches against this entry
- Permit
Prefix string - Network address prefix
- Permit
Prefix stringMask - Wildcard bits
- Remark string
- Access list entry comment
- sequence Integer
- Range:
1
-2147483647
- Range:
- deny
Any Boolean - Any source prefix
- deny
Host String - A single source host
- deny
Log Boolean - Log matches against this entry
- deny
Prefix String - Network address prefix
- deny
Prefix StringMask - Wildcard bits
- permit
Any Boolean - Any source prefix
- permit
Host String - A single source host
- permit
Log Boolean - Log matches against this entry
- permit
Prefix String - Network address prefix
- permit
Prefix StringMask - Wildcard bits
- remark String
- Access list entry comment
- sequence number
- Range:
1
-2147483647
- Range:
- deny
Any boolean - Any source prefix
- deny
Host string - A single source host
- deny
Log boolean - Log matches against this entry
- deny
Prefix string - Network address prefix
- deny
Prefix stringMask - Wildcard bits
- permit
Any boolean - Any source prefix
- permit
Host string - A single source host
- permit
Log boolean - Log matches against this entry
- permit
Prefix string - Network address prefix
- permit
Prefix stringMask - Wildcard bits
- remark string
- Access list entry comment
- sequence int
- Range:
1
-2147483647
- Range:
- 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_ strmask - 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_ strmask - Wildcard bits
- remark str
- Access list entry comment
- sequence Number
- Range:
1
-2147483647
- Range:
- deny
Any Boolean - Any source prefix
- deny
Host String - A single source host
- deny
Log Boolean - Log matches against this entry
- deny
Prefix String - Network address prefix
- deny
Prefix StringMask - Wildcard bits
- permit
Any Boolean - Any source prefix
- permit
Host String - A single source host
- permit
Log Boolean - Log matches against this entry
- permit
Prefix String - Network address prefix
- permit
Prefix StringMask - 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.