여러 데이터 소스 연결
이 엔드포인트를 호출하여 여러 데이터 소스를 앱에 연결합니다. 앱당 연결된 데이터 소스의 총 한도는 100 입니다. 이 엔드포인트로 연결된 데이터 소스에는 ReadAndWrite
기본 규칙이 있습니다.
경로 매개변수
-
Atlas 프로젝트/그룹 ID입니다.
-
애플리케이션의 ObjectID입니다. App Services API 프로젝트 및 애플리케이션 ID 섹션은 이 값을 찾는 방법을 보여줍니다.
POST /groups/{groupId}/apps/{appId}/multi_data_sources
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/multi_data_sources' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '[{"name":"first-cluster","type":"mongodb-atlas","config":{"clusterName":"Cluster0"}}]'
요청 예시
[
{
"name": "first-cluster",
"type": "mongodb-atlas",
"config": {
"clusterName": "Cluster0"
}
}
]
응답 예시(400)
FailedLinkingDataSourceResponse
{
"failedClusterNames": [
"first-cluster"
]
}
{
"error": "string",
"error_code": "string"
}