Docs Menu
Docs Home
/ /
Atlas CLI
/ /

atlas dbusers update

์ด ํŽ˜์ด์ง€์˜ ๋‚ด์šฉ

  • ๊ตฌ๋ฌธ
  • arguments
  • ์˜ต์…˜
  • ์ƒ์†๋œ ์˜ต์…˜
  • ์ถœ๋ ฅ
  • ์˜ˆ์‹œ

ํ”„๋กœ์ ํŠธ์—์„œ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์‚ฌ์šฉ์ž์˜ ์„ธ๋ถ€ ์ •๋ณด๋ฅผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.

์ด ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ํ”„๋กœ์ ํŠธ ์†Œ์œ ์ž ์—ญํ• ์ด ์žˆ๋Š” ์‚ฌ์šฉ์ž ๊ณ„์ • ๋˜๋Š” API ํ‚ค๋กœ ์ธ์ฆํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

๋ช…๋ น ๊ตฌ๋ฌธ
atlas dbusers update <username> [options]
์ด๋ฆ„
์œ ํ˜•
ํ•„์ˆ˜ ์‚ฌํ•ญ
์„ค๋ช…

์‚ฌ์šฉ์ž ์ด๋ฆ„

๋ฌธ์ž์—ด

true

MongoDB database์—์„œ ์—…๋ฐ์ดํŠธํ•  ์‚ฌ์šฉ์ž ์ด๋ฆ„์ž…๋‹ˆ๋‹ค.

์ด๋ฆ„
์œ ํ˜•
ํ•„์ˆ˜ ์‚ฌํ•ญ
์„ค๋ช…

--authDB

๋ฌธ์ž์—ด

๊ฑฐ์ง“

์ธ์ฆ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ด๋ฆ„์ž…๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ Amazon Web Services IAM, x.509 ๋˜๋Š” LDAP๋กœ ์ธ์ฆํ•˜๋Š” ๊ฒฝ์šฐ ์ด ๊ฐ’์€ $external์ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ SCRAM-SHA๋กœ ์ธ์ฆํ•˜๋Š” ๊ฒฝ์šฐ ์ด ๊ฐ’์€ admin์ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

-h, --help

๊ฑฐ์ง“

์—…๋ฐ์ดํŠธ ๋„์›€๋ง

-o, --output

๋ฌธ์ž์—ด

๊ฑฐ์ง“

์ถœ๋ ฅ ํ˜•์‹์ž…๋‹ˆ๋‹ค. ์œ ํšจํ•œ ๊ฐ’์€ json, json-path, go-ํ…œํ”Œ๋ฆฟ ๋˜๋Š” go-ํ…œํ”Œ๋ฆฟ ํŒŒ์ผ์ž…๋‹ˆ๋‹ค. ์ „์ฒด ์ถœ๋ ฅ์„ ๋ณด๋ ค๋ฉด -o json ์˜ต์…˜์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

-p, --password

๋ฌธ์ž์—ด

๊ฑฐ์ง“

๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์‚ฌ์šฉ์ž์˜ ๋น„๋ฐ€๋ฒˆํ˜ธ์ž…๋‹ˆ๋‹ค.

--projectId

๋ฌธ์ž์—ด

๊ฑฐ์ง“

์‚ฌ์šฉํ•  ํ”„๋กœ์ ํŠธ๋ฅผ ์‹๋ณ„ํ•˜๋Š” 16์ง„์ˆ˜ ๋ฌธ์ž์—ด์ž…๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์€ ๊ตฌ์„ฑ ํŒŒ์ผ ๋˜๋Š” ํ™˜๊ฒฝ ๋ณ€์ˆ˜์˜ ์„ค์ •์„ ์žฌ์ •์˜ํ•ฉ๋‹ˆ๋‹ค.

--role

strings

๊ฑฐ์ง“

์‚ฌ์šฉ์ž์˜ ์—ญํ•  ๋ฐ ์—ญํ• ์ด ์ ์šฉ๋˜๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋˜๋Š” collection์ž…๋‹ˆ๋‹ค. ์ด ํ”Œ๋ž˜๊ทธ๋ฅผ ์ „๋‹ฌํ•˜๋ฉด ๊ธฐ์กด ๋ฐ์ดํ„ฐ๊ฐ€ ๋Œ€์ฒด๋ฉ๋‹ˆ๋‹ค.

