將MySQL連線至Amazon Web Services上的Experience Platform

可用性
本節適用於在Amazon Web Services (AWS)上執行的Experience Platform實作。 目前有限數量的客戶可使用在AWS上執行的Experience Platform 。 若要進一步瞭解支援的Experience Platform基礎結構,請參閱Experience Platform多雲端總覽。

請閱讀下列步驟,以瞭解如何在AWS上將您的MySQL帳戶連結至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連線規格識別碼為: 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.