Experience Platform API 사용
Experience Platform API를 성공적으로 호출하는 방법에 대한 자세한 내용은 Experience Platform API 시작에 대한 안내서를 참조하십시오.
기본 연결 만들기
기본 연결은 소스의 인증 자격 증명, 연결의 현재 상태 및 고유한 기본 연결 ID를 포함하여 소스와 Experience Platform 간에 정보를 유지합니다. 기본 연결 ID를 사용하면 소스 내에서 파일을 탐색 및 탐색하고 데이터 유형 및 형식에 대한 정보를 포함하여 수집할 특정 항목을 식별할 수 있습니다.
기본 연결 ID를 만들려면 Microsoft SQL Server 인증 자격 증명을 요청 매개 변수의 일부로 제공하는 동안 /connections
끝점에 대한 POST 요청을 만듭니다.
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=mssqlserver.database.windows.net;Initial Catalog=mssqlserver_e2e_db;Integrated Security=False;User ID=mssqluser;Password=mssqlpassword"
}
},
"connectionSpec": {
"id": "1f372ff9-38a4-4492-96f5-b9a4e4bd00ec",
"version": "1.0"
}'
속성 | 설명 |
---|---|
auth.params.connectionString | Microsoft SQL Server 계정과 연결된 연결 문자열입니다. 자세한 내용은 필요한 자격 증명 수집 섹션을 참조하십시오. |
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\""
}