AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.

listStores

listStores 명령은 연합 데이터베이스 인스턴스 스토리지 구성에 있는 모든 연합 데이터베이스 인스턴스 저장소를 나열합니다.

db.runCommand({ listStores: 1 })
Parameter
유형
설명
필수 사항입니다.

listStores

int

모든 연합 데이터베이스 인스턴스 저장소가 나열됨을 나타냅니다.
값은 1이어야 합니다.

네

명령이 성공하면 다음과 같은 출력을 반환합니다.

{ "ok": 1, "cursor": { "firstBatch": [ { "name": "<store-name>", "provider": "s3", "region": "<region-name>", "bucket": "<bucket-name>", "delimiter": "<delimiter>", "prefix": "<prefix>" }, { "name": "<store-name>", "provider": "atlas", "clusterName": "<cluster-name>", "projectId": "<project-id>" }, ... ], "id": NumberLong(0), "ns": "<database>.$cmd.listStores" }}

다음 예에서는 listStores 명령을 사용하여 연합 데이터베이스 인스턴스 저장소 구성에 있는 모든 연합 데이터베이스 인스턴스 저장소를 나열합니다.

use sampledb.runCommand({ listStores: 1 })

이전 명령은 다음을 인쇄합니다:

{ "ok": 1, "cursor": { "firstBatch": [ { "name": "s3store", "provider": "s3", "region": "us-east-1", "bucket": "my-bucket", "delimiter": "/", "prefix": "" }, { "name" : "atlasStore", "provider" : "atlas", "clusterName" : "myTestCluster", "projectId" : "<project-id>" } ], "id": NumberLong(0), "ns": "sample.$cmd.listStores" }}
이 페이지 평가하기

이 페이지의 내용