--scope

strings

๊ฑฐ์ง“

์ด ์‚ฌ์šฉ์ž๊ฐ€ ์•ก์„ธ์Šค ์žˆ๋Š” ํด๋Ÿฌ์Šคํ„ฐ์˜ ๋ฐฐ์—ด์ž…๋‹ˆ๋‹ค. ์ด ํ”Œ๋ž˜๊ทธ๋ฅผ ์ „๋‹ฌํ•˜๋ฉด ๊ธฐ์กด ๋ฐ์ดํ„ฐ๊ฐ€ ๋Œ€์ฒด๋ฉ๋‹ˆ๋‹ค.

-u, --username

๋ฌธ์ž์—ด

๊ฑฐ์ง“

MongoDB์— ์ธ์ฆํ•˜๊ธฐ ์œ„ํ•œ ์‚ฌ์šฉ์ž ์ด๋ฆ„์ž…๋‹ˆ๋‹ค.

--x509Type

๋ฌธ์ž์—ด

๊ฑฐ์ง“

์ง€์ •๋œ ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ์ธ์ฆํ•˜๊ธฐ ์œ„ํ•œ X.509 ๋ฉ”์„œ๋“œ์ž…๋‹ˆ๋‹ค. ์œ ํšจํ•œ ๊ฐ’์€ NONE, MANAGED ๋ฐ CUSTOMER์ž…๋‹ˆ๋‹ค. ์ด ๊ฐ’์„ MANAGED(๊ด€๋ฆฌ๋จ)๋กœ ์„ค์ •ํ•˜๋ฉด ์‚ฌ์šฉ์ž๋Š” Atlas ๊ด€๋ฆฌํ˜• X.509 ์ธ์ฆ์„œ๋กœ ์ธ์ฆํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ฐ’์„ CUSTOMER๋กœ ์„ค์ •ํ•˜๋ฉด ์‚ฌ์šฉ์ž๋Š” ์ž์ฒด ๊ด€๋ฆฌํ˜• X.509 ์ธ์ฆ์„œ๋กœ ์ธ์ฆํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ฐ’์˜ ๊ธฐ๋ณธ๊ฐ’์€ 'NONE'์ž…๋‹ˆ๋‹ค.

์ด๋ฆ„
์œ ํ˜•
ํ•„์ˆ˜ ์‚ฌํ•ญ
์„ค๋ช…

-P, --profile

๋ฌธ์ž์—ด

๊ฑฐ์ง“

๊ตฌ์„ฑ ํŒŒ์ผ์—์„œ ์‚ฌ์šฉํ•  ํ”„๋กœํ•„์˜ ์ด๋ฆ„์ž…๋‹ˆ๋‹ค. Atlas CLI์˜ ํ”„๋กœํ•„์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๋ ค๋ฉด https://dochub.mongodb.org/core/atlas-cli-save-connection-settings๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

๋ช…๋ น์ด ์„ฑ๊ณตํ•˜๋ฉด Atlas CLI๋Š” ๋‹ค์Œ ์ƒ˜ํ”Œ๊ณผ ์œ ์‚ฌํ•œ ์ถœ๋ ฅ์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. ๊ด„ํ˜ธ ์•ˆ์˜ ๊ฐ’์€ ์‚ฌ์šฉ์ž์˜ ๊ฐ’์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค.

Successfully updated database user '<Username>'.
# Update roles for a database user named myUser for the project with the ID 5e2211c17a3e5a48f5497de3:
atlas dbuser update myUser --role readWriteAnyDatabase --projectId 5e2211c17a3e5a48f5497de3
# Update scopes for a database user named myUser for the project with the ID 5e2211c17a3e5a48f5497de3:
atlas dbuser update myUser --scope resourceName:resourceType --projectId 5e2211c17a3e5a48f5497de3

๋Œ์•„๊ฐ€๊ธฐ

๋ชฉ๋ก