Method: projects.databases.importDocuments

문서를 Google Cloud Firestore로 가져옵니다. 이름이 같은 기존 문서를 덮어씁니다. 가져오기는 백그라운드에서 실행되며 생성된 작업 리소스를 통해 진행 상황을 모니터링하고 관리할 수 있습니다. database.importDocuments 작업이 취소되면 이미 데이터 하위 집합을 Cloud Firestore로 가져왔을 수 있습니다.

HTTP 요청

POST https://firestore.googleapis.com/v1beta1/{name=projects/*/databases/*}:importDocuments

URL은 gRPC 트랜스코딩 구문을 사용합니다.

경로 매개변수

매개변수
name

string

가져올 데이터베이스입니다. projects/{projectId}/databases/{databaseId} 형식이어야 합니다.

요청 본문

요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.

JSON 표현
{
  "collectionIds": [
    string
  ],
  "inputUriPrefix": string
}
입력란
collectionIds[]

string

가져올 컬렉션 ID입니다. 지정되지 않음은 가져오기에 포함된 모든 컬렉션을 의미합니다.

inputUriPrefix

string

내보낸 파일의 위치입니다. 성공적으로 완료된 내보내기의 ExportDocumentsResponse의 outputUriPrefix와 일치해야 합니다. google.firestore.admin.v1beta1.ExportDocumentsResponse.output_uri_prefix를 참조하세요.

응답 본문

성공한 경우 응답 본문에 Operation의 인스턴스가 포함됩니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

  • https://www.googleapis.com/auth/datastore
  • https://www.googleapis.com/auth/cloud-platform

자세한 내용은 인증 개요를 참조하세요.