建立 Azure File Storage 基礎連線使用 Flow Service API
基礎連線代表來源和Adobe Experience Platform之間已驗證的連線。
本教學課程將逐步引導您完成建立基礎連線的步驟。 Azure File Storage 使用 Flow Service API.
快速入門
本指南需要您實際瞭解下列Adobe Experience 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檔案儲存體檔案.
使用平台API
如需如何成功呼叫Platform API的詳細資訊,請參閱以下指南中的 Platform API快速入門.
建立基礎連線
基礎連線會保留您的來源和平台之間的資訊,包括來源的驗證認證、連線的目前狀態,以及您唯一的基本連線ID。 基本連線ID可讓您瀏覽和瀏覽來源內的檔案,並識別您要擷取的特定專案,包括其資料型別和格式的資訊。
POST若要建立基本連線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,瞭解如何 使用Flow Service API探索協力廠商雲端儲存空間.
recommendation-more-help
337b99bb-92fb-42ae-b6b7-c7042161d089