Cisco ASA
Cisco ASA Pack.#
This Integration is part of theUse the Cisco Adaptive Security Appliance Software integration to manage interfaces, rules, and network objects. This integration was integrated and tested with version 9.16(3)23 of Cisco ASA
#
Configure Cisco ASA on Cortex XSOARNavigate to Settings > Integrations > Servers & Services.
Search for Cisco ASA.
Click Add instance to create and configure a new integration instance.
| Parameter | Required | | --- | --- | "objectId": "api" } }, { | Server URL (e.g., https://192.168.0.1) | True | | Credentials | True | | Password | True | | Use system proxy settings | False | | Trust any certificate (not secure) | False | | Is ASAv | False |
Click Test to validate the URLs, token, and connection.
#
CommandsYou can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.
#
cisco-asa-list-network-object-groupRetrieve information about network object groups. Network object groups can contain multiple network objects as well as inline networks or hosts. Network object groups can include a mix of both IPv4 and IPv6 addresses/network.
#
Base Commandcisco-asa-list-network-object-group
#
InputArgument Name | Description | Required |
---|---|---|
object_id | The object ID of the network group to retrieve. This can't be used with pagination arguments. | Optional |
page | Page number of paginated results. Minimum of 1; default 1. | Optional |
page_size | The number of items per page. Maximum of 100; default 50. | Optional |
limit | The maximum number of records to retrieve. Maximum of 100; default 50. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.NetworkObjectGroup.object_id | String | The object ID of the network object group. |
CiscoASA.NetworkObjectGroup.name | String | The name of the network object group. |
CiscoASA.NetworkObjectGroup.description | String | The description of the network object group. |
CiscoASA.NetworkObjectGroup.members.kind | String | The type of the network item. The viable types are IPv4Address, IPv4Network, IPv6Address, IPv6Network and objectRef#NetworkObj. |
CiscoASA.NetworkObjectGroup.members.object_id | String | The object ID of the network object. |
CiscoASA.NetworkObjectGroup.members.value | String | The value of IPv4Address, IPv4Network, IPv6Address or IPv6Network. |
#
Command example!cisco-asa-list-network-object-group limit=1
#
Context Example#
Human Readable Output#
Network Object Groups
Object Id Name Description Members TEST_GROUP1 TEST_GROUP1 This is a test {'kind': 'objectRef#NetworkObj', 'object_id': 'Test_Lior'},
{'kind': 'objectRef#NetworkObj', 'object_id': 'Test_Lior1'},
{'kind': 'objectRef#NetworkObj', 'object_id': 'Test_Lior2'}
#
cisco-asa-list-local-user-groupRetrieve information about local user groups, which are collections of user accounts, either from the local database or imported from Active Directory, that manage access to network resources not defined globally.
#
Base Commandcisco-asa-list-local-user-group
#
InputArgument Name | Description | Required |
---|---|---|
object_id | The object ID of the local user group to retrieve. This can't be used with pagination arguments. | Optional |
page | Page number of paginated results. Minimum of 1; default 1. | Optional |
page_size | The number of items per page. Maximum of 100; default 50. | Optional |
limit | The maximum number of records to retrieve. Maximum of 100; default 50. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.LocalUserGroup.object_id | String | The object ID of the local user group. |
CiscoASA.LocalUserGroup.name | String | The name of the local user group. |
CiscoASA.LocalUserGroup.description | String | The description of the local user group. |
CiscoASA.LocalUserGroup.members.kind | String | The type of the user. |
CiscoASA.LocalUserGroup.members.object_id | String | The ID of the user. |
#
Command example!cisco-asa-list-local-user-group limit=1
#
Context Example#
Human Readable Output#
Local User Groups
Object Id Name Members LIOR_GROUP LIOR_GROUP {'kind': 'objectRef#UserObj', 'object_id': 'api'},
{'kind': 'objectRef#UserObj', 'object_id': 'restapi'}
#
cisco-asa-list-local-userRetrieve information about individual local user accounts within a network system. These local users can be part of local user groups and groups imported from Active Directory.
#
Base Commandcisco-asa-list-local-user
#
InputArgument Name | Description | Required |
---|---|---|
object_id | The object ID of the local user to retrieve. This can't be used with pagination arguments. | Optional |
page | Page number of paginated results. Minimum of 1; default 1. | Optional |
page_size | The number of items per page. Maximum of 100; default 50. | Optional |
limit | The maximum number of records to retrieve. Maximum of 100; default 50. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.LocalUser.object_id | String | The object ID of the local user. |
CiscoASA.LocalUser.name | String | The name of the local user. |
CiscoASA.LocalUser.mschap_authenticated | Boolean | Whether Extensible Authentication Protocol-Microsoft Challenge Handshake Authentication Protocol is authenticated. |
CiscoASA.LocalUser.privilege_level | Number | The user's privilege level. |
CiscoASA.LocalUser.asdm_cli_access_type | String | ASDM and CLI access type. Can be one of "Full", "None", "Cli". |
#
Command example!cisco-asa-list-local-user limit=1
#
Context Example#
Human Readable Output#
Local Users
Object Id Name Privilege Level Asdm Cli Access Type admin admin 15 Full
#
cisco-asa-list-time-rangeRetrieve information about time range objects. A time range object defines a specific time consisting of a start time, an end time, and optional recurring entries. You use these objects on ACL rules to provide time-based access to certain features or assets. For example, you could create an access rule that allows access to a particular server during working hours only.
#
Base Commandcisco-asa-list-time-range
#
InputArgument Name | Description | Required |
---|---|---|
object_id | The object ID of the time range to retrieve. This can't be used with pagination arguments. | Optional |
page | Page number of paginated results. Minimum of 1; default 1. | Optional |
page_size | The number of items per page. Maximum of 100; default 50. | Optional |
limit | The maximum number of records to retrieve. Maximum of 100; default 50. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.TimeRange.object_id | String | The object ID of the time range. |
CiscoASA.TimeRange.name | String | The name of the time range. |
CiscoASA.TimeRange.start | String | Time at which this time range starts. |
CiscoASA.TimeRange.end | String | Time at which this time range ends. |
CiscoASA.TimeRange.periodic.frequency | String | The days of the week at which this time range will run periodically. |
CiscoASA.TimeRange.periodic.start_hour | Number | The hour at which this time range will start periodically. |
CiscoASA.TimeRange.periodic.start_minute | Number | The minute at which this time range will start periodically. |
CiscoASA.TimeRange.periodic.end_hour | Number | The hour at which this time range will end periodically. |
CiscoASA.TimeRange.periodic.end_minute | Number | The minute at which this time range will end periodically. |
#
Command example!cisco-asa-list-time-range page=1 page_size=1
#
Context Example#
Human Readable Output#
Time Ranges
Object Id Name Start End Periodic trUserTest trUserTest now 03:47 May 14 2014 {'frequency': 'Wednesday to Thursday', 'start_hour': 4, 'start_minute': 3, 'end_hour': 23, 'end_minute': 59}
#
cisco-asa-list-security-object-groupRetrieve information about security groups, which are collections of security groups or identifiers that manage access and permissions to network resources. These groups can be used in features like Cisco TrustSec and are often part of extended access control lists, enabling centralized and localized security policy management.
#
Base Commandcisco-asa-list-security-object-group
#
InputArgument Name | Description | Required |
---|---|---|
object_id | The object ID of the security object group to retrieve. This can't be used with pagination arguments. | Optional |
page | Page number of paginated results. Minimum of 1; default 1. | Optional |
page_size | The number of items per page. Maximum of 100; default 50. | Optional |
limit | The maximum number of records to retrieve. Maximum of 100; default 50. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.SecurityObjectGroup.object_id | String | The object ID of the security object group. |
CiscoASA.SecurityObjectGroup.name | String | The name of the security object group. |
CiscoASA.SecurityObjectGroup.description | String | The description of the security object group. |
CiscoASA.SecurityObjectGroup.members.kind | String | The type of the security object group; SecurityName, SecurityTag, objectRef#SecurityObjGroup. |
CiscoASA.SecurityObjectGroup.members.value | String | The value of the SecurityName or SecurityTag. |
CiscoASA.SecurityObjectGroup.members.object_id | String | The object ID of objectRef#SecurityObjGroup. |
#
Command example!cisco-asa-list-security-object-group page=1 page_size=1
#
Context Example#
Human Readable Output#
Security Object Groups
Object Id Name Description Members oneSecurityGroup oneSecurityGroup test12 {'kind': 'SecurityName', 'value': 'zeno1'},
{'kind': 'SecurityTag', 'value': '71'}
#
cisco-asa-list-user-objectRetrieve information about user definitions within the system. This helps in managing and configuring user access and permissions in a network security context.
#
Base Commandcisco-asa-list-user-object
#
InputArgument Name | Description | Required |
---|---|---|
object_id | The object ID of the user object to retrieve. This can't be used with pagination arguments. | Optional |
page | Page number of paginated results. Minimum of 1; default 1. | Optional |
page_size | The number of items per page. Maximum of 100; default 50. | Optional |
limit | The maximum number of records to retrieve. Maximum of 100; default 50. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.UserObject.object_id | String | The object ID of the user object. |
CiscoASA.UserObject.user_name | String | The user's user name. |
CiscoASA.UserObject.local_user_object_id | String | The object ID of the local user. |
CiscoASA.UserObject.value | String | The value of the local user. |
#
Command example!cisco-asa-list-user-object page=1 page_size=1
#
Context Example#
Human Readable Output#
User Objects
Object Id User Name api api
#
cisco-asa-write-memorySaves the running configuration to the default location for the startup configuration.
#
Base Commandcisco-asa-write-memory
#
InputThere are no input arguments for this command.
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.WriteMemory.response | String | Shows a successful 'write memory' command execution on a Cisco ASA device, building the configuration and generating a cryptochecksum for integrity. The process is completed with an "[OK]" message. |
#
Command example!cisco-asa-write-memory
#
Context Example#
Human Readable Output#
Results
response Building configuration...
Cryptochecksum: fa399474 22b66df0 6e2a7619 b37adea3
20838 bytes copied in 0.50 secs
[OK]
#
cisco-asa-list-rulesGets a list all rules for the supplied interface.
#
Base Commandcisco-asa-list-rules
#
InputArgument Name | Description | Required |
---|---|---|
interface_name | The name of the interface from which to get rules. | Optional |
interface_type | The interface type. Possible values are: In, Out, Global. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.Rules.Source | String | The rule's source. |
CiscoASA.Rules.Dest | String | The rule's destination. |
CiscoASA.Rules.InterfaceType | String | The interface type. Can be "In", "Out", or "Global". |
CiscoASA.Rules.IsActive | Boolean | Whether the rule is active. |
CiscoASA.Rules.Interface | String | The name of the interface. |
CiscoASA.Rules.Position | Number | The position of the rule. |
CiscoASA.Rules.ID | String | The rule ID. |
CiscoASA.Rules.Remarks | Unknown | A list of all rule remarks. |
CiscoASA.Rules.Permit | Boolean | Whether the rule permits traffic from source to destination. |
CiscoASA.Rules.DestService | String | The destination service. |
CiscoASA.Rules.SourceService | String | The source service. |
CiscoASA.Rules.SourceKind | String | One of AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, objectRef#NetworkObj, objectRef#NetworkObjGroup. |
CiscoASA.Rules.DestKind | String | One of AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, objectRef#NetworkObj, objectRef#NetworkObjGroup. |
CiscoASA.Rules.SourceSecurity.kind | String | The type of the security group; SecurityName, SecurityTag, objectRef#SecurityObjGroup. |
CiscoASA.Rules.SourceSecurity.value | String | The value of the SecurityName or SecurityTag. |
CiscoASA.Rules.SourceSecurity.objectId | String | The object ID of objectRef#SecurityObjGroup. |
CiscoASA.Rules.DestinationSecurity.kind | String | The type of the security group; SecurityName, SecurityTag, objectRef#SecurityObjGroup. |
CiscoASA.Rules.DestinationSecurity.value | String | The value of the SecurityName or SecurityTag |
CiscoASA.Rules.DestinationSecurity.objectId | String | The object ID of objectRef#SecurityObjGroup. |
CiscoASA.Rules.User.kind | String | One of AnyUser, NoneUser, objectRef#LocalUserObjGroup, objectRef#UserGroupObj, objectRef#UserObj |
CiscoASA.Rules.User.value | String | The user value. |
CiscoASA.Rules.User.objectId | String | The object ID of the user. |
CiscoASA.Rules.TimeRange.kind | String | The object reference type or the actual TimeRange value. |
CiscoASA.Rules.TimeRange.value | String | The value of the time range. |
CiscoASA.Rules.TimeRange.objectId | String | The object ID of the time range. |
#
Command example!cisco-asa-list-rules interface_type=Global
#
Context Example#
Human Readable Output#
Rules:
ID Source Dest Permit Interface InterfaceType IsActive Position SourceService DestService 3583139358 TEST_GROUP1 TEST_GROUP2 false Global true 1 ip ip 3194110035 TEST_GROUP1 TEST_GROUP2 false Global true 2 ip ip
#
cisco-asa-backupCreates a backup of the current settings (i.e., the backup.cfg file).
#
Base Commandcisco-asa-backup
#
InputArgument Name | Description | Required |
---|---|---|
backup_name | The name of the backup. | Required |
passphrase | The passphrase for the backup. | Optional |
#
Context OutputThere is no context output for this command.
#
Command example!cisco-asa-backup backup_name=Lior
#
Human Readable OutputCreated backup successfully in: Location: disk0:/Lior Passphrase: None
#
cisco-asa-get-rule-by-idGets a specific rule by rule ID.
#
Base Commandcisco-asa-get-rule-by-id
#
InputArgument Name | Description | Required |
---|---|---|
rule_id | The rule ID. | Required |
interface_name | The name of the interface. | Optional |
interface_type | The interface type. Possible values are: In, Out, Global. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.Rules.Interface | String | The name of the interface. |
CiscoASA.Rules.Source | String | The rule's source. |
CiscoASA.Rules.Dest | String | The rule's destination. |
CiscoASA.Rules.InterfaceType | String | The interface type. Can be "In", "Out", or "Global". |
CiscoASA.Rules.IsActive | Boolean | Whether the rule is active. |
CiscoASA.Rules.Position | Number | The position of the rule. |
CiscoASA.Rules.ID | String | The rule ID. |
CiscoASA.Rules.Remarks | Unknown | A list of all rule remarks. |
CiscoASA.Rules.Permit | Boolean | Whether the rule permits traffic from source to destination. |
CiscoASA.Rules.DestService | String | The destination service. |
CiscoASA.Rules.SourceService | String | The source service. |
CiscoASA.Rules.SourceKind | String | One of AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, objectRef#NetworkObj, objectRef#NetworkObjGroup. |
CiscoASA.Rules.DestKind | String | One of AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, objectRef#NetworkObj, objectRef#NetworkObjGroup. |
CiscoASA.Rules.SourceSecurity.kind | String | The type of the security group; SecurityName, SecurityTag, objectRef#SecurityObjGroup. |
CiscoASA.Rules.SourceSecurity.value | String | The value of the SecurityName or SecurityTag. |
CiscoASA.Rules.SourceSecurity.objectId | String | The object ID of objectRef#SecurityObjGroup. |
CiscoASA.Rules.DestinationSecurity.kind | String | The type of the security group; SecurityName, SecurityTag, objectRef#SecurityObjGroup. |
CiscoASA.Rules.DestinationSecurity.value | String | The value of the SecurityName or SecurityTag |
CiscoASA.Rules.DestinationSecurity.objectId | String | The object ID of objectRef#SecurityObjGroup. |
CiscoASA.Rules.User.kind | String | One of AnyUser, NoneUser, objectRef#LocalUserObjGroup, objectRef#UserGroupObj, objectRef#UserObj |
CiscoASA.Rules.User.value | String | The user value. |
CiscoASA.Rules.User.objectId | String | The object ID of the user. |
CiscoASA.Rules.TimeRange.kind | String | The object reference type or the actual TimeRange value. |
CiscoASA.Rules.TimeRange.value | String | The value of the time range. |
CiscoASA.Rules.TimeRange.objectId | String | The object ID of the time range. |
#
Command example!cisco-asa-get-rule-by-id interface_type=Global rule_id=3371063501
#
Context Example#
Human Readable Output#
Rule 3371063501:
ID Source Dest Permit Interface InterfaceType IsActive Position SourceService DestService 3371063501 0.0.0.0/24 5.5.5.5 false Global true 30 tcp/cifs tcp/citrix-ica
#
cisco-asa-create-ruleCreates a rule.
#
Base Commandcisco-asa-create-rule
#
InputArgument Name | Description | Required |
---|---|---|
source | The source. Can be the value of an IPv4, an address block, or the name of a network object. | Required |
destination | The destination. Can be the value of an IPv4, an address block, or the name of a network object. | Required |
permit | Whether the rule is a permit. If True, the rule is a permit. Possible values are: True, False. | Required |
remarks | A list of remarks for the rule. | Optional |
position | The position in which to create the rule. | Optional |
log_level | The log level of the rule. Possible values are: Default, Emergencies, Alerts, Critical, Errors, Warnings, Notifications, Informational, Debugging. | Optional |
active | Whether the rule will be active. If True, the rule will be active. Possible values are: True, False. | Optional |
interface_type | The interface type. Possible values are: In, Out, Global. | Required |
interface_name | The interface name. | Optional |
service | The service of the rule. | Optional |
destination_kind | The destination address kind in the ace. Possible values are: AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, NetworkObj, NetworkObjGroup. | Optional |
source_kind | The source address kind in the ace. Possible values are: AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, NetworkObj, NetworkObjGroup. | Optional |
service_kind | The source service kind. Possible values are: AnyService, ICMP6Service, ICMPService, NetworkProtocol, NetworkServiceGroups, NetworkServiceObjects, TcpUdpService. | Optional |
destination_service | The destination service value. | Optional |
destination_service_kind | The destination service kind. Possible values are: AnyService, ICMP6Service, ICMPService, NetworkProtocol, NetworkServiceGroups, NetworkServiceObjects, TcpUdpService. | Optional |
time_range | Object ID of for the time range object. Can be received with the command cisco-asa-list-time-range. | Optional |
user | The object ID to the user. Can be one of LocalUserObjGroup, UserGroupObj, UserObj. Can be received with existing commands; cisco-asa-list-local-user-group, cisco-asa-list-local-user, cisco-asa-list-user-object. | Optional |
user_kind | The type of the user. Possible values are: LocalUserObjGroup, UserGroupObj, UserObj. | Optional |
source_security | Source security group in the ace. Possible values are SecurityName, SecurityTag and SecurityObjGroup. Can be received with the existing command cisco-asa-list-security-object-group. | Optional |
source_security_kind | The source security type. Possible values are: SecurityName, SecurityTag, SecurityObjGroup. | Optional |
destination_security | Destination security group in the ace. Possible values are SecurityName, SecurityTag and SecurityObjGroup. Can be received with the existing command cisco-asa-list-security-object-group. | Optional |
destination_security_kind | The destination security type. Possible values are: SecurityName, SecurityTag, SecurityObjGroup. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.Rules.Source | String | The rule's source. |
CiscoASA.Rules.Dest | String | The rule's destination. |
CiscoASA.Rules.InterfaceType | String | The interface type. Can be "In", "Out", or "Global". |
CiscoASA.Rules.IsActive | Boolean | Whether the rule is active. |
CiscoASA.Rules.Interface | String | The name of the interface. |
CiscoASA.Rules.Position | Number | The position of the rule. |
CiscoASA.Rules.ID | String | The rule ID. |
CiscoASA.Rules.Remarks | Unknown | A list of all rule remarks. |
CiscoASA.Rules.Permit | Boolean | Whether the rule permits traffic from source to destination. |
CiscoASA.Rules.DestService | String | The destination service. |
CiscoASA.Rules.SourceService | String | The source service. |
CiscoASA.Rules.SourceKind | String | One of AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, objectRef#NetworkObj, objectRef#NetworkObjGroup. |
CiscoASA.Rules.DestKind | String | One of AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, objectRef#NetworkObj, objectRef#NetworkObjGroup. |
CiscoASA.Rules.SourceSecurity.kind | String | The type of the security group; SecurityName, SecurityTag, objectRef#SecurityObjGroup. |
CiscoASA.Rules.SourceSecurity.value | String | The value of the SecurityName or SecurityTag |
CiscoASA.Rules.SourceSecurity.objectId | String | The object ID of objectRef#SecurityObjGroup. |
CiscoASA.Rules.DestinationSecurity.kind | String | The type of the security group; SecurityName, SecurityTag, objectRef#SecurityObjGroup. |
CiscoASA.Rules.DestinationSecurity.value | String | The value of the SecurityName or SecurityTag |
CiscoASA.Rules.DestinationSecurity.objectId | String | The object ID of objectRef#SecurityObjGroup. |
CiscoASA.Rules.User.kind | String | One of AnyUser, NoneUser, objectRef#LocalUserObjGroup, objectRef#UserGroupObj, objectRef#UserObj |
CiscoASA.Rules.User.value | String | The user value. |
CiscoASA.Rules.User.objectId | String | The object ID of the user. |
CiscoASA.Rules.TimeRange.kind | String | The object reference type or the actual TimeRange value. |
CiscoASA.Rules.TimeRange.value | String | The value of the time range. |
CiscoASA.Rules.TimeRange.objectId | String | The object ID of the time range. |
#
Command example!cisco-asa-create-rule destination=1.1.1.1 source=0.0.0.0/24 interface_type=Global permit=False destination_kind=IPv4Address source_kind=IPv4Network active=False service_kind=TcpUdpService service=tcp/cifs destination_service=tcp/citrix-ica destination_service_kind=TcpUdpService destination_security_kind=SecurityTag destination_security=1 source_security_kind=SecurityTag source_security=2 timerange=trUserTest user_kind=UserObj user=api
#
Context Example#
Human Readable Output#
Created new rule. ID: 3152305802
ID Source Dest Permit Interface InterfaceType IsActive Position SourceService DestService 3152305802 0.0.0.0/24 1.1.1.1 false Global false 37 tcp/cifs tcp/citrix-ica
#
cisco-asa-delete-ruleDeletes a rule.
#
Base Commandcisco-asa-delete-rule
#
InputArgument Name | Description | Required |
---|---|---|
rule_id | The rule ID. | Required |
interface_name | The name of the interface. | Optional |
interface_type | The interface type. Possible values are: In, Out, Global. | Required |
#
Context OutputThere is no context output for this command.
#
Command example!cisco-asa-delete-rule rule_id=2152246838 interface_type=Global
#
Human Readable OutputRule 2152246838 deleted successfully.
#
cisco-asa-edit-ruleUpdates an existing rule.
#
Base Commandcisco-asa-edit-rule
#
InputArgument Name | Description | Required |
---|---|---|
interface_type | The interface type. Possible values are: In, Out, Global. | Required |
interface_name | The interface name. | Optional |
rule_id | The rule ID. | Required |
active | Whether the rule will be active. If True, will be active. Possible values are: True, False. | Optional |
log_level | The log level of the rule. | Optional |
position | The position the rule will be in. . | Optional |
remarks | A list of remarks for the rule. | Optional |
permit | True if the rule is a permit. Possible values are: True, False. | Optional |
destination | The destination. Can be the value of an IPv4, an address block, or the name of a network object. | Optional |
source | The source. Can be the value of an IPv4, an address block, or the name of a network object. | Optional |
service | The service of the rule. | Optional |
destination_kind | The destination address kind in the ace. Possible values are: AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, NetworkObj, NetworkObjGroup. | Optional |
source_kind | The source address kind in the ace. Possible values are: AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, NetworkObj, NetworkObjGroup. | Optional |
service_kind | The source service kind. Possible values are: AnyService, ICMP6Service, ICMPService, NetworkProtocol, NetworkServiceGroups, NetworkServiceObjects, TcpUdpService. | Optional |
destination_service | The destination service value. | Optional |
destination_service_kind | The destination service kind. Possible values are: AnyService, ICMP6Service, ICMPService, NetworkProtocol, NetworkServiceGroups, NetworkServiceObjects, TcpUdpService. | Optional |
time_range | Object ID of for the time range object. Can be received with the command cisco-asa-list-time-range. | Optional |
user | The object ID to the user. Can be one of LocalUserObjGroup, UserGroupObj, UserObj. Can be received with existing commands; cisco-asa-list-local-user-group, cisco-asa-list-local-user, cisco-asa-list-user-object. | Optional |
user_kind | The type of the user. Possible values are: LocalUserObjGroup, UserGroupObj, UserObj. | Optional |
source_security | Source security group in the ace. Possible values are SecurityName, SecurityTag and SecurityObjGroup. Can be received with the existing command cisco-asa-list-security-object-group. | Optional |
source_security_kind | The source security type. Possible values are: SecurityName, SecurityTag, SecurityObjGroup. | Optional |
destination_security | Destination security group in the ace. Possible values are SecurityName, SecurityTag and SecurityObjGroup. Can be received with the existing command cisco-asa-list-security-object-group. | Optional |
destination_security_kind | The destination security type. Possible values are: SecurityName, SecurityTag, SecurityObjGroup. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.Rules.Source | String | The rule's source. |
CiscoASA.Rules.Dest | String | The rule's destination. |
CiscoASA.Rules.InterfaceType | String | The interface type. Can be "In", "Out", or "Global". |
CiscoASA.Rules.IsActive | Boolean | Whether the rule is active. |
CiscoASA.Rules.Interface | String | The name of the interface. |
CiscoASA.Rules.Position | Number | The position of the rule. |
CiscoASA.Rules.ID | String | The rule ID. |
CiscoASA.Rules.Remarks | Unknown | A list of all rule remarks. |
CiscoASA.Rules.Permit | Boolean | Whether the rule permits traffic from source to destination. |
CiscoASA.Rules.DestService | String | The destination service. |
CiscoASA.Rules.SourceService | String | The source service. |
CiscoASA.Rules.SourceKind | String | One of AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, objectRef#NetworkObj, objectRef#NetworkObjGroup. |
CiscoASA.Rules.DestKind | String | One of AnyIPAddress, IPv4Address, IPv4FQDN, IPv4Network, IPv4Range, IPv6Address, IPv6FQDN, IPv6Network, IPv6Range, SecurityName, SecurityTag, interfaceIP, objectRef#NetworkObj, objectRef#NetworkObjGroup. |
CiscoASA.Rules.SourceSecurity.kind | String | The type of the security group; SecurityName, SecurityTag, objectRef#SecurityObjGroup. |
CiscoASA.Rules.SourceSecurity.value | String | The value of the SecurityName or SecurityTag |
CiscoASA.Rules.SourceSecurity.objectId | String | The object ID of objectRef#SecurityObjGroup. |
CiscoASA.Rules.DestinationSecurity.kind | String | The type of the security group; SecurityName, SecurityTag, objectRef#SecurityObjGroup. |
CiscoASA.Rules.DestinationSecurity.value | String | The value of the SecurityName or SecurityTag |
CiscoASA.Rules.DestinationSecurity.objectId | String | The object ID of objectRef#SecurityObjGroup. |
CiscoASA.Rules.User.kind | String | One of AnyUser, NoneUser, objectRef#LocalUserObjGroup, objectRef#UserGroupObj, objectRef#UserObj |
CiscoASA.Rules.User.value | String | The user value. |
CiscoASA.Rules.User.objectId | String | The object ID of the user. |
CiscoASA.Rules.TimeRange.kind | String | The object reference type or the actual TimeRange value. |
CiscoASA.Rules.TimeRange.value | String | The value of the time range. |
CiscoASA.Rules.TimeRange.objectId | String | The object ID of the time range. |
#
Command example!cisco-asa-edit-rule rule_id=3371063501 interface_type=Global active=True
#
Context Example#
Human Readable Output#
Edited rule 3371063501
ID Source Dest Permit Interface InterfaceType IsActive Position SourceService DestService 3371063501 0.0.0.0/24 5.5.5.5 false Global true 30 tcp/cifs tcp/citrix-ica
#
cisco-asa-list-network-objectsGets a list all configured network objects.
#
Base Commandcisco-asa-list-network-objects
#
InputArgument Name | Description | Required |
---|---|---|
object_name | A comma-separated list of network object names for which to get the network. | Optional |
object_id | A comma-separated list of object IDs for which to get the network object. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.NetworkObject.ID | String | The ID of the network object. |
CiscoASA.NetworkObject.Host | String | The host information of the network object. |
CiscoASA.NetworkObject.Description | String | A description of the network object. |
CiscoASA.NetworkObject.Name | String | The name of the network object. |
#
Command example!cisco-asa-list-network-objects object_name=Test_Lior
#
Context Example#
Human Readable Output#
Network Objects
ID Name Host Description Test_Lior Test_Lior kind: IPv4Address
value: 0.0.0.0
#
cisco-asa-create-network-objectCreates a network object.
#
Base Commandcisco-asa-create-network-object
#
InputArgument Name | Description | Required |
---|---|---|
object_type | The type of network object to create. Possible values are: IPv4, IP-Network. | Required |
object_name | The name of the object to create. | Required |
object_value | The value of the network object to create. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.NetworkObject.ID | String | The ID of the network object. |
CiscoASA.NetworkObject.Host | String | The host information of the network object. |
CiscoASA.NetworkObject.Description | String | A description of the network object, if exists. |
CiscoASA.NetworkObject.Name | String | The name of the network object. |
#
Command example!cisco-asa-create-network-object object_name=HelloThereLiorSB object_type=IPv4 object_value=1.1.1.1
#
Context Example#
Human Readable Output#
Network Objects
ID Name Host Description HelloThereLiorSB HelloThereLiorSB kind: IPv4Address
value: 1.1.1.1
#
cisco-asa-list-interfacesGets a list of all interfaces.
#
Base Commandcisco-asa-list-interfaces
#
InputThere are no input arguments for this command.
#
Context OutputPath | Type | Description |
---|---|---|
CiscoASA.Interface.ID | String | The interface ID. |
CiscoASA.Interface.Name | String | The interface name. |
CiscoASA.Interface.Type | String | The type of interface. |
#
Command example!cisco-asa-list-interfaces
#
Context Example#
Human Readable Output#
Interfaces
Type ID Name Global -1 In GigabitEthernet0_API_SLASH_0 outside Out Management0_API_SLASH_0 inside