- ์ด ๋ฒ์ ์ ๋ฌธ์๋ ๋ณด๊ด๋์ด ๋ ์ด์ ์ง์๋์ง ์์ต๋๋ค. ์ต์ ๋ฌธ์ ๋ฅผ ์ฐธ์กฐํ์ฌ Atlas CLI ๋ฒ์ ์ ์ ๊ทธ๋ ์ด๋ ํ๋ ๋ฐฉ๋ฒ์ ํ์ต ๋ณด์ธ์.
ํ๋ก์ ํธ์ ๋ชจ๋ cluster๋ฅผ ๋ฐํํฉ๋๋ค.
์ด ๋ช ๋ น์ ์ฌ์ฉํ๋ ค๋ฉด ํ๋ก์ ํธ ์ฝ๊ธฐ ์ ์ฉ ์ญํ ์ด ์๋ ์ฌ์ฉ์ ๊ณ์ ๋๋ API ํค๋ก ์ธ์ฆํด์ผ ํฉ๋๋ค.
๊ตฌ๋ฌธ
atlas clusters list [options]
์ต์
์ด๋ฆ | ์ ํ | ํ์ ์ฌํญ | ์ค๋ช
|
|---|---|---|---|
--autoScalingMode | ๋ฌธ์์ด | ๊ฑฐ์ง | ํด๋ฌ์คํฐ ํ์ฅ๋๋ ๋ชจ๋์ ๋๋ค. ์ ํจํ ๊ฐ์ clusterWideScaling ๋๋ standaloneShardScaling์ ๋๋ค. ์ด ๊ฐ์ ๊ธฐ๋ณธ๊ฐ์ 'clusterWideScaling'์ ๋๋ค. |
-h, --help | ๊ฑฐ์ง | ๋ชฉ๋ก ๋์๋ง | |
--limit | int | ๊ฑฐ์ง | ๊ฒฐ๊ณผ ํ์ด์ง๋น ํญ๋ชฉ ์(์ต๋ 500๊ฐ) ๊ฒฐ๊ณผ๊ฐ 500๊ฐ๋ฅผ ์ด๊ณผํ๋ ๊ฒฝ์ฐ --page ์ต์ ์ ์ง์ ํ์ฌ ๊ฒฐ๊ณผ ํ์ด์ง๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค. ์ด ๊ฐ์ ๊ธฐ๋ณธ๊ฐ์ 100์ ๋๋ค. |
--omitCount | ๊ฑฐ์ง | JSON ์๋ต์ด JSON ์๋ต์ ์ด ํญ๋ชฉ ์(totalCount)๋ฅผ ๋ฐํํ๋์ง ์ฌ๋ถ๋ฅผ ๋ํ๋ด๋ ํ๋๊ทธ์ ๋๋ค. | |
-o, --output | ๋ฌธ์์ด | ๊ฑฐ์ง | ์ถ๋ ฅ ํ์์ ๋๋ค. ์ ํจํ ๊ฐ์ json, json-path, go-ํ ํ๋ฆฟ ๋๋ go-ํ ํ๋ฆฟ ํ์ผ์ ๋๋ค. ์ ์ฒด ์ถ๋ ฅ์ ๋ณด๋ ค๋ฉด -o json ์ต์ ์ ์ฌ์ฉํฉ๋๋ค. |
--page | int | ๊ฑฐ์ง | ๊ฒฐ๊ณผ ํ์ด์ง๋ฅผ ์ง์ ํ๋ ํ์ด์ง ๋ฒํธ์ ๋๋ค. ์ด ๊ฐ์ ๊ธฐ๋ณธ๊ฐ์ 1์ ๋๋ค. |
--projectId | ๋ฌธ์์ด | ๊ฑฐ์ง | ์ฌ์ฉํ ํ๋ก์ ํธ๋ฅผ ์๋ณํ๋ 16์ง์ ๋ฌธ์์ด์ ๋๋ค. ์ด ์ต์ ์ ๊ตฌ์ฑ ํ์ผ ๋๋ ํ๊ฒฝ ๋ณ์์ ์ค์ ์ ์ฌ์ ์ํฉ๋๋ค. |
--tier | ๋ฌธ์์ด | ๊ฑฐ์ง | ํด๋ฌ์คํฐ ์ ๊ฐ ๋ฐ์ดํฐ ๋ณด์ ์๋ฒ ์ ๋ํ ๊ณ์ธต. ํด๋ฌ์คํฐ ๊ณ์ธต์ ๋ํด ์์ธํ ํ์ต https://dochub.mongodb.org/core/cluster-tier-atlas๋ฅผ ์ฐธ์กฐํ์ธ์. |
์์๋ ์ต์
์ด๋ฆ | ์ ํ | ํ์ ์ฌํญ | ์ค๋ช
|
|---|---|---|---|
-P, --profile | ๋ฌธ์์ด | ๊ฑฐ์ง | ๊ตฌ์ฑ ํ์ผ ์์ ์ฌ์ฉํ ํ๋กํ์ ์ด๋ฆ์ ๋๋ค. Atlas CLI ์ ํ๋กํ์ ๋ํด ํ์ต https://dochub.mongodb.org/core/atlas-cli-save-connection-settings๋ฅผ ์ฐธ์กฐํ์ธ์. |
์ถ๋ ฅ
๋ช ๋ น์ด ์ฑ๊ณตํ๋ฉด Atlas CLI๋ ๋ค์ ์ํ๊ณผ ์ ์ฌํ ์ถ๋ ฅ์ ๋ฐํํฉ๋๋ค. ๊ดํธ ์์ ๊ฐ์ ์ฌ์ฉ์์ ๊ฐ์ ๋ํ๋ ๋๋ค.
ID NAME MDB VER STATE <Id> <Name> <MongoDBVersion> <StateName>
์์
# Return a JSON-formatted list of all clusters for the project with ID 5e2211c17a3e5a48f5497de3: atlas clusters list --projectId 5e2211c17a3e5a48f5497de3 --output json
# Return a JSON-formatted list of all clusters for the project with ID 5e2211c17a3e5a48f5497de3 and with independent shard scaling mode: atlas clusters list --projectId 5e2211c17a3e5a48f5497de3 --autoScalingMode independentShardScaling --output json