Get-GeoFromIpAndTagIncident Playbook Issue fix (#7513)
* updated code * updated code as per review comment
This commit is contained in:
Родитель
87e64dda64
Коммит
79308d0fef
|
@ -6,6 +6,20 @@
|
|||
"author": "Nicholas DiCola"
|
||||
},
|
||||
"parameters": {
|
||||
"ConnectorName": {
|
||||
"defaultValue": "IPAPICustomConnector",
|
||||
"type": "String",
|
||||
"metadata": {
|
||||
"description": "Name of the custom IP-API Connector."
|
||||
}
|
||||
},
|
||||
"ServiceEndpoint": {
|
||||
"defaultValue": "http://ip-api.com/json",
|
||||
"type": "String",
|
||||
"metadata": {
|
||||
"description": "Enter the IP-API Endpoint Url"
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
},
|
||||
|
@ -13,25 +27,25 @@
|
|||
{
|
||||
"type": "Microsoft.Web/customApis",
|
||||
"apiVersion": "2016-06-01",
|
||||
"name": "IP-API",
|
||||
"name": "[parameters('ConnectorName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"backendService": {
|
||||
"serviceUrl": "https://ip-api.com/json"
|
||||
"serviceUrl": "[parameters('ServiceEndPoint')]"
|
||||
},
|
||||
"displayName": "IP-API",
|
||||
"displayName": "[parameters('ConnectorName')]",
|
||||
"iconUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAhCAYAAAC4JqlRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5QYDFTM5piv2fAAABGZJREFUWIWl12mMnVMYB/Df3BlubUeiWlVLKaWKBpVWY2lRPqAhNLG1IbHTCGL7IPhAUrFEhNiXCNogqNiaIEJjCRV7aGjFvpTyVOmgHR/OufrONZ17Z/yTyTvvc573/J97nvV0aEJKaRwuwjQMxU94HtdFxIdFZ31shk3xN5ZhRUSsad6vFTqayE/Gbaj3oduNs/EeXkCqrL2Pb7EKz+HRiPixHQNqFfKpuLNCvgLvlqcivwObYF6R/YyzMBGvYTi+wfSU0tB2DOgo5PAm9i7yu3F+RKxIKW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fNf8Ya1ZEBEi4h7sL19S2sEbjRtRSmlISmkOrpQn6KtxcET80NeH/zGgYshb8oQ0G5+3MGBpIR8j+/kCPIrxEXFZRPTV8NCmn1NK68mBdJRc43fQO36ejIgjU0pHYxQeafdqNpBAaxhD7ngjrL2ofBcRywe6F/wDhBx6oUpxUmgAAAAASUVORK5CYII=",
|
||||
"swagger": {
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "IP-API",
|
||||
"title": "[parameters('ConnectorName')]",
|
||||
"description": "IP-API Geolocation API",
|
||||
"version": "1.0"
|
||||
},
|
||||
"host": "ip-api.com",
|
||||
"host": "[replace(replace(parameters('ServiceEndpoint'),'https://',''),'http://','')]",
|
||||
"basePath": "/json",
|
||||
"schemes": [
|
||||
"https"
|
||||
"http"
|
||||
],
|
||||
"consumes": [],
|
||||
"produces": [],
|
||||
|
|
|
@ -9,6 +9,13 @@
|
|||
"PlaybookName": {
|
||||
"defaultValue": "Get-GeoFromIpAndTagIncident",
|
||||
"type": "string"
|
||||
},
|
||||
"CustomConnectorName": {
|
||||
"defaultValue": "IPAPICustomConnector",
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the logic app connector which performs Shodan actions."
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
|
@ -40,7 +47,7 @@
|
|||
"displayName": "[parameters('PlaybookName')]",
|
||||
"customParameterValues": {},
|
||||
"api": {
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId ,'/resourceGroups/', resourcegroup().name ,'/providers/Microsoft.Web/customApis/IP-API')]"
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId ,'/resourceGroups/', resourcegroup().name ,'/providers/Microsoft.Web/customApis/', parameters('CustomConnectorName'))]"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -208,7 +215,7 @@
|
|||
"IP-API": {
|
||||
"connectionId": "[resourceId('Microsoft.Web/connections', variables('IPAPIConnectionName'))]",
|
||||
"connectionName": "[variables('IPAPIConnectionName')]",
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId ,'/resourceGroups/', resourcegroup().name ,'/providers/Microsoft.Web/customApis/IP-API')]"
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId ,'/resourceGroups/', resourcegroup().name ,'/providers/Microsoft.Web/customApis/', parameters('CustomConnectorName'))]"
|
||||
},
|
||||
"azuresentinel": {
|
||||
"connectionId": "[resourceId('Microsoft.Web/connections', variables('AzureSentinelConnectionName'))]",
|
||||
|
|
Загрузка…
Ссылка в новой задаче