具有 Google 云存储连接的 Azure 逻辑应用程序
Azure Logic app with Google Cloud Storage connection
设置与 Google Drive 的连接非常简单,因为逻辑应用程序设计器中有它的选项。但是我找不到任何类似的连接到 Google Cloud Storage 的选项。
我是不是遗漏了什么,还是必须使用 Azure 中的函数应用程序并编写自己的代码来连接到 GCP?
"actions": {
"Create_file": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['googledrive']['connectionId']"
}
},
"method": "post",
"body": "@body('Get_blob_content_using_path')",
"path": "/datasets/default/files",
"queries": {
"folderPath": "/GcpExportTest",
"name": "@triggerBody()?['Name']",
"queryParametersSingleEncoded": true
}
}
}
}
...
"parameters": {
"$connections": {
"value": {
"googledrive": {
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'googledrive')]",
"connectionId": "[resourceId('Microsoft.Web/connections', parameters('googledrive_1_Connection_Name'))]",
"connectionName": "[parameters('googledrive_1_Connection_Name')]"
}
}
}
}
截至撰写本文时,逻辑应用程序中还没有专门用于与 Google 云服务交互的内置连接器,但是,因为逻辑应用程序非常适合任何东西 RESTful 并且Google Cloud Storage does provide REST API,您可以通过多种方式来完成您想要的事情,使用 Azure Functions 绝对是其中之一。
或者,如果您想要的工作流程比较简单,并且您更愿意像使用 Google Drive 连接器那样在 LA 设计器视图中工作,那么您也可以在逻辑应用程序中使用 HTTP 连接器:您将在您的请求中包含身份验证承载令牌,并调用针对 bucket/object.
执行所需任务(获取、列出、删除等)的特定 Google 存储端点
设置与 Google Drive 的连接非常简单,因为逻辑应用程序设计器中有它的选项。但是我找不到任何类似的连接到 Google Cloud Storage 的选项。
我是不是遗漏了什么,还是必须使用 Azure 中的函数应用程序并编写自己的代码来连接到 GCP?
"actions": {
"Create_file": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['googledrive']['connectionId']"
}
},
"method": "post",
"body": "@body('Get_blob_content_using_path')",
"path": "/datasets/default/files",
"queries": {
"folderPath": "/GcpExportTest",
"name": "@triggerBody()?['Name']",
"queryParametersSingleEncoded": true
}
}
}
}
...
"parameters": {
"$connections": {
"value": {
"googledrive": {
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'googledrive')]",
"connectionId": "[resourceId('Microsoft.Web/connections', parameters('googledrive_1_Connection_Name'))]",
"connectionName": "[parameters('googledrive_1_Connection_Name')]"
}
}
}
}
截至撰写本文时,逻辑应用程序中还没有专门用于与 Google 云服务交互的内置连接器,但是,因为逻辑应用程序非常适合任何东西 RESTful 并且Google Cloud Storage does provide REST API,您可以通过多种方式来完成您想要的事情,使用 Azure Functions 绝对是其中之一。
或者,如果您想要的工作流程比较简单,并且您更愿意像使用 Google Drive 连接器那样在 LA 设计器视图中工作,那么您也可以在逻辑应用程序中使用 HTTP 连接器:您将在您的请求中包含身份验证承载令牌,并调用针对 bucket/object.
执行所需任务(获取、列出、删除等)的特定 Google 存储端点