Get Internal or External IP Addresses
LAST UPDATED: AUG 07, 2024
Extracts a list of internal or external IP addresses from the input IP addresses
Implementation | System |
Command Category | Cyber Utility |
Tags | ARTIFACT IP |
Inputs
Parameter Name | Required/Optional | Description | Sample Data |
---|---|---|---|
IP Addresses | Required | The input list of IP addresses to extract from |
CODE
|
IP Type | Required | The type of IP addresses to get from the input list of IP addresses | Internal |
Output
Remote Command API
The D3 command API allows you to send requests to D3 SOAR to execute this utility command via REST API.
Request
POST
https:/{base_url}/{api_namespace}/api/Command/FilterInternalIP
Headers
Please refer to the page Webhook Configuration Guide - Authentication Method: API Keys for more details.
Request Body
{
"Username": <Username here>,
"Site": <Site here>,
"CommandParams": {
"IP Addresses": <The input list of IP addresses to extract from>,
"IP Type": <The type of IP addresses to get from the input list of IP addresses>
}
}
Body Parameters
Parameter Name | Type | Required/Optional | Description |
---|---|---|---|
Username |
| Required | The username of your D3 SOAR account. |
Site |
| Required | The D3 SOAR site to run the remote command. |
IP Addresses |
| Required | The input list of IP addresses to extract from |
IP Type |
| Required | The type of IP addresses to get from the input list of IP addresses |
Sample Request
SAMPLE DATA
{
"Username": "Admin",
"Site": "Security Operations",
"CommandParams": {
"IP Addresses": [
"10.10.1.1",
"192.168.12.58",
"172.17.12.58",
"173.254.152.251",
"45.32.76.84",
"121.64.92.26"
],
"IP Type": "Internal"
}
}
Response
Response Fields
Field Name | Type | Description |
---|---|---|
error |
| The error message if the API request has failed. |
returnData |
| The return data from the API request. |
Sample Response
{
"error": "",
"returnData": [
"10.10.1.1",
"192.168.12.58",
"172.17.12.58"
]
}