基連接表示源和Adobe Experience Platform之間經過驗證的連接。
本教程將指導您完成建立基本連接的步驟 Microsoft SQL Server 使用 Flow Service API。
本指南要求對Adobe Experience Platform的下列組成部分有工作上的理解:
以下各節提供了要成功連接到所需的其他資訊 Microsoft SQL Server 使用 Flow Service API。
為了連接到 Microsoft SQL Server,必須提供以下連接屬性:
憑據 | 說明 |
---|---|
connectionString |
與您的 Microsoft SQL Server 帳戶。 的 Microsoft SQL Server 連接字串模式為: Data Source={SERVER_NAME}\\<{INSTANCE_NAME} if using named instance>;Initial Catalog={DATABASE};Integrated Security=False;User ID={USERNAME};Password={PASSWORD}; 。 |
connectionSpec.id |
連接規範返回源的連接器屬性,包括與建立基連接和源連接相關的驗證規範。 連接規範ID Microsoft SQL Server 是 1f372ff9-38a4-4492-96f5-b9a4e4bd00ec 。 |
有關獲取連接字串的詳細資訊,請參閱 Microsoft SQL Server 文檔。
有關如何成功調用平台API的資訊,請參見上的指南 平台API入門。
基本連接將保留源和平台之間的資訊,包括源的驗證憑據、連接的當前狀態和唯一的基本連接ID。 基本連接ID允許您從源中瀏覽和導航檔案,並標識要攝取的特定項目,包括有關其資料類型和格式的資訊。
要建立基本連接ID,請向 /connections
提供端點 Microsoft SQL Server 身份驗證憑據作為請求參數的一部分。
API格式
POST /connections
要求
以下請求為 Microsoft SQL Server:
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": "Base connection for sql-server",
"description": "Base connection for sql-server",
"auth": {
"specName": "Connection String Based Authentication",
"params": {
"connectionString": "Data Source={SERVER_NAME}\\<{INSTANCE_NAME} if using named instance>;Initial Catalog={DATABASE};Integrated Security=False;User ID={USERNAME};Password={PASSWORD};"
}
},
"connectionSpec": {
"id": "1f372ff9-38a4-4492-96f5-b9a4e4bd00ec",
"version": "1.0"
}'
屬性 | 說明 |
---|---|
auth.params.connectionString |
與您的 Microsoft SQL Server 帳戶。 的 Microsoft SQL Server 連接字串模式為: Data Source={SERVER_NAME}\\<{INSTANCE_NAME} if using named instance>;Initial Catalog={DATABASE};Integrated Security=False;User ID={USERNAME};Password={PASSWORD}; 。 |
connectionSpec.id |
的 Microsoft SQL Server 連接規範ID為: 1f372ff9-38a4-4492-96f5-b9a4e4bd00ec 。 |
回應
成功的響應返回新建立的連接的詳細資訊,包括其唯一標識符(id
)。 在下一教程中瀏覽資料庫時需要此ID。
{
"id": "0b8224e4-0de8-4293-8224-e40de80293c6",
"etag": "\"5802c519-0000-0200-0000-5e4d89520000\""
}
按照本教程,您建立了 Microsoft SQL Server 基本連接使用 Flow Service API。 您可以在以下教程中使用此基本連接ID: