创建 Azure Table Storage 基本连接使用 Flow Service API
NOTE
此 Azure Table Storage 连接器处于测试阶段。 请参阅 源概述 有关使用Beta标记的连接器的更多信息。
基本连接表示源和Adobe Experience Platform之间的已验证连接。
本教程将指导您完成创建基本连接的步骤。 Azure Table Storage 使用 Flow Service API.
快速入门
本指南要求您对 Adobe Experience Platform 的以下组件有一定了解:
以下部分提供成功连接时需要了解的其他信息 Azure Table Storage 使用 Flow Service API。
收集所需的凭据
为了 Flow Service 以连接 Azure Table Storage中,您必须提供以下连接属性的值:
凭据
描述
connectionString
用于连接到 Azure Table Storage 实例。 的连接字符串模式 Azure Table Storage 为:
DefaultEndpointsProtocol=https;AccountName={ACCOUNT_NAME};AccountKey={ACCOUNT_KEY}
.connectionSpec.id
连接规范返回源的连接器属性,包括与创建基础连接和源连接相关的验证规范。 的连接规范ID Azure Table Storage 是
ecde33f2-c56f-46cc-bdea-ad151c16cd69
.有关获取连接字符串的详细信息,请参阅 此 Azure Table Storage 文档.
使用平台API
有关如何成功调用Platform API的信息,请参阅 Platform API快速入门.
创建基本连接
基本连接会保留您的源和平台之间的信息,包括源的身份验证凭据、连接的当前状态以及唯一的基本连接ID。 基本连接ID允许您浏览和浏览源中的文件,并标识要摄取的特定项目,包括有关其数据类型和格式的信息。
POST要创建基本连接ID,请向 /connections
端点,同时提供 Azure Table Storage 作为请求参数一部分的身份验证凭据。
API格式
POST /connections
请求
以下请求为创建基本连接 Azure Table Storage:
curl -X POST \
'https://platform.adobe.io/data/foundation/flowservice/connections' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Azure Table Storage connection",
"description": "Azure Table Storage connection",
"auth": {
"specName": "Connection String Based Authentication",
"params": {
"connectionString": "DefaultEndpointsProtocol=https;AccountName={ACCOUNT_NAME};AccountKey={ACCOUNT_KEY}"
}
},
"connectionSpec": {
"id": "ecde33f2-c56f-46cc-bdea-ad151c16cd69",
"version": "1.0"
}
}'
参数
描述
auth.params.connectionString
用于连接到 Azure Table Storage 实例。 的连接字符串模式 Azure Table Storage 为:
DefaultEndpointsProtocol=https;AccountName={ACCOUNT_NAME};AccountKey={ACCOUNT_KEY}
.connectionSpec.id
此 Azure Table Storage 连接规范ID:
ecde33f2-c56f-46cc-bdea-ad151c16cd69
.响应
成功的响应会返回新创建连接的详细信息,包括其唯一标识符(id
)。 在下个教程中,需要此ID才能浏览您的数据。
{
"id": "82abddb3-d59a-436c-abdd-b3d59a436c21",
"etag": "\"7d00fde3-0000-0200-0000-5e84d9430000\""
}
后续步骤
在本教程之后,您已创建一个 Azure Table Storage 基本连接使用 Flow Service API。 您可以在下列教程中使用此基本连接ID:
recommendation-more-help
337b99bb-92fb-42ae-b6b7-c7042161d089