将MySQL连接到Amazon Web Services上的Experience Platform

可用性
本节适用于在Amazon Web Services (AWS)上运行的Experience Platform的实施。 在AWS上运行的Experience Platform当前仅对有限数量的客户可用。 要了解有关支持的Experience Platform基础架构的更多信息,请参阅Experience Platform multi-cloud概述。

有关如何将您的MySQL帐户连接到AWS上的Experience Platform的信息,请阅读以下步骤。

在AWS上的Experience Platform上为MySQL创建基本连接

API格式

POST /connections

请求

以下请求为MySQL创建基本连接以连接到AWS上的Experience Platform。

查看请求示例
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": "MySQL on Experience Platform AWS",
      "description": "MySQL on Experience Platform AWS",
      "auth": {
          "specName": "Basic Authentication",
          "params": {
              "server": "localhost",
              "port": "443",
              "database": "mysql-acme",
              "username": "acme",
              "password": "xxxx",
              "sslMode": "false"
          }
      },
      "connectionSpec": {
          "id": "26d738e0-8963-47ea-aadf-c60de735468a",
          "version": "1.0"
      }
  }'
属性描述
auth.params.serverMySQL数据库的名称或IP。
auth.params.database数据库的名称。
auth.params.username与数据库对应的用户名。
auth.params.password与数据库对应的密码。
auth.params.sslMode一个布尔值,它控制是否强制使用SSL,具体取决于您的服务器支持。 此配置默认为false。
connectionSpec.idMySQL连接规范ID为: 26d738e0-8963-47ea-aadf-c60de735468a。

响应

成功的响应返回新创建的基本连接的详细信息,包括其唯一标识符(id)。

查看响应示例
{
    "id": "f847950c-1c12-4568-a550-d5312b16fdb8",
    "etag": "\"0c0099f4-0000-0200-0000-67da91710000\""
}

为MySQL数据创建数据流

现在您已成功连接MySQL数据库,您现在可以创建数据流并将数据库中的数据摄取到Experience Platform。

已自动翻译
使用语言选择器查看此页面的英文版本。
翻译有帮助吗?

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.