|
86 | 86 | "variables": { |
87 | 87 | "MicrosoftSentinelConnectionName": "[concat('sentinel-', parameters('PlaybookName'))]", |
88 | 88 | "AzureBlobConnectionName": "[concat('azureblob-', parameters('PlaybookName'))]", |
89 | | - "StorageAccountName": "[parameters('StorageAccountName')]", |
90 | | - "StorageAccountContainerName": "[parameters('StorageAccountContainerName')]", |
91 | 89 | "AzureKeyVaultName": "[parameters('KeyVaultName')]", |
92 | | - "AzureKeyVaultConnectionName": "[concat('keyvault-', parameters('PlaybookName'))]", |
93 | | - "BlobNameCursor": "[if(equals(parameters('Backend'), 'Titan'), 'cursorSentinel.txt', 'cursorVerity.txt')]", |
94 | | - "BlobNameFromDate": "[if(equals(parameters('Backend'), 'Titan'), 'fromdateSentinel.txt', 'fromdateVerity.txt')]", |
95 | | - "ApiURI": "[if(equals(parameters('Backend'), 'Titan'), 'https://api.intel471.com/v1/indicators/stream', 'https://api.intel471.cloud/integrations/indicators/v1/indicators/stream')]", |
96 | | - "UsernameSecretName": "[if(equals(parameters('Backend'), 'Titan'), 'TitanUserNameSentinel', 'VerityUserNameSentinel')]", |
97 | | - "ApiKeySecretName": "[if(equals(parameters('Backend'), 'Titan'), 'TitanAPIKeySentinel', 'VerityAPIKeySentinel')]", |
98 | | - "RequestParamFrom": "[if(equals(parameters('Backend'), 'Titan'), 'lastUpdatedFrom', 'from')]", |
99 | | - "RequestParamSize": "[if(equals(parameters('Backend'), 'Titan'), 'count', 'size')]", |
100 | | - "RequestThreatType": "[if(equals(parameters('Backend'), 'Titan'), 'threatType', 'threat_type')]", |
101 | | - "ResponseFieldCursor": "[if(equals(parameters('Backend'), 'Titan'), 'cursorNext', 'cursor_next')]" |
| 90 | + "AzureKeyVaultConnectionName": "[concat('keyvault-', parameters('PlaybookName'))]" |
102 | 91 | }, |
103 | 92 | "resources": [ |
104 | 93 | { |
|
128 | 117 | "id": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/azureblob')]" |
129 | 118 | }, |
130 | 119 | "parameterValues": { |
131 | | - "accountName": "[variables('StorageAccountName')]", |
132 | | - "accessKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('StorageAccountName')), '2022-09-01').keys[0].value]" |
| 120 | + "accountName": "[parameters('StorageAccountName')]", |
| 121 | + "accessKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('StorageAccountName')), '2022-09-01').keys[0].value]" |
133 | 122 | } |
134 | 123 | } |
135 | 124 | }, |
|
186 | 175 | "type": "String" |
187 | 176 | }, |
188 | 177 | "BlobNameCursor": { |
189 | | - "defaultValue": "[variables('BlobNameCursor')]", |
| 178 | + "defaultValue": "", |
190 | 179 | "type": "String" |
191 | 180 | }, |
192 | 181 | "BlobNameFromDate": { |
193 | | - "defaultValue": "[variables('BlobNameFromDate')]", |
| 182 | + "defaultValue": "", |
| 183 | + "type": "String" |
| 184 | + }, |
| 185 | + "ApiURI": { |
| 186 | + "defaultValue": "", |
| 187 | + "type": "String" |
| 188 | + }, |
| 189 | + "UsernameSecretName": { |
| 190 | + "defaultValue": "", |
| 191 | + "type": "String" |
| 192 | + }, |
| 193 | + "ApiKeySecretName": { |
| 194 | + "defaultValue": "", |
| 195 | + "type": "String" |
| 196 | + }, |
| 197 | + "RequestParamFrom": { |
| 198 | + "defaultValue": "", |
| 199 | + "type": "String" |
| 200 | + }, |
| 201 | + "RequestParamSize": { |
| 202 | + "defaultValue": "", |
| 203 | + "type": "String" |
| 204 | + }, |
| 205 | + "RequestThreatType": { |
| 206 | + "defaultValue": "", |
194 | 207 | "type": "String" |
195 | 208 | }, |
196 | 209 | "ResponseFieldCursor": { |
197 | | - "defaultValue": "[variables('ResponseFieldCursor')]", |
| 210 | + "defaultValue": "", |
198 | 211 | "type": "String" |
199 | 212 | }, |
200 | 213 | "LookBackDays": { |
|
288 | 301 | "HTTP": { |
289 | 302 | "type": "Http", |
290 | 303 | "inputs": { |
291 | | - "uri": "[variables('ApiURI')]", |
| 304 | + "uri": "@parameters('ApiURI')", |
292 | 305 | "method": "GET", |
293 | 306 | "headers": { |
294 | 307 | "User-Agent": "Intel 471 - Malware Intelligence Sentinel - Azure Logic App 4.0.0" |
|
562 | 575 | } |
563 | 576 | }, |
564 | 577 | "method": "get", |
565 | | - "path": "[concat('/secrets/', variables('ApiKeySecretName'), '/value')]" |
| 578 | + "path": "@concat('/secrets/', parameters('ApiKeySecretName'), '/value')" |
566 | 579 | }, |
567 | 580 | "runAfter": { |
568 | 581 | "GetUsername": [ |
|
619 | 632 | } |
620 | 633 | }, |
621 | 634 | "method": "get", |
622 | | - "path": "[concat('/secrets/', variables('UsernameSecretName'), '/value')]" |
| 635 | + "path": "@concat('/secrets/', parameters('UsernameSecretName'), '/value')" |
623 | 636 | }, |
624 | 637 | "runAfter": {} |
625 | 638 | }, |
|
794 | 807 | "name": "payload", |
795 | 808 | "type": "object", |
796 | 809 | "value": { |
797 | | - "[variables('RequestParamSize')]": 100, |
798 | | - "[variables('RequestThreatType')]": "malware", |
799 | | - "[variables('RequestParamFrom')]": "@{variables('fromDate')}" |
| 810 | + "@{parameters('RequestParamSize')}": 100, |
| 811 | + "@{parameters('RequestThreatType')}": "malware", |
| 812 | + "@{parameters('RequestParamFrom')}": "@{variables('fromDate')}" |
800 | 813 | } |
801 | 814 | } |
802 | 815 | ] |
|
840 | 853 | } |
841 | 854 | } |
842 | 855 | }, |
| 856 | + "WorkspaceID": { |
| 857 | + "value": "[parameters('WorkspaceID')]" |
| 858 | + }, |
843 | 859 | "StorageAccountName": { |
844 | | - "value": "[variables('StorageAccountName')]" |
| 860 | + "value": "[parameters('StorageAccountName')]" |
845 | 861 | }, |
846 | 862 | "StorageAccountContainerName": { |
847 | | - "value": "[variables('StorageAccountContainerName')]" |
| 863 | + "value": "[parameters('StorageAccountContainerName')]" |
| 864 | + }, |
| 865 | + "BlobNameCursor": { |
| 866 | + "value": "[if(equals(parameters('Backend'), 'Titan'), 'cursorSentinel.txt', 'cursorVerity.txt')]" |
| 867 | + }, |
| 868 | + "BlobNameFromDate": { |
| 869 | + "value": "[if(equals(parameters('Backend'), 'Titan'), 'fromdateSentinel.txt', 'fromdateVerity.txt')]" |
| 870 | + }, |
| 871 | + "ApiURI": { |
| 872 | + "value": "[if(equals(parameters('Backend'), 'Titan'), 'https://api.intel471.com/v1/indicators/stream', 'https://api.intel471.cloud/integrations/indicators/v1/indicators/stream')]" |
| 873 | + }, |
| 874 | + "UsernameSecretName": { |
| 875 | + "value": "[if(equals(parameters('Backend'), 'Titan'), 'TitanUserNameSentinel', 'VerityUserNameSentinel')]" |
| 876 | + }, |
| 877 | + "ApiKeySecretName": { |
| 878 | + "value": "[if(equals(parameters('Backend'), 'Titan'), 'TitanAPIKeySentinel', 'VerityAPIKeySentinel')]" |
| 879 | + }, |
| 880 | + "RequestParamFrom": { |
| 881 | + "value": "[if(equals(parameters('Backend'), 'Titan'), 'lastUpdatedFrom', 'from')]" |
| 882 | + }, |
| 883 | + "RequestParamSize": { |
| 884 | + "value": "[if(equals(parameters('Backend'), 'Titan'), 'count', 'size')]" |
| 885 | + }, |
| 886 | + "RequestThreatType": { |
| 887 | + "value": "[if(equals(parameters('Backend'), 'Titan'), 'threatType', 'threat_type')]" |
| 888 | + }, |
| 889 | + "ResponseFieldCursor": { |
| 890 | + "value": "[if(equals(parameters('Backend'), 'Titan'), 'cursorNext', 'cursor_next')]" |
848 | 891 | }, |
849 | 892 | "LookBackDays": { |
850 | 893 | "value": "[parameters('LookBackDays')]" |
851 | 894 | }, |
852 | | - "WorkspaceID": { |
853 | | - "value": "[parameters('WorkspaceID')]" |
854 | | - }, |
855 | 895 | "Backend": { |
856 | 896 | "value": "[parameters('Backend')]" |
857 | 897 | } |
|
0 commit comments