创建 Azure File Storage 基本连接使用 Flow Service API

基本连接表示源与Adobe Experience Platform之间经过验证的连接。

本教程将指导您完成为 Azure File Storage 使用 Flow Service API.

快速入门

本指南要求您对Adobe Experience Platform的以下组件有一定的了解:

  • : Experience Platform 允许从各种源摄取数据,同时让您能够使用来构建、标记和增强传入数据 Platform 服务。
  • 沙箱: Experience Platform 提供分区单个沙箱的虚拟沙箱 Platform 实例迁移到单独的虚拟环境中,以帮助开发和改进数字体验应用程序。

以下部分提供了成功连接到所需了解的其他信息 Azure File Storage 使用 Flow Service API。

收集所需的凭据

为 Flow Service 连接 Azure File Storage,则必须为以下连接属性提供值:

凭据 描述
host 的端点 Azure File Storag您正在访问的实例。
userId 具有足够访问权限的用户 Azure File Storage 端点。
password 您的密码 Azure File Storage 实例
connectionSpec.id 连接规范返回源的连接器属性,包括与创建基连接和源连接相关的验证规范。 的连接规范ID Azure File Storage 为: be5ec48c-5b78-49d5-b8fa-7c89ec4569b8.

有关入门的更多信息,请参阅 此Azure文件存储文档.

使用Platform API

有关如何成功调用Platform API的信息,请参阅 Platform API快速入门.

创建基本连接

基本连接保留了源和平台之间的信息,包括源的身份验证凭据、连接的当前状态和唯一基本连接ID。 基本连接ID允许您从源中浏览和导航文件,并标识要摄取的特定项目,包括有关其数据类型和格式的信息。

要创建基本连接ID,请向 /connections 提供 Azure File Storage 身份验证凭据作为请求参数的一部分。

API格式

POST /connections

请求

以下请求会为 Azure File 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 File Storage connection",
        "description": "An Azure File Storage test connection",
        "auth": {
            "specName": "Basic Authentication",
            "params": {
                    "host": "{HOST}",
                    "userId": "{USER_ID}",
                    "password": "{PASSWORD}"
                }
        },
        "connectionSpec": {
            "id": "be5ec48c-5b78-49d5-b8fa-7c89ec4569b8",
            "version": "1.0"
        }
    }'
属性 描述
auth.params.host 的端点 Azure File Storage 您正在访问的实例……
auth.params.userId 具有足够访问权限的用户 Azure File Storage 端点。
auth.params.password 的 Azure File Storage 访问密钥。
connectionSpec.id 的 Azure File Storage 连接规范ID: be5ec48c-5b78-49d5-b8fa-7c89ec4569b8.

响应

成功的响应会返回新创建的基本连接的详细信息,包括其唯一标识符(id)。 在下一步中需要此ID才能创建源连接。

{
    "id": "f9377f50-607a-4818-b77f-50607a181860",
    "etag": "\"2f0276fa-0000-0200-0000-5eab3abb0000\""
}

后续步骤

通过阅读本教程,您已创建 Azure File Storage 使用 Flow Service API,并已获取连接的唯一ID值。 在下一个教程中,您可以使用此ID来了解如何 使用流量服务API探索第三方云存储.

在此页面上