Ops

Sentivex CTI API

POST/api/ops/login

Ops 로그인

Request body

passwordstringrequired

Responses

200 OK400 Error401 Error410 Error429 Error500 Error
object
cURL
curl -X POST https://scti.in-bridge.com/api/ops/login \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"password":"string"}'
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/login", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${token}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "password": "string"
  })
});
const data = await res.json();
Response 200
{}
POST/api/ops/logout

Ops 로그아웃

Responses

200 OK400 Error401 Error410 Error429 Error500 Error
object
cURL
curl -X POST https://scti.in-bridge.com/api/ops/logout \
  -H "Authorization: Bearer $TOKEN"
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/logout", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${token}`
  }
});
const data = await res.json();
Response 200
{}
GET/api/ops/me

현재 ops 세션 확인

현재 구현은 /ops 화면 호환을 위한 public-read 조회다. 작업 실행/변경 POST만 ops_session 인증을 요구한다.

Responses

200 OK400 Error404 Error500 Error
object
cURL
curl -X GET https://scti.in-bridge.com/api/ops/me
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/me", {
  method: "GET"
});
const data = await res.json();
Response 200
{}
GET/api/ops/overview

운영 개요

현재 구현은 /ops 화면 호환을 위한 public-read 조회다. 작업 실행/변경 POST만 ops_session 인증을 요구한다.

Responses

200 OK400 Error404 Error500 Error
object
cURL
curl -X GET https://scti.in-bridge.com/api/ops/overview
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/overview", {
  method: "GET"
});
const data = await res.json();
Response 200
{}
GET/api/ops/errors

운영 에러 목록

현재 구현은 /ops 화면 호환을 위한 public-read 조회다. 작업 실행/변경 POST만 ops_session 인증을 요구한다.

Responses

200 OK400 Error404 Error500 Error
object
cURL
curl -X GET https://scti.in-bridge.com/api/ops/errors
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/errors", {
  method: "GET"
});
const data = await res.json();
Response 200
{}
GET/api/ops/freshness

데이터 freshness

현재 구현은 /ops 화면 호환을 위한 public-read 조회다. 작업 실행/변경 POST만 ops_session 인증을 요구한다.

Responses

200 OK400 Error404 Error500 Error
object
cURL
curl -X GET https://scti.in-bridge.com/api/ops/freshness
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/freshness", {
  method: "GET"
});
const data = await res.json();
Response 200
{}
GET/api/ops/scheduler

스케줄러 상태

현재 구현은 /ops 화면 호환을 위한 public-read 조회다. 작업 실행/변경 POST만 ops_session 인증을 요구한다.

Responses

200 OK400 Error404 Error500 Error
object
cURL
curl -X GET https://scti.in-bridge.com/api/ops/scheduler
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/scheduler", {
  method: "GET"
});
const data = await res.json();
Response 200
{}
GET/api/ops/sync

동기화 상태

현재 구현은 /ops 화면 호환을 위한 public-read 조회다. 작업 실행/변경 POST만 ops_session 인증을 요구한다.

Responses

200 OK400 Error404 Error500 Error
object
cURL
curl -X GET https://scti.in-bridge.com/api/ops/sync
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/sync", {
  method: "GET"
});
const data = await res.json();
Response 200
{}
GET/api/ops/sync-targets

동기화 target 목록

현재 구현은 /ops 화면 호환을 위한 public-read 조회다. 작업 실행/변경 POST만 ops_session 인증을 요구한다.

Responses

200 OK400 Error404 Error500 Error
object
cURL
curl -X GET https://scti.in-bridge.com/api/ops/sync-targets
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/sync-targets", {
  method: "GET"
});
const data = await res.json();
Response 200
{}
POST/api/ops/sync-targets

동기화 target 저장/테스트

Request body

object

Responses

200 OK400 Error401 Error410 Error429 Error500 Error
object
cURL
curl -X POST https://scti.in-bridge.com/api/ops/sync-targets \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/sync-targets", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${token}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({})
});
const data = await res.json();
Response 200
{}
POST/api/ops/control

운영 잡 제어

Request body

jobenumrequired
ops-materializeverify-hourlysync-to-k8s-dailyti-enrich-workerti-edr-extract-worker

PM2 whitelist job name 또는 ops-materialize. ops-materialize는 수집/싱크를 새로 돌리지 않고 /ops DB snapshot만 갱신한다.

Responses

200 OK400 Error401 Error410 Error429 Error500 Error
object
cURL
curl -X POST https://scti.in-bridge.com/api/ops/control \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"job":"ops-materialize"}'
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/control", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${token}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "job": "ops-materialize"
  })
});
const data = await res.json();
Response 200
{}
GET/api/ops/logs/{job}

화이트리스트 job 로그 tail

현재 구현은 /ops 화면 호환을 위한 public-read 조회다. 작업 실행/변경 POST만 ops_session 인증을 요구한다.

Path parameters

jobstringrequired

Query parameters

typeenum
outerror
linesinteger

Responses

200 OK404 Error500 Error
object
cURL
curl -X GET https://scti.in-bridge.com/api/ops/logs/{job}?type=out&lines=0
JavaScript
const res = await fetch("https://scti.in-bridge.com/api/ops/logs/{job}", {
  method: "GET"
});
const data = await res.json();
Response 200
{}