Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement | InfoBlox - add list host and network info, modify get IP cmds #32619

Merged
merged 50 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
8cd5a6a
added host records
kgal-pan Jan 25, 2024
10c4e3a
handle no comma,equal sign in extattrs
kgal-pan Jan 25, 2024
d29f8b2
wip: added network,to/from_ip args to get_ip_cmd
kgal-pan Jan 29, 2024
7269252
added validation for invalid input args to get-ip
kgal-pan Jan 29, 2024
4ae622b
added max_results to list host cmd
kgal-pan Jan 29, 2024
eb54e93
added network info cmd
kgal-pan Feb 1, 2024
ac99d7c
modified get-ip command to return a list
kgal-pan Feb 1, 2024
9d6ec85
format/validation fixes
kgal-pan Feb 1, 2024
953b809
fixed context output for host records cmd
kgal-pan Feb 1, 2024
25bf3d9
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Feb 1, 2024
dc03d6b
fixed output table for net info cmd
kgal-pan Feb 1, 2024
a3fe041
added additional return fields to list host args
kgal-pan Feb 5, 2024
3b64e6b
updated integration docs
kgal-pan Feb 5, 2024
915dd3b
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Feb 5, 2024
85a3f86
fixed netview context key in net uts
kgal-pan Feb 6, 2024
f0a43a2
changed context output types for get-ip
kgal-pan Feb 6, 2024
9073d13
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Feb 6, 2024
e7d11fe
fixed hardcoded default values in args description
kgal-pan Feb 6, 2024
c6934bf
mv test_files test_data
kgal-pan Feb 6, 2024
5c1e8bc
mv test_files test_data
kgal-pan Feb 6, 2024
173306e
converted integration readme from html to markdown
kgal-pan Feb 6, 2024
c4b04c1
strip whitespace from get-ip context path in readme
kgal-pan Feb 6, 2024
148cbc8
add unique to ipv4address status
kgal-pan Feb 6, 2024
2a7a825
pr review: rm endpoint suffixes from client
kgal-pan Feb 7, 2024
e7ca4d3
pr review: rm ip,netmask input validation
kgal-pan Feb 8, 2024
74abc4f
mv request params into client methods
kgal-pan Feb 8, 2024
eac28df
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Feb 8, 2024
c227aec
rm transform_return_fields
kgal-pan Feb 8, 2024
4305644
simplified raw to context mapping
kgal-pan Feb 8, 2024
7c3ac2b
raise exception when extattrs input is invalid
kgal-pan Feb 8, 2024
0594339
updated docker image
kgal-pan Feb 8, 2024
138e258
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Feb 8, 2024
c145695
fixed issue with additional return fields
kgal-pan Feb 12, 2024
26d27e4
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Feb 12, 2024
34de06b
fix flake8 errs
kgal-pan Feb 25, 2024
fdfd788
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Feb 25, 2024
986d3aa
rm todos
kgal-pan Feb 28, 2024
1d3e8e5
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Feb 28, 2024
3d7fb79
revert changes to too many args handle in ip cmd
kgal-pan Feb 28, 2024
ee869d2
fixed titles for get-ip, get host info, get network info
kgal-pan Feb 28, 2024
826b2ea
added rn comment about get-ip mod outputs
kgal-pan Mar 3, 2024
998c56d
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Mar 3, 2024
ef5d216
fix rn comment about get-ip mod outputs
kgal-pan Mar 3, 2024
586ec50
fix cmd outputs assertions in uts
kgal-pan Mar 3, 2024
6fffbf4
added args to get-ip in integration doc
kgal-pan Mar 3, 2024
7511ef1
update docker image
kgal-pan Mar 3, 2024
bcba90d
fix docs
kgal-pan Mar 4, 2024
dc17dd0
revert poetry
kgal-pan Mar 4, 2024
ce4ebf2
Merge branch 'master' into CIAC-3607-enhancement-infoblox-net-cmds
kgal-pan Mar 4, 2024
5b95a59
fix docs
kgal-pan Mar 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 11 additions & 1 deletion Packs/Infoblox/.secrets-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,14 @@ https://datatracker.ietf.org/doc/html/rfc1035#section-3.2.4
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml
https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml
https://docs.infoblox.com/space/nios85/35816694/Capturing+DNS+Queries+and+Responses
https://docs.infoblox.com
https://docs.infoblox.com
192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.4
192.168.1.5
192.168.1.6
192.168.1.7
192.168.1.8
192.168.1.9
255.255.255.192
784 changes: 694 additions & 90 deletions Packs/Infoblox/Integrations/Infoblox/Infoblox.py

Large diffs are not rendered by default.

114 changes: 102 additions & 12 deletions Packs/Infoblox/Integrations/Infoblox/Infoblox.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
category: Network Security

Check failure on line 1 in Packs/Infoblox/Integrations/Infoblox/Infoblox.yml

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Validation Error BC102

