简体   繁体   English

Azure 逻辑应用程序:采用 API JSON 输入和 map 值到另一个键中 JSON Object

[英]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.本质上,我想做的是更改密钥。

Why don't you just use a compose action in the logic app like in this example:为什么不像本例那样在逻辑应用程序中使用组合操作: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure 逻辑应用程序 - 如何迭代 json? - Azure logic app - how to iterate over json? 如何删除 azure 逻辑应用程序中的 last last last json 记录? - how to Remove last last json record in azure logic app? Azure 逻辑应用触发 REST API Azure API 管理 - Azure Logic App trigger a REST API in Azure API Manegement 无法使用 Azure 发布管道通过 Azure CLI 命令更新逻辑应用程序 JSON 文件 - Logic App JSON file could not be update through Azure CLI Command using Azure Release Pipeline 如何将 JSON 从 Azure 应用程序配置解析为强类型 object - How to parse JSON from Azure App Configuration into an strongly typed object Azure Logic App - 如何调用Azure AD认证的API - Azure Logic App - how to call an API authenticated by Azure AD 从 base64 编码字符串解析 Azure 逻辑应用程序中的 JSON 数组,以在 For_each 中使用 - Parsing JSON array in Azure Logic App from base64 encoded string to use in For_each Azure 逻辑应用程序中大小为 20+MB 的块逗号分隔平面文件并转换为 Json - ActionResultsSizeLimitExceeded - Chunk comma delimeted flatfile of size 20+MB in Azure logic app and convert to Json - ActionResultsSizeLimitExceeded 如何使用 BigQuery 提取 JSON 对象中的所有键 - How to extract all the keys in a JSON object with BigQuery Azure 逻辑应用程序如何将多个 JSON 文件合并到 Blob 存储 - Azure Logic Apps how to combine multiple JSON files to Blob storage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM