Docs Menu
Docs Home
/
MongoDB Ops Manager
/ / /

์‹คํŒจํ•œ ๋กœ๊ทธ collection ์ž‘์—… ์žฌ์‹œ๋„

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

  • Resource
  • ์š”์ฒญ ๊ฒฝ๋กœ ๋งค๊ฐœ๋ณ€์ˆ˜
  • ์š”์ฒญ ์ฟผ๋ฆฌ ๋งค๊ฐœ๋ณ€์ˆ˜
  • ์š”์ฒญ ๋ณธ๋ฌธ ๋งค๊ฐœ๋ณ€์ˆ˜
  • ์‘๋‹ต
  • ์š”์ฒญ ์˜ˆ์‹œ
  • ์‘๋‹ต ์˜ˆ์‹œ
  • ์‘๋‹ต ํ—ค๋”
  • ์‘๋‹ต ๋ณธ๋ฌธ

์ฐธ๊ณ 

๊ทธ๋ฃน๊ณผ ํ”„๋กœ์ ํŠธ๋Š” ๋™์˜์–ด์ž…๋‹ˆ๋‹ค. {PROJECT-ID}๋Š” ํ”„๋กœ์ ํŠธ ID์™€ ๋™์ผํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ์กด ๊ทธ๋ฃน์˜ ๊ฒฝ์šฐ, ๊ทธ๋ฃน/ํ”„๋กœ์ ํŠธ ID๋Š” ๋™์ผํ•˜๊ฒŒ ์œ ์ง€๋ฉ๋‹ˆ๋‹ค. ์ด ํŽ˜์ด์ง€์—์„œ๋Š” ์„ค๋ช…์— ๋Œ€ํ•ด ์–˜๊ธฐํ•  ๋•Œ ๋”์šฑ ์นœ์ˆ™ํ•œ ์šฉ์–ด ๊ทธ๋ฃน์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์—”๋“œํฌ์ธํŠธ๋Š” ๋ฌธ์„œ์— ๋ช…์‹œ๋œ ๋Œ€๋กœ ์œ ์ง€๋ฉ๋‹ˆ๋‹ค.

collection ์ž‘์—…์„ ์ƒ์„ฑํ•˜๋ฉด Ops Manager๋Š” ๋ฐฑ๊ทธ๋ผ์šด๋“œ ์ž‘์—…์„ ์‹œ์ž‘ํ•˜์—ฌ ์ง€์ •๋œ Ops Manager ๋ฐฐํฌ์—์„œ ๋กœ๊ทธ๋ฅผ ๋‹ค์šด๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค. ์ด ์—”๋“œํฌ์ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์‹คํŒจํ•œ ๋‹จ์ผ ๋กœ๊ทธ collection ์ž‘์—…์„ ๋‹ค์‹œ ์‹œ๋„ํ•ฉ๋‹ˆ๋‹ค.

๋กœ๊ทธ ์ปฌ๋ ‰์…˜ ์ž‘์—… ์ด ์‹คํŒจํ–ˆ๋Š”์ง€ ํ™•์ธํ•˜๋ ค๋ฉด 1๊ฐœ์˜ ํ”„๋กœ์ ํŠธ์— ๋Œ€ํ•ด ๋ชจ๋“  ๋กœ๊ทธ ์ˆ˜์ง‘ ์ž‘์—… ๊ฐ€์ ธ์˜ค๊ธฐ ๋ฐ 1๊ฐœ์˜ ๋กœ๊ทธ ์ˆ˜์ง‘ ์ž‘์—… ๊ฐ€์ ธ์˜ค๊ธฐ ์—”๋“œํฌ์ธํŠธ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. status ์‘๋‹ต ์š”์†Œ๋Š” ์‹คํŒจํ•œ ๋กœ๊ทธ ์ปฌ๋ ‰์…˜ ์ž‘์—…์— ๋Œ€ํ•ด FAILURE ๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.

๊ธฐ๋ณธ URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0

PUT /groups/{GROUP-ID}/logCollectionJobs/{JOB-ID}/retry
์ด๋ฆ„
์œ ํ˜•
ํ•„์š”์„ฑ
์„ค๋ช…

๊ทธ๋ฃน ID

๋ฌธ์ž์—ด

ํ•„์ˆ˜ ์‚ฌํ•ญ

๋กœ๊ทธ collection ์š”์ฒญ ์ž‘์—…์„ ์‹๋ณ„ํ•˜๋Š” ๊ณ ์œ ํ•œ 24์ž๋ฆฌ 16์ง„์ˆ˜ ๋ฌธ์ž์—ด์ž…๋‹ˆ๋‹ค.

์ž‘์—…-ID

๋ฌธ์ž์—ด

ํ•„์ˆ˜ ์‚ฌํ•ญ

์žฌ์‹œ๋„ํ•  ๋กœ๊ทธ collection ์ž‘์—…์„ ์‹๋ณ„ํ•˜๋Š” ๊ณ ์œ ํ•œ 24์ž๋ฆฌ 16์ง„์ˆ˜ ๋ฌธ์ž์—ด์ž…๋‹ˆ๋‹ค. ํ•˜๋‚˜์˜ ํ”„๋กœ์ ํŠธ์— ๋Œ€ํ•ด ๋ชจ๋“  ๋กœ๊ทธ collection ์ž‘์—… ๊ฐ€์ ธ์˜ค๊ธฐ ์—”๋“œํฌ์ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ”„๋กœ์ ํŠธ์™€ ์—ฐ๊ฒฐ๋œ ID๋ฅผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.

๋‹ค์Œ ์ฟผ๋ฆฌ ๋งค๊ฐœ๋ณ€์ˆ˜๋Š” ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.

์ด๋ฆ„
์œ ํ˜•
ํ•„์š”์„ฑ
์„ค๋ช…
๊ธฐ๋ณธ๊ฐ’

pretty

๋ถ€์šธ

์˜ต์…˜

์‘๋‹ต ๋ณธ๋ฌธ์ด ํ”„๋ฆฌํ‹ฐํ”„๋ฆฐํŠธ ์— ์žˆ์–ด์•ผ ํ•˜๋Š”์ง€ ์—ฌ๋ถ€๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ํ”Œ๋ž˜๊ทธ์ž…๋‹ˆ๋‹ค. ํ˜•์‹.

false

envelope

๋ถ€์šธ

์˜ต์…˜

์‘๋‹ต์„ ์—”๋ฒจ๋กœํ”„์— ๋ž˜ํ•‘ํ• ์ง€ ์—ฌ๋ถ€๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ํ”Œ๋ž˜๊ทธ์ž…๋‹ˆ๋‹ค.

์ผ๋ถ€ API ํด๋ผ์ด์–ธํŠธ๋Š” HTTP ์‘๋‹ต ํ—ค๋” ๋˜๋Š” ์ƒํƒœ ์ฝ”๋“œ์— ์•ก์„ธ์Šคํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด ์ฟผ๋ฆฌ์—์„œ envelope=true๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

ํ•˜๋‚˜์˜ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ์—”๋“œํฌ์ธํŠธ์˜ ๊ฒฝ์šฐ ์‘๋‹ต ๋ณธ๋ฌธ์—๋Š” ๋‹ค์Œ์ด ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.

์ด๋ฆ„
์„ค๋ช…

status

HTTP ์‘๋‹ต ์ฝ”๋“œ

content

์˜ˆ์ƒ๋˜๋Š” ์‘๋‹ต ๋ณธ๋ฌธ

false

์ด ์—”๋“œํฌ์ธํŠธ๋Š” HTTP ์š”์ฒญ ๋ณธ๋ฌธ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์ด ์—”๋“œํฌ์ธํŠธ์—๋Š” ์‘๋‹ต ์š”์†Œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

1curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
2 --header "Accept: application/json" \
3 --header "Content-Type: application/json" \
4 --include \
5 --request PUT "https://<OpsManagerHost>:<Port>/api/public/v1.0/groups/{GROUP-ID}/logCollectionJobs/{JOB-ID}/retry?pretty=true"
HTTP/1.1 401 Unauthorized
Content-Type: application/json;charset=ISO-8859-1
Date: {dateInUnixFormat}
WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="{nonce}", algorithm=MD5, op="auth", stale=false
Content-Length: {requestLengthInBytes}
Connection: keep-alive
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json
Strict-Transport-Security: max-age=300
Date: {dateInUnixFormat}
Connection: keep-alive
Content-Length: {requestLengthInBytes}
X-MongoDB-Service-Version: gitHash={gitHash}; versionString={ApplicationVersion}

์ด ์—”๋“œํฌ์ธํŠธ๋Š” ์‘๋‹ต ๋ณธ๋ฌธ์„ ๋ฐ˜ํ™˜ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

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

ํ™•์žฅ