Skip to content
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Packs/ipinfo/Integrations/ipinfo_v2/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Use the IPinfo.io API to get data about an IP address.
We support all plan types: Lite, Plus, Core, Enterprise. The response from the API will match your plan type.

## Differences from IPinfo (v1)

Expand Down
23 changes: 13 additions & 10 deletions Packs/ipinfo/Integrations/ipinfo_v2/ipinfo_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,19 @@ def parse_results(ip: str, raw_result: dict[str, Any], reliability: str) -> List
coordinates = loc.split(",")
lat, lon = float(coordinates[0]), float(coordinates[1])

entry_context = {
"Address": raw_result.get("ip"),
"Hostname": hostname, # type: ignore
"ASN": asn,
"ASOwner": as_owner,
"Tags": tags, # type: ignore
"Organization": organization,
"Geo": {"Location": loc, "Country": country, "Description": description}, # type: ignore
"Registrar": {"Abuse": abuse} if abuse else None,
}
entry_context = raw_result.copy()
Comment thread
kamalq97 marked this conversation as resolved.
entry_context.update(
{
"Address": raw_result.get("ip"),
"Hostname": hostname, # type: ignore
Comment thread
kamalq97 marked this conversation as resolved.
"ASN": asn,
"ASOwner": as_owner,
"Tags": tags, # type: ignore
"Organization": organization,
"Geo": {"Location": loc, "Country": country, "Description": description}, # type: ignore
"Registrar": {"Abuse": abuse} if abuse else None,
}
)

outputs_key_field = "Address" # marks the ip address

Expand Down
2 changes: 1 addition & 1 deletion Packs/ipinfo/Integrations/ipinfo_v2/ipinfo_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ configuration:
section: Connect
advanced: true
required: false
description: Use the IPinfo.io API to get data about an IP address.
description: 'Use the IPinfo.io API to get data about an IP address. We support all plan types: Lite, Plus, Core, Enterprise. The response from the API will match your plan type.'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider rephrasing "We support all plan types" to a more neutral, professional tone, such as "Supports all plan types".

description: 'Use the IPinfo.io API to get data about an IP address. Supports all plan types: Lite, Plus, Core, Enterprise. The response from the API will match your plan type.'

display: IPinfo v2
name: ipinfo_v2
script:
Expand Down
7 changes: 7 additions & 0 deletions Packs/ipinfo/ReleaseNotes/2_1_28.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

#### Integrations

##### IPinfo v2

- Updated the documentation to reflect support for all plan types: Lite, Plus, Core, and Enterprise.
- Updated the integration to return the full API response into the context.
2 changes: 1 addition & 1 deletion Packs/ipinfo/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Ipinfo",
"description": "Use the ipinfo.io API to get data about an IP address",
"support": "xsoar",
"currentVersion": "2.1.27",
"currentVersion": "2.1.28",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Loading