[英]Azure Logic App: Take API JSON input and map values to keys within another JSON Object
I am making an API call that returns JSON in the beneath format:我正在进行 API 调用,它以以下格式返回 JSON:
{
"query_status": "ok",
"data": [
{
"id": "41",
"ioc": "gaga.com",
"threat_type": "botnet_cc",
"threat_type_desc": "Indicator that identifies a botnet command&control server (C&C)",
"ioc_type": "domain",
},
[...]
}
I am looking for a solution whereby I can take these values and append them to a table in Azure. I need to assign some these values to the beneath:我正在寻找一种解决方案,借此我可以将这些值和 append 放入 Azure 中的表中。我需要将这些值分配给下面的值:
{
"emailSenderName": "String",
"emailSourceDomain": "String",
"emailSourceIpAddress": "String",
"emailSubject": "String",
"emailXMailer": "String",
"expirationDateTime": "String (timestamp)",
"externalId": "String",
"fileCompileDateTime": "String (timestamp)",
"fileCreatedDateTime": "String (timestamp)",
"fileHashType": "string",
"fileHashValue": "String",
"fileMutexName": "String",
"fileName": "String",
"filePacker": "String",
"filePath": "String",
"fileSize": 1024,
"fileType": "String",
"id": "String (identifier)",
"ingestedDateTime": "String (timestamp)",
"isActive": true,
"killChain": ["String"],
}
The desired output is to create the object shown on this link所需的 output 是创建此链接上显示的 object
https://learn.microsoft.com/en-us/graph/api/tiindicator-submittiindicators?view=graph-rest-beta&tabs=http https://learn.microsoft.com/en-us/graph/api/tiindicator-submittiindicators?view=graph-rest-beta&tabs=http
What is the best way to do this?做这个的最好方式是什么? After scanning through the MS documentation I haven't found anything that helps.
浏览 MS 文档后,我没有找到任何有用的信息。 Essentially what I'd like to do is change the keys.
本质上,我想做的是更改密钥。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.