Possible backwards compatibility break, You've changed the context in the file,please undo. the command is: infoblox-get-ip
commonfields:
id: Infoblox
version: -1
Expand Down Expand Up @@ -27,15 +27,37 @@
script:
commands:
- arguments:
- description: The IP address for which to retrieve information.
- description: The IP address for which to retrieve information, e.g. "192.168.1.1". Cannot be used in conjunction with `network` or `from/to_ip` arguments.
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
name: ip
required: true
required: false
- name: network
description: The network that the IP belongs in FQDN/CIDR format, e.g. "192.168.1.0/24". Cannot be used in conjunction with `ip` or `from/to_ip` arguments.
required: false
- name: from_ip
description: The beginning of the IP range, e.g. "192.168.1.0". Must be used in conjunction with `to_ip`.
required: false
- name: to_ip
description: The end of the IP range, e.g. "192.168.1.254". Must be used in conjunction with `from_ip`.
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
required: false
- name: status
description: The status of the IP device. Used in conjunction with the `network` or `ip` argument.
auto: PREDEFINED
predefined:
- ACTIVE
- UNUSED
- USED
- name: extended_attrs
description: Comma-separated key/value formatted filter for extended attributes, e.g. "Site=New York,OtherProp=MyValue".
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
required: false
- name: max_results
description: The maximum results to return. Maximum is 1000.
defaultValue: '50'
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
description: Get IP info.
name: infoblox-get-ip
outputs:
- contextPath: Infoblox.IP.ReferenceID
description: Reference ID of the object.
type: number
type: string
- contextPath: Infoblox.IP.MacAddress
description: The Mac address of the IP.
type: string
Expand All @@ -50,31 +72,32 @@
type: string
- contextPath: Infoblox.IP.IsConflict
description: Whether the IP address has either a MAC address conflict or a DHCP lease conflict detected through a network discovery (if set to true).
type: string
- contextPath: Infoblox.IP. Objects
type: boolean
- contextPath: Infoblox.IP.Objects
description: The objects associated with the IP address.
type: string
- contextPath: Infoblox.IP.Types
description: The current status of the address.
type: string
- contextPath: Infoblox.IP. Names
- contextPath: Infoblox.IP.Names
description: The DNS names. For example, if the IP address belongs to a host record, this field contains the hostname.
type: string
- contextPath: Infoblox.IP. Extattrs
- contextPath: Infoblox.IP.Extattrs
description: Extra attributes relevant for this object.
type: string
type: unknown
- contextPath: Infoblox.IP.IpAddress
description: The IP address.
type: string
- contextPath: Infoblox.IP.Usage
description: Indicates whether the IP address is configured for DNS or DHCP.
type: string
type: unknown
- arguments:
- description: The IP address for which to search.
name: ip
required: true
- description: The maximum results to return.
- description: The maximum results to return. Maximum is 1000.
name: max_results
defaultValue: '50'
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
description: Searches IP related objects by a given IP.
name: infoblox-search-related-objects-by-ip
outputs:
Expand Down Expand Up @@ -116,8 +139,9 @@
description: Retrieves the next page of the search. The last NextpageID corresponds to the last search performed.
type: string
- arguments:
- description: Maximum results to return. (default is 50).
- description: Maximum results to return. Maximum is 1000.
name: max_results
defaultValue: 50
description: List all response policy zones.
name: infoblox-list-response-policy-zones
outputs:
Expand Down Expand Up @@ -694,7 +718,73 @@
required: true
description: Deletes a given response policy zone.
name: infoblox-delete-response-policy-zone
dockerimage: demisto/python3:3.10.13.84405
- name: infoblox-list-host-info
description: Get all host records.
arguments:
- name: host_name
description: The hostname to retrieve records for, e.g. example.com.
required: false
- name: extattrs
description: comma-separated key/value formatted filter for extended attributes, e.g. "Site=New York,OtherProp=MyValue".
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
required: false
- name: max_results
description: The maximum number of records to return. Default is 50, maximum is 1000.
- name: additional_return_fields
description: Comma separated list of additional fields to return for each host, e.g. extattrs,aliases.
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
required: false
defaultValue: extattrs
outputs:
- contextPath: Infoblox.Host.Reference
description: The host record reference ID.
type: String
- contextPath: Infoblox.Host.IPv4Address
description: The host first IPv4 address.
type: String
- contextPath: Infoblox.Host.ConfigureForDHCP
description: Whether the host is configured for DHCP.
type: Boolean
- contextPath: Infoblox.Host.Name
description: The host record name.
type: String
- contextPath: Infoblox.Host.ExtendedAttributes
description: The network extended attributes.
type: Unknown
- contextPath: Infoblox.Host.AdditionalFields
description: The additional fields for network.
type: Unknown
- name: infoblox-list-network-info
description: List network information.
arguments:
- name: pattern
description: Filter networks by pattern, e.g. '.0/24' for netmask, '192.168' for subnet.
required: false
- name: extattrs
description: comma-separated key/value formatted filter for extended attributes, e.g. "Site=New York,OtherProp=MyValue".
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
required: false
- name: max_results
description: The maximum number of records to return. Maximum is 1000.
defaultValue: 50
- name: additional_return_fields
description: Comma separated list of additional fields to return for each host, e.g. extattrs,aliases.
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
required: false
defaultValue: extattrs
outputs:
- contextPath: Infoblox.NetworkInfo.Reference
description: The network reference.
type: String
- contextPath: Infoblox.NetworkInfo.Name
description: The network name.
type: String
- contextPath: Infoblox.NetworkInfo.NetworkView
description: The network view name.
type: String
- contextPath: Infoblox.NetworkInfo.ExtendedAttributes
description: The network extended attributes.
type: Unknown
- contextPath: Infoblox.NetworkInfo.AdditionalFields
description: The additional fields for network.
kgal-pan marked this conversation as resolved.
Show resolved Hide resolved
type: Unknown
dockerimage: demisto/python3:3.10.13.88772
runonce: false
script: ''
subtype: python3
Expand Down