Tier0 기술 가이드

시작하기

적합한 제품 선택

Edge, Cloud, Enterprise 중 적합한 Tier0 에디션을 선택합니다.

각 제품의 자세한 기능은 요금 페이지에서 확인하고 필요에 맞는 에디션을 선택하세요.

  • UNS 기반 앱 만들기 — Enterprise에서 Tier0 앱을 만들고 배포합니다.
  • 설치 — 선택한 에디션의 설정 단계를 따릅니다.
시작하기

설치

Tier0 설치 옵션을 선택하고 시작합니다.

Tier0는 세 가지 edition으로 사용할 수 있습니다.

  • Edge - 단일 machine 또는 Docker에서 직접 실행합니다.
  • Cloud - 운영 인프라가 필요 없는 managed SaaS입니다.
  • Enterprise - enterprise environment를 위한 private deployment입니다.

어떤 edition을 선택해야 할지 확실하지 않다면 최적의 버전 선택을 먼저 확인하세요.

Tier0 Cloud는 설치가 필요하지 않습니다. signup 후 workspace를 만들면 됩니다.

  1. Register Tier0에서 계정을 등록합니다.
  2. 이메일로 받은 인증 코드로 확인하고 등록한 계정으로 로그인합니다.
  3. Workspace를 만들고 체험을 시작합니다.

Tier0 사용

공장 데이터 기반

Unified Namespace model: Metric, State, Action, 그리고 UNS가 공장 데이터를 저장하는 방식.

Tier0에서 공장 데이터는 UNS(Unified Namespace) 방법론을 기반으로 명확한 트리 구조의 모델로 구성되어 통합 데이터 기반을 형성합니다.

  • Broker는 model topic을 통해 데이터를 수신하고 전송합니다.
  %%{init: {"flowchart": {"defaultRenderer": "elk", "nodeSpacing": 32, "rankSpacing": 48, "diagramPadding": 8}}}%%
  flowchart TB
  source["데이터 소스 / 소비자"]
  subgraph UNS["Unified Namespace"]
      direction LR
      Model["Model<br/>path, topic, payload 정의"]
      Broker["Broker<br/>데이터 교환 처리"]
      Storage["스토리지<br/>데이터 영구 저장"]
      Model <--> Broker
      Broker --> Storage
  end
  source <-- "MQTT / API" --> UNS
  classDef broker fill:#F7FAF2,stroke:#D8E6B8,stroke-width:1px,color:#2A2A2A,stroke-dasharray:5 5
  class Broker broker
  • Model은 Metric, State, Action 세 가지 type으로 분류됩니다.
  • 데이터는 model type에 따라 서로 다른 database에 저장됩니다.
    • Action/State: JSONB (PostgreSQL)
    • Metric: real-time data(TSDB)
    %%{init: {
      "themeVariables": {
        "fontSize": "14pt"
      },
      "flowchart": {
        "defaultRenderer": "elk",
        "nodeSpacing": 40,
        "rankSpacing": 56,
        "diagramPadding": 8
      }
    }}%%
    flowchart LR
    subgraph Model["모델 타입"]
        direction TB
        metric["Metric<br/>고빈도 숫자 데이터"]
        state["State<br/>현재 사실 또는 상태"]
        action["Action<br/>명령 또는 요청 작업"]
    end
    subgraph Storage["스토리지"]
        direction TB
        tsdb["TSDB<br/>Metric 이력을 위한 시계열 저장소"]
        jsonb["JSONB<br/>State와 Action을 위한 문서 저장소"]
    end
    metric --> tsdb
    state --> jsonb
    action --> jsonb

산업 데이터는 collection frequency와 목적이 서로 다르기 때문에 Tier0는 UNS model을 세 가지 고정 type으로 구분합니다.

Type Why Example
METRIC 지속적으로 수집되고 time-series storage가 필요한 고빈도 데이터를 위해 설계되었습니다. machine temperature / pressure / voltage
STATE 더 낮은 빈도로 변경되며 object의 현재 condition 또는 fact를 설명하는 데이터를 위해 설계되었습니다. machine operational status
ACTION 외부 system 또는 operator가 실행해야 하는 command를 기록하는 저빈도 command data를 위해 설계되었습니다. start batch, stop machine

각 UNS model은 path, topic, payload로 구성됩니다. 이들은 함께 business context를 담고 산업 데이터를 전달하는 tree 구조를 이룹니다.

  • Path/Topic: path는 data ownership을 나타내고 topic은 message payload를 담습니다. 둘의 조합이 model address입니다.
  • Payload: topic이 보유한 message payload입니다. JSON key-value 형식이며 model data를 정의합니다.

예를 들어 UNS의 model은 아래 tree처럼 보입니다.

Terminal window
Factory_A
└── Site_01
└── SMT_Line_1
└── Metric
└── Machine_001
  • Path: Factory_A/Site_01/SMT_Line_1/Metric
  • Topic: /Machine_001.
  • Payload
    Terminal window
    "temperature": 85,
    "vibration": 2.8,

Tier0에서 broker는 data model을 기반으로 MQTT 또는 OpenAPI를 통해 데이터를 수신하고 전송하는 platform component입니다.

  • By MQTT: model tree의 각 node 전체 path가 message payload를 전달하는 topic address로 동작합니다.
  • By OpenAPI: HTTP request를 통해 data model에 대한 CRUD command를 수행합니다.

Tier0는 PostgreSQL을 사용해 데이터를 저장합니다. data type마다 변경 빈도와 storage requirement가 다릅니다.

Data Type Storage Description
METRIC Time-series database temperature, pressure 같은 고빈도 measurement에 최적화되어 있습니다. 각 topic에는 기본 field timestamp와 quality가 포함됩니다.
STATE PostgreSQL machine 또는 system state를 유연한 JSONB format으로 저장합니다.
ACTION PostgreSQL command 또는 action payload를 유연한 JSONB format으로 저장합니다.
Tier0 사용

데이터 기반 준비

앱을 위해 외부 데이터를 Tier0에 연결하고 모델링하여 통합합니다.

Tier0는 맞춤형 앱을 위한 데이터 기반을 만듭니다. 앱의 비즈니스 데이터를 받고, 기존 시스템과 장치의 외부 데이터 소스를 연결하며, 앱이 사용할 수 있는 통합 모델로 데이터를 모읍니다.

모든 데이터는 Namespace 아래 Collections에 모델링되고 데이터 유형별로 구성됩니다.

  • 주로 비즈니스 시스템의 관계형 데이터는 Record 테이블에 저장합니다.
  • 주로 장치의 시계열 데이터는 Sample 테이블에 저장합니다.
flowchart TB
  namespace["Namespace"] --> collection["Collection"]
  collection --> record["Record 테이블<br/>관계형 데이터"]
  collection --> sample["Sample 테이블<br/>시계열 데이터"]
  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class collection t0accent

비즈니스 데이터는 앱 사용이나 외부 시스템에서 올 수 있습니다. 시계열 데이터는 주로 연결된 장치에서 옵니다.

flowchart LR
  app["앱"] -->|"비즈니스 데이터"| record["Record"]
  stream["Stream"] -->|"장치 데이터"| sample["Sample"]
  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class record,sample t0accent
  • Source: 외부 데이터 서버에 연결하며 인증이 필요한 경우가 많습니다.
  • Stream: 서버에서 데이터를 수집하고 요구사항에 맞게 처리하여 Namespace 모델에 저장합니다.
flowchart LR
  source["Source<br/>서버 연결"] --> stream["Stream<br/>수집 및 처리"]
  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class source,stream t0accent
  1. Builder에서 앱을 만들고 Agent가 Namespace에 비즈니스 데이터 모델을 준비하도록 합니다. 프롬프트에 명시하지 않으면 Agent가 앱의 비즈니스 로직에 맞춰 모델을 자동 생성합니다.

    프롬프트에 명시하지 않으면 Agent가 앱의 비즈니스 로직에 맞춰 데이터 모델을 자동 생성합니다.

  2. Connect > Source에서 필요한 데이터 소스를 연결하고 인증을 설정합니다.
  3. Agent에게 Stream을 만들도록 요청하여 연결된 Source의 데이터를 수집·처리하고 앱에서 생성한 Namespace 모델에 저장합니다.
Tier0 사용

센터에서 엣지까지 데이터 관리

중앙 노드에서 연결된 엣지 노드의 데이터를 원활하게 관리합니다.

실제 공장에서는 네트워크 대역폭 사용량을 줄이고 데이터 보안을 강화하기 위해 엣지 디바이스에서 데이터를 수집하고 중앙 노드에서 통합 관리하는 경우가 많습니다. Tier0는 중앙 노드에서 엣지 노드의 데이터를 관리할 수 있는 Fleet Management 솔루션을 제공합니다.

엣지 노드를 중앙 노드에 연결하기

섹션 제목: “엣지 노드를 중앙 노드에 연결하기”
  1. 먼저 중앙 노드에서 Fleet 노드를 생성합니다.

  2. 중앙 노드에서 생성된 토큰을 사용하여 각 엣지 노드를 연결합니다.

  • UNS 데이터는 엣지 노드에서 중앙 노드로만 선택하여 동기화할 수 있습니다. 동기화한 Topic의 과거 데이터와 실시간 데이터를 모두 중앙 노드에서 사용할 수 있습니다.
  • 중앙 노드에서 엣지 노드에 사용자 또는 사용자 그룹을 할당하여 노드를 관리할 수 있습니다.
Tier0 사용

공장 데이터 작업

MQTT와 API로 UNS 데이터를 조작하고 API 레퍼런스를 확인합니다.

MQTT와 API를 통해 UNS 데이터를 조작할 수 있습니다.

Tier0에서 생성한 자격 증명으로 MQTT 클라이언트를 UNS broker에 연결할 수 있습니다.

Connect > Source > MQTT Device에서 MQTT 자격 증명을 생성하고 기록합니다.

  1. MQTTX를 설치하고 실행합니다.
  2. UNS broker 정보와 생성한 자격 증명으로 연결을 추가합니다.
    Terminal window
    {
    "Host": "mqtt.tier0.dev",
    "Port": 1883,
    "Client ID": "<generated client ID>",
    "Username": "<generated username>",
    "Password": "<generated password>"
    }
  1. 클라이언트 상태가 정상인지 확인합니다.
  2. UNS 모델 Topic을 복사하고 클라이언트에서 메시지를 게시합니다.
  • Base URL: https://<your-tier0-host>/openapi/v2
  • Authentication: Tier0에서 발급받은 API 키를 x-api-key 헤더에 넣습니다.
  • POST /uns/metadata:find — Collections 목록과 Collection ID 가져오기

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const response = await fetch(`${base}/uns/metadata:find`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"kind": "collection", "filter": {}, "page": {"mode": "offset", "page": 1, "size": 20}}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data.items);
  • POST /uns/collections/{collectionId}/records:find — Records 목록과 Record ID 가져오기

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const collectionId = "your-collection-id";
    const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/records:find`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"limit": 20}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data);
  • POST /uns/collections/{collectionId}/samples:latest — Record의 최신 Sample 가져오기

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const collectionId = "your-collection-id";
    const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:latest`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"recordIds": ["record_123"]}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data);
  • POST /uns/collections/{collectionId}/samples:find — 기간 내 Samples 가져오기

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const collectionId = "your-collection-id";
    const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:find`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"recordIds": ["record_123"], "from": 1792454400000, "to": 1792540800000, "filter": {"temperature": {"$gt": 20}}, "limit": 20}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data);
Tier0 사용

앱 만들기

AI와 대화하여 맞춤형 산업용 앱을 만듭니다.

AI와 대화하여 맞춤형 산업용 앱을 만듭니다. 앱은 공장 데이터를 사용하며 역할 기반 접근 제어, 버전 관리, 외부 배포 기능을 제공합니다.

  • 폴더는 앱 분류에만 사용됩니다.
  • 프롬프트에 따라 템플릿이 자동으로 선택되어 개발 시간을 절약합니다.
  • 설비 관리, 생산 모니터링, 에너지 관리 등 일반 산업용 앱을 위한 템플릿 프롬프트가 있습니다.

앱의 목적, 기능, 외부 데이터 필요 여부를 설명합니다.

  • 앱 목적: 무엇을 위한 앱인가요?
Terminal window
공장 기술자를 위한 설비 유지보수 앱을 만들어 줘.
  • 앱 기능: 앱에서 무엇을 하나요?
Terminal window
설비 상태 확인, 유지보수 요청 제출, 수리 진행 상황 추적을 지원해 줘.
  • 앱 데이터: 외부 데이터가 필요한가요?
Terminal window
xxx collection의 경보 기록과 유지보수 이력을 사용해 줘.

앱은 역할 기반 접근 제어(RBAC)로 멤버의 접근과 허용 작업을 관리합니다.

  • 별도 지정이 없으면 Agent가 비즈니스 로직에 따라 역할을 생성합니다. 책임이 맞는 기존 역할을 재사용할 수도 있습니다.
  • 앱 역할은 Workspace 멤버에게만 할당할 수 있습니다.
  • 프롬프트에 역할이 필요 없다고 명시하면 모든 멤버가 앱을 사용할 수 있습니다.
  • 미게시: 앱의 최신 상태. 배포 전 변경 사항은 다른 버전에 영향을 주지 않습니다.
  • 스냅샷: 저장 당시 상태. 배포하면 현재 온라인 버전을 대체합니다.
  • 게시됨: 현재 온라인 버전.

미게시 버전을 배포하면 온라인 앱이 업데이트되고, 스냅샷을 배포하면 이전 버전으로 돌아갑니다. 스냅샷은 앱 미리보기 페이지에 표시됩니다.

앱이 준비되면 Preview 페이지에서 타사 환경이나 Tier0 Enterprise용으로 내보낼 수 있습니다.

  • 소스 코드 다운로드: 추가 개발용.
  • Bundle 내보내기: Tier0 Enterprise에서 로컬로 가져오기 위한 용도.

스냅샷 버전의 소스 코드가 필요하면 스냅샷을 저장한 뒤 다운로드합니다.

Tier0 사용

Digital Twin 구축하기

실시간 UNS 데이터를 3D 모델에 바인딩하고 완전한 공장 장면으로 조합해 Digital Twin 시각화를 구성합니다.

Tier0에 연결된 공장 데이터는 실제와 유사한 동작과 환경을 갖춘 Digital Twin으로 시각화할 수 있습니다. 전체 과정은 데이터를 3D 모델에 매핑한 뒤 여러 모델을 조합해 완전한 공장 장면을 만드는 흐름입니다.

  1. Model에 모델을 업로드한 뒤, UNS 데이터로 실시간 동작을 제어할 노드를 선택합니다.
  2. 같은 모델에 서로 다른 UNS 데이터를 가진 인스턴스를 추가해 여러 설비를 시뮬레이션합니다.
  3. 데이터를 모델에 바인딩하고 Preview를 사용해 데이터 변화에 따라 모델이 이동하고 회전하는지 확인합니다.
    • Position: 모델이 선택한 좌표 방향으로 이동합니다.
    • Rotation: 모델이 좌표 원점을 기준으로 회전합니다.
  4. Data Tagging을 사용해 정적 정보 표시용 태그를 추가합니다.
  1. Instance Library에서 장면에 있어야 하는 인스턴스를 추가합니다.
  2. 상단 도구를 사용해 모델을 이동, 확대/축소, 회전하여 장면에 맞추고, 시점과 좌표 위치를 조정합니다.
  3. 오른쪽의 Object에서 모델 위치를 확인할 수 있으며, 여기에 바인딩된 UNS 데이터가 표시됩니다.
  4. 뷰포트와 조명은 환경 세부 설정에 사용합니다.

인스턴스만 모델 단위 또는 장면 단위로 공유할 수 있습니다.

  • Share Model: 실시간 UNS 데이터가 표시되는 모델의 Tier0 플랫폼 링크를 생성합니다.
  • Share Scene: 실시간 UNS 데이터와 환경 설정이 포함된 모델 및 장면의 Tier0 플랫폼 링크를 생성합니다.
Tier0 사용

Agent로 Tier0 운영하기

MCP를 통해 AI Agent를 Tier0에 연결합니다.

MCP를 통해 AI Agent를 Tier0에 연결합니다. Agent는 부여된 권한 범위에서 플랫폼 API를 찾아 사용할 수 있습니다.

선호하는 AI agent로 Tier0를 운영하세요.
Claude Code
Codex
Gemini CLI
Cursor
GitHub Copilot

Codex를 예로 사용합니다.

  1. Settings > Plugin > MCP에서 Tier0의 URL로 MCP 서버를 추가합니다.
  2. Tier0의 Settings > API Keys > Personal Keys에서 필요한 권한의 개인 API 키를 만듭니다.
  3. Codex의 MCP 서버에 개인 API 키를 입력합니다.
    Terminal window
    { "Authorization": "Bearer <your-personal-api-key>" }
  4. Agent에게 whoami를 실행하여 연결을 확인하도록 요청합니다.
MCP 도구 용도
whoami 신원과 권한을 확인합니다.
docs API 문서를 읽습니다.
search API 작업을 찾습니다.
execute API 작업을 호출합니다.

먼저 Agent에게 docs와 search로 작업을 찾고 execute로 호출하도록 요청합니다. 예:

Terminal window
내 Workspace의 `Plant/Line1/Metric/Temperature` 현재 값을 읽어 줘.

베스트 프랙티스

공장 데이터 모델링

Demo UNS 설계: topic 폭증 방지와 payload 구조 베스트 프랙티스.

물리적 위치가 있는 기계와 설비의 산업 데이터는 일반적으로 ISA-95 표준을 기반으로 모델링합니다.

Terminal window
Enterprise (Level 4)
└── Site (Level 3/4)
└── Area (Level 3)
└── Work Center / Process Cell (Level 2/3)
└── Equipment / Unit (Level 1/2)
└── Control Module / Device (Level 0/1)

ERP의 생산 주문, 작업 지시 계획 같은 비즈니스 계획 및 프로세스 객체는 비즈니스 context에 맞게 모델링합니다.

Terminal window
Factory / Business Domain / Business Object / Topic Type / Topic
  • Business Domain: data가 속한 business process 또는 system을 확인합니다.

    Terminal window
    ERP
    MES
    WMS
    QMS
    EAM
    LIMS
    Planning
    Inventory
    Maintenance
    Quality
    Logistics
    ...
  • Business Object: business domain에서 관리되는 핵심 object입니다.

    Terminal window
    ProductionOrders
    WorkOrderPlan
    MaterialInventory
    QualityInspection
    MaintenanceOrders
    PurchaseOrders
    Shipments
    ...
  • Topic Type: Metric, Action, State 중 data type을 선택합니다.

    Topic Type Used for Examples

| STATE | 현재 상태 또는 현재 사실 | work order status, order status, equipment status | | METRIC | 지속적으로 변하는 숫자 값 | Temperature, speed, output, OEE, energy consumption | | ACTION | 외부 실행자를 위한 command | 설비 시작, 설비 정지, alarm reset, work order dispatch 요청 |

Terminal window
DemoFactory
└── ERP
├── ProductionOrders
│ └── State
│ ├── UpsertProductionOrder
│ └── OrderList
└── WorkOrderPlan
├── Metric
│ └── SplitCount
└── State
├── PlanStatus
└── WorkOrderList

Tier0는 topic 폭증을 피하기 위해 Metric, Action, State 세 가지 고정 topic type을 사용합니다.

  • Use Metric for high-frequency real-time data

    각 signal 세부 항목마다 namespace를 확장하지 말고, 고빈도 측정값과 telemetry는 Metric 아래에 둡니다.

    Terminal window
    Factory_A
    └── SMT_Line_1
    └── Machine_001
    ├── Temperature_Value
    ├── Temperature_Unit
    ├── Temperature_Status
    └── Speed_Value
  • Use State for low-frequency status data

    저빈도 상태, snapshot, 현재 비즈니스 상태는 State 아래에 둡니다. 작업, batch, 주문처럼 변하는 entity마다 새 topic을 만들지 않습니다.

    Terminal window
    Factory_A
    └── SMT_Line_1
    └── State
    ├── Job_001
    ├── Job_002
    └── Job_003
  • Use Action for low-frequency action data

    명령, 요청, operator action은 Action 아래에 둡니다. action 입력은 parameter별 topic이 아니라 topic의 field로 유지합니다.

    Terminal window
    Factory_A
    └── SMT_Line_1
    └── Machine_001
    ├── Start_Command
    ├── Target_Height
    └── Light_On

topic payload를 설계할 때는 소비할 데이터와 다시 쓸 데이터를 모두 고려해야 합니다.

  • Action

    Action payload에는 데이터가 Tier0 데이터베이스에 저장된 시간을 기록하는 _timestamp가 자동 포함됩니다.

    Terminal window
    {
    "production_order_id": "PO-20260710-001",
    "plan_id": "PLAN-001",
    "plan_number": "WOP-20260710-001",
    "work_order_id": "WO-001",
    "value": 1200,
    "unit": "pcs",
    "timestamp": "2026-07-10T10:00:00Z",
    "_timestamp": "2026-07-10T10:00:00Z",
    "_quality": "Good"
    }
  • Metric

    Metric payload에는 데이터가 Tier0 데이터베이스에 저장된 시간을 기록하는 _timestamp와 데이터 품질을 나타내는 _quality가 자동 포함됩니다.

    Terminal window
    {
    "production_order_id": "PO-20260710-001",
    "plan_id": "PLAN-001",
    "plan_number": "WOP-20260710-001",
    "work_order_id": "WO-001",
    "status": "Running",
    "reason": "In production",
    "updated_at": "2026-07-10T10:00:00Z",
    "_timestamp": "2026-07-10T10:00:00Z"
    }
  • State

    State payload에는 데이터가 Tier0 데이터베이스에 저장된 시간을 기록하는 _timestamp가 자동 포함됩니다.

    Terminal window
    {
    "current_job": "Job_003",
    "product": "Product_A"
    }
베스트 프랙티스

데이터 소스 연결

Tier0는 OPC UA, Modbus, MQTT 등 다양한 산업용 프로토콜 연결을 지원합니다.

  • 서버 주소를 입력하면 서버에서 보안 설정을 자동으로 가져옵니다.
  • 사용자 이름과 암호 또는 인증서를 통한 인증을 지원합니다.
Terminal window
{
"name": "ua",
"description": "",
"protocol": "opcua",
"endpoint": "opc.tcp://220.184.175.73:4841/demo/",
"runtimeLocation": "local",
"opcua": {
"securityMode": "None",
"securityPolicy": "None"
}
}

서버 주소와 유닛 ID만 필요합니다.

Terminal window
{
"name": "modbus",
"description": "",
"protocol": "modbus-tcp",
"endpoint": "tcp://220.184.175.73:1502",
"runtimeLocation": "local",
"modbus": {
"unitId": 1
}
}

Tier0는 장치 데이터를 수신하는 MQTT Broker 또는 외부 MQTT Broker에 연결하는 클라이언트로 사용할 수 있습니다.

  • Broker로 사용:

    1. MQTT Device를 연결할 때 클라이언트 ID, 사용자 이름, 암호 등의 연결 자격 증명이 생성됩니다.
    2. 타사 클라이언트는 연결 패널에 표시된 발행 토픽을 사용해 메시지를 발행해야 합니다.
    3. Agent에게 발행 토픽을 입력으로 사용하는 Stream을 만들어 지정한 Namespace로 데이터를 보내도록 요청합니다.
  • 클라이언트로 사용: 타사 Broker에 연결합니다.

    Terminal window
    {
    "name": "111",
    "description": "",
    "protocol": "mqtt",
    "endpoint": "mqtt://220.184.175.73:1883",
    "runtimeLocation": "local",
    "mqtt": {
    "clientId": "tier0UxxxxxxxxuwQVfi"
    }
    }

Tier0는 타사가 접근하는 HTTP 서버 또는 다른 HTTP 서버의 API를 호출하는 클라이언트로 사용할 수 있습니다.

  • 서버로 사용:

    1. Tier0에 HTTP 서버를 추가하고 정보 패널에서 전체 주소를 확인합니다.
    2. Agent에게 데이터와 후속 라우팅을 정의하는 Stream을 만들어 API를 구성하도록 요청합니다.
    3. 타사는 해당 주소와 설정된 경로를 사용해 API를 호출하고 데이터를 가져옵니다.
  • 클라이언트로 사용: 타사 HTTP 서버에 연결합니다.

Terminal window
{
"name": "222",
"description": "",
"protocol": "http-api",
"endpoint": "http://220.184.175.73:8088/api/telemetry",
"runtimeLocation": "local",
"role": "client",
"http": {
"authentication": "none"
}
}
  • 데이터베이스 주소에는 포트와 데이터베이스 이름이 모두 포함되어야 합니다.
  • 초기 쿼리 명령이 필요합니다.
  • 데이터베이스에서 익명 연결을 허용하면 인증을 생략할 수 있습니다.
Terminal window
{
"name": "eee",
"description": "",
"protocol": "edge-sql",
"endpoint": "mysql://hzoffice.tier0.dev:3307/demo_factory",
"runtimeLocation": "local",
"sql": {
"queries": {
"query1": "SELECT * FROM telemetry ORDER BY id DESC LIMIT 5"
},
"tlsMode": "verify-full"
},
"credentialRef": "ref_9ce47b8778xxxxxxxx7dad49a86dbad"
}
  1. OAuth로 Tier0 Github에 연결합니다.
  2. 데이터 소스 정보 패널에서 이 조직의 리소스를 찾습니다.
  3. Agent에게 필요한 데이터를 가져오는 Stream을 만들도록 요청합니다.

데이터 소스에서 데이터 가져오기

섹션 제목: “데이터 소스에서 데이터 가져오기”
  1. Agent에게 연결된 데이터 소스에서 데이터를 가져오는 Stream을 만들도록 요청합니다.
  2. Modbus 레지스터, 데이터베이스 쿼리, UA 네임스페이스 URI, MQTT 토픽 등 필요한 정보를 프롬프트에 포함합니다.
베스트 프랙티스

보안 및 복원력

Tier0의 ID, 데이터 접근, 배포 가용성 및 복구 제어에 대한 개요입니다.

Tier0는 다음 두 가지 측면에서 데이터를 보호합니다.

  • 보안: 플랫폼, 애플리케이션 및 데이터에 접근할 수 있는 사용자를 제어합니다.
  • 복원력: 장애 발생 후 서비스 연속성과 데이터 복구를 다룹니다.
에디션 보안 지원 범위
Cloud 플랫폼 접근 제어와 인증이 필요한 MQTT 및 API 접근을 제공합니다.
Enterprise 플랫폼 및 데이터 접근 제어 외에도 프라이빗 배포를 위한 배포 가용성, 백업 및 복구를 제공합니다.
Edge(오픈 소스) 로컬 데이터 연결 및 모델링에 사용합니다. 내장 MQTT 브로커는 인증 없는 구독을 허용합니다.

각 에디션의 용도는 가장 적합한 제품 선택을 참조하세요.

범위 Tier0 방식 상세 정보
플랫폼 접근
  • Cloud는 Workspace 멤버 자격으로 접근을 제어합니다.
  • Enterprise는 사용자 계정으로 접근을 제어합니다.
사용자 관리
Agent 접근 Agent는 MCP로 연결하고 부여된 권한 범위에서 플랫폼을 운영합니다. Agent 연결
애플리케이션 접근 Tier0는 RBAC를 사용해 애플리케이션 접근을 제어합니다. 접근 제어
접근 방식 Tier0 방식 상세 정보
MQTT
  • 클라이언트는 Tier0가 생성한 자격 증명으로 인증합니다.
  • TLS 및 보안 WebSocket이 전송 중인 데이터를 암호화합니다.
MQTT 자격 증명 및 연결
REST API 데이터 접근에는 Tier0가 생성한 키가 필요합니다. API 레퍼런스

Enterprise는 현재 중앙 노드에 대해 두 가지 배포 계획을 제공합니다.

계획 가용성 경계 상세 정보
표준 배포
  • 데이터베이스 기본/대기 장애 조치를 지원합니다.
  • Enterprise 애플리케이션과 EMQX는 여전히 단일 장애 지점입니다.
표준 배포 계획
고가용성 배포
  • Enterprise 활성/대기 노드를 추가하고 데이터베이스, 캐시, 객체 스토리지 및 관리 대상 런타임 파일의 장애 조치 동작을 정의합니다.
  • 무중단이나 데이터 손실 없음을 보장하지 않습니다.
고가용성 배포 계획

Enterprise는 데이터베이스 백업 및 복구를 제공합니다. 복구 후에는 배포 상태와 기본 기능을 검증하고 플랫폼에 로그인할 수 있는지 확인하세요.

베스트 프랙티스

Agent로 데이터 워크플로 구축하기

UNS Agent를 사용해 데이터 모델링, 데이터 연결, 데이터 이벤트를 포함하는 워크플로를 구축합니다.

여러 모듈에서 데이터 모델, 연결, 이벤트를 단계별로 만드는 대신, UNS Agent가 대화를 통해 워크플로를 처리합니다.

믹싱 탱크는 재료를 섞으면서 가열합니다. 데이터 모델을 만들고 온도, 수위, 히터 상태를 수집해 탱크 과열 여부를 판단하고 알람을 트리거합니다.

flowchart RL
  source["Source Flow<br/>(데이터 소스 연결)"]
  event["Event Flow<br/>(이벤트 로직 및 알람)"]
  uns["UNS<br/>(모델링)"]

  source -->|"믹싱 탱크 데이터"| uns
  event -->|"알람 데이터"| uns

  classDef t0accent fill:#EFFFD2,stroke:#8AC926,stroke-width:1px,color:#18230B
  classDef t0node fill:#F8FAFC,stroke:#CBD5E1,stroke-width:1px,color:#111827
  class uns t0accent
  class source,event t0node
  1. UNS에서 full_access로 UNS Agent와 대화를 시작합니다.

  2. UNS 모델을 만들기 위한 프롬프트를 입력합니다.

    Terminal window
    믹싱 탱크의 온도, 수위, 히터 상태를 나타내는 데이터 모델을 만듭니다. 온도와 수위는 하나의 metric topic에, 히터 상태는 하나의 state topic에 넣어 주세요.
  3. 모델이 완성되었는지 확인한 뒤, 해당 데이터를 모델에 연결하도록 프롬프트를 입력합니다.

    Terminal window
    이 2개 topic으로 데이터를 보내는 Source Flow를 만들고 합리적인 데이터를 시뮬레이션해 주세요.
  4. 다음 로직으로 이벤트를 만들기 위한 프롬프트를 입력합니다.

    • 낮은 수위 경고: 수위가 20% 미만이고 히터가 켜져 있을 때 트리거됩니다.
    • 건식 가열 알람: 수위가 15% 미만이고 온도가 90°C를 초과하며 히터가 켜져 있을 때 트리거됩니다.
    Terminal window
    다음 알람 로직을 위한 Event Flow를 만들어 주세요:
    - Warning: level < 20 이고 heater_status = true 일 때 트리거.
    - Critical: level < 15, temperature > 90, heater_status = true 일 때 트리거.
    - level > 25 또는 heater_status = false 이면 활성 알람을 해제.
    기존 UNS 모델 아래에 알람 결과를 받을 새 topic을 만듭니다. 출력에는 알람 레벨, 메시지, 활성 상태, 타임스탬프를 포함합니다.
  5. UNS에서 결과를 확인합니다.

베스트 프랙티스

Digital Twin으로 데이터 표시하기

3D 모델과 장면에서 UNS 데이터를 실시간으로 확인합니다.

Tier0 디지털 트윈 기능은 실제와 유사한 3D 장면과 모델에서 UNS 실시간 데이터를 표시합니다. 이 예시에서는 다음 설비가 있는 작업장을 재현합니다.

  • 선반 2대
  • 선반 사이에서 작업하는 로봇 팔 1대
  • 입고 버퍼 스테이션과 출고 버퍼 각 1대
  • 품질 검사기 1대
  • 통합 제어 시스템 1대
  • 원자재 선반 2개와 제품 선반 2개
  • AGV 1대

기계 동작 제어 데이터, 기계 상태와 작업장 환경 데이터를 포함한 모든 데이터를 UNS에 수집합니다.

  1. UNS에 데이터 모델을 만듭니다.

    UNS 모델 JSON 보기
    Terminal window
    {
    "namespace": [
    {
    "name": "Metric",
    "alias": "metric_151a7edd68bf4269a229",
    "type": "PATH",
    "children": [
    {
    "name": "RobotArm",
    "alias": "Robot_0_9d5dc450dc1f4c0c9a86",
    "type": "TOPIC",
    "topicType": "METRIC",
    "extendProperties": {
    "J0_Cur": "0"
    },
    "fields": [
    {
    "name": "J1_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J1_Init",
    "type": "FLOAT"
    },
    {
    "name": "J2_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J2_Init",
    "type": "FLOAT"
    },
    {
    "name": "J3_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J3_Init",
    "type": "FLOAT"
    },
    {
    "name": "J4_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J4_Init",
    "type": "FLOAT"
    },
    {
    "name": "J5_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J5_Init",
    "type": "FLOAT"
    },
    {
    "name": "J6_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J6_Init",
    "type": "FLOAT"
    },
    {
    "name": "Model_Name",
    "type": "STRING"
    },
    {
    "name": "Max_Payload_kg",
    "type": "FLOAT"
    },
    {
    "name": "Reach_Radius_mm",
    "type": "FLOAT"
    },
    {
    "name": "Gripper_Force_N",
    "type": "FLOAT"
    }
    ],
    "enableHistory": "TRUE",
    "mockData": "FALSE"
    },
    {
    "name": "ProLathe-01",
    "alias": "ProLathe_ef325e0a9db047d6abac",
    "type": "TOPIC",
    "topicType": "METRIC",
    "fields": [
    {
    "name": "J_Changer_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Door_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Finger_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Spindle_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_TailStock_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_X_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Y_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Z_Cur",
    "type": "FLOAT"
    },
    {
    "name": "Model_Name",
    "type": "STRING"
    },
    {
    "name": "Max_Placement_Rate_cph",
    "type": "INTEGER"
    },
    {
    "name": "Placement_Speed_cph",
    "type": "INTEGER"
    },
    {
    "name": "Feeder_Usage_pct",
    "type": "INTEGER"
    },
    {
    "name": "Machine_State_code",
    "type": "INTEGER"
    }
    ],
    "enableHistory": "FALSE",
    "mockData": "FALSE"
    },
    {
    "name": "ProLathe-02",
    "alias": "ProLathe2_ef325e0a9db047d6abac",
    "type": "TOPIC",
    "topicType": "METRIC",
    "fields": [
    {
    "name": "J_Changer_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Door_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Finger_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Spindle_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_TailStock_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_X_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Y_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J_Z_Cur",
    "type": "FLOAT"
    },
    {
    "name": "Model_Name",
    "type": "STRING"
    },
    {
    "name": "Max_Placement_Rate_cph",
    "type": "INTEGER"
    },
    {
    "name": "Placement_Speed_cph",
    "type": "INTEGER"
    },
    {
    "name": "Feeder_Usage_pct",
    "type": "INTEGER"
    },
    {
    "name": "Machine_State_code",
    "type": "INTEGER"
    }
    ],
    "enableHistory": "FALSE",
    "mockData": "FALSE"
    },
    {
    "name": "AGV",
    "alias": "AGV_7eddee0054a0",
    "type": "TOPIC",
    "topicType": "METRIC",
    "fields": [
    {
    "name": "Position_X_Cur",
    "type": "FLOAT"
    },
    {
    "name": "Position_X_Init",
    "type": "FLOAT"
    },
    {
    "name": "Position_Y_Cur",
    "type": "FLOAT"
    },
    {
    "name": "Position_Y_Init",
    "type": "FLOAT"
    },
    {
    "name": "Rotation_Y_Cur",
    "type": "FLOAT"
    },
    {
    "name": "Rotation_Y_Init",
    "type": "FLOAT"
    },
    {
    "name": "Tray_Height_Cur",
    "type": "FLOAT"
    },
    {
    "name": "Tray_Height_Init",
    "type": "FLOAT"
    },
    {
    "name": "State_Cur",
    "type": "STRING"
    },
    {
    "name": "State_Init",
    "type": "STRING"
    },
    {
    "name": "Position_Z_Cur",
    "type": "FLOAT"
    },
    {
    "name": "Position_Z_Init",
    "type": "FLOAT"
    },
    {
    "name": "Model_Name",
    "type": "STRING"
    },
    {
    "name": "Max_Load_kg",
    "type": "FLOAT"
    },
    {
    "name": "Task_Progress_pct",
    "type": "INTEGER"
    },
    {
    "name": "Remaining_Distance_m",
    "type": "FLOAT"
    },
    {
    "name": "AGV_State_code",
    "type": "INTEGER"
    }
    ],
    "enableHistory": "FALSE",
    "mockData": "FALSE"
    },
    {
    "name": "RobotArm-1",
    "alias": "RobotArm_1_b9f06e21346d",
    "type": "TOPIC",
    "topicType": "METRIC",
    "fields": [
    {
    "name": "J1_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J1_Init",
    "type": "FLOAT"
    },
    {
    "name": "J2_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J2_Init",
    "type": "FLOAT"
    },
    {
    "name": "J3_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J3_Init",
    "type": "FLOAT"
    },
    {
    "name": "J4_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J4_Init",
    "type": "FLOAT"
    },
    {
    "name": "J5_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J5_Init",
    "type": "FLOAT"
    },
    {
    "name": "J6_Cur",
    "type": "FLOAT"
    },
    {
    "name": "J6_Init",
    "type": "FLOAT"
    }
    ],
    "enableHistory": "TRUE",
    "mockData": "FALSE"
    }
    ]
    },
    {
    "name": "State",
    "alias": "state_3912d0df3fee",
    "type": "PATH",
    "children": [
    {
    "name": "RawMaterialStorage",
    "alias": "RawMaterialS_c3307f680405",
    "type": "TOPIC",
    "topicType": "STATE",
    "fields": [
    {
    "name": "StockAmount",
    "type": "INTEGER"
    }
    ],
    "enableHistory": "FALSE",
    "mockData": "FALSE"
    },
    {
    "name": "ProductStorage",
    "alias": "ProductStora_3c145f140bd9",
    "type": "TOPIC",
    "topicType": "STATE",
    "fields": [
    {
    "name": "StockAmount",
    "type": "INTEGER"
    }
    ],
    "enableHistory": "FALSE",
    "mockData": "FALSE"
    },
    {
    "name": "InboundBuffer",
    "alias": "LoaderBuffer_9feece9b3231",
    "type": "TOPIC",
    "topicType": "STATE",
    "fields": [
    {
    "name": "Amount",
    "type": "INTEGER"
    }
    ],
    "enableHistory": "FALSE",
    "mockData": "FALSE"
    },
    {
    "name": "OutboundBuffer",
    "alias": "OutboundBuff_75433b98fde6",
    "type": "TOPIC",
    "topicType": "STATE",
    "fields": [
    {
    "name": "Amount",
    "type": "INTEGER"
    }
    ],
    "enableHistory": "FALSE",
    "mockData": "FALSE"
    }
    ]
    }
    ]
    }
  2. Source Flow로 데이터 소스를 UNS 모델에 연결합니다.

    • 로봇 팔
    로봇 팔 Flow JSON 보기
    Terminal window
    [
    {
    "id": "03933a7eb1a7b992",
    "type": "function",
    "z": "8daeb61ebd9e5f52",
    "name": "Cache Data",
    "func": "const CONFIG = {\n fields: ['Joint_1', 'Joint_2', 'Joint_3', 'Joint_4', 'Joint_5', 'Joint_6'],\n payloadFields: {\n value: 'CurrentValue',\n initialValue: 'InitialValue',\n name: 'Name',\n timeStamp: 'timeStamp',\n time_stamp: 'time_stamp',\n quality: 'quality'\n }\n};\n\nlet cache = flow.get('dataCache') || { instant: {}, metadata: {} };\n\nconst topicParts = msg.topic.split('/');\nconst fieldName = topicParts[topicParts.length - 1];\n\nlet payload = msg.payload;\nif (typeof payload === 'string') {\n try {\n payload = JSON.parse(payload);\n } catch (e) {\n return null;\n }\n}\n\nlet value = payload[CONFIG.payloadFields.value];\nif (value === undefined) return null;\n\nconst metadata = {\n timeStamp: payload[CONFIG.payloadFields.timeStamp],\n time_stamp: payload[CONFIG.payloadFields.time_stamp],\n quality: payload[CONFIG.payloadFields.quality],\n name: payload[CONFIG.payloadFields.name],\n initialValue: payload[CONFIG.payloadFields.initialValue]\n};\n\nif (CONFIG.fields.includes(fieldName)) {\n cache.instant[fieldName] = value;\n cache.metadata[fieldName] = metadata;\n} else {\n return null;\n}\n\nflow.set('dataCache', cache);\nreturn null;",
    "outputs": 0,
    "timeout": "",
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 880,
    "y": 500,
    "wires": []
    },
    {
    "id": "0c4dbdcbe5e3db92",
    "type": "mqtt in",
    "z": "8daeb61ebd9e5f52",
    "name": "Subscribe Joint_1~6",
    "topic": "FactorySim_Supos/Flow_Group__1/MechEquips/Transporter_Kawasaki_BX100N/Motor_Joints/+",
    "qos": "1",
    "datatype": "auto",
    "broker": "c11decb07a68083d",
    "nl": false,
    "rap": true,
    "rh": 0,
    "inputs": 0,
    "x": 610,
    "y": 480,
    "wires": [
    [
    "03933a7eb1a7b992"
    ]
    ]
    },
    {
    "id": "ba42bca5aa9dc561",
    "type": "inject",
    "z": "8daeb61ebd9e5f52",
    "name": "100ms Timer",
    "props": [
    {
    "p": "payload"
    },
    {
    "vt": "str",
    "p": "topic"
    }
    ],
    "repeat": "0.1",
    "crontab": "",
    "once": true,
    "onceDelay": "0.1",
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "x": 520,
    "y": 600,
    "wires": [
    [
    "0fc94449c377ad9a"
    ]
    ]
    },
    {
    "id": "0fc94449c377ad9a",
    "type": "function",
    "z": "8daeb61ebd9e5f52",
    "name": "Aggregate & Publish (Flat)",
    "func": "const CONFIG = {\n fieldMapping: {\n 'Joint_1': 'J1',\n 'Joint_2': 'J2',\n 'Joint_3': 'J3',\n 'Joint_4': 'J4',\n 'Joint_5': 'J5',\n 'Joint_6': 'J6'\n },\n missingStrategy: 'lastValue',\n outputTopic: 'robot/state',\n windowMs: 100\n};\n\nconst FIELDS = Object.keys(CONFIG.fieldMapping);\n\nlet cache = flow.get('dataCache') || { instant: {}, metadata: {} };\nlet lastValues = flow.get('lastValues') || {};\nlet lastMetadata = flow.get('lastMetadata') || {};\n\nlet output = {\n timestamp: new Date().toISOString()\n};\n\nfor (const field of FIELDS) {\n const shortName = CONFIG.fieldMapping[field];\n \n if (cache.instant[field] !== undefined) {\n output[shortName + '_Cur'] = cache.instant[field];\n output[shortName + '_Init'] = cache.metadata[field] ? cache.metadata[field].initialValue : 0;\n output[shortName + '_Qly'] = cache.metadata[field] ? cache.metadata[field].quality : 0;\n \n lastValues[field] = cache.instant[field];\n lastMetadata[field] = cache.metadata[field];\n } else {\n let fallbackValue = CONFIG.missingStrategy === 'lastValue' \n ? (lastValues[field] !== undefined ? lastValues[field] : 0) \n : 0;\n \n output[shortName + '_Cur'] = fallbackValue;\n output[shortName + '_Init'] = lastMetadata[field] ? lastMetadata[field].initialValue : 0;\n output[shortName + '_Qly'] = -1;\n }\n}\n\nmsg.payload = output;\nmsg.topic = CONFIG.outputTopic;\n\nflow.set('dataCache', { instant: {}, metadata: {} });\nflow.set('lastValues', lastValues);\nflow.set('lastMetadata', lastMetadata);\n\nreturn msg;",
    "outputs": 1,
    "timeout": "",
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 760,
    "y": 600,
    "wires": [
    [
    "c9eee2264fe78846",
    "a685279629e73d9a",
    "4ce075fda1d3d993",
    "8e8779918eab6f89"
    ]
    ]
    },
    {
    "id": "c9eee2264fe78846",
    "type": "mqtt out",
    "z": "8daeb61ebd9e5f52",
    "name": "Publish robot/state",
    "topic": "Metric/RobotArm",
    "qos": "1",
    "retain": "false",
    "respTopic": "",
    "contentType": "",
    "userProps": "",
    "correl": "",
    "expiry": "",
    "broker": "9836929a70c74929",
    "x": 1070,
    "y": 540,
    "wires": []
    },
    {
    "id": "c11decb07a68083d",
    "type": "mqtt-broker",
    "name": "supos-demo.supos.app",
    "broker": "supos-demo.supos.app",
    "port": 1883,
    "clientid": "",
    "autoConnect": true,
    "usetls": false,
    "protocolVersion": 4,
    "keepalive": 60,
    "cleansession": true,
    "autoUnsubscribe": true,
    "birthTopic": "",
    "birthQos": "0",
    "birthRetain": "false",
    "birthPayload": "",
    "birthMsg": {},
    "closeTopic": "",
    "closeQos": "0",
    "closeRetain": "false",
    "closePayload": "",
    "closeMsg": {},
    "willTopic": "",
    "willQos": "0",
    "willRetain": "false",
    "willPayload": "",
    "willMsg": {},
    "userProps": "",
    "sessionExpiry": ""
    },
    {
    "id": "9836929a70c74929",
    "type": "mqtt-broker",
    "z": "8daeb61ebd9e5f52",
    "name": "emqx",
    "broker": "mqtt.pre.tier0.dev",
    "port": "1883",
    "clientid": "336462685553088&336463047745872",
    "autoConnect": true,
    "usetls": false,
    "protocolVersion": "4",
    "keepalive": "60",
    "cleansession": true,
    "autoUnsubscribe": true,
    "birthTopic": "",
    "birthQos": "0",
    "birthRetain": "false",
    "birthPayload": "",
    "birthMsg": {},
    "closeTopic": "",
    "closeQos": "0",
    "closeRetain": "false",
    "closePayload": "",
    "closeMsg": {},
    "willTopic": "",
    "willQos": "0",
    "willRetain": "false",
    "willPayload": "",
    "willMsg": {},
    "userProps": "",
    "sessionExpiry": ""
    }
    ]
    • AGV
    AGV Flow JSON 보기
    Terminal window
    [
    {
    "id": "fa46cf31be8d751e",
    "type": "tab",
    "label": "Metric/AGV",
    "disabled": false,
    "info": ""
    },
    {
    "id": "1f0e9d8c7b6a5a41",
    "type": "mqtt in",
    "z": "fa46cf31be8d751e",
    "name": "Subscribe AGV telemetry",
    "topic": "FactorySim_Supos/Flow_Group__1/MechEquips/AGV_zOnron/Motor_Joints/+",
    "qos": "1",
    "datatype": "auto",
    "broker": "c11decb07a68083d",
    "nl": false,
    "rap": true,
    "rh": 0,
    "inputs": 0,
    "x": 190,
    "y": 380,
    "wires": [
    [
    "2a1b3c4d5e6f7081"
    ]
    ]
    },
    {
    "id": "2a1b3c4d5e6f7081",
    "type": "function",
    "z": "fa46cf31be8d751e",
    "name": "Cache AGV telemetry",
    "func": "const CONFIG = {\n fields: [\n 'Position_X',\n 'Position_Y',\n 'Position_Z',\n 'Rotation_Y',\n 'Tray_Height',\n 'State'\n ],\n payloadFields: {\n value: 'CurrentValue',\n initialValue: 'InitialValue',\n name: 'Name',\n timeStamp: 'timeStamp',\n timeStampAlt: 'time_stamp'\n }\n};\n\nlet cache = flow.get('agvDataCache') || { instant: {}, metadata: {} };\n\nconst topicParts = (msg.topic || '').split('/');\nconst fieldName = topicParts[topicParts.length - 1];\nif (!CONFIG.fields.includes(fieldName)) {\n return null;\n}\n\nlet payload = msg.payload;\nif (typeof payload === 'string') {\n try {\n payload = JSON.parse(payload);\n } catch (error) {\n return null;\n }\n}\n\nif (typeof payload !== 'object' || payload === null) {\n return null;\n}\n\nconst currentValue = payload[CONFIG.payloadFields.value];\nif (currentValue === undefined) {\n return null;\n}\n\ncache.instant[fieldName] = currentValue;\ncache.metadata[fieldName] = {\n name: payload[CONFIG.payloadFields.name] || fieldName,\n initialValue: payload[CONFIG.payloadFields.initialValue],\n timeStamp: payload[CONFIG.payloadFields.timeStampAlt] ?? payload[CONFIG.payloadFields.timeStamp] ?? 0\n};\n\nflow.set('agvDataCache', cache);\nreturn null;",
    "outputs": 0,
    "timeout": "",
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 470,
    "y": 380,
    "wires": []
    },
    {
    "id": "3b2c1d0e9f8a7b61",
    "type": "inject",
    "z": "fa46cf31be8d751e",
    "name": "100ms Timer",
    "props": [
    {
    "p": "payload"
    },
    {
    "p": "topic",
    "vt": "str"
    }
    ],
    "repeat": "0.1",
    "crontab": "",
    "once": true,
    "onceDelay": "0.1",
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "x": 150,
    "y": 500,
    "wires": [
    [
    "4c3d2e1f0a9b8c71"
    ]
    ]
    },
    {
    "id": "4c3d2e1f0a9b8c71",
    "type": "function",
    "z": "fa46cf31be8d751e",
    "name": "Aggregate AGV UNS payload",
    "func": "const CONFIG = {\n fields: [\n 'Position_X',\n 'Position_Y',\n 'Position_Z',\n 'Rotation_Y',\n 'Tray_Height',\n 'State'\n ],\n outputTopic: 'Metric/AGV',\n defaultNumeric: 0,\n defaultString: ''\n};\n\nlet cache = flow.get('agvDataCache') || { instant: {}, metadata: {} };\nlet lastValues = flow.get('agvLastValues') || {};\nlet lastMetadata = flow.get('agvLastMetadata') || {};\nlet lastTimestamp = flow.get('agvLastTimestamp') || 0;\n\nlet output = {};\nlet candidateTimestamps = [];\n\nfor (const field of CONFIG.fields) {\n const hasCurrentFrameValue = Object.prototype.hasOwnProperty.call(cache.instant, field);\n const metadata = hasCurrentFrameValue ? cache.metadata[field] : lastMetadata[field];\n const currentValue = hasCurrentFrameValue ? cache.instant[field] : lastValues[field];\n const isStringField = field === 'State';\n\n output[field + '_Cur'] = currentValue !== undefined\n ? currentValue\n : (isStringField ? CONFIG.defaultString : CONFIG.defaultNumeric);\n output[field + '_Init'] = metadata && metadata.initialValue !== undefined\n ? metadata.initialValue\n : (isStringField ? CONFIG.defaultString : CONFIG.defaultNumeric);\n\n if (hasCurrentFrameValue) {\n lastValues[field] = cache.instant[field];\n lastMetadata[field] = cache.metadata[field];\n\n const rawTime = cache.metadata[field] ? Number(cache.metadata[field].timeStamp) : NaN;\n if (!Number.isNaN(rawTime)) {\n candidateTimestamps.push(rawTime);\n }\n }\n}\n\nif (candidateTimestamps.length > 0) {\n lastTimestamp = Math.max(...candidateTimestamps);\n}\n\noutput.timestamp = lastTimestamp;\n\nmsg.topic = CONFIG.outputTopic;\nmsg.payload = output;\n\nflow.set('agvDataCache', { instant: {}, metadata: {} });\nflow.set('agvLastValues', lastValues);\nflow.set('agvLastMetadata', lastMetadata);\nflow.set('agvLastTimestamp', lastTimestamp);\n\nreturn msg;",
    "outputs": 1,
    "timeout": "",
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 460,
    "y": 500,
    "wires": [
    [
    "6d5e4f3a2b1c0d91",
    "7c6b5a4d3e2f1098"
    ]
    ]
    },
    {
    "id": "6d5e4f3a2b1c0d91",
    "type": "mqtt out",
    "z": "fa46cf31be8d751e",
    "name": "Publish Metric/AGV",
    "topic": "Metric/AGV",
    "qos": "1",
    "retain": "false",
    "respTopic": "",
    "contentType": "",
    "userProps": "",
    "correl": "",
    "expiry": "",
    "broker": "f2d431c2d2264341",
    "x": 710,
    "y": 400,
    "wires": []
    },
    {
    "id": "7c6b5a4d3e2f1098",
    "type": "debug",
    "z": "fa46cf31be8d751e",
    "name": "Debug AGV payload",
    "active": true,
    "tosidebar": true,
    "console": false,
    "complete": "payload",
    "targetType": "msg",
    "statusVal": "",
    "statusType": "auto",
    "x": 740,
    "y": 580,
    "wires": []
    },
    {
    "id": "c11decb07a68083d",
    "type": "mqtt-broker",
    "name": "supos-demo.supos.app",
    "broker": "supos-demo.supos.app",
    "port": 1883,
    "clientid": "",
    "autoConnect": true,
    "usetls": false,
    "protocolVersion": 4,
    "keepalive": 60,
    "cleansession": true,
    "autoUnsubscribe": true,
    "birthTopic": "",
    "birthQos": "0",
    "birthRetain": "false",
    "birthPayload": "",
    "birthMsg": {},
    "closeTopic": "",
    "closeQos": "0",
    "closeRetain": "false",
    "closePayload": "",
    "closeMsg": {},
    "willTopic": "",
    "willQos": "0",
    "willRetain": "false",
    "willPayload": "",
    "willMsg": {},
    "userProps": "",
    "sessionExpiry": ""
    },
    {
    "id": "f2d431c2d2264341",
    "type": "mqtt-broker",
    "z": "fa46cf31be8d751e",
    "name": "emqx",
    "broker": "mqtt.pre.tier0.dev",
    "port": "1883",
    "clientid": "336462685553088&341668146888752",
    "autoConnect": true,
    "usetls": false,
    "protocolVersion": "4",
    "keepalive": "60",
    "cleansession": true,
    "autoUnsubscribe": true,
    "birthTopic": "",
    "birthQos": "0",
    "birthRetain": "false",
    "birthPayload": "",
    "birthMsg": {},
    "closeTopic": "",
    "closeQos": "0",
    "closeRetain": "false",
    "closePayload": "",
    "closeMsg": {},
    "willTopic": "",
    "willQos": "0",
    "willRetain": "false",
    "willPayload": "",
    "willMsg": {},
    "userProps": "",
    "sessionExpiry": ""
    }
    ]
    • 선반 1
    선반 1 Flow JSON 보기
    Terminal window
    [
    {
    "id": "88fed08889390f28",
    "type": "tab",
    "label": "Metric/ProLathe-01",
    "disabled": false,
    "info": ""
    },
    {
    "id": "f2bae08de3b55bb0",
    "type": "mqtt in",
    "z": "88fed08889390f28",
    "name": "Subscribe ProLathe joints",
    "topic": "FactorySim_Supos/Flow_Group__1/MechEquips/porcess_prolathe_gs_260ms_1/Motor_Joints/+",
    "qos": "1",
    "datatype": "auto",
    "broker": "6f8ade8021b85933",
    "nl": false,
    "rap": true,
    "rh": 0,
    "inputs": 0,
    "x": 590,
    "y": 340,
    "wires": [
    [
    "ac84eab3cf5bb664",
    "8a8a5572465dac5b"
    ]
    ]
    },
    {
    "id": "ac84eab3cf5bb664",
    "type": "function",
    "z": "88fed08889390f28",
    "name": "Cache Data",
    "func": "const CONFIG = {\n fields: [\"JointChanger\", \"JointDoors\", \"JointFinger\", \"JointSpindle\", \"JointTailStock\", \"Joint_X\", \"Joint_Y\", \"Joint_Z\"],\n payloadFields: {\n value: 'CurrentValue',\n initialValue: 'InitialValue',\n name: 'Name',\n timeStamp: 'timeStamp',\n time_stamp: 'time_stamp',\n quality: 'quality'\n }\n};\n\nlet cache = flow.get('dataCache') || { instant: {}, metadata: {} };\n\nconst topicParts = msg.topic.split('/');\nconst fieldName = topicParts[topicParts.length - 1];\n\nlet payload = msg.payload;\nif (typeof payload === 'string') {\n try {\n payload = JSON.parse(payload);\n } catch (e) {\n return null;\n }\n}\n\nlet value = payload[CONFIG.payloadFields.value];\nif (value === undefined) return null;\n\nconst metadata = {\n timeStamp: payload[CONFIG.payloadFields.timeStamp],\n time_stamp: payload[CONFIG.payloadFields.time_stamp],\n quality: payload[CONFIG.payloadFields.quality],\n name: payload[CONFIG.payloadFields.name],\n initialValue: payload[CONFIG.payloadFields.initialValue]\n};\n\nif (CONFIG.fields.includes(fieldName)) {\n cache.instant[fieldName] = value;\n cache.metadata[fieldName] = metadata;\n} else {\n return null;\n}\n\nflow.set('dataCache', cache);\nreturn null;",
    "outputs": 0,
    "timeout": "",
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 860,
    "y": 360,
    "wires": []
    },
    {
    "id": "ca4b6b2146df5093",
    "type": "inject",
    "z": "88fed08889390f28",
    "name": "100ms Timer",
    "props": [
    {
    "p": "payload"
    },
    {
    "vt": "str",
    "p": "topic"
    }
    ],
    "repeat": "0.1",
    "crontab": "",
    "once": true,
    "onceDelay": "0.1",
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "x": 500,
    "y": 460,
    "wires": [
    [
    "e47cbdc7b7dae23f"
    ]
    ]
    },
    {
    "id": "e47cbdc7b7dae23f",
    "type": "function",
    "z": "88fed08889390f28",
    "name": "Aggregate & Publish (Flat)",
    "func": "const CONFIG = {\n fieldMapping: {\n \"JointChanger\": \"J_Changer\",\n \"JointDoors\": \"J_Door\",\n \"JointFinger\": \"J_Finger\",\n \"JointSpindle\": \"J_Spindle\",\n \"JointTailStock\": \"J_TailStock\",\n \"Joint_X\": \"J_X\",\n \"Joint_Y\": \"J_Y\",\n \"Joint_Z\": \"J_Z\"\n},\n missingStrategy: 'lastValue',\n outputTopic: \"Metric/porcess_prolathe_gs_260ms_1\",\n windowMs: 100\n};\n\nconst FIELDS = Object.keys(CONFIG.fieldMapping);\n\nlet cache = flow.get('dataCache') || { instant: {}, metadata: {} };\nlet lastValues = flow.get('lastValues') || {};\nlet lastMetadata = flow.get('lastMetadata') || {};\nlet output = {};\n\noutput.timestamp = new Date().toISOString();\n\nfor (const field of FIELDS) {\n const shortName = CONFIG.fieldMapping[field];\n\n if (cache.instant[field] !== undefined) {\n output[shortName + '_Cur'] = Number(cache.instant[field]);\n output[shortName + '_Init'] = cache.metadata[field] && cache.metadata[field].initialValue !== undefined\n ? Number(cache.metadata[field].initialValue)\n : 0;\n lastValues[field] = cache.instant[field];\n lastMetadata[field] = cache.metadata[field] || {};\n } else {\n let fallbackValue = CONFIG.missingStrategy === 'lastValue'\n ? (lastValues[field] !== undefined ? lastValues[field] : 0)\n : 0;\n output[shortName + '_Cur'] = Number(fallbackValue);\n output[shortName + '_Init'] = lastMetadata[field] && lastMetadata[field].initialValue !== undefined\n ? Number(lastMetadata[field].initialValue)\n : 0;\n }\n}\n\nmsg.payload = output;\nmsg.topic = CONFIG.outputTopic;\n\nflow.set('dataCache', { instant: {}, metadata: {} });\nflow.set('lastValues', lastValues);\nflow.set('lastMetadata', lastMetadata);\n\nreturn msg;",
    "outputs": 1,
    "timeout": "",
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 740,
    "y": 460,
    "wires": [
    [
    "ad22bd2f8b228324"
    ]
    ]
    },
    {
    "id": "ad22bd2f8b228324",
    "type": "mqtt out",
    "z": "88fed08889390f28",
    "name": "Metric/Prolathe",
    "topic": "Metric/ProLathe-01",
    "qos": "1",
    "retain": "false",
    "respTopic": "",
    "contentType": "",
    "userProps": "",
    "correl": "",
    "expiry": "",
    "broker": "c14ef68b0e3b48ac",
    "x": 1060,
    "y": 360,
    "wires": []
    },
    {
    "id": "8a8a5572465dac5b",
    "type": "debug",
    "z": "88fed08889390f28",
    "name": "Debug Output",
    "active": true,
    "tosidebar": true,
    "console": false,
    "complete": "payload",
    "statusVal": "",
    "statusType": "auto",
    "x": 980,
    "y": 540,
    "wires": []
    },
    {
    "id": "6f8ade8021b85933",
    "type": "mqtt-broker",
    "name": "supos-demo.supos.app",
    "broker": "supos-demo.supos.app",
    "port": 1883,
    "clientid": "",
    "autoConnect": true,
    "usetls": false,
    "protocolVersion": 4,
    "keepalive": 60,
    "cleansession": true,
    "autoUnsubscribe": true,
    "birthTopic": "",
    "birthQos": "0",
    "birthRetain": "false",
    "birthPayload": "",
    "birthMsg": {},
    "closeTopic": "",
    "closeQos": "0",
    "closeRetain": "false",
    "closePayload": "",
    "closeMsg": {},
    "willTopic": "",
    "willQos": "0",
    "willRetain": "false",
    "willPayload": "",
    "willMsg": {},
    "userProps": "",
    "sessionExpiry": ""
    },
    {
    "id": "c14ef68b0e3b48ac",
    "type": "mqtt-broker",
    "z": "88fed08889390f28",
    "name": "emqx",
    "broker": "mqtt.pre.tier0.dev",
    "port": "1883",
    "clientid": "336462685553088&337035452420768",
    "autoConnect": true,
    "usetls": false,
    "protocolVersion": "4",
    "keepalive": "60",
    "cleansession": true,
    "autoUnsubscribe": true,
    "birthTopic": "",
    "birthQos": "0",
    "birthRetain": "false",
    "birthPayload": "",
    "birthMsg": {},
    "closeTopic": "",
    "closeQos": "0",
    "closeRetain": "false",
    "closePayload": "",
    "closeMsg": {},
    "willTopic": "",
    "willQos": "0",
    "willRetain": "false",
    "willPayload": "",
    "willMsg": {},
    "userProps": "",
    "sessionExpiry": ""
    }
    ]
    • 선반 2
    선반 2 Flow JSON 보기
    Terminal window
    [
    {
    "id": "c974bfc5fbc79b0e",
    "type": "tab",
    "label": "Metric/ProLathe-02",
    "disabled": false,
    "info": ""
    },
    {
    "id": "2ff367f08cbe470f",
    "type": "mqtt in",
    "z": "c974bfc5fbc79b0e",
    "name": "Subscribe ProLathe joints",
    "topic": "FactorySim_Supos/Flow_Group__1/MechEquips/porcess_prolathe_gs_260ms_2/Motor_Joints/+",
    "qos": "1",
    "datatype": "auto",
    "broker": "6f8ade8021b85933",
    "nl": false,
    "rap": true,
    "rh": 0,
    "inputs": 0,
    "x": 590,
    "y": 340,
    "wires": [
    [
    "7c54f7852fb5430e"
    ]
    ]
    },
    {
    "id": "7c54f7852fb5430e",
    "type": "function",
    "z": "c974bfc5fbc79b0e",
    "name": "Cache Data",
    "func": "const CONFIG = {\n fields: [\"JointChanger\", \"JointDoors\", \"JointFinger\", \"JointSpindle\", \"JointTailStock\", \"Joint_X\", \"Joint_Y\", \"Joint_Z\"],\n payloadFields: {\n value: 'CurrentValue',\n initialValue: 'InitialValue',\n name: 'Name',\n timeStamp: 'timeStamp',\n time_stamp: 'time_stamp',\n quality: 'quality'\n }\n};\n\nlet cache = flow.get('dataCache') || { instant: {}, metadata: {} };\n\nconst topicParts = msg.topic.split('/');\nconst fieldName = topicParts[topicParts.length - 1];\n\nlet payload = msg.payload;\nif (typeof payload === 'string') {\n try {\n payload = JSON.parse(payload);\n } catch (e) {\n return null;\n }\n}\n\nlet value = payload[CONFIG.payloadFields.value];\nif (value === undefined) return null;\n\nconst metadata = {\n timeStamp: payload[CONFIG.payloadFields.timeStamp],\n time_stamp: payload[CONFIG.payloadFields.time_stamp],\n quality: payload[CONFIG.payloadFields.quality],\n name: payload[CONFIG.payloadFields.name],\n initialValue: payload[CONFIG.payloadFields.initialValue]\n};\n\nif (CONFIG.fields.includes(fieldName)) {\n cache.instant[fieldName] = value;\n cache.metadata[fieldName] = metadata;\n} else {\n return null;\n}\n\nflow.set('dataCache', cache);\nreturn null;",
    "outputs": 0,
    "timeout": "",
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 860,
    "y": 360,
    "wires": []
    },
    {
    "id": "a69b0f994c614213",
    "type": "inject",
    "z": "c974bfc5fbc79b0e",
    "name": "100ms Timer",
    "props": [
    {
    "p": "payload"
    },
    {
    "vt": "str",
    "p": "topic"
    }
    ],
    "repeat": "0.1",
    "crontab": "",
    "once": true,
    "onceDelay": "0.1",
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "x": 500,
    "y": 460,
    "wires": [
    [
    "a182dc40725e4801"
    ]
    ]
    },
    {
    "id": "a182dc40725e4801",
    "type": "function",
    "z": "c974bfc5fbc79b0e",
    "name": "Aggregate & Publish (Flat)",
    "func": "const CONFIG = {\n fieldMapping: {\n \"JointChanger\": \"J_Changer\",\n \"JointDoors\": \"J_Door\",\n \"JointFinger\": \"J_Finger\",\n \"JointSpindle\": \"J_Spindle\",\n \"JointTailStock\": \"J_TailStock\",\n \"Joint_X\": \"J_X\",\n \"Joint_Y\": \"J_Y\",\n \"Joint_Z\": \"J_Z\"\n},\n missingStrategy: 'lastValue',\n outputTopic: \"Metric/porcess_prolathe_gs_260ms_2\",\n windowMs: 100\n};\n\nconst FIELDS = Object.keys(CONFIG.fieldMapping);\n\nlet cache = flow.get('dataCache') || { instant: {}, metadata: {} };\nlet lastValues = flow.get('lastValues') || {};\nlet lastMetadata = flow.get('lastMetadata') || {};\nlet output = {};\n\noutput.timestamp = new Date().toISOString();\n\nfor (const field of FIELDS) {\n const shortName = CONFIG.fieldMapping[field];\n\n if (cache.instant[field] !== undefined) {\n output[shortName + '_Cur'] = Number(cache.instant[field]);\n output[shortName + '_Init'] = cache.metadata[field] && cache.metadata[field].initialValue !== undefined\n ? Number(cache.metadata[field].initialValue)\n : 0;\n lastValues[field] = cache.instant[field];\n lastMetadata[field] = cache.metadata[field] || {};\n } else {\n let fallbackValue = CONFIG.missingStrategy === 'lastValue'\n ? (lastValues[field] !== undefined ? lastValues[field] : 0)\n : 0;\n output[shortName + '_Cur'] = Number(fallbackValue);\n output[shortName + '_Init'] = lastMetadata[field] && lastMetadata[field].initialValue !== undefined\n ? Number(lastMetadata[field].initialValue)\n : 0;\n }\n}\n\nmsg.payload = output;\n\nmsg.payload.Model_Name = \"Turbo\";\nmsg.payload.Max_Carry_Weight_kg = 15.0;\n\nmsg.topic = CONFIG.outputTopic;\n\nflow.set('dataCache', { instant: {}, metadata: {} });\nflow.set('lastValues', lastValues);\nflow.set('lastMetadata', lastMetadata);\n\nreturn msg;",
    "outputs": 1,
    "timeout": "",
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 740,
    "y": 460,
    "wires": [
    [
    "b4e1817aa3744ab9",
    "84c88149d8d24eae"
    ]
    ]
    },
    {
    "id": "b4e1817aa3744ab9",
    "type": "mqtt out",
    "z": "c974bfc5fbc79b0e",
    "name": "Metric/Prolathe2",
    "topic": "Metric/ProLathe-02",
    "qos": "1",
    "retain": "false",
    "respTopic": "",
    "contentType": "",
    "userProps": "",
    "correl": "",
    "expiry": "",
    "broker": "6befe0f78bf64759",
    "x": 1060,
    "y": 360,
    "wires": []
    },
    {
    "id": "84c88149d8d24eae",
    "type": "debug",
    "z": "c974bfc5fbc79b0e",
    "name": "Debug Output",
    "active": true,
    "tosidebar": true,
    "console": false,
    "complete": "payload",
    "statusVal": "",
    "statusType": "auto",
    "x": 980,
    "y": 540,
    "wires": []
    },
    {
    "id": "6f8ade8021b85933",
    "type": "mqtt-broker",
    "name": "supos-demo.supos.app",
    "broker": "supos-demo.supos.app",
    "port": 1883,
    "clientid": "",
    "autoConnect": true,
    "usetls": false,
    "protocolVersion": 4,
    "keepalive": 60,
    "cleansession": true,
    "autoUnsubscribe": true,
    "birthTopic": "",
    "birthQos": "0",
    "birthRetain": "false",
    "birthPayload": "",
    "birthMsg": {},
    "closeTopic": "",
    "closeQos": "0",
    "closeRetain": "false",
    "closePayload": "",
    "closeMsg": {},
    "willTopic": "",
    "willQos": "0",
    "willRetain": "false",
    "willPayload": "",
    "willMsg": {},
    "userProps": "",
    "sessionExpiry": ""
    },
    {
    "id": "6befe0f78bf64759",
    "type": "mqtt-broker",
    "z": "c974bfc5fbc79b0e",
    "name": "emqx",
    "broker": "mqtt.pre.tier0.dev",
    "port": "1883",
    "clientid": "336462685553088&338098843755632",
    "autoConnect": true,
    "usetls": false,
    "protocolVersion": "4",
    "keepalive": "60",
    "cleansession": true,
    "autoUnsubscribe": true,
    "birthTopic": "",
    "birthQos": "0",
    "birthRetain": "false",
    "birthPayload": "",
    "birthMsg": {},
    "closeTopic": "",
    "closeQos": "0",
    "closeRetain": "false",
    "closePayload": "",
    "closeMsg": {},
    "willTopic": "",
    "willQos": "0",
    "willRetain": "false",
    "willPayload": "",
    "willMsg": {},
    "userProps": "",
    "sessionExpiry": ""
    }
    ]
  1. Model에서 작업장 모델을 가져오고 UNS 데이터를 매핑하여 인스턴스를 만듭니다.
  2. Scene에서 Instance Library의 작업장 인스턴스를 장면에 추가합니다.
  3. 모델을 작업장 위치에 배치하고 조명 등 환경 세부 사항을 설정합니다.

참조

API 참조

Tier0 API 연결, 응답 확인, 안전한 쓰기 재시도 방법입니다.

  • 기본 URL: https://<your-tier0-host>/openapi/v2
  • 인증: x-api-key 요청 헤더에 Tier0 API 키를 보냅니다.
  • /uns/ 요청은 HTTP 상태와 응답 본문을 모두 확인합니다. 성공 응답은 2xx 상태와 code: 0이며 결과는 data에 있습니다.
  • 실패하면 error.code를 확인하고 문제 해결을 위해 requestId를 보관합니다.
  • 일괄 요청은 HTTP 200이어도 각 항목을 확인합니다. 일부 항목은 실패했을 수 있습니다.
  • error.execution으로 쓰기가 시작되지 않았는지, 롤백됐는지, 커밋됐는지, 결과를 알 수 없는지 확인합니다.
  • error.retry.safe가 true일 때만 동일한 멱등성 키로 같은 요청을 재시도합니다. 대기 시간이 지정되면 error.retry.afterMs 또는 Retry-After 헤더에 표시된 시간 이상 기다립니다.
  • 일괄 요청의 일부가 커밋됐다면 성공 항목을 확인한 뒤 나머지를 전송합니다. 결과를 알 수 없고 안전한 재시도가 확인되지 않았다면 다시 보내기 전에 쓰기가 적용됐는지 확인합니다.
참조

CLI 명령 참조

CLI 및 Agent Skill 명령 참조입니다.

전역 플래그이 플래그는 모든 tier0 명령에서 사용할 수 있습니다.
--json원본 JSON 출력--debugHTTP 요청/응답 상세 출력

기본 작업

tier0 doctor로컬 Tier0 CLI 연결 및 인증 진단

사용법

Terminal window
tier0 doctor

참고

  • 로컬 설정, OpenAPI 연결, API key 존재 여부와 API key 신원을 확인합니다.

예시

Terminal window
tier0 doctor
tier0 config설정 보기 또는 업데이트

사용법

Terminal window
tier0 config

플래그

--base-url
플랫폼 base URL 설정
--api-key
API key 설정(tier0 login 대체 가능)
--lang
지원 중단된 호환성 플래그입니다. CLI 출력은 영어만 지원합니다지원 중단

예시

Terminal window
tier0 config
Terminal window
tier0 config --base-url https://tier0.dev
Terminal window
tier0 config --api-key sk-per-xxxxxx
tier0 loginDevice Flow로 인증

사용법

Terminal window
tier0 login

플래그

--no-wait
인증 URL을 출력하고 폴링 없이 종료
--setup-code
새로 만들지 않고 기존 setup code로 폴링
--base-url
플랫폼 base URL 재정의

참고

  • --no-wait를 사용하지 않으면 CLI가 최대 10분 동안 5초마다 폴링합니다.
  • --no-wait --json을 사용하면 CLI가 verification_url, setup_code, expires_in을 반환합니다.

예시

Terminal window
tier0 login
Terminal window
tier0 login --no-wait --json
Terminal window
tier0 login --setup-code <setup_code>
tier0 apiAPI endpoint 직접 호출

사용법

Terminal window
tier0 api <endpoint>

플래그

--body
요청 본문 JSON 문자열
--body-file
파일에서 요청 본문 읽기
--method
HTTP 메서드(GET|POST|PUT|DELETE)기본값: POST
--dry-run
실행하지 않고 요청 미리보기

참고

  • --body와 --body-file은 함께 사용할 수 없습니다.

예시

Terminal window
tier0 api /openapi/v1/uns/browse --body '{"path":"/"}'
Terminal window
tier0 api /openapi/v1/uns/read --body '{"topics":["demo"]}'
Terminal window
tier0 api /openapi/v1/uns/write --body-file body.json
tier0 upgradeCLI를 최신 버전으로 업그레이드

사용법

Terminal window
tier0 upgrade

플래그

--dry-run
설치하지 않고 업데이트 확인
-v, --version
특정 버전으로 업그레이드(기본값: latest)

예시

Terminal window
tier0 upgrade
Terminal window
tier0 upgrade --dry-run
tier0 uninstalltier0 CLI 제거

사용법

Terminal window
tier0 uninstall

플래그

--purge
설정 파일(자격 증명)도 삭제
--remove-skills
감지된 AI agents에서도 Tier0 Skill 제거
--keep-skills
agent skills 유지(지원 중단됨. 현재는 기본 동작)지원 중단

참고

  • Agent Skills와 설정은 기본적으로 유지됩니다.
  • CLI 제거 중에는 로컬 내장 skills 디렉터리가 삭제됩니다.

예시

Terminal window
tier0 uninstall
Terminal window
tier0 uninstall --purge
Terminal window
tier0 uninstall --remove-skills
Terminal window
tier0 uninstall --purge --remove-skills
tier0 version버전 표시

사용법

Terminal window
tier0 version

예시

Terminal window
tier0 version

스킬

tier0 skills install이 CLI에 내장된 Skill 설치 또는 복구

사용법

Terminal window
tier0 skills install

플래그

--force
활성 Skill을 내장 기준 버전으로 교체
--no-sync
감지된 AI agents와 동기화하지 않고 로컬에만 설치

예시

Terminal window
tier0 skills install
Terminal window
tier0 skills install --force
tier0 skills list설치된 skills 목록 표시별칭: ls

사용법

Terminal window
tier0 skills list

예시

Terminal window
tier0 skills list
tier0 skills updateskills를 최신 버전으로 업데이트별칭: upgrade

사용법

Terminal window
tier0 skills update

플래그

--dry-run
설치하지 않고 업데이트 확인

예시

Terminal window
tier0 skills update
Terminal window
tier0 skills update --dry-run
tier0 skills versionskills 버전 정보 표시별칭: ver

사용법

Terminal window
tier0 skills version

예시

Terminal window
tier0 skills version
tier0 skills status활성 Skill과 내장 Skill 상태 표시

사용법

Terminal window
tier0 skills status

예시

Terminal window
tier0 skills status
tier0 skills sync활성 Skill을 감지된 AI agents에 동기화

사용법

Terminal window
tier0 skills sync

예시

Terminal window
tier0 skills sync

인증

tier0 auth whoami현재 API key 신원 표시

사용법

Terminal window
tier0 auth whoami

참고

  • 사용자, workspace, key 이름, key 유형, 역할 및 권한을 표시합니다.

예시

Terminal window
tier0 auth whoami
Terminal window
tier0 auth whoami --json

UNS

tier0 uns browseUNS namespace 트리 탐색

사용법

Terminal window
tier0 uns browse

플래그

-p, --path
UNS 트리에서 탐색할 경로기본값: /
-d, --max-depth
최대 재귀 깊이(0 = 무제한)기본값: 1
--include-metadata
노드 메타데이터 포함
--include-leaf-value
리프 노드 값 포함

예시

Terminal window
tier0 uns browse
Terminal window
tier0 uns browse --path /devices
Terminal window
tier0 uns browse --path / --max-depth 2
tier0 uns searchUNS topics 검색

사용법

Terminal window
tier0 uns search

플래그

-k, --keyword
이름 키워드로 검색
--path-prefix
경로 접두사로 필터링기본값: /
--topic-type
topic type으로 필터링
--page
페이지 번호기본값: 1
-l, --size
페이지 크기(최대 결과 수)기본값: 20
--include-metadata
노드 메타데이터 포함
--include-leaf-value
리프 노드 값 포함

예시

Terminal window
tier0 uns search --keyword temp
Terminal window
tier0 uns search --path-prefix /devices --size 50
Terminal window
tier0 uns search --keyword temp --include-metadata
tier0 uns readUNS topics의 현재 값 읽기

사용법

Terminal window
tier0 uns read [topic...]
Terminal window
tier0 uns read --topic <topic>

플래그

-t, --topic
읽을 topic 이름(반복 가능, 위치 인수도 허용)반복 가능
--include-metadata
topic 메타데이터(topicType, fields, description) 포함
--include-leaf-value
리프 노드 값 포함

참고

  • 위치 인수 또는 --topic으로 최소 하나의 topic이 필요합니다.

예시

Terminal window
tier0 uns read demo
Terminal window
tier0 uns read --topic demo
Terminal window
tier0 uns read temp humidity
Terminal window
tier0 uns read --topic sensor1 --include-metadata
tier0 uns writeUNS topic에 값 쓰기

사용법

Terminal window
tier0 uns write

플래그

-t, --topic
쓸 대상 topic 이름(필수)필수
-v, --value
JSON 값 문자열(--file과 함께 사용할 수 없음)
-f, --file
파일에서 값 읽기(--value와 함께 사용할 수 없음)
--qos
MQTT QoS 레벨(0/1/2)기본값: 0
--retain
MQTT retain 플래그 설정
--dry-run
실행하지 않고 요청 미리보기

참고

  • --value와 --file은 함께 사용할 수 없습니다.
  • 값은 topic fields와 일치하는 유효한 JSON object여야 합니다.

예시

Terminal window
tier0 uns write --topic demo --value '{"temp":25}'
Terminal window
tier0 uns write --topic demo --file payload.json
Terminal window
tier0 uns write --topic sensor1 --value '{"on":true}' --qos 1 --retain
tier0 uns historytopics의 이력 데이터 조회

사용법

Terminal window
tier0 uns history

플래그

-t, --topic
topic 이름(반복 가능, 필수)필수반복 가능
--start
시작 시간: 상대값(-1h/-30m/-7d), ISO 8601 또는 'now'(필수)필수
--end
종료 시간: 상대값, ISO 8601 또는 'now'(기본값: now)기본값: now
--page
페이지 번호기본값: 1
-l, --size
페이지 크기(최대 데이터 포인트 수)기본값: 100
--interval
집계 간격(예: 1m, 1h, 1d)
--fn
집계 함수(avg/max/min/sum/count)
--field
집계 필드 이름

예시

Terminal window
tier0 uns history -t demo --start -1h
Terminal window
tier0 uns history -t demo --start -24h --end now --fn avg --interval 1h
Terminal window
tier0 uns history -t demo --start 2026-01-01T00:00:00Z --end 2026-01-02T00:00:00Z
tier0 uns createUNS namespace 노드 생성

사용법

Terminal window
tier0 uns create

플래그

-t, --topic
topic 경로 또는 리프 이름(--file을 사용하지 않을 때 필수)
--parent
상위 경로 접두사(선택 사항, --topic과 결합)
--type
노드 유형: 'path'(폴더) 또는 'topic'(데이터 포인트)
-d, --display-name
표시 이름
--description
설명
--alias
별칭
-f, --file
JSON 파일에서 namespace 정의 읽기({"namespace":[]} 또는 배열만)
--topic-type
지원 중단: topic type은 이제 경로(리프 앞의 Metric/Action/State 폴더)에서 파생됩니다.지원 중단
--fields
schema fields JSON 배열
--fields-file
파일에서 schema fields JSON 배열 읽기
--dry-run
실행하지 않고 요청 미리보기

참고

  • --file을 사용하지 않으면 --topic과 --type이 필요합니다.
  • --fields와 --fields-file은 함께 사용할 수 없습니다.
  • topic 노드에서는 리프 바로 앞 경로 세그먼트가 Metric, Action 또는 State여야 합니다.

예시

Terminal window
tier0 uns create --topic Plant/Line1/Metric/Temperature --type topic
Terminal window
tier0 uns create --parent Factory1/Line1/Station1 --topic Metric/ProductionCount --type topic
Terminal window
tier0 uns create --topic Plant/Line1 --type path --display-name 'Line 1'
Terminal window
tier0 uns create --file namespace.json
tier0 uns updateUNS topic 메타데이터 업데이트

사용법

Terminal window
tier0 uns update

플래그

-p, --path
업데이트할 topic 경로(필수)필수
-n, --name
새 이름
--alias
새 별칭
--description
새 설명
--clear-description
빈 shell 인수에 의존하지 않고 설명 지우기
-d, --display-name
새 표시 이름
--extend-properties
확장 속성 JSON object
--fields
schema fields JSON 배열
--fields-file
파일에서 schema fields JSON 배열 읽기
--update-mask
업데이트할 필드(반복 가능, 예: name,description,fields)반복 가능
--dry-run
실행하지 않고 요청 미리보기

참고

  • --description과 --clear-description은 함께 사용할 수 없습니다.
  • --fields와 --fields-file은 함께 사용할 수 없습니다.
  • 업데이트할 필드를 하나 이상 지정해야 합니다.

예시

Terminal window
tier0 uns update --path Plant/Line1/Metric/Temperature --display-name 'Line 1 Temp'
Terminal window
tier0 uns update --path Plant/Line1 --description 'Production line 1' --update-mask description
Terminal window
tier0 uns update --path Plant/Line1/Metric/Temperature --fields '[{"name":"temp","type":"float","unit":"C"}]' --update-mask fields
tier0 uns deleteUNS 노드 삭제

사용법

Terminal window
tier0 uns delete

플래그

-p, --path
삭제할 노드 경로(반복 가능, 필수)필수반복 가능
--hard
하드 삭제(되돌릴 수 없음)
-y, --yes
고위험 작업 확인(필수)필수
--dry-run
실행하지 않고 요청 미리보기

참고

  • 기본값은 소프트 삭제이며 복원할 수 있습니다.
  • --hard는 되돌릴 수 없습니다.
  • --dry-run을 사용하지 않는 한 고위험 작업에는 --yes가 필요합니다.

예시

Terminal window
tier0 uns delete --path factory/line1/sensor/temp --yes
Terminal window
tier0 uns delete --path factory/line1/sensor/temp --path factory/line1/sensor/humi --yes
Terminal window
tier0 uns delete --path factory/line1/sensor/temp --hard --yes
tier0 uns restore이력에서 topic 복원

사용법

Terminal window
tier0 uns restore

플래그

-p, --path
복원할 topic 경로(필수)필수
-y, --yes
고위험 작업 확인(필수)필수
--dry-run
실행하지 않고 요청 미리보기

참고

  • --dry-run을 사용하지 않는 한 고위험 작업에는 --yes가 필요합니다.

예시

Terminal window
tier0 uns restore --path Plant/Line1/Metric/Temperature --yes

Node-RED 플로우

tier0 flow listflows 목록 표시별칭: ls

사용법

Terminal window
tier0 flow list

플래그

-k, --keyword
이름 키워드로 필터링
-t, --type
유형별 필터링(SourceFlow/EventFlow)
--source
SourceFlow만 표시
--event
EventFlow만 표시

참고

  • --source와 --event는 함께 사용할 수 없습니다.
  • --type은 --source 또는 --event와 함께 사용할 수 없습니다.

예시

Terminal window
tier0 flow list
Terminal window
tier0 flow list --source --json
tier0 flow getflow 상세 정보 가져오기

사용법

Terminal window
tier0 flow get --id <id>
Terminal window
tier0 flow get <id>

플래그

--id
Flow ID기본값: 0

참고

  • --id 또는 위치 인수로 양수 Flow ID를 지정해야 합니다.

예시

Terminal window
tier0 flow get --id 1 --json
Terminal window
tier0 flow get 1 --json
tier0 flow create새 flow 생성

사용법

Terminal window
tier0 flow create

플래그

-n, --name
Flow 이름(필수)필수
-t, --type
Flow 유형: SourceFlow | EventFlow(필수)필수
--source
유형을 SourceFlow로 설정
--event
유형을 EventFlow로 설정
--desc
설명
--template
초기 템플릿 JSON 문자열
--template-file
파일에서 초기 템플릿 읽기
--dry-run
실행하지 않고 요청 미리보기

참고

  • Flow 유형을 선택하려면 --type, --source, --event 중 정확히 하나만 사용해야 합니다.
  • --template과 --template-file은 함께 사용할 수 없습니다.

예시

Terminal window
tier0 flow create --name "modbus-collector" --source --desc "Modbus TCP collector"
Terminal window
tier0 flow create --name "alert-handler" --event --desc "Temperature alarm processor"
tier0 flow updateflow 메타데이터 업데이트

사용법

Terminal window
tier0 flow update --id <id>
Terminal window
tier0 flow update <id>

플래그

--id
Flow ID(필수)기본값: 0
-n, --name
새 이름
--desc
새 설명
--template
새 템플릿 JSON 문자열
--template-file
파일에서 새 템플릿 읽기
--favorite
즐겨찾기로 표시
--unfavorite
즐겨찾기에서 제거
--dry-run
실행하지 않고 요청 미리보기

참고

  • --id 또는 위치 인수로 양수 Flow ID를 지정해야 합니다.
  • --template과 --template-file은 함께 사용할 수 없습니다.
  • --favorite과 --unfavorite은 함께 사용할 수 없습니다.
  • 업데이트할 필드를 하나 이상 지정해야 합니다.

예시

Terminal window
tier0 flow update --id 1 --name "line1-collector"
Terminal window
tier0 flow update --id 1 --favorite
tier0 flow dataNode-RED canvas JSON 가져오기

사용법

Terminal window
tier0 flow data --id <id>
Terminal window
tier0 flow data <id>

플래그

--id
Flow ID기본값: 0
-o, --out
출력을 파일에 저장

참고

  • --id 또는 위치 인수로 양수 Flow ID를 지정해야 합니다.

예시

Terminal window
tier0 flow data --id 1 --out flows.json
tier0 flow deployNode-RED canvas JSON 배포

사용법

Terminal window
tier0 flow deploy --id <id>
Terminal window
tier0 flow deploy <id>

플래그

--id
Flow ID(필수)기본값: 0
--flows-json
Node-RED canvas JSON 문자열
-f, --flows-file
파일에서 Node-RED canvas JSON 읽기(권장)
-y, --yes
고위험 작업 확인(필수)필수
--dry-run
실행하지 않고 요청 미리보기

참고

  • --id 또는 위치 인수로 양수 Flow ID를 지정해야 합니다.
  • --flows-json과 --flows-file은 함께 사용할 수 없습니다.
  • 배포하면 해당 Flow의 기존 Node-RED 노드가 모두 교체됩니다.
  • --dry-run을 사용하지 않는 한 고위험 작업에는 --yes가 필요합니다.

예시

Terminal window
tier0 flow deploy --id 1 -f flows.json --dry-run --json
Terminal window
tier0 flow deploy --id 1 -f flows.json --yes
tier0 flow deleteflow 삭제별칭: del, rm

사용법

Terminal window
tier0 flow delete --id <id>
Terminal window
tier0 flow delete <id>[,<id>...]

플래그

--id
삭제할 Flow ID(반복 가능)반복 가능
-y, --yes
고위험 작업 확인(필수)필수
--dry-run
실행하지 않고 요청 미리보기

참고

  • 위치 인수에는 쉼표로 구분된 Flow ID가 포함될 수 있습니다.
  • 삭제하면 Node-RED 컨테이너가 중지되며 되돌릴 수 없습니다.
  • --dry-run을 사용하지 않는 한 고위험 작업에는 --yes가 필요합니다.

예시

Terminal window
tier0 flow delete --id 1 --yes
tier0 flow nodes사용 가능한 Node-RED 노드 유형 목록 표시

사용법

Terminal window
tier0 flow nodes [source|event]
Terminal window
tier0 flow nodes --type <SourceFlow|EventFlow>
Terminal window
tier0 flow nodes --source
Terminal window
tier0 flow nodes --event

플래그

-t, --type
Flow 유형(SourceFlow/EventFlow)
--source
SourceFlow 노드 표시
--event
EventFlow 노드 표시

참고

  • 위치 인수 Flow 유형은 최대 하나만 허용됩니다.
  • --source와 --event는 함께 사용할 수 없습니다.
  • 위치/유형 입력을 --source 또는 --event와 함께 사용하지 마세요.

예시

Terminal window
tier0 flow nodes source --json
Terminal window
tier0 flow nodes --source --json
Terminal window
tier0 flow nodes --event --json

파일

tier0 assets uploadTier0 object storage에 파일 업로드

사용법

Terminal window
tier0 assets upload <local-file>

플래그

--business
비즈니스 장면기본값: attachment
--use-by
사용 범위: user|workspace|platform기본값: workspace
--visibility
가시성: public|private기본값: private
--app-instance-id
AI 앱 인스턴스 ID
--session-id
AI 세션 ID
--multipart-size
멀티파트 파트 크기(예: 10MB, 최소 5MB)기본값: CLI-defined default
--concurrency
멀티파트 업로드 동시성(병렬 파트 수)기본값: 4
--resume
중단된 멀티파트 업로드 재개
--abort
중단된 멀티파트 업로드를 중단하고 상태 정리

참고

  • 로컬 파일 인수는 정확히 하나만 필요합니다.
  • 100MB보다 큰 파일은 자동으로 멀티파트 업로드를 사용합니다.
  • CLI는 엄격한 최대 파일 크기를 강제하지 않으며, 서버가 플랜/할당량 제한을 적용합니다.

예시

Terminal window
tier0 assets upload ./report.csv
Terminal window
tier0 assets upload ./report.csv --visibility public --business attachment
Terminal window
tier0 assets upload ./report.csv --use-by workspace --visibility private
Terminal window
tier0 assets upload ./large-backup.tar.gz
Terminal window
tier0 assets upload ./large-backup.tar.gz --resume
Terminal window
tier0 assets upload ./large-backup.tar.gz --abort
Terminal window
tier0 assets upload ./large-backup.tar.gz --multipart-size 20MB --concurrency 8
tier0 assets downloadTier0 object storage에서 파일 다운로드

사용법

Terminal window
tier0 assets download

플래그

--file-path
업로드에서 반환된 파일 경로필수
-o, --output
출력 파일 경로(기본값: stdout)
--content-disposition
사용자 지정 Content-Disposition

예시

Terminal window
tier0 assets download --file-path workspace/.../report.csv -o ./report.csv
Terminal window
tier0 assets download --file-path workspace/.../report.csv
tier0 assets urlTier0 object storage 파일 접근 URL 가져오기

사용법

Terminal window
tier0 assets url

플래그

--file-path
업로드에서 반환된 파일 경로필수
--expired-sec
사전 서명 URL 만료 시간(초)기본값: 3600
--content-disposition
사용자 지정 Content-Disposition

예시

Terminal window
tier0 assets url --file-path workspace/.../report.csv
Terminal window
tier0 assets url --file-path workspace/.../report.csv --expired-sec 300
tier0 assets deleteTier0 object storage 파일 삭제

사용법

Terminal window
tier0 assets delete

플래그

--file-path
업로드에서 반환된 파일 경로필수
-y, --yes
고위험 작업 확인(필수)필수
--dry-run
실행하지 않고 요청 미리보기

참고

  • 삭제는 되돌릴 수 없습니다.
  • --dry-run을 사용하지 않는 한 고위험 작업에는 --yes가 필요합니다.

예시

Terminal window
tier0 assets delete --file-path workspace/.../report.csv --dry-run --json
Terminal window
tier0 assets delete --file-path workspace/.../report.csv --yes
참조

내장 Builder Skills

Tier0 Builder에 내장된 AI Skills 참조 문서입니다.

Tier0 Builder Skills 저장소의 feature/cloud-new-architecture-migration 브랜치에는 현재 요구사항, 앱 구축, 플랫폼 정렬, 브라우저 기능, 반응형 디자인, 미리보기 문제를 다루는 Skill 6개가 있습니다.

산업용 앱 요구사항 분석의 시작점입니다. 요청에서 SRS를 만들거나 PRD를 변환하고 기존 SRS를 수정합니다. 비즈니스 역할, 워크플로, 상태, 검증, 예외를 정리하고 첫 릴리스 범위를 정한 뒤 기본적으로 specs/spec.md에 저장합니다. 요구사항만 요청했거나 확인이 필요한 경우를 제외하고 새 앱을 app-builder로 이어서 처리합니다.

Terminal window
$app-srs로 자동차 부품 공장의 품질 이상 관리 시스템을 설계해 줘.

요구사항이나 specs/spec.md를 바탕으로 실행 가능한 첫 앱을 만들거나 기존 앱에 큰 비즈니스 모듈을 추가합니다. 필요하면 app-srs로 SRS를 먼저 작성합니다. 일반적인 필드, 문구, 스타일, 단일 UI 수정에는 전체 Builder 절차가 필요하지 않습니다.

진입점과 실제 사용자 경로, 실제 데이터와 상태 변경, 검증과 역할 권한, 빌드·미리보기·대화형 흐름을 확인합니다. 적절한 목록 페이지에는 대상 스캐폴드의 MetaListPage를 실제 서비스와 권한에 연결합니다.

Terminal window
$app-builder로 specs/spec.md의 첫 버전을 만들어 줘.

가져온 앱을 Tier0 스캐폴드로 마이그레이션하거나 기존 앱을 현재 계약에 맞춥니다. 이전 Tier0 앱, 앱 자체 SQL 데이터베이스·브라우저 저장소·모의 영속성을 쓰는 앱, 전체 업데이트나 제한적인 플랫폼 수정이 필요한 앱에 적합합니다.

클라우드 아키텍처 스캐폴드의 정확한 커밋과 비교합니다. 비즈니스 동작을 유지하면서 런타임, 라우팅, Gateway 역할, 플랫폼 계약을 맞춥니다. 전체 클라우드 마이그레이션에서는 @tier0/sdk-v2로 앱 소유 영속 레코드를 Tier0 UNS collections로 옮깁니다. 원래 데이터베이스의 과거 기록이 필요하다면 UNS로 별도로 가져와야 합니다. 변경된 빌드와 실행 동작을 검증한 후 package.json에 스캐폴드 버전을 기록합니다.

Terminal window
$align-platform-app으로 비즈니스 코드를 유지하며 최신 Tier0 스캐폴드에 맞춰 줘.

QR/바코드 스캔, 사진 촬영, 위치 정보, 오디오 녹음, 파일 읽기, 클립보드 접근을 안내합니다. 대상 장치에 맞는 브라우저 API와 대체 수단을 선택하고 보안 컨텍스트, 권한, iframe/WebView 제한을 확인합니다. 취소나 실패 시 입력을 보존하고 대체 데이터가 실시간 캡처와 다르면 이를 표시합니다. 성공, 거부, 재시도, 정리를 검증합니다.

Terminal window
$browser-platform-capabilities로 점검 양식에 사진 촬영과 파일 업로드 대안을 추가해 줘.

복잡한 중단점, 연동되는 고정·스크롤 영역, 여러 화면 크기의 감사와 미리보기를 다룹니다. 개별 오버플로나 잘린 컨트롤은 직접 수정할 수 있습니다. audit는 기존 레이아웃 검사와 수리, build는 새 반응형 페이지 구축, preview는 여러 중단점의 실시간 미리보기입니다.

Terminal window
$responsive-craft audit로 이 대시보드의 모바일 레이아웃을 수정해 줘.
Terminal window
$responsive-craft preview로 375, 768, 1024, 1440 px를 보여 줘.

관리형 미리보기의 설치, 시작, 준비 상태, 역할, 포트, HMR 문제를 진단합니다. 비즈니스 기능은 만들지 않습니다. 의존성·lockfile 오류, Vite/TanStack Start 시작 문제, 5173 포트 충돌, /api/health 실패, 미리보기 역할, artifact.toml 불일치, 잦은 전체 페이지 새로고침을 다룹니다. 첫 관련 오류를 확인하고 증거가 있는 원인을 수정하며 필요할 때만 재시작한 뒤 원래 오류, 상태 검사, 해당 경로를 검증합니다.

Terminal window
$preview-runtime-stability로 "Preview loading timed out"을 진단해 줘.
  • 요구사항 작성·수정: app-srs; 새 앱은 보통 app-builder로 이어집니다.
  • 첫 릴리스나 큰 비즈니스 확장: app-builder.
  • 마이그레이션 또는 스캐폴드 정렬: align-platform-app.
  • 여섯 가지 브라우저 기능: browser-platform-capabilities.
  • 복잡한 반응형 작업: responsive-craft; 관리형 미리보기 오류: preview-runtime-stability.
참조

사용자 관리

Tier0는 멤버 자격, 라이선스 및 사용자 지정 계정을 통해 고객이 플랫폼 접근과 사용자 권한을 관리할 수 있도록 합니다.

Tier0는 에디션에 따라 서로 다른 방식으로 사용자 권한과 접근을 관리합니다.

  • Cloud는 Workspace 멤버 초대를 통해 Workspace에 접근할 수 있는 사용자를 관리합니다.
  • Enterprise에서는 관리자가 사용자 계정과 역할을 할당하여 접근 가능한 기능을 결정합니다.
  • Workspace 소유자 또는 기존 멤버는 전화번호나 이메일 주소를 통해 새 멤버를 초대할 수 있습니다.

  • 새 멤버는 초대 코드 또는 링크를 받은 후 계정을 등록하고 Workspace에 참여합니다.

  • 초대할 때 새 멤버의 시트 유형(Operator 또는 Builder)을 설정하여 접근할 수 있는 기능 범위를 결정합니다.

    • Builder: 모든 기능 모듈에 접근할 수 있습니다.
    • Operator: 애플리케이션 센터에만 접근할 수 있습니다.
  • 계정 등록에는 2단계 확인이 필요합니다.

작업 수행자 설명
시트 유형 변경 생성자 / Builder
  • 생성자는 모든 멤버의 시트 유형을 변경할 수 있습니다.
  • Builder는 Operator의 시트 유형만 변경할 수 있습니다.
Workspace 삭제 생성자 Workspace를 삭제하면 모든 데이터가 즉시 삭제되며 복구할 수 없습니다.
Workspace 이전 생성자 —
멤버 제거 생성자 / Builder
  • 생성자는 모든 멤버를 제거할 수 있습니다.
  • Builder는 Operator만 제거할 수 있습니다.
계정 삭제 모든 멤버
  • 생성자는 먼저 Workspace를 삭제하거나 다른 멤버에게 이전해야 합니다.
  • 멤버 계정은 즉시 모든 Workspace에서 탈퇴합니다.
  • 계정 데이터는 즉시 삭제되며 복구할 수 없습니다.
참조

Tier0 Cloud 네트워크 및 데이터 보안 안내

Tier0 Cloud 프로덕션 SaaS 서비스의 네트워크 경계, 테넌트 격리, 데이터 보호 및 보안 운영 조치를 설명합니다.

적용 범위: AWS 싱가포르 리전에 배포된 Tier0 Cloud 프로덕션 SaaS 서비스.
문서 날짜: 2026년 10월 22일

Tier0 Cloud는 네트워크 접근 제어, 테넌트 격리, ID 및 접근 관리, 데이터 암호화, 백업 및 복구를 통해 네트워크 공격과 무단 접근의 위험을 줄입니다. 이 문서는 플랫폼의 보안 조치와 보안 사고가 다른 테넌트, 플랫폼 내부 서비스 및 고객 네트워크로 확산되는 것을 제한하는 통제 경계를 설명합니다.

Tier0 Cloud의 공개 Web 및 API 접근에는 TLS 암호화를 사용하며, 통합된 엣지 진입점과 애플리케이션 게이트웨이를 거칩니다. 핵심 서비스 진입점은 원본 서버 접근을 검증하고, 검증 요건을 충족하지 않는 직접 접근 요청을 거부하여 엣지 진입점을 우회한 원본 서버 접근 위험을 줄입니다.

프로덕션 환경은 클라우드 계정, 네트워크, 클러스터 및 데이터베이스 계층에서 개발·스테이징 환경과 격리되며, 접근 자격 증명도 별도로 관리합니다. 프로덕션 관리 접근에는 인증된 전용 네트워크 경로를 사용합니다.

2 테넌트 격리 및 사고 확산 방지

섹션 제목: “2 테넌트 격리 및 사고 확산 방지”

테넌트 워크로드는 별도의 Kubernetes 네임스페이스에서 실행되며, 전용 노드 풀과 스케줄링 제약을 통해 플랫폼 서비스 및 관리 구성 요소와 분리됩니다. 이 방식은 테넌트 애플리케이션과 플랫폼 구성 요소 사이의 직접적인 상호 작용 범위를 제한하여, 특정 애플리케이션에서 보안 사고가 발생했을 때 다른 서비스에 미치는 영향을 줄입니다.

테넌트 네임스페이스의 인바운드 및 아웃바운드 통신에는 기본적으로 거부하고 명시적인 규칙으로만 허용하는 네트워크 정책을 적용합니다. 플랫폼은 정책을 자동으로 구성하고 동기화하며, 클러스터 네트워크 구성 요소가 이를 적용합니다.

인바운드 통신은 동일 테넌트의 워크로드와 필수 업무 기능을 수행하는 플랫폼 서비스에서 오는 통신만 허용합니다. 아웃바운드 통신은 규칙에 따라 클러스터 DNS 이름 확인, 동일 테넌트의 서비스, 지정된 플랫폼 게이트웨이, 메시징 서비스 및 할당된 데이터베이스 엔드포인트에 대해 허용합니다. 공용 인터넷 접근도 네트워크 정책의 제약을 받습니다. 명시적으로 허용된 업무 의존 대상을 제외하고 사설 네트워크 주소 접근을 제한하며, 클라우드 인스턴스 메타데이터 주소에 대한 직접 접근을 차단합니다.

이러한 조치는 승인되지 않은 테넌트 간 연결과 테넌트 워크로드에서 플랫폼 내부 네트워크로의 측면 이동을 제한합니다. 특정 테넌트 애플리케이션에서 보안 사고가 발생하더라도 그 사실만으로 다른 테넌트나 플랫폼 관리 구성 요소에 접근할 수 있는 권한이 부여되지는 않습니다. 이미 승인된 업무 연결에도 해당 네트워크 규칙과 ID 및 접근 제어가 계속 적용됩니다.

테넌트 애플리케이션 데이터는 데이터베이스 계층에서 논리적으로 격리됩니다. 별도의 데이터베이스 단위가 할당되는 경우에는 네트워크 접근 규칙을 통해 연결 출발지도 제한합니다.

플랫폼은 서비스 역할에 따라 접근 권한을 설정하고 각 워크로드의 리소스 접근 범위를 필요한 기능으로 제한합니다. 네트워크 격리와 ID 기반 인가를 함께 적용하여 영향을 받은 워크로드가 접근할 수 있는 리소스 범위를 제한합니다.

이 절의 테넌트 격리 조치는 Tier0 Cloud 플랫폼 내부에 적용됩니다. 고객이 커넥터, 게이트웨이 또는 기타 통합 방식으로 내부 시스템을 연결하는 경우, 고객 네트워크의 접근 경계는 실제 연결 방식, 라우팅, 방화벽 규칙 및 사용된 자격 증명에 부여된 권한에도 영향을 받습니다.

고객은 업무에 필요한 대상 주소, 포트 및 계정 권한만 허용하고, 연결 구성 요소를 다른 내부 시스템과 네트워크상에서 분리해야 합니다. 플랫폼 내부 격리는 고객 측 네트워크 접근 제어를 대체할 수 없습니다. 양측은 구체적인 연결 구성에 따라 접근 범위를 정하고 검증하여, 승인된 연결을 통해 고객의 다른 시스템으로 사고가 확산될 위험을 제한해야 합니다.

플랫폼은 데이터 전송, 저장 및 접근에 다음 보호 조치를 적용합니다.

  • 공개 Web 및 API 통신과 관리형 데이터베이스 및 캐시 접근에 TLS 암호화를 사용합니다.
  • 관리형 데이터베이스, 캐시 및 객체 스토리지에는 저장 데이터 암호화를 활성화합니다.
  • 객체 스토리지는 공개 접근을 차단하며, 암호화 요건, HTTPS 접근 요건 및 리소스 권한을 통해 데이터 접근을 제한합니다.
  • 테넌트 데이터 접근에는 데이터베이스 격리와 ID 및 접근 제어가 모두 적용됩니다.

Tier0 Cloud는 프로덕션 데이터베이스와 백업 범위에 포함된 서비스별 데이터베이스를 백업합니다. 백업 데이터는 접근이 제한된 전용 객체 스토리지에 저장하며, 해당 보존 정책에 따라 관리합니다.

백업 작업은 별도의 ID를 사용하며, 지정된 저장 위치에서 필요한 읽기 및 쓰기 작업만 허용합니다. 백업 객체를 삭제할 권한은 부여하지 않습니다. 보존 기간이 지난 백업은 스토리지 수명 주기 규칙으로 삭제하여, 백업 자격 증명이 유출되었을 때 복구 데이터 삭제에 악용될 위험을 줄입니다.

백업이 완료되면 무결성을 확인하고, 격리된 환경에서 복원 검증을 수행하여 백업의 사용 가능 여부를 확인합니다. 애플리케이션 구성은 버전 관리하며, 빌드 산출물은 비공개 컨테이너 이미지 레지스트리에 저장하여 서비스 복구와 버전 롤백을 지원합니다.

프로덕션 관리 접근에는 개인별로 할당된 ID를 사용하고 최소 권한 원칙에 따라 권한을 부여합니다. 민감한 작업에 사용하는 콘솔 ID에는 다중 요소 인증을 의무화합니다.

일상 점검에는 워크로드 상태, 로그 및 이벤트를 확인할 수 있는 제한된 읽기 전용 ID를 사용합니다. 이 ID로는 민감한 자격 증명 읽기, 리소스 수정 또는 원격 명령 실행을 할 수 없습니다. 프로덕션 변경에는 별도로 승인된 ID와 절차를 사용합니다.

인프라 구성, 배포 매니페스트 및 운영 스크립트는 버전 관리합니다. 프로덕션 변경 시에는 목표, 영향 범위, 검증 단계 및 롤백 계획을 명확히 하고, 실행 ID, 구성 차이 및 검증 결과를 기록하여 추적과 복구를 지원합니다.

플랫폼은 프로덕션 환경의 운영 지표, 로그 및 상태 정보를 중앙에서 수집하고, 이상 알림을 운영 대응 채널로 전송합니다. 모니터링 범위에는 서비스 가용성, 오류율, 데이터베이스 상태, 인증서 유효성, 백업 작업 상태 및 클러스터 운영 상태가 포함됩니다.

보안 사고가 발생하면 영향 범위의 확산을 막는 데 우선순위를 두고 관련 로그, 구성 및 사고 타임라인을 보존합니다. 필요한 격리와 조사를 완료한 후 서비스를 복구하고, 이후 사고 검토와 시정 조치 추적을 수행합니다. 사고 대응 중의 프로덕션 변경도 정해진 절차에 따라 승인하고 기록합니다.

보안 평가, 고객 실사 또는 의심되는 취약점에 관해서는 Tier0 고객 담당자나 보안팀에 문의하세요. 비공개 아키텍처 및 통제 세부 정보는 적절한 비밀 유지 약정에 따라 제공될 수 있습니다. 최초 문의에는 접근 자격 증명, 개인 키 또는 고객의 민감한 데이터를 포함하지 마세요.

참조

ISA-95 설비 계층

ISA-95로 물리 자산과 제어 시스템을 모델링하기 위한 참조 계층입니다.

ISA-95 설비 계층은 조직 내 물리 자산과 제어 시스템이 어떻게 구조화되는지 설명합니다.

다음 계층으로 나뉩니다.

  • Enterprise: 조직 전체를 나타내는 최상위 계층입니다. 전체 비즈니스 프로세스와 의사결정 주체를 포함하며, 일반적으로 ERP 시스템의 지원을 받습니다.
  • Site: 특정 지리적 위치나 시설을 나타냅니다. 각 site는 자체 관리 시스템과 로컬 생산 제어를 가질 수 있습니다.
  • Area: site 내의 운영 구역으로, 포장, 조립, 창고와 같은 기능 영역인 경우가 많습니다.
  • Process Cell: area 내 제조의 기본 단위입니다. 특정 제품을 생산하거나 특정 기능을 수행하는 데 필요한 모든 설비를 포함합니다.
  • Unit: process cell의 독립적인 부분으로, 혼합, 가열, 조립 같은 특정 기능을 담당합니다.
  • Equipment Module: unit 내에서 특정 작업을 수행하는 모듈형 설비입니다. 예를 들어 혼합 unit에서는 가열 요소가 equipment module이 될 수 있습니다.
  • Control Module: 최하위 계층으로, 센서, 펌프, 액추에이터, PID 제어 루프처럼 물리 프로세스를 직접 제어하는 개별 장치나 컨트롤러를 나타냅니다.
참조

표준 배포 계획

Tier0 Enterprise의 가상 머신 4대 기반 표준 배포 참조 구성입니다.

간소화 구성은 Docker Swarm을 사용하지 않고 단일 enterprise 애플리케이션 노드를 배포합니다. 가상 머신은 총 4대입니다.

  • 1대의 enterprise 노드에서 tier0-enterprise + EMQX를 실행합니다.
  • 2대의 데이터베이스 노드로 PostgreSQL + TimescaleDB 기본/대기 클러스터를 구성합니다.
  • 1대의 Witness 노드가 데이터베이스 감시, 쿼럼 및 장애 조치에 참여합니다.

간소화 구성은 배포 복잡성을 줄입니다. 대신 애플리케이션 계층과 EMQX는 단일 장애 지점이 됩니다. 데이터베이스 계층만 DB VIP + Witness를 통한 고가용성을 유지합니다.

다음 IP 주소는 계획용 예시입니다. 구현 전에 실제 현장 네트워크에 맞게 바꾸세요.

유형 이름 계획 IP 설명
애플리케이션 노드 ent-enterprise-01 10.60.10.11 tier0-enterprise + EMQX를 실행하는 단일 enterprise 노드
논리 진입점 DB VIP 10.60.20.10 현재 기본 노드만 가리키는 통합 데이터베이스 엔드포인트
데이터베이스 노드 ent-db-01 10.60.20.11 PostgreSQL + TimescaleDB 기본 노드 후보
데이터베이스 노드 ent-db-02 10.60.20.12 PostgreSQL + TimescaleDB 대기 노드 후보
쿼럼 노드 ent-db-witness-01 10.60.20.13 repmgr witness / 데이터베이스 쿼럼 감시

주요 경로:

  • 업무 경로: 클라이언트 / 현장 시스템 → ent-enterprise-01 → DB VIP → 현재 기본 데이터베이스.
  • tier0-enterprise와 EMQX는 모두 ent-enterprise-01에서 실행합니다.
  • 데이터베이스 접근에는 계속 DB VIP를 사용하며, 애플리케이션에서 ent-db-01/02로 직접 접근하는 것은 금지합니다.
  • Witness는 데이터베이스 쿼럼, 승격 및 상태 확인에만 참여하며 업무 경로에는 포함되지 않습니다.

데이터베이스 감시 및 장애 조치

섹션 제목: “데이터베이스 감시 및 장애 조치”
단계 경로 설명
정상 접근 ent-enterprise-01 -> DB VIP -> current primary 애플리케이션은 항상 10.60.20.10:5432에 연결합니다
정상 복제 current primary -> current standby PostgreSQL WAL 스트리밍 복제
정상 감시 DB-01/DB-02 -> Witness repmgrd가 상태를 보고하고 Witness가 쿼럼에 참여합니다
기본 노드 장애 standby -> Witness 대기 노드가 쿼럼 확인을 요청하여 스플릿 브레인을 방지합니다
대기 노드 승격 standby promote Witness 확인 후 대기 노드를 승격합니다
VIP 이동 DB VIP -> new primary 10.60.20.10을 새 기본 노드에 할당합니다
애플리케이션 복구 ent-enterprise-01 -> DB VIP -> new primary 연결 풀이 다시 연결되면 애플리케이션이 복구됩니다
노드 역할 vCPU 메모리 스토리지 권장 시스템 디스크 권장 데이터 디스크 주요 구성 요소
ent-enterprise-01 단일 enterprise 노드 8 32G 100G 단일 / 시스템 디스크, 100G 별도 데이터 디스크 없음 tier0-enterprise, EMQX, 선택 사항으로 Nginx/HAProxy
ent-db-01 PostgreSQL/TSDB 기본 노드 후보 4 8G 500G / 80G /pgdata 360G, /pgwal 40G, /backup-staging 20G PostgreSQL, TimescaleDB, repmgr, keepalived
ent-db-02 PostgreSQL/TSDB 대기 노드 후보 4 8G 500G / 80G /pgdata 360G, /pgwal 40G, /backup-staging 20G PostgreSQL, TimescaleDB, repmgr, keepalived
ent-db-witness-01 Witness / 쿼럼 감시 2 4G 40G / 40G 별도 계획 없음 repmgr witness, 모니터링 에이전트, 감사 로그
분류 수량 노드별 사양 vCPU 소계 메모리 소계 스토리지 소계
enterprise 애플리케이션 노드 1 8C / 32G / 100G 8C 32G 100G
PostgreSQL + TimescaleDB 노드 2 4C / 8G / 500G 8C 16G 1000G
Witness 노드 1 2C / 4G / 40G 2C 4G 40G
합계 4 - 18C 52G 1140G

총합:

  • 가상 머신: 4대
  • vCPU: 18
  • 메모리: 52G
  • 스토리지: 1.14T
대상 방법 포트 설명
모든 가상 머신 ssh -i ~/.ssh/chen-rsa ops@<IP> 22/TCP 통합 키 기반 SSH를 구현한 후 사용합니다. 그전에는 현장 계정을 사용합니다
ent-enterprise-01 https://10.60.10.11 443/TCP 업무 진입점
DB VIP psql -h 10.60.20.10 -p 5432 5432/TCP enterprise 노드와 운영 허용 목록만 허용합니다
출발지 대상 포트 용도
사용자 / 현장 시스템 ent-enterprise-01 80/TCP HTTP 진입점 또는 HTTPS 리디렉션, 선택 사항
사용자 / 현장 시스템 ent-enterprise-01 443/TCP HTTPS 업무 진입점
장치 / 현장 시스템 ent-enterprise-01 1883/TCP EMQX MQTT 평문 통신, 선택 사항
장치 / 현장 시스템 ent-enterprise-01 8883/TCP EMQX MQTT TLS, 권장
장치 / 현장 시스템 ent-enterprise-01 8083/TCP MQTT WebSocket, 선택 사항
장치 / 현장 시스템 ent-enterprise-01 8084/TCP MQTT WebSocket TLS, 선택 사항
운영 네트워크 ent-enterprise-01 18083/TCP EMQX Dashboard, 운영 허용 목록만 접근
ent-enterprise-01 DB VIP 5432/TCP PostgreSQL 업무 접근
출발지 대상 포트 용도
ent-db-01 ent-db-02 5432/TCP PostgreSQL WAL 스트리밍 복제
ent-db-02 ent-db-01 5432/TCP 복구 후 역방향 복제
ent-db-01/02 ent-db-witness-01 5432/TCP repmgr 메타데이터 / Witness 통신
ent-db-01 ent-db-02 VRRP DB VIP 이동. 프로토콜 112를 허용합니다
  • Docker Swarm을 배포하지 않습니다.
  • tier0-enterprise와 EMQX를 동일한 ent-enterprise-01 노드에 배포합니다.
  • ent-enterprise-01은 애플리케이션 계층의 단일 장애 지점입니다. 장애 시 수동으로 복구하거나 백업에서 재구축합니다.
  • 이 노드에는 100G 시스템 디스크 하나만 있으므로 업무 데이터를 장기간 저장하기에 적합하지 않습니다.
  • tier0-enterprise 업무 데이터는 PostgreSQL/TimescaleDB에 저장해야 합니다.
  • 업로드, 가져오기/내보내기 및 보고서 파일은 로컬에 저장하고 백업할 수 있습니다. 나중에 표준 구성으로 전환하면 해당 파일을 NFS/NAS 또는 객체 스토리지로 이전하세요.
  • 간소화 구성에서 EMQX는 단일 노드의 상태 저장 서비스입니다.
  • 데이터 디렉터리를 ent-enterprise-01에 고정합니다. 예: /data/emqx.
  • 구성, 인증서, 플러그인 및 규칙 엔진 구성을 백업합니다.
  • 메시징 계층의 고가용성은 제공하지 않습니다. 이 조건이 요구 사항을 충족하지 못하면 3노드 EMQX 클러스터를 갖춘 표준 구성을 사용하세요.
  • PostgreSQL: 16 또는 현장에서 검증된 버전.
  • TimescaleDB: 선택한 PostgreSQL 주 버전과 호환되는 안정 버전.
  • 복제: 물리 스트리밍 복제.
  • 장애 조치: repmgrd + witness.
  • 데이터베이스 진입점: DB VIP.
  • 연결 풀: ent-enterprise-01에서 PgBouncer를 실행하여 데이터베이스 연결 부하를 줄일 수 있습니다.
  • Witness는 repmgr witness 메타데이터와 감시 로직만 저장합니다.
  • Witness는 업무 SQL을 처리하지 않습니다.
  • Witness 장애가 현재 기본 노드를 중지시키지는 않지만 자동 장애 조치의 신뢰성은 낮아집니다.
포트 / 프로토콜 허용 범위 용도
22/TCP 운영 네트워크에서 가상 머신 4대로 접근 SSH
80/TCP 사용자 네트워크에서 ent-enterprise-01로 접근 HTTP 리디렉션 또는 내부 평문 진입점
443/TCP 사용자 네트워크에서 ent-enterprise-01로 접근 HTTPS 업무 진입점
1883/TCP 장치 / 현장 시스템에서 ent-enterprise-01로 접근 EMQX MQTT 평문 통신, 선택 사항
8883/TCP 장치 / 현장 시스템에서 ent-enterprise-01로 접근 EMQX MQTT TLS, 권장
8083/TCP 장치 / 현장 시스템에서 ent-enterprise-01로 접근 EMQX WebSocket, 선택 사항
8084/TCP 장치 / 현장 시스템에서 ent-enterprise-01로 접근 EMQX WebSocket TLS, 선택 사항
18083/TCP 운영 네트워크에서 ent-enterprise-01로 접근 EMQX Dashboard, 허용 목록만 접근
5432/TCP enterprise에서 DB VIP로 접근; DB/Witness 내부 통신 PostgreSQL / repmgr
112/VRRP 데이터베이스 노드 간 DB VIP 이동
9100/TCP 모니터링 시스템에서 가상 머신 4대로 접근 node exporter, 선택 사항
장애 시나리오 예상 동작 업무 영향
ent-enterprise-01 장애 애플리케이션과 EMQX가 모두 중지됩니다. 수동 복구 또는 백업을 통한 재구축이 필요합니다 애플리케이션 계층 전체 중단
현재 DB 기본 노드 장애 Witness 쿼럼 확인 후 대기 노드가 승격되고 DB VIP가 이동합니다 수초에서 수분 동안 쓰기가 중단되며 애플리케이션이 다시 연결해야 합니다
DB 대기 노드 장애 기본 노드가 서비스를 계속 제공하고 복제 알림이 발생합니다 직접적인 업무 중단은 없지만 DB 핫 스탠바이를 잃습니다
Witness 장애 현재 기본 노드가 서비스를 계속 제공하지만 자동 장애 조치의 신뢰성이 낮아집니다 직접적인 업무 중단은 없습니다. Witness를 먼저 복구합니다
DB VIP 이동 실패 새 기본 노드가 있더라도 통합 진입점에 접근하지 못할 수 있습니다 업무가 중단되며 VIP를 수동으로 할당해야 합니다
점검 항목 통과 기준
가상 머신 4대의 호스트 이름 고정 hostnamectl이 계획과 일치합니다
통합 SSH 정상 작동 운영 단말에서 키 기반 SSH로 가상 머신 4대 모두에 접근할 수 있습니다
시간 동기화 가상 머신 4대 간 시간 차이가 1s 미만입니다
방화벽 허용 9절의 포트가 정해진 범위에 따라 허용됩니다
enterprise 서비스 정상 tier0-enterprise 상태 확인을 통과합니다
EMQX 상태 검증 EMQX 노드, 수신 대기 포트 및 영구 데이터 디렉터리가 정상입니다
enterprise 디스크 사용량 안전 / 사용률이 70% 미만이며 로그 및 캐시 정리가 구성되어 있습니다
DB 기본/대기 상태 정상 repmgr cluster show에서 기본 노드, 대기 노드 및 Witness가 정상으로 표시됩니다
DB VIP 정상 작동 enterprise 노드가 10.60.20.10:5432에 연결할 수 있습니다
DB 기본 노드 장애 조치 훈련 대기 노드 승격과 DB VIP 이동이 가능합니다
백업 복원 훈련 테스트 데이터베이스에 백업을 복원할 수 있습니다
  1. 가상 머신 4대를 생성하고 호스트 이름, IP, 시간 동기화 및 SSH를 설정합니다.
  2. OS 기본 설정, 방화벽, 마운트 및 커널 매개변수를 초기화합니다.
  3. ent-enterprise-01에 tier0-enterprise를 배포합니다.
  4. ent-enterprise-01에 단일 노드 EMQX를 배포합니다.
  5. PostgreSQL + TimescaleDB 기본/대기 노드를 배포합니다.
  6. repmgr witness, repmgrd 및 DB VIP 이동 스크립트를 배포합니다.
  7. 연결, EMQX 복구, 데이터베이스 장애 조치, 백업 복원 및 일상 점검을 검증합니다.
  8. 운영 Runbook, 자격 증명 보관 및 일상 점검 작업을 정리합니다.
  • 간소화 구성에는 애플리케이션 계층의 단일 장애 지점이 있습니다. ent-enterprise-01에 장애가 발생하면 전체 업무 서비스를 사용할 수 없습니다.
  • EMQX는 단일 노드이며 메시징 계층의 고가용성을 제공하지 않습니다.
  • ent-enterprise-01에는 100G 시스템 디스크 하나만 있습니다. 로그, 캐시, 첨부 파일 및 임시 파일의 사용량을 관리해야 합니다.
  • 나중에 애플리케이션 계층이나 EMQX의 고가용성이 필요하면 표준 구성으로 전환합니다.
  • 데이터베이스 RPO/RTO는 확정되지 않았습니다. 이 기본/대기 설계는 데이터 손실이 없음을 보장하지 않습니다.
  • DB VIP 이동 스크립트는 현장에서 검증해야 합니다. 특히 가상화/네트워크 플랫폼이 VRRP를 허용하는지 확인하세요.
참조

고가용성 배포 계획

Tier0 Enterprise 고가용성 환경을 위한 참조 배포 계획입니다.

이 V2 계획은 오프라인 또는 프라이빗 환경에 논리적인 Tier0 Enterprise Fleet Center를 배포하기 위한 것입니다. 6대의 머신이 비즈니스, 미들웨어, 데이터베이스, 스토리지, Agent 역할을 나누어 담당합니다. 사용자와 Enterprise 내부 서비스는 항상 고정 VIP 주소로 접속합니다. 하나의 머신 또는 하나의 프록시에 장애가 발생하면 Keepalived, HAProxy, repmgr, RustFS, Fleet Agent가 각자의 계층에서 인계를 수행합니다.

이 계획은 동일 네트워크 세그먼트 안에서 단일 머신 장애를 복구하는 것을 목표로 합니다. 이는 Active/Standby 재해 복구 설계이며, 다중 데이터센터, 합의 기반 선출, 또는 데이터 손실 0을 보장하는 엄격한 고가용성 클러스터가 아닙니다.

설계 목표는 다음과 같습니다.

  • 현재 비즈니스 노드가 실패하면 Fleet Center 진입점을 정상 Standby 노드로 이동할 수 있습니다.
  • PostgreSQL, Redis, RustFS는 고정 VIP 주소를 사용하므로 backend 역할이 바뀌어도 Enterprise의 .env를 변경하지 않습니다.
  • App, Flow, Marimo, License와 같은 로컬 비즈니스 파일을 Active에서 Standby로 동기화할 수 있습니다.
  • 하나의 Cluster License는 하나의 논리 설치에 매핑되며, Enterprise가 다른 노드로 전환되어도 다시 활성화하지 않습니다.
  • 별도의 deployer가 6대 머신 초기화, 역할 할당, 서비스 배포, 상태 모니터링, failover 검증을 수행합니다.
  • VIP failover, 파일 동기화, 독립 Redis 인스턴스, 데이터베이스 복제, 객체 스토리지 중복성을 명확히 분리합니다.

이 계획은 Fleet Center에만 적용됩니다. Branch Enterprise 노드는 일반 단일 머신 배포로 설치되며, 이 6대 Active/Standby 설계에 참여하지 않습니다.

Tier0 Enterprise 전체 토폴로지

핵심 요청 경로는 다음과 같습니다.

Terminal window
클라이언트 / 현장 시스템
-> Business VIP :8088
-> 현재 Active Enterprise (D / E / F)
|-- PostgreSQL VIP :5432 -> D/E HAProxy -> A/B 현재 쓰기 가능한 Primary
|-- Redis VIP :6379 -> C 또는 F 독립 Redis
`-- RustFS VIP :19000 -> A/B HAProxy -> C/D/E/F RustFS 클러스터

4개의 VIP는 비즈니스 설정의 고정 진입점입니다. Enterprise가 노드를 전환하거나 미들웨어 backend 역할이 변경되어도 클라이언트와 Enterprise는 접속 주소를 변경하지 않습니다.

아래 주소는 예시입니다. 구현 전 현장의 동일 IPv4 서브넷에 있는 실제 주소로 교체하십시오. 4개의 VIP는 DHCP, 정적 호스트, 또는 다른 VRRP 인스턴스에서 사용 중이면 안 됩니다.

이름 예시 IP 설명
deployer-controller 10.60.10.20 독립 deployer. 6대 비즈니스 머신에는 포함하지 않음
ent-ha-01 / A 10.60.10.11 PostgreSQL Primary 및 관련 역할
ent-ha-02 / B 10.60.10.12 PostgreSQL Standby 및 관련 역할
ent-ha-03 / C 10.60.10.13 Witness, Redis-1, RustFS-1
ent-ha-04 / D 10.60.10.14 초기 Active Enterprise 및 관련 역할
ent-ha-05 / E 10.60.10.15 Enterprise Standby 및 관련 역할
ent-ha-06 / F 10.60.10.16 Enterprise Standby 및 관련 역할
Business VIP 10.60.10.101 Enterprise 통합 진입점, 기본값 8088
PostgreSQL VIP 10.60.10.102 데이터베이스 통합 진입점, 기본값 5432
Redis VIP 10.60.10.103 Redis 통합 진입점, 기본값 6379
RustFS VIP 10.60.10.104 S3 통합 진입점, 기본값 19000

구현 전에는 비즈니스 NIC 이름, IPv4 prefix, gateway, DNS, NTP, hostname, SSH 사용자, 디스크 mount point, firewall allowlist를 확인하십시오. VIP, node IP, NIC를 스크립트가 추측한 값으로 운영 환경에 직접 사용해서는 안 됩니다.

Tier0 Enterprise 6대 Active/Standby 아키텍처
머신 기본 배포 컴포넌트 핵심 책임
A PostgreSQL Primary, RustFS HAProxy, Keepalived 초기 데이터베이스 Primary, 첫 번째 RustFS proxy 후보
B PostgreSQL Standby, RustFS HAProxy, Keepalived Streaming database Standby, 두 번째 RustFS proxy 후보
C PostgreSQL Witness, Redis-1, RustFS-1 데이터베이스 Witness/상태 기록, Redis 및 RustFS 데이터 노드
D PG HAProxy, Keepalived, RustFS-2, Enterprise, Fleet Agent, rsync 초기 비즈니스 Active, 첫 번째 PostgreSQL proxy 후보
E PG HAProxy, Keepalived, RustFS-3, Enterprise, Fleet Agent, rsync 비즈니스 Standby, 두 번째 PostgreSQL proxy 후보
F Redis-2, RustFS-4, Enterprise, Fleet Agent, rsync 비즈니스 Standby, 두 번째 Redis 인스턴스

이 할당은 단일 머신 장애 허용과 6대 머신 간 리소스 균형을 위한 것입니다. deployer는 hostname/IP 주소의 자연 순서에 따라 머신을 A-F에 매핑하고 기본 역할을 선택하지만, 최종 할당은 현장 디스크 구성과 장애 도메인을 기준으로 다시 검토해야 합니다.

Enterprise 비즈니스 계층은 Single Active/Standby입니다. 어느 시점이든 Business VIP를 보유한 노드만 비즈니스 요청을 처리합니다. 비즈니스 계층은 하나의 비즈니스 노드 CPU, 메모리, 디스크를 늘리는 수직 확장으로 확장하십시오. Enterprise 노드 수를 곱해서 동시 처리량을 추정하지 마십시오.

머신 노드 유형 vCPU 메모리 기본 스토리지 디스크 권장 사항
A PostgreSQL Primary 노드 8C 16G 1T / 약 80G, 나머지는 PostgreSQL 데이터, WAL, backup staging 용도
B PostgreSQL Standby 노드 8C 16G 1T / 약 80G, 나머지는 PostgreSQL 데이터, WAL, backup staging 용도
C Witness / middleware 노드 4C 8G 500G system, Redis, RustFS data에 고정 mount point 할당
D 초기 Active Enterprise 노드 8C 32G 500G system, containers, Enterprise 동기화 파일, RustFS data에 고정 mount point 할당
E Standby Enterprise 노드 8C 32G 500G D와 동일
F Standby Enterprise 노드 8C 32G 500G D와 동일
범주 수량 노드당 사양 vCPU 소계 메모리 소계 스토리지 소계
PostgreSQL 데이터베이스 노드 2 8C / 16G / 1T 16C 32G 2T
Witness / middleware 노드 1 4C / 8G / 500G 4C 8G 500G
Enterprise 비즈니스 노드 3 8C / 32G / 500G 24C 96G 1.5T
합계 6 - 44C 136G 4T

D, E, F는 동일한 Enterprise 구성을 유지합니다.

의존성 구성 원칙
PostgreSQL A/B 노드 IP가 아니라 PostgreSQL VIP에 연결
Redis C/F 노드 IP가 아니라 Redis VIP에 연결
File storage FILESTORE_DRIVER=s3 사용, S3 endpoint를 RustFS VIP로 지정
Fleet identity 3개 노드는 하나의 논리 installationId를 공유하고, 각 노드는 고유한 memberId를 가짐
Fleet Agent 각 Enterprise 노드에서 하나의 process-level Fleet Agent 실행
License Business VIP를 통해 한 번만 활성화하고, Bundle을 HA fileset에 포함

installationId와 memberId는 설치 프로세스에서 생성되고 영속화됩니다. 운영자가 이를 수동으로 만들거나 머신 간에 memberId를 복사해서는 안 됩니다.

VIP 후보 노드 Health 기준 인계 결과
Business VIP D, E, F Fleet Agent readiness, 비즈니스 컨테이너 상태, sync generation Owner만 Enterprise HA 비즈니스 그룹을 시작
PostgreSQL VIP D, E HAProxy/Keepalived 상태. HAProxy는 쓰기 가능한 Primary로만 라우팅 Enterprise는 동일한 데이터베이스 주소 유지
Redis VIP C, F Redis PING 및 로컬 서비스 상태 다른 독립 인스턴스로 전환. cache/session 손실 가능
RustFS VIP A, B HAProxy 및 RustFS backend health S3 주소는 유지되고 proxy entry만 이동
  • D, E, F는 동일한 전체 Enterprise offline ZIP을 설치합니다.
  • Fleet Agent는 host-level process service이며 비즈니스 컨테이너가 아닙니다.
  • Keepalived는 Business VIP를 관리하고 Fleet Agent readiness endpoint를 호출하여 로컬 노드가 VIP를 보유할 수 있는지 판단합니다.
  • Business VIP Owner만 비즈니스 그룹을 실행하고, 나머지 2대는 Standby 상태를 유지합니다.
  • VIP를 잃은 노드는 비즈니스 그룹을 중지해야 합니다. 복구된 노드는 먼저 Standby로 재참여해야 합니다.
  • EMQX는 Single Active 비즈니스 그룹의 일부로 실행됩니다. Agent 제어 밖에서 재시작하거나 3대 머신 사이에 별도 election 메커니즘을 만들지 마십시오.

PostgreSQL Primary/Standby, Witness, 통합 진입점

섹션 제목: “PostgreSQL Primary/Standby, Witness, 통합 진입점”
  • A는 Primary, B는 Streaming Standby, C는 repmgr Witness로 시작합니다.
  • Witness는 cluster 상태를 기록하고 장애 판단에 참여합니다. 전체 비즈니스 데이터를 저장하지 않으며 읽기나 쓰기를 처리하지 않습니다.
  • Primary 장애 시 repmgr는 정상 Standby를 새 Primary로 승격합니다.
  • D/E HAProxy는 5432 트래픽을 현재 쓰기 가능한 Primary로만 라우팅합니다.
  • PostgreSQL VIP는 D/E proxy 노드 사이에서 이동합니다. proxy failover와 database primary/standby failover는 분리되어 있습니다.
  • 검수 시에는 “쓰기 가능한 Primary가 하나뿐임”과 “Standby가 streaming을 재개함”을 모두 증명해야 합니다.
  • C와 F는 각각 하나의 standalone Redis 인스턴스를 실행합니다.
  • 두 Redis 인스턴스는 Sentinel, Cluster, primary/replica replication을 구성하지 않습니다.
  • Redis VIP는 접속 진입점만 전환합니다. 현재 인스턴스에 장애가 발생하면 VIP는 다른 정상 인스턴스로 이동합니다.
  • Redis에는 손실되거나 재구성 가능한 데이터만 저장해야 합니다. 전환 후 빈 cache와 사용자 재로그인은 설계 경계에 포함됩니다.
  • 향후 Redis가 폐기할 수 없는 상태를 저장한다면 독립 인스턴스 가정을 유지하지 말고 replication/arbitration 설계로 업그레이드해야 합니다.
  • C, D, E, F는 4노드 distributed RustFS object storage cluster를 구성합니다.
  • A와 B의 HAProxy는 모든 정상 RustFS backend로 proxy합니다.
  • RustFS VIP는 A와 B 사이에서 이동합니다. Enterprise는 항상 이 VIP를 통해 S3에 접근합니다.
  • 단일 RustFS 노드 장애는 cluster mechanism이 처리하고, 단일 proxy 장애는 VIP failover가 처리합니다.
  • object data를 rsync, hot copy, RustFS mount directory 직접 편집으로 동기화하지 마십시오.
  • RustFS node count, disk count, erasure-coding availability boundary는 배포된 버전의 cluster check 결과를 따라야 합니다.

App, Flow, Marimo, License 파일 동기화

섹션 제목: “App, Flow, Marimo, License 파일 동기화”

Fleet Agent는 PostgreSQL/RustFS에 직접 둘 수 없지만 새 Active 노드에 반드시 있어야 하는 로컬 비즈니스 파일만 동기화합니다.

  • App runtime directory 및 node_modules
  • Flow, Marimo, Notebook 및 관련 local runtime file
  • License Bundle
  • 현재 구현에 명시적으로 등록된 기타 HA fileset

동기화는 deployer가 관리하는 비즈니스 노드 간 SSH trust 위에서 system rsync를 사용합니다. 각 release는 완전한 generation/manifest를 생성합니다. Standby 노드는 generation이 완전함을 확인한 뒤에만 인계할 수 있습니다. PostgreSQL data directory, Redis data directory, RustFS data directory는 이 동기화 범위에 포함되지 않습니다.

Source Target Purpose
사용자 / 현장 시스템 Business VIP Web/API 비즈니스 접근
D/E/F Enterprise PostgreSQL VIP 비즈니스 데이터베이스 읽기/쓰기
D/E/F Enterprise Redis VIP cache 및 session
D/E/F Enterprise RustFS VIP S3 object 읽기/쓰기
Deployer controller A-F SSH, 배포, 상태 수집, 운영
D/E/F D/E/F rsync/SSH 파일 동기화
A/B/C A/B/C PostgreSQL streaming replication, repmgr, Witness communication
RustFS members/proxies C/D/E/F RustFS cluster 및 S3 backend communication
동일 VIP를 공유하는 노드 해당 후보 노드 VRRP advertisement 및 VIP 이동

포트는 필요한 최소 source-to-target 관계에 따라 허용하십시오. 모든 관리 포트를 사용자 네트워크에 직접 노출하지 마십시오.

Port / protocol 권장 allowlist Purpose
22/TCP Deployer -> A-F; D/E/F 상호 sync SSH, deployment, rsync
8088/TCP 사용자 네트워크 -> Business VIP Enterprise 비즈니스 진입점
5432/TCP D/E/F -> PostgreSQL VIP; PG/proxy internal access PostgreSQL, streaming replication, proxy
6379/TCP D/E/F -> Redis VIP; health-check nodes -> C/F Redis access 및 health check
19000/TCP D/E/F -> RustFS VIP Enterprise fixed S3 entry
9000/TCP A/B -> C/D/E/F; RustFS members RustFS S3 backend/cluster communication. 버전별 확인 필요
9001/TCP 통제된 운영 네트워크 -> RustFS admin entry 선택적 RustFS admin endpoint. 사용자 네트워크에 노출 금지
19731/TCP Localhost / Keepalived / 통제된 운영 네트워크 Fleet Agent HTTP health/control interface
18080/TCP 운영 네트워크 -> deployer controller Deployer HTTPS UI
112/VRRP 각 VIP 후보 노드 Keepalived VIP movement. TCP/UDP가 아니라 IP protocol number
1883/8883 현장 장치 네트워크 -> 비즈니스 진입점, 제품 설정 기준 MQTT/MQTTS
Failure scenario Expected behavior Boundary
D Active 비즈니스 노드 장애 Business VIP가 E 또는 F로 이동하고, 새 Owner는 readiness 통과 후 비즈니스 그룹을 시작 Standby에 최신 HA fileset generation이 완료되어 있어야 함
PostgreSQL A Primary 장애 B가 Primary로 승격되고 PostgreSQL VIP는 D/E proxy를 통해 쓰기 가능한 Primary로 계속 라우팅 데이터 손실은 streaming replication 상태에 따라 달라짐
현재 Redis 노드 장애 Redis VIP가 다른 독립 Redis 인스턴스로 이동 cache/session 손실 가능
RustFS proxy A 또는 B 장애 RustFS VIP가 다른 proxy로 이동 RustFS data는 여전히 4노드 cluster health에 의존
단일 RustFS data node 장애 redundancy 조건이 충족되면 RustFS cluster가 서비스를 계속함 실제 경계는 disk count 및 erasure-coding configuration에 따라 달라짐

네트워크 분리, 동시 다중 노드 장애, 잘못된 VRRP priority, 디스크 가득 참, clock drift, deployer 외부의 수동 변경은 일반 자동 복구 약속 범위 밖이며 운영 절차로 다뤄야 합니다.

  • PostgreSQL은 독립적인 logical 또는 physical backup과 restore 검증이 필요합니다.
  • RustFS는 capacity, disk, cluster health monitoring이 필요합니다.
  • Redis는 향후 replication 설계가 도입되기 전까지 cache/session으로 취급해야 합니다.
  • D/E/F의 Fleet Agent와 Keepalived 상태를 모니터링해야 합니다.
  • rsync generation lag를 모니터링해야 합니다. 오래된 generation을 가진 Standby는 비즈니스 트래픽을 인계해서는 안 됩니다.
  • 정기 failover drill에는 Business VIP, PostgreSQL promotion, Redis VIP switch, RustFS proxy switch, backup restore가 포함되어야 합니다.
  • deployer controller에서 6대 머신 모두 SSH로 접근할 수 있습니다.
  • hostname, IP address, NIC name, NTP, DNS, firewall rule이 고정되고 기록되어 있습니다.
  • 4개의 VIP는 사용 중이 아니며 후보 노드 사이에서 이동할 수 있습니다.
  • disk mount point가 고정되어 있고 reboot 후에도 유지됩니다.
  • Enterprise, PostgreSQL, Redis, RustFS, Keepalived, HAProxy, repmgr, Fleet Agent, rsync 구성이 deployer에 의해 생성되고 검토되었습니다.
  • Cluster License는 Business VIP를 통해 한 번만 활성화되었습니다.
  • production traffic 투입 전에 backup 및 restore 절차를 rehearsal했습니다.
  1. deployer controller와 6대 머신을 준비합니다.
  2. IP, VIP, NIC, disk, DNS, NTP, SSH, firewall 정보를 확인합니다.
  3. Enterprise offline package와 configuration material을 업로드합니다.
  4. PostgreSQL primary/standby 및 Witness를 배포합니다.
  5. Redis independent instance와 Redis VIP를 배포합니다.
  6. RustFS 4노드 cluster와 RustFS VIP를 배포합니다.
  7. D/E/F에 Enterprise, Fleet Agent, rsync fileset, Business VIP를 배포합니다.
  8. Business VIP를 통해 License를 활성화합니다.
  9. 기능 검증과 failover drill을 실행합니다.
  10. 최종 topology, password/key, backup policy, monitoring target, recovery procedure를 기록합니다.
  • 사용자는 Business VIP를 통해 Enterprise에 접근할 수 있습니다.
  • Enterprise는 PostgreSQL VIP를 통해서만 PostgreSQL을 읽고 씁니다.
  • Enterprise는 Redis VIP를 통해서만 Redis를 사용합니다.
  • Enterprise는 RustFS VIP를 통해서만 RustFS를 사용합니다.
  • failover 후 App, Flow, Marimo, Notebook, License 파일이 Active 노드에 존재합니다.
  • Branch Enterprise는 계속 독립적으로 설치할 수 있으며 이 6대 HA group에 참여하지 않습니다.
  • Active 비즈니스 노드 중지: Business VIP가 정상 Standby로 이동하고 비즈니스 그룹은 그곳에서만 시작됩니다.
  • PostgreSQL Primary 중지: Standby가 승격되고 PostgreSQL VIP는 쓰기 가능한 Primary를 계속 가리킵니다.
  • Redis VIP owner 중지: Redis VIP가 다른 인스턴스로 이동하며 cache/session 손실을 허용합니다.
  • RustFS proxy owner 중지: RustFS VIP가 다른 proxy로 이동합니다.
  • RustFS data node 하나 중지: object access는 실제 RustFS redundancy boundary 안에서 유지됩니다.
  • 장애 노드 복구: Standby 또는 정상 member로 돌아오며 더 새로운 data나 file을 덮어쓰지 않습니다.
  • 네트워크가 VRRP protocol 112를 허용하는지.
  • 4개의 VIP 주소가 실제로 미사용 상태인지.
  • disk mount layout과 capacity가 실제 file retention 및 RustFS redundancy requirement를 충족하는지.
  • Redis가 disposable data만 저장하는지.
  • PostgreSQL replication lag와 backup policy가 비즈니스 RPO를 충족하는지.
  • 운영 담당자가 VIP failover, file synchronization, database replication, object storage redundancy의 차이를 이해하는지.

현재 계획은 6대 머신, 4개의 고정 VIP, Single Active Enterprise를 중심으로 합니다. 비즈니스 진입점, 데이터베이스 진입점, 캐시 진입점, 객체 스토리지 진입점을 분리합니다. 동일 네트워크 세그먼트 안에서 일반적인 단일 머신 장애를 커버할 수 있고, failover 후 connection configuration 변경, License 재활성화, App 파일 수동 복사 작업을 크게 줄입니다.

동시에 세 가지 경계를 받아들여야 합니다. Redis는 데이터를 복제하지 않고, 비즈니스 fileset은 비동기로 동기화되며, 네트워크 partition에는 consensus arbitration이 없습니다. 따라서 이 계획은 Fleet Center 6대 Single Active Active/Standby 재해 복구 계획으로 정의하는 것이 적합합니다. 외부에 zero interruption, zero data loss, 또는 cross-data-center strict high availability를 약속해서는 안 됩니다.

참조

SLA 및 High Availability 경계

표준 Tier0 Enterprise deployment를 위한 SLA 권장 사항, high availability 경계, acceptance gate, drill, hardening 항목입니다.

이 문서는 six-VM fully offline deployment에 적용됩니다. 구성은 application / Swarm node 3대, PostgreSQL HA node 2대, witness node 1대입니다.

Layer Current Design High Availability Boundary
Application runtime Enterprise New compose는 고정된 tier0_app_active_node에서 실행됩니다. backend, redis, EMQX, SourceFlow, EventFlow, Marimo, OPC UA Server는 아직 automatic multi-replica service가 아닙니다.
HTTP entry 3개의 application node가 keepalived APP VIP + HAProxy를 실행합니다. VIP는 float할 수 있습니다. HAProxy는 8088/TCP의 active node로 forward하고 /healthz를 check합니다.
MQTT / OPC UA EMQX는 1883/8883/8083/8084를 사용하고 OPC UA는 4840을 사용합니다. 이들은 active node에 직접 연결됩니다. TCP VIP proxying에 포함되지 않으므로 protocol-entry HA는 약속하지 않습니다.
Database PostgreSQL / TimescaleDB streaming replication + repmgr + witness + DB VIP. primary 장애 시 standby를 자동 promote할 수 있습니다. asynchronous replication은 strict zero RPO를 약속할 수 없습니다.
Backup and restore backup-db.sh / restore-db.sh. recoverability를 제공하지만 online HA와 동일하지는 않습니다.
Service Object Recommended Statement Constraints
Platform HTTP entry monthly availability 99.5%부터 시작합니다. VIP failover는 active application node의 automatic migration과 같지 않습니다.
Database access 운영 목표: RTO <= 2 minutes. RPO는 replication lag에 따라 달라집니다. 같은 architecture의 과거 failover test는 약 59-64초였습니다.
MQTT / OPC UA 현재 설계에서는 HA SLA를 약속하지 않습니다. HAProxy TCP proxying, 별도 VIP 또는 service clustering을 먼저 추가해야 합니다.
Backup and restore Daily backup, major change 전 mandatory backup. restore time은 data volume과 on-site I/O에 따라 달라집니다.

99.9% 이상을 주장하기 전에 application automatic migration 또는 multi-replica deployment, protocol-entry HA, monitoring alert, recovery drill을 완료하세요. 계획된 capability를 이미 제공된 capability처럼 설명하지 마세요.

각 deployment 또는 upgrade는 최소한 다음 조건을 만족해야 합니다.

  • verify-materials.sh가 통과하고 delivery package SHA256 check가 통과합니다.
  • 3개의 Swarm node가 Ready입니다.
  • APP VIP /healthz와 /readyz가 200을 반환하며 home page와 /uns에 접근할 수 있습니다.
  • active node의 7개 compose service가 실행 중입니다.
  • DB VIP:5432에 접근할 수 있으며 primary, standby, witness topology가 정상입니다.
  • default account가 실제로 login할 수 있습니다. IAM initialization 성공 여부를 port, container, HTTP 200 response만으로 판단하지 마세요.
  • HTTP, EMQX port, WebSocket/WSS, OPC UA TCP smoke check가 통과합니다.

매일 아래 command를 실행합니다.

Terminal window
./bin/verify.sh --site config/site.conf
./bin/smoke-business-emqx.sh --site config/site.conf

최소한 다음 alert를 설정합니다.

  • APP VIP /healthz 또는 /readyz failure.
  • DB VIP unreachable, no primary, split-brain risk, replication interruption 또는 threshold 초과 replication lag.
  • keepalived, HAProxy, PostgreSQL, repmgrd abnormal status.
  • backend, redis, EMQX 같은 key container가 exit하거나 자주 restart됩니다.
  • data disk usage가 80% / 90%를 초과합니다.
  • 최신 backup이 실패했거나 생성되지 않았습니다.
Drill Frequency Verification Criteria
APP VIP failover 납품 전 및 분기별 현재 VIP node에서 keepalived를 중지한 뒤 /healthz와 /readyz가 복구됩니다.
DB primary failure 납품 전 및 6개월마다 standby가 promote되고 DB VIP가 복구되며 old primary가 standby로 rebuild됩니다.
Database restore monthly sample 및 major change 전 backup이 restore 가능합니다. restore 후 verify, smoke check, login verification이 통과합니다.
Material verification package build마다 source material, package SHA, unpacking verification이 통과합니다.
  1. 먼저 impact scope를 확인합니다: HTTP, MQTT, OPC UA, database, single-node impact.
  2. VIP, HAProxy, active application, database primary 복구를 우선합니다.
  3. log, data directory, backup을 보존합니다. incident site를 직접 clean하거나 overwrite하지 마세요.
  4. database incident에서는 현재 primary를 먼저 확인한 뒤 failover, rejoin, restore 중 무엇을 할지 결정합니다.
  5. recovery 후 verify, smoke check, 실제 login verification을 실행합니다.
  • application을 multi-replica로 만들거나 active node의 검증 가능한 automatic migration process를 구축합니다.
  • EMQX를 cluster화하거나 dedicated VIP가 있는 HAProxy TCP / TLS를 통해 routing합니다.
  • OPC UA에 대해 HAProxy TCP, dedicated VIP 또는 service clustering 기반 high-availability entry를 제공합니다.
  • PostgreSQL synchronous replication을 사용하거나 허용 가능한 replication lag와 RPO를 명확히 정의합니다.
  • backup scheduling, off-site replication, 정기 restore drill을 자동화합니다.
  • container, host, database, log, black-box probe를 unified alerting에 연결합니다.

관련 절차: 운영 Runbook 및 표준 Port 목록.

참조

표준 Port 목록

표준 six-VM offline Tier0 Enterprise deployment를 위한 firewall port list입니다.

아래 table은 Enterprise New six-VM offline deployment를 기준으로 합니다. customer firewall은 최소한으로 필요한 source range에서 오는 traffic만 허용해야 합니다. 이 port들을 public internet에 직접 노출하지 마세요.

Source Target Port Protocol Purpose
Control host Six target VMs 22 TCP SSH / Ansible
3개 application node 상호 간 3개 application node 2377 TCP Docker Swarm management plane
3개 application node 상호 간 3개 application node 7946 TCP/UDP Swarm node discovery
3개 application node 상호 간 3개 application node 4789 UDP Swarm overlay
3개 application node Active application node 8088 TCP HAProxy to Enterprise New backend; application network segment only
Business network segment APP VIP 80 TCP Platform HTTP entry, /healthz, /readyz
Business network segment APP VIP / active application node 1883 TCP MQTT
Business network segment APP VIP / active application node 8883 TCP MQTT TLS
Business network segment APP VIP / active application node 8083 TCP MQTT WebSocket
Business network segment APP VIP / active application node 8084 TCP MQTT WebSocket TLS
Business network segment APP VIP / active application node 4840 TCP OPC UA Server
Controlled application network segment Active application node 8089 TCP Launchpad
Dynamic app access network segment Active application node 30000-30199 TCP App Gateway / dynamic application host ports
Application nodes, DB nodes, witness DB VIP / DB nodes 5432 TCP PostgreSQL / TimescaleDB
DB1, DB2, witness DB1, DB2, witness 5432 TCP Streaming replication / repmgr
Application nodes NFS server 2049 TCP/UDP NFS_ENABLED=true일 때 사용

현재 compose deployment는 Redis, SourceFlow, EventFlow, Marimo, EMQX Dashboard를 외부에 노출하지 않습니다. 이러한 service는 Docker runtime network 안에서 backend에 의해서만 호출됩니다.

참조

운영 Runbook

표준 Tier0 Enterprise deployment의 daily inspection, failover, backup, restore, cleanup, troubleshooting 절차.

이 document는 Enterprise New offline application을 기준으로 합니다.

  1. deployment package の root directory で다음 commands를 실행합니다.
    Terminal window
    ./bin/verify.sh --site config/site.conf
    ./bin/smoke-business-emqx.sh --site config/site.conf
  2. 다음 항목을 확인합니다.
    • 3 台の Swarm nodes が Ready である。
    • APP VIP /healthz と /readyz が 200 を返す。
    • DB VIP:5432 に접속할 수 있다。
    • PostgreSQL primary、standby、witness topology が정상이다。
    • backend、redis、emqx、sourceflow、eventflow、marimo、opcua-server が active application node で모두 running 상태이다。
  1. active application node で다음 commands를 실행합니다.

    Terminal window
    cd /opt/tier0-enterprise/tier0-deploy
    bash bin/compose.sh ps
    bash bin/compose.sh logs --tail=200 backend
    curl -fsS http://127.0.0.1:8088/healthz
    curl -fsS http://127.0.0.1:8088/readyz
  2. Health-check の見方:

    • healthz failure: まず backend process、image、container logs 를 확인합니다.
    • readyz failure: DB VIP、Redis、database migration logs も確認します。
    • Home page に到達できるが login できない場合: .env の ADMIN_INITIAL_PASSWORD を確認し、その後 backend IAM migration logs と user tables 를 확인합니다.HTTP port だけで deployment success を判断하지 마세요.
Terminal window
nc -vz <APP_VIP> 1883
nc -vz <APP_VIP> 8883
nc -vz <APP_VIP> 8083
nc -vz <APP_VIP> 8084
nc -vz <APP_VIP> 4840

Database nodes で次を실행합니다.

Terminal window
systemctl status tier0-postgresql
systemctl status tier0-repmgrd
sudo -iu postgres psql -Atqc 'select pg_is_in_recovery();'
sudo -iu postgres /usr/local/bin/repmgr -f /etc/repmgr.conf cluster show
  • pg_is_in_recovery=false は primary を의미합니다.
  • pg_is_in_recovery=true は standby を의미합니다.
  • DB VIP は current primary のみに配置されている필요합니다.
  • standby replication が interrupted した場合、または witness が upstream errors を報告した場合は、まず site を保全してください。full deployment を直接再実行하지 마세요.
  1. test 前に、現在 VIP を保持している node を記録し、次를 확인합니다.

    Terminal window
    curl -fsS http://<APP_VIP>/healthz
    curl -fsS http://<APP_VIP>/readyz
  2. 現在の VIP node で keepalived を停止した後、別の application node への VIP takeover を確認し、両方の URLs を再テストします。HAProxy backend は active application node の 8088/TCP を指すため、3 台すべての application nodes が active node の port 8088 に到達できる필요합니다.

  3. keepalived を復旧した後、verify.sh と smoke checks を再실행합니다.drill 中に active application containers を停止하지 마세요.

Failure drill の前に backup を作成し、replication が healthy であること를 확인합니다.

Terminal window
./bin/backup-db.sh --site config/site.conf

現在の primary で tier0-postgresql を停止した後、repmgr が standby を promote し、DB VIP takeover すること를 확인합니다.target RTO は 2 分以内です。同じ architecture での過去の tests は約 59-64 秒でした。

  • Backup:

    Terminal window
    ./bin/backup-db.sh --site config/site.conf
  • Restore:

    Terminal window
    ./bin/restore-db.sh --site config/site.conf --restore-file /backup/tier0-db/postgres-YYYYmmddTHHMMSS.dump
Terminal window
./full-cleanup.sh --env install.env --yes
./install.sh --auto --yes
Terminal window
cd /opt/tier0-enterprise/tier0-deploy
bash bin/compose.sh logs --tail=300 backend
bash bin/compose.sh ps
Terminal window
cd /opt/tier0-enterprise/tier0-deploy
bash bin/compose.sh logs --tail=200 emqx
Terminal window
systemctl status tier0-repmgrd
tail -100 /var/log/repmgr/repmgr.log
sudo -iu postgres psql -Atqc 'show shared_preload_libraries;'
Terminal window
./bin/verify-materials.sh
참조

OpenAPI 레퍼런스 부록

Tier0 OpenAPI v1 · 작업: 36 · 스키마: 85

작업

API 필드 이름, 예제 및 원본 설명은 포함된 영어 OpenAPI 명세를 따릅니다.

UNS

Unified Namespace 데이터 읽기, 쓰기 및 관리.

POST/uns/attachments

Upload a UNS attachment

Uploads a multipart attachment for a UNS node. Supply a file and at least one of unsId or topic; a valid unsId takes precedence.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/attachments' \
  --header 'x-api-key: <api-key>'

multipart/form-data

필드유형필수설명
unsIdinteger (int64)아니요Numeric owner node ID. Supply unsId or topic; a valid unsId takes precedence.
topicstring아니요Full owner node path, used when a valid unsId is not supplied.
fileNamestring아니요Original file name.
sha256string아니요SHA-256 checksum of the file contents.
filestring (binary)예Binary file contents. The multipart field name must be file.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "unsId": 0,
    "fileName": "string",
    "filePath": "string",
    "fileUrl": "string",
    "contentType": "string"
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요UnsAttachmentUploadResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/attachments/list

List UNS attachments

Lists attachments for a UNS node or topic. Temporary file URLs can expire and must then be requested again.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/attachments/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"unsId":0,"topic":"string","page":0,"size":0,"includeFileUrl":false}'

application/json

필드유형필수설명
unsIdinteger (int64)아니요Numeric UNS node ID.
topicstring아니요Full UNS topic path.
pageinteger (int64)아니요Page number, starting at 1.
sizeinteger (int64)아니요Number of attachments per page.
includeFileUrlboolean (boolean)아니요Whether to return temporary file URLs. Defaults to true.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "unsId": 0,
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요UnsAttachmentListResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/browse

Browse the UNS tree

Returns a UNS subtree. Use an empty path for the workspace root.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/browse' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"path":"string","max_depth":0,"include_metadata":false,"include_leaf_value":false}'

application/json

필드유형필수설명
pathstring아니요Root UNS path. Empty means the workspace root.
max_depthinteger (int64)아니요Maximum tree depth. Omit or use 0 for the server default.
include_metadataboolean (boolean)아니요Whether returned nodes should include metadata.
include_leaf_valueboolean (boolean)아니요Whether returned leaf nodes should include their latest payload.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "tree": [
      "value"
    ]
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요BrowseResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/create

Create UNS nodes

Creates UNS nodes and nested subtrees. Check each item result and use the returned topic in subsequent calls.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"namespace":[{"name":"value","type":"value","children":"value","topicType":"value","fields":"value"}]}'

application/json

필드유형필수설명
namespacearray<object>예UNS nodes to create. Nest children to create a subtree.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "success": false,
    "results": [
      "value"
    ]
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요CreateResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/delete

Delete UNS nodes

Deletes the listed nodes sequentially. By default this is a soft delete; the batch is not rolled back when a later item fails.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"topics":["string"],"hard_delete":false}'

application/json

필드유형필수설명
topicsarray<string>예UNS topic or path node paths to delete.
hard_deleteboolean (boolean)아니요Permanently delete instead of moving nodes to the recycle state.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "success": false
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요OpenapiEmptyResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/history

Query UNS history

Queries historical topic values over an inclusive RFC 3339 time range. Results can be aggregated or sampled.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/history' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"topics":["string"],"start_time":"string","end_time":"string","aggregation":{"interval":"string","function":"string","field":"string","fields":["value"]},"page":0}'

application/json

필드유형필수설명
topicsarray<string>예UNS topic paths whose history should be queried.
start_timestring예Inclusive query start in RFC 3339 format.
end_timestring예Inclusive query end in RFC 3339 format.
aggregationobject아니요HistoryAggregation. 스키마 절에서 참조된 스키마를 확인하세요.
pageinteger (int64)아니요Page number, starting from 1.
sizeinteger (int64)아니요Page size; values above the server maximum are capped.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "success": false,
    "results": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요HistoryResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/read

Read UNS values

Returns value, quality, and timeStamp (VQT) for each requested topic. A failed topic does not discard successful items in the same batch.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/read' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"topics":["string"],"include_metadata":false,"include_leaf_value":false}'

application/json

필드유형필수설명
topicsarray<string>예UNS topic paths to read.
include_metadataboolean (boolean)아니요Whether each result should include UNS node metadata.
include_leaf_valueboolean (boolean)아니요Whether leaf nodes should include their latest payload.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "success": false,
    "results": [
      "value"
    ]
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요ReadResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/restore

Restore a deleted UNS node

Restores a soft-deleted UNS node. Permanently deleted nodes cannot be restored.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/restore' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"path":"string"}'

application/json

필드유형필수설명
pathstring예Full UNS path of the node to restore. Use its path before deletion, not a node ID or HTTP URL.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "success": false
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요OpenapiEmptyResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/search

Search UNS nodes

Searches UNS node names, aliases, and paths, with optional type and path filters.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/search' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"keyword":"string","topicType":"string","path_prefix":"string","include_metadata":false,"include_leaf_value":false}'

application/json

필드유형필수설명
keywordstring아니요Keyword matched against UNS node names, aliases, and paths.
topicTypestring아니요Topic data category filter: STATE, ACTION, or METRIC.
path_prefixstring아니요Only return nodes under this UNS path prefix.
include_metadataboolean (boolean)아니요Whether returned nodes should include metadata.
include_leaf_valueboolean (boolean)아니요Whether returned leaf nodes should include their latest payload.
pageinteger (int64)아니요Page number, starting from 1.
sizeinteger (int64)아니요Page size.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "objects": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요SearchResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/unsBindFlow

Bind a flow to a UNS node

Binds a flow ID to a UNS node ID.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/unsBindFlow' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"unsId":0,"flowId":0}'

application/json

필드유형필수설명
unsIdinteger (int64)예UNS node ID to bind.
flowIdinteger (int64)예Flow ID to bind.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "success": false,
    "unsId": 0,
    "flowId": 0
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요UnsBindFlowResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/update

Update a UNS node

Updates an existing UNS node. Empty strings, an empty fields array, and an empty extendProperties object retain existing values.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"path":"string","name":"string","description":"string","displayName":"string","extendProperties":{}}'

application/json

필드유형필수설명
pathstring예Existing UNS topic or path node to update.
namestring아니요New node name.
descriptionstring아니요Updated node description.
displayNamestring아니요Updated display name.
extendPropertiesobject아니요Updated custom metadata key-value pairs.
fieldsarray<object>아니요Updated payload schema fields.
aliasstring아니요Updated topic alias.
enableHistoryboolean (boolean)아니요Supply true or false to change history storage. Omit to keep the existing setting.
updateMaskarray<string>아니요Compatibility field ignored by the current Enterprise implementation. It cannot be used to clear fields.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "success": false
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요OpenapiEmptyResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/uns/write

Write UNS values

Writes values to existing TOPIC nodes; wildcards are not supported. `value` must match the node payload schema. **Batch results:** check each `data.results` item, not only HTTP 200. **Retry:** confirm the outcome before retrying a write.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/uns/write' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"writes":[{"topic":"value","value":"value","timeStamp":"value"}],"qos":0,"retain":false}'

application/json

필드유형필수설명
writesarray<object>예Write operations to apply.
qosinteger (int64)아니요MQTT QoS: 0, 1, or 2.
retainboolean (boolean)아니요Whether the MQTT message should be retained.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "success": false,
    "results": [
      "value"
    ]
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요WriteResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200Inspect the success flag of each `data.results` item. HTTP 200 alone does not confirm that every write succeeded.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

파일 리소스

저장된 파일 업로드, 다운로드 및 관리.

POST/assets/files

Create a direct-upload form

Issues an object-store upload form; it does not transfer file contents. Submit every returned post field unchanged with the file.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/assets/files' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileName":"string","contentType":"string","size":0,"business":"string","useBy":"string"}'

application/json

필드유형필수설명
fileNamestring예Original file name.
contentTypestring아니요MIME content type.
sizeinteger (int64)예File size in bytes. Business validation requires a value greater than 0 and at most 1 GiB.
businessstring아니요Business domain or feature associated with the file.
useBystring아니요Optional usage category: user, workspace, or platform.
visibilitystring아니요File visibility, such as private or public.
appInstanceIdstring아니요Associated application instance ID.
sessionIdstring아니요Caller session ID.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "fileId": 0,
    "filePath": "string",
    "fileUrl": "string",
    "uploadUrl": "string",
    "expiresAt": 0
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요AssetFileUploadResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/assets/files/delete

Delete a file

Deletes a file identified by its server-issued storage path.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/assets/files/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filePath":"string"}'

application/json

필드유형필수설명
filePathstring예Server-issued storage path returned by an upload API.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "deleted": false
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요AssetFileDeleteResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

GET/assets/files/download

Download a private file

Returns file bytes directly. Do not forward x-api-key or other credentials when a client follows a redirect to a cross-origin storage URL.

요청 매개변수
이름위치유형필수설명
filePathquerystring예Server-issued storage path returned by an upload API.
responseContentDispositionquerystring아니요Optional Content-Disposition value for the download response.
응답
302400401403404409413500
응답 상태 의미
상태의미미디어 유형
302Redirect to the final download URL.—
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/assets/files/multipart/abort

Abort a multipart upload

Cancels a multipart upload session.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/assets/files/multipart/abort' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileKey":"string","uploadId":"string"}'

application/json

필드유형필수설명
fileKeystring예Object-store key used for the multipart upload.
uploadIdstring예Object-store multipart upload session ID.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "aborted": 1
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요AssetFileMultipartAbortResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/assets/files/multipart/complete

Complete a multipart upload

Completes a multipart upload after every uploaded part number and ETag have been supplied.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/assets/files/multipart/complete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileKey":"string","uploadId":"string","parts":[{"partNumber":"value","etag":"value"}]}'

application/json

필드유형필수설명
fileKeystring예Object-store key used for the multipart upload.
uploadIdstring예Object-store multipart upload session ID.
partsarray<object>예Uploaded part numbers and their ETags.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "filePath": "string",
    "fileUrl": "string",
    "sizeBytes": 0,
    "expiresAt": 0
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요AssetFileMultipartCompleteResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/assets/files/multipart/init

Initialize a multipart upload

Creates a multipart upload session and returns its ID, part size, and part count.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/assets/files/multipart/init' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileName":"string","contentType":"string","size":0,"partSize":0,"business":"string"}'

application/json

필드유형필수설명
fileNamestring예Original file name.
contentTypestring아니요File MIME type, for example application/octet-stream.
sizeinteger (int64)예Total file size in bytes, greater than 0 and at most 1 GiB.
partSizeinteger (int64)아니요Preferred part size in bytes. The server may normalize it.
businessstring아니요Business domain or feature associated with the file.
useBystring아니요Optional usage category: user, workspace, or platform.
visibilitystring아니요File visibility: private or public.
appInstanceIdstring아니요Associated application instance ID.
sessionIdstring아니요Caller session ID.
bizIdstring아니요Associated business identifier.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "fileKey": "string",
    "filePath": "string",
    "uploadId": "string",
    "partSize": 0,
    "partCount": 0
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요AssetFileMultipartInitResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/assets/files/multipart/part-urls

Create multipart upload URLs

Returns presigned PUT URLs for the requested one-based part numbers.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/assets/files/multipart/part-urls' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileKey":"string","uploadId":"string","partNumbers":[0]}'

application/json

필드유형필수설명
fileKeystring예Object-store key used for the multipart upload.
uploadIdstring예Object-store multipart upload session ID.
partNumbersarray<integer (int32)>예One-based part numbers to sign.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "partUrls": [
      "value"
    ]
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요AssetFileMultipartPartUrlsResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

GET/assets/files/public

Download a public file

Downloads bytes for a file explicitly marked public. An unguessable path is not authorization; do not mark sensitive files public.

요청 매개변수
이름위치유형필수설명
filePathquerystring예Server-issued storage path returned by an upload API.
responseContentDispositionquerystring아니요Optional Content-Disposition value for the download response.
응답
200400404409413500
응답 상태 의미
상태의미미디어 유형
200Returns file bytes directly. Content-Type depends on the file type; no JSON envelope is used.—
400Correct the request parameters or Content-Type before retrying.application/json
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

GET/assets/files/url

Create a temporary file URL

Creates a temporary URL for a file.

요청 매개변수
이름위치유형필수설명
filePathquerystring예Server-issued storage path returned by an upload API.
expiredSecqueryinteger (int64)아니요Requested temporary URL lifetime in seconds.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "fileUrl": "string",
    "expiresAt": 0
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요AssetFileUrlResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/assets/upload

Create a legacy asset upload URL

Legacy compatibility endpoint. The current Enterprise implementation returns an empty uploadUrl; use /assets/files for new integrations.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/assets/upload' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileName":"string","sizeBytes":0,"contentType":"string","size":0,"sha256":"string"}'

application/json

필드유형필수설명
fileNamestring예Original file name.
sizeBytesinteger (int64)예File size in bytes.
contentTypestring아니요File MIME type, for example application/octet-stream.
sizeinteger (int64)아니요File size in bytes.
sha256string아니요Optional SHA-256 checksum of the file content.
storageKeystring아니요Optional object-store key. Omit it to let the server generate one.
isPublicboolean (boolean)아니요Whether the file should be accessible through the public download endpoint.
businessstring아니요Business domain or feature that owns the uploaded file.
useBystring아니요Usage scenario or owner category for the uploaded file.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "uploadUrl": "string",
    "filePath": "string",
    "fileUrl": "string"
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
msgstring아니요Response message
dataobject아니요AssetUploadResp. 스키마 절에서 참조된 스키마를 확인하세요.
응답 상태 의미
상태의미미디어 유형
200Legacy upload response. The current Enterprise implementation returns an empty uploadUrl; use /assets/files for new integrations.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

인증

현재 OpenAPI ID 및 권한 확인.

POST/auth/whoami

Inspect the current API key identity

Returns the current API-key identity and its effective permissions. Call this before integration work to verify access.

응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "userID": 0,
    "userName": "string",
    "email": "string",
    "workspaceID": 0,
    "workspaceName": "string"
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요AuthWhoamiResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

Flow

Source Flow 및 Event Flow 정의 관리.

POST/flow/create

Create a flow

Creates a SourceFlow or EventFlow and returns its numeric resource ID.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/flow/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"flowName":"string","flowType":"string","description":"string","template":"string"}'

application/json

필드유형필수설명
flowNamestring예Flow name, up to 63 Unicode characters.
flowTypestring예Flow category: SourceFlow or EventFlow.
descriptionstring아니요Flow description.
templatestring아니요Optional flow template JSON.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "id": 0,
    "brokerID": "string"
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요FlowCreateResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/flow/delete

Delete flows

Deletes the listed flows sequentially; earlier deletions are not rolled back when a later item fails.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/flow/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"ids":[0]}'

application/json

필드유형필수설명
idsarray<integer (int64)>예Flow IDs to delete.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "success": false
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요FlowEmptyResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/flow/deploy

Deploy a flow

Deploys a complete Node-RED canvas JSON string to a flow.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/flow/deploy' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":0,"flowsJson":"string"}'

application/json

필드유형필수설명
idinteger (int64)예Flow ID to deploy.
flowsJsonstring예Node-RED canvas JSON to deploy.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "flowId": "string"
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요FlowDeployResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/flow/flowdata

Get flow canvas data

Returns the Node-RED canvas revision and node objects for a flow.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/flow/flowdata' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":0}'

application/json

필드유형필수설명
idinteger (int64)예Flow ID.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "rev": "string",
    "flows": [
      "value"
    ]
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요FlowDataResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/flow/get

Get a flow

Returns flow metadata for a numeric flow ID.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/flow/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":0}'

application/json

필드유형필수설명
idinteger (int64)예Flow ID.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "id": 0,
    "flowId": "string",
    "flowName": "string",
    "flowType": "string",
    "flowStatus": "string"
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요FlowInfo. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/flow/list

List flows

Lists flows, optionally filtered by a keyword or flow category.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/flow/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"keyword":"string","flowType":"string"}'

application/json

필드유형필수설명
keywordstring아니요Keyword matched against flow names and descriptions.
flowTypestring아니요Flow category filter: SourceFlow or EventFlow.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 200,
  "msg": "success",
  "data": {
    "list": [
      {
        "id": 101,
        "flowId": "flow-101",
        "flowName": "Line 1 collector",
        "flowType": "source",
        "flowStatus": "draft",
        "template": "[]",
        "description": "Collects line telemetry",
        "isFavorite": 2,
        "currentVersionId": 0,
        "currentVersionName": "",
        "currentVersionType": "",
        "createdTime": 1788134400000,
        "updatedTime": 1788134400000
      }
    ]
  }
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요FlowListResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/flow/nodes

List available flow node types

Returns the Node-RED node sets available for a flow category.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/flow/nodes' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"flowType":"string"}'

application/json

필드유형필수설명
flowTypestring예Flow category whose Node-RED node catalog should be returned.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "nodes": [
      "value"
    ]
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요FlowNodesResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/flow/update

Update a flow

Updates flow metadata and settings for a numeric flow ID.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/flow/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":0,"flowName":"string","description":"string","template":"string","isFavorite":0}'

application/json

필드유형필수설명
idinteger (int64)예Flow ID to update.
flowNamestring아니요Updated flow name.
descriptionstring아니요Updated flow description.
templatestring아니요Updated flow template JSON.
isFavoriteinteger (int64)아니요Favorite state: 1 for favorite, 2 for not favorite.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "success": false
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요FlowEmptyResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

플랫폼 및 프로젝트

플랫폼 정보 읽기 및 프로젝트 관리.

POST/info

Get service information

Returns the service name, version, reported capabilities, and configured MQTT broker.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/info' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

OpenAPI에 이 요청 본문의 객체 필드가 선언되어 있지 않습니다.

응답
200400401403404409413500
응답 상태 의미
상태의미미디어 유형
200A successful response.—
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/launchpad/{projectName}/getMembers

List project members

Lists Launchpad project members. URL-encode projectName when it contains special characters.

요청 매개변수
이름위치유형필수설명
projectNamepathstring예Project name in the Launchpad URL. URL-encode special characters.
요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/launchpad/{projectName}/getMembers' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"roleKey":"string","roles":["string"],"updatedAtStart":"string","updatedAtEnd":"string","page":0}'

application/json

필드유형필수설명
roleKeystring아니요Role key filter.
rolesarray<string>아니요Role filters or the returned role list, depending on the model.
updatedAtStartstring아니요Inclusive update-time lower bound in RFC 3339 format.
updatedAtEndstring아니요Inclusive update-time upper bound in RFC 3339 format.
pageinteger (int64)아니요Page number, starting at 1.
sizeinteger (int64)아니요Number of members per page.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요LaunchpadMembersResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/platform/getMembers

List platform members

Lists platform members with optional keyword, role, status, and update-time filters.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/platform/getMembers' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"keyword":"string","roleKey":"string","roles":["string"],"statuses":["string"],"updatedAtStart":"string"}'

application/json

필드유형필수설명
keywordstring아니요Search keyword.
roleKeystring아니요Role key filter.
rolesarray<string>아니요Role filters or the returned role list, depending on the model.
statusesarray<string>아니요Member status filters: active or disabled.
updatedAtStartstring아니요Inclusive update-time lower bound in RFC 3339 format.
updatedAtEndstring아니요Inclusive update-time upper bound in RFC 3339 format.
pageinteger (int64)아니요Page number, starting at 1.
sizeinteger (int64)아니요Number of members per page.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요PlatformMembersResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

MQTT 인증

MQTT 자격 증명 생성 및 삭제.

POST/mqtt-auth/create

Create an MQTT credential

Creates a normal MQTT credential. The returned password is available only once and must be stored securely immediately.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/mqtt-auth/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"name":"string","description":"string","clientIDRandomSuffixEnabled":false}'

application/json

필드유형필수설명
namestring예MQTT credential name.
descriptionstring아니요Description of the MQTT credential.
clientIDRandomSuffixEnabledboolean아니요Whether to append a random suffix to the MQTT client ID.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "id": 0,
    "name": "string",
    "clientID": "string",
    "username": "string",
    "password": "string"
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요MqttAuthCreateResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

POST/mqtt-auth/delete

Delete an MQTT credential

Idempotently deletes a normal MQTT credential. System credentials are not deleted.

요청 본문
curl --request POST 'https://<tier0-host>/openapi/v1/mqtt-auth/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":0}'

application/json

필드유형필수설명
idinteger (int64)예Resource ID.
응답
200400401403404409413500
성공 응답 예제

200 · application/json

{
  "code": 0,
  "data": {
    "success": false
  },
  "msg": "string"
}
성공 응답 필드

200 · application/json

필드유형필수설명
codeinteger아니요Response code
dataobject아니요MqttAuthDeleteResp. 스키마 절에서 참조된 스키마를 확인하세요.
msgstring아니요Response message
응답 상태 의미
상태의미미디어 유형
200A successful response.application/json
400Correct the request parameters or Content-Type before retrying.application/json
401Authentication middleware returns plain-text unauthorized. Check API key validity, scope, and owner roles.text/plain
403Authentication middleware returns plain-text forbidden. Check API key validity, scope, and owner roles.text/plain
404Resource not found. Verify paths, IDs, and current resource state.—
409Resource state conflict. Verify paths, IDs, and current resource state.—
413Request too large. Reduce the request before retrying.—
500Service error. Investigate the service and confirm the outcome before retrying.—

스키마

API 필드 이름, 예제 및 원본 설명은 포함된 영어 OpenAPI 명세를 따릅니다.

AssetFileDeleteReq

필드유형필수설명
filePathstring예Server-issued storage path returned by an upload API.

AssetFileDeleteResp

필드유형필수설명
deletedboolean예Whether the file was deleted.

AssetFileMultipartAbortReq

필드유형필수설명
fileKeystring예Object-store key used for the multipart upload.
uploadIdstring예Object-store multipart upload session ID.

AssetFileMultipartAbortResp

필드유형필수설명
abortedinteger (int32)예Abort result: 1 = aborted (including idempotent replay success), 2 = not aborted.

AssetFileMultipartCompleteReq

필드유형필수설명
fileKeystring예Object-store key used for the multipart upload.
uploadIdstring예Object-store multipart upload session ID.
partsarray<object>예Uploaded part numbers and their ETags.

AssetFileMultipartCompleteResp

필드유형필수설명
filePathstring예Server-issued storage path returned by an upload API.
fileUrlstring아니요File access URL.
sizeBytesinteger (int64)예File size in bytes.
expiresAtinteger (int64)아니요Expiration time, in Unix milliseconds.

AssetFileMultipartInitReq

필드유형필수설명
fileNamestring예Original file name.
contentTypestring아니요File MIME type, for example application/octet-stream.
sizeinteger (int64)예Total file size in bytes, greater than 0 and at most 1 GiB.
partSizeinteger (int64)아니요Preferred part size in bytes. The server may normalize it.
businessstring아니요Business domain or feature associated with the file.
useBystring아니요Optional usage category: user, workspace, or platform.
visibilitystring아니요File visibility: private or public.
appInstanceIdstring아니요Associated application instance ID.
sessionIdstring아니요Caller session ID.
bizIdstring아니요Associated business identifier.

AssetFileMultipartInitResp

필드유형필수설명
fileKeystring예Object-store key used for the multipart upload.
filePathstring예Server-issued storage path returned by an upload API.
uploadIdstring예Object-store multipart upload session ID.
partSizeinteger (int64)예Part size in bytes; the server may normalize it.
partCountinteger (int64)예Total number of upload parts.
expiresAtinteger (int64)예Expiration time, in Unix milliseconds.

AssetFileMultipartPart

필드유형필수설명
partNumberinteger (int32)예Part number, starting at 1.
etagstring예ETag returned after uploading this part.

AssetFileMultipartPartUrl

필드유형필수설명
partNumberinteger (int32)예Part number, starting at 1.
urlstring예Presigned PUT URL for this part.
expiresAtinteger (int64)예Expiration time, in Unix milliseconds.

AssetFileMultipartPartUrlsReq

필드유형필수설명
fileKeystring예Object-store key used for the multipart upload.
uploadIdstring예Object-store multipart upload session ID.
partNumbersarray<integer (int32)>예One-based part numbers to sign.

AssetFileMultipartPartUrlsResp

필드유형필수설명
partUrlsarray<object>예Presigned URLs for the requested parts.

AssetFileUploadReq

필드유형필수설명
fileNamestring예Original file name.
contentTypestring아니요MIME content type.
sizeinteger (int64)예File size in bytes. Business validation requires a value greater than 0 and at most 1 GiB.
businessstring아니요Business domain or feature associated with the file.
useBystring아니요Optional usage category: user, workspace, or platform.
visibilitystring아니요File visibility, such as private or public.
appInstanceIdstring아니요Associated application instance ID.
sessionIdstring아니요Caller session ID.

AssetFileUploadResp

필드유형필수설명
fileIdinteger (int64)아니요File ID.
filePathstring예Server-issued storage path returned by an upload API.
fileUrlstring아니요File access URL.
uploadUrlstring예Upload URL; the legacy Enterprise endpoint currently returns an empty string.
expiresAtinteger (int64)아니요Expiration time, in Unix milliseconds.

AssetFileUrlResp

필드유형필수설명
fileUrlstring예File access URL.
expiresAtinteger (int64)아니요Expiration time, in Unix milliseconds.

AssetUploadReq

AssetUploadReq

필드유형필수설명
fileNamestring예Original file name.
sizeBytesinteger (int64)예File size in bytes.
contentTypestring아니요File MIME type, for example application/octet-stream.
sizeinteger (int64)아니요File size in bytes.
sha256string아니요Optional SHA-256 checksum of the file content.
storageKeystring아니요Optional object-store key. Omit it to let the server generate one.
isPublicboolean (boolean)아니요Whether the file should be accessible through the public download endpoint.
businessstring아니요Business domain or feature that owns the uploaded file.
useBystring아니요Usage scenario or owner category for the uploaded file.

AssetUploadResp

AssetUploadResp

필드유형필수설명
uploadUrlstring예Upload URL; the legacy Enterprise endpoint currently returns an empty string.
filePathstring예Server-issued storage path returned by an upload API.
fileUrlstring아니요File access URL.

AuthWhoamiResp

필드유형필수설명
userIDinteger (int64)예Numeric ID of the API key owner.
userNamestring예User name.
emailstring예Email address.
workspaceIDinteger (int64)예Platform workspace ID.
workspaceNamestring예Workspace name; may be empty in Enterprise.
apiKeyNamestring예Name of the current API key.
keyPrefixstring예API key prefix.
permissionsarray<string>예Effective permissions of the current identity.
rolesarray<string>예Role filters or the returned role list, depending on the model.
keyTypestring예API key ownership type, for example personal.

BrowseReq

BrowseReq

필드유형필수설명
pathstring아니요Root UNS path. Empty means the workspace root.
max_depthinteger (int64)아니요Maximum tree depth. Omit or use 0 for the server default.
include_metadataboolean (boolean)아니요Whether returned nodes should include metadata.
include_leaf_valueboolean (boolean)아니요Whether returned leaf nodes should include their latest payload.

BrowseResp

BrowseResp

필드유형필수설명
treearray<object>예UNS node tree.

CreateResp

CreateResp

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.
resultsarray<object>예Per-item results. Check success and error for each item.

FlowCreateReq

필드유형필수설명
flowNamestring예Flow name, up to 63 Unicode characters.
flowTypestring예Flow category: SourceFlow or EventFlow.
descriptionstring아니요Flow description.
templatestring아니요Optional flow template JSON.

FlowCreateResp

필드유형필수설명
idinteger (int64)예Resource ID.
brokerIDstring예ID of the MQTT broker configuration node injected when the flow is created.

FlowDataResp

필드유형필수설명
revstring예Node-RED canvas revision; may be an empty string.
flowsarray<object>예Array of Node-RED canvas node objects.

FlowDeleteReq

필드유형필수설명
idsarray<integer (int64)>예Flow IDs to delete.

FlowDeployReq

필드유형필수설명
idinteger (int64)예Flow ID to deploy.
flowsJsonstring예Node-RED canvas JSON to deploy.

FlowDeployResp

필드유형필수설명
flowIdstring예Flow identifier.

FlowEmptyResp

필드유형필수설명
successboolean예Whether the operation succeeded.

FlowGetReq

필드유형필수설명
idinteger (int64)예Flow ID.

FlowInfo

필드유형필수설명
idinteger (int64)예Resource ID.
flowIdstring예Flow identifier.
flowNamestring예Flow name.
flowTypestring예Response flow type: source or event.
flowStatusstring예Current flow status, for example draft.
templatestring예Flow template JSON, encoded as a string.
descriptionstring예Description.
isFavoriteinteger (int64)예Favorite state: 1 for favorite, 2 for not favorite.
currentVersionIdinteger (int64)예Current version ID; 0 if unset.
currentVersionNamestring예Current version name; empty if unset.
currentVersionTypestring예Current version type; empty if unset.
createdTimeinteger (int64)예Creation time, in Unix milliseconds.
updatedTimeinteger (int64)예Last update time, in Unix milliseconds.

FlowListReq

필드유형필수설명
keywordstring아니요Keyword matched against flow names and descriptions.
flowTypestring아니요Flow category filter: SourceFlow or EventFlow.

FlowListResp

필드유형필수설명
listarray<object>예Result list.

FlowNodesReq

필드유형필수설명
flowTypestring예Flow category whose Node-RED node catalog should be returned.

FlowNodesResp

필드유형필수설명
nodesarray<object>예Available Node-RED node sets.

FlowUpdateReq

필드유형필수설명
idinteger (int64)예Flow ID to update.
flowNamestring아니요Updated flow name.
descriptionstring아니요Updated flow description.
templatestring아니요Updated flow template JSON.
isFavoriteinteger (int64)아니요Favorite state: 1 for favorite, 2 for not favorite.

HistoryAggregation

HistoryAggregation

필드유형필수설명
intervalstring예Positive aggregation window, such as 1m, 5m, 1h, or 1d.
functionstring아니요Aggregation function: avg, min, max, sum, count, first, or last.
fieldstring아니요First-level payload field to aggregate.
fieldsarray<object>아니요Per-field aggregation settings.

HistoryAggregationField

HistoryAggregationField

필드유형필수설명
namestring예Payload field to aggregate.
functionstring아니요Function for this field; defaults to the outer aggregation function.

HistoryQueryMeta

HistoryQueryMeta

필드유형필수설명
aggregatedboolean (boolean)예Whether the result was aggregated.
sampledboolean (boolean)예Whether the result was sampled.
rawTotalinteger (int64)예Total number of raw records.
returnedTotalinteger (int64)예Number of records returned in this response.
requestedIntervalMsinteger (int64)아니요Requested aggregation interval in milliseconds.
actualIntervalMsinteger (int64)아니요Actual aggregation interval in milliseconds.
strategystring아니요Processing strategy used for the query.

HistoryReq

HistoryReq

필드유형필수설명
topicsarray<string>예UNS topic paths whose history should be queried.
start_timestring예Inclusive query start in RFC 3339 format.
end_timestring예Inclusive query end in RFC 3339 format.
aggregationobject아니요HistoryAggregation. 스키마 절에서 참조된 스키마를 확인하세요.
pageinteger (int64)아니요Page number, starting from 1.
sizeinteger (int64)아니요Page size; values above the server maximum are capped.

HistoryResp

HistoryResp

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.
resultsarray<object>예Per-item results. Check success and error for each item.
pageinteger (int64)예Page number, starting at 1.
sizeinteger (int64)예File size in bytes.
totalinteger (int64)예Total number of matching records.

InfoReq

{
  "type": "object",
  "properties": {}
}

LaunchpadGetMembersReq

필드유형필수설명
roleKeystring아니요Role key filter.
rolesarray<string>아니요Role filters or the returned role list, depending on the model.
updatedAtStartstring아니요Inclusive update-time lower bound in RFC 3339 format.
updatedAtEndstring아니요Inclusive update-time upper bound in RFC 3339 format.
pageinteger (int64)아니요Page number, starting at 1.
sizeinteger (int64)아니요Number of members per page.

LaunchpadMemberResp

필드유형필수설명
memberIdstring예Member identifier.
userIdstring예User ID.
userNamestring아니요User name.
emailstring아니요Email address.
rolesarray<object>예Role filters or the returned role list, depending on the model.
updatedAtstring아니요Last update time.

LaunchpadMemberRoleAppResp

필드유형필수설명
appIdstring예Application ID, represented as a string.
appNamestring예Application name.

LaunchpadMemberRoleResp

필드유형필수설명
roleIdstring예Role ID, represented as a string.
roleKeystring예Role key filter.
roleNamestring아니요Role display name.
descriptionstring아니요Description.
memberCountinteger (int64)예Number of members assigned to the role.
appsarray<object>아니요Applications associated with the role.

LaunchpadMembersResp

필드유형필수설명
listarray<object>예Result list.
totalinteger (int64)예Total number of matching records.
pageinteger (int64)예Page number, starting at 1.
sizeinteger (int64)예File size in bytes.

MqttAuthCreateReq

필드유형필수설명
namestring예MQTT credential name.
descriptionstring아니요Description of the MQTT credential.
clientIDRandomSuffixEnabledboolean아니요Whether to append a random suffix to the MQTT client ID.

MqttAuthCreateResp

필드유형필수설명
idinteger (int64)예Resource ID.
namestring예Name.
clientIDstring예MQTT client ID.
usernamestring예MQTT user name.
passwordstring예Plaintext password. Save it now; it cannot be retrieved again.
clientIDRandomSuffixEnabledboolean예Whether to append a random suffix to the MQTT client ID.

MqttAuthDeleteReq

필드유형필수설명
idinteger (int64)예Resource ID.

MqttAuthDeleteResp

필드유형필수설명
successboolean예Whether the operation succeeded.

NamespaceNode

NamespaceNode

필드유형필수설명
namestring예Node name, up to 63 Unicode characters. In a nested request, this is the name under its parent.
typestring아니요Node type: PATH or TOPIC.
childrenarray<object>아니요Child nodes to create under this node.
topicTypestring아니요Topic data category: STATE, ACTION, or METRIC.
fieldsarray<object>아니요Payload schema fields for TOPIC nodes.
descriptionstring아니요Node description, up to 512 Unicode characters.
displayNamestring아니요Display name shown in clients.
extendPropertiesobject아니요Custom metadata key-value pairs.
aliasstring아니요Optional topic alias.
enableHistoryboolean (boolean)아니요Whether history storage is enabled for this topic.

NodeCreateReq

NodeCreateReq

필드유형필수설명
namespacearray<object>예UNS nodes to create. Nest children to create a subtree.

NodeDeleteReq

NodeDeleteReq

필드유형필수설명
topicsarray<string>예UNS topic or path node paths to delete.
hard_deleteboolean (boolean)아니요Permanently delete instead of moving nodes to the recycle state.

NodeRedNodeSet

필드유형필수설명
idstring예Resource ID.
namestring예Name.
typesarray<string>예Node-RED node types provided by the node set.
enabledboolean예Whether the node set is enabled.
modulestring예Node-RED module name.
versionstring예Service or node module version.

NodeRestoreReq

NodeRestoreReq

필드유형필수설명
pathstring예Full UNS path of the node to restore. Use its path before deletion, not a node ID or HTTP URL.

NodeUpdateReq

NodeUpdateReq

필드유형필수설명
pathstring예Existing UNS topic or path node to update.
namestring아니요New node name.
descriptionstring아니요Updated node description.
displayNamestring아니요Updated display name.
extendPropertiesobject아니요Updated custom metadata key-value pairs.
fieldsarray<object>아니요Updated payload schema fields.
aliasstring아니요Updated topic alias.
enableHistoryboolean (boolean)아니요Supply true or false to change history storage. Omit to keep the existing setting.
updateMaskarray<string>아니요Compatibility field ignored by the current Enterprise implementation. It cannot be used to clear fields.

OpenapiCreateResult

OpenapiCreateResult

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.
topicstring예Full UNS topic path.
errorobject아니요OpenapiItemError. 스키마 절에서 참조된 스키마를 확인하세요.

OpenapiEmptyResp

OpenapiEmptyResp

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.

OpenapiHistoryItem

OpenapiHistoryItem

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.
topicstring예Full UNS topic path.
resultobject아니요OpenapiHistoryResult. 스키마 절에서 참조된 스키마를 확인하세요.
errorobject아니요OpenapiItemError. 스키마 절에서 참조된 스키마를 확인하세요.

OpenapiHistoryResult

OpenapiHistoryResult

필드유형필수설명
valuesarray<object>예Historical VQT records.
metaobject아니요HistoryQueryMeta. 스키마 절에서 참조된 스키마를 확인하세요.

OpenapiHistoryValue

OpenapiHistoryValue

필드유형필수설명
valueobject아니요Payload value.
qualitystring예Data quality: Good, GoodNoData, Uncertain, or Bad.
timeStampinteger (int64)예Unix timestamp in milliseconds. Writes use server time when omitted.

OpenapiItemError

OpenapiItemError

필드유형필수설명
codeinteger (int64)예Status code; in an item error, identifies the failure.
messagestring예Item-level error message.

OpenapiNodeInfo

OpenapiNodeInfo

필드유형필수설명
idinteger (int64)예Resource ID.
pathstring예Full UNS node path.
namestring예Name.
typestring예Node type: PATH or TOPIC.
topicTypestring예Topic category: STATE, ACTION, or METRIC.
descriptionstring아니요Description.
displayNamestring아니요Display name.
extendPropertiesobject아니요Custom node metadata as key-value pairs.
fieldsarray<object>아니요Payload field definitions.
childrenarray<object>아니요Child nodes under this node.
aliasstring아니요Node alias.
enableHistoryboolean (boolean)아니요Whether history storage is enabled.
bindFlowIDinteger (int64)아니요Bound Source Flow ID. 0 means no Source Flow is bound.
bindEventFlowIDinteger (int64)아니요Bound Event Flow ID. 0 means no Event Flow is bound.
payloadobject아니요OpenapiVQT. 스키마 절에서 참조된 스키마를 확인하세요.

OpenapiReadItem

OpenapiReadItem

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.
topicstring예Full UNS topic path.
resultobject아니요OpenapiVQT. 스키마 절에서 참조된 스키마를 확인하세요.
errorobject아니요OpenapiItemError. 스키마 절에서 참조된 스키마를 확인하세요.
metadataobject아니요OpenapiNodeInfo. 스키마 절에서 참조된 스키마를 확인하세요.

OpenapiVQT

OpenapiVQT

필드유형필수설명
valueobject아니요Payload value.
qualitystring예Data quality: Good, GoodNoData, Uncertain, or Bad.
timeStampinteger (int64)예Unix timestamp in milliseconds. Writes use server time when omitted.

OpenapiWriteResult

OpenapiWriteResult

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.
topicstring예Full UNS topic path.
errorobject아니요OpenapiItemError. 스키마 절에서 참조된 스키마를 확인하세요.

PlatformGetMembersReq

필드유형필수설명
keywordstring아니요Search keyword.
roleKeystring아니요Role key filter.
rolesarray<string>아니요Role filters or the returned role list, depending on the model.
statusesarray<string>아니요Member status filters: active or disabled.
updatedAtStartstring아니요Inclusive update-time lower bound in RFC 3339 format.
updatedAtEndstring아니요Inclusive update-time upper bound in RFC 3339 format.
pageinteger (int64)아니요Page number, starting at 1.
sizeinteger (int64)아니요Number of members per page.

PlatformMemberResp

필드유형필수설명
userIdstring예User ID.
userNamestring아니요User name.
nickNamestring아니요User nickname.
emailstring아니요Email address.
statusstring예Platform member status: active or disabled.
rolesarray<object>예Role filters or the returned role list, depending on the model.
updatedAtstring예Last update time.

PlatformMemberRoleResp

필드유형필수설명
roleIdstring예Role ID, represented as a string.
roleKeystring예Role key filter.
roleNamestring아니요Role display name.
descriptionstring아니요Description.

PlatformMembersResp

필드유형필수설명
listarray<object>예Result list.
totalinteger (int64)예Total number of matching records.
pageinteger (int64)예Page number, starting at 1.
sizeinteger (int64)예File size in bytes.

ReadReq

ReadReq

필드유형필수설명
topicsarray<string>예UNS topic paths to read.
include_metadataboolean (boolean)아니요Whether each result should include UNS node metadata.
include_leaf_valueboolean (boolean)아니요Whether leaf nodes should include their latest payload.

ReadResp

ReadResp

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.
resultsarray<object>예Per-item results. Check success and error for each item.

SchemaField

SchemaField

필드유형필수설명
namestring예Payload field name.
typestring예Payload field type: INTEGER, LONG, DOUBLE, FLOAT, STRING, BOOLEAN, or DATETIME.
unitstring아니요Optional engineering unit.

SearchReq

SearchReq

필드유형필수설명
keywordstring아니요Keyword matched against UNS node names, aliases, and paths.
topicTypestring아니요Topic data category filter: STATE, ACTION, or METRIC.
path_prefixstring아니요Only return nodes under this UNS path prefix.
include_metadataboolean (boolean)아니요Whether returned nodes should include metadata.
include_leaf_valueboolean (boolean)아니요Whether returned leaf nodes should include their latest payload.
pageinteger (int64)아니요Page number, starting from 1.
sizeinteger (int64)아니요Page size.

SearchResp

SearchResp

필드유형필수설명
objectsarray<object>예Matching UNS nodes.
pageinteger (int64)예Page number, starting at 1.
sizeinteger (int64)예File size in bytes.
totalinteger (int64)예Total number of matching records.

UnsAttachmentInfo

UnsAttachmentInfo

필드유형필수설명
unsIdinteger (int64)예Numeric UNS node ID.
fileNamestring아니요Original file name.
filePathstring예Server-issued storage path returned by an upload API.
fileUrlstring아니요File access URL.
contentTypestring아니요File MIME type, for example application/octet-stream.
sizeinteger (int64)아니요File size in bytes.
sha256string아니요SHA-256 checksum of the file contents.
createdAtinteger (int64)아니요Creation time, in Unix milliseconds.
fileUrlExpiresAtinteger (int64)아니요File URL expiration time, in Unix milliseconds.

UnsAttachmentListReq

UnsAttachmentListReq

필드유형필수설명
unsIdinteger (int64)아니요Numeric UNS node ID.
topicstring아니요Full UNS topic path.
pageinteger (int64)아니요Page number, starting at 1.
sizeinteger (int64)아니요Number of attachments per page.
includeFileUrlboolean (boolean)아니요Whether to return temporary file URLs. Defaults to true.

UnsAttachmentListResp

UnsAttachmentListResp

필드유형필수설명
unsIdinteger (int64)예Numeric UNS node ID.
listarray<object>예Result list.
totalinteger (int64)예Total number of matching records.
pageinteger (int64)예Page number, starting at 1.
sizeinteger (int64)예File size in bytes.

UnsAttachmentUploadReq

UnsAttachmentUploadReq

필드유형필수설명
unsIdinteger (int64)아니요Numeric owner node ID. Supply unsId or topic; a valid unsId takes precedence.
topicstring아니요Full owner node path, used when a valid unsId is not supplied.
fileNamestring아니요Original file name.
sha256string아니요SHA-256 checksum of the file contents.
filestring (binary)예Binary file contents. The multipart field name must be file.

UnsAttachmentUploadResp

UnsAttachmentUploadResp

필드유형필수설명
unsIdinteger (int64)예Numeric UNS node ID.
fileNamestring아니요Original file name.
filePathstring예Server-issued storage path returned by an upload API.
fileUrlstring아니요File access URL.
contentTypestring아니요File MIME type, for example application/octet-stream.
sizeinteger (int64)아니요File size in bytes.
sha256string아니요SHA-256 checksum of the file contents.
createdAtinteger (int64)아니요Creation time, in Unix milliseconds.
fileUrlExpiresAtinteger (int64)아니요File URL expiration time, in Unix milliseconds.

UnsBindFlowReq

UnsBindFlowReq

필드유형필수설명
unsIdinteger (int64)예UNS node ID to bind.
flowIdinteger (int64)예Flow ID to bind.

UnsBindFlowResp

UnsBindFlowResp

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.
unsIdinteger (int64)예Numeric UNS node ID.
flowIdinteger (int64)예Flow identifier.

WriteItem

WriteItem

필드유형필수설명
topicstring예UNS topic path to write.
valueobject아니요Payload value to write.
timeStampinteger (int64)아니요Optional Unix timestamp in milliseconds. Omit it to use server time.

WriteReq

WriteReq

필드유형필수설명
writesarray<object>예Write operations to apply.
qosinteger (int64)아니요MQTT QoS: 0, 1, or 2.
retainboolean (boolean)아니요Whether the MQTT message should be retained.

WriteResp

WriteResp

필드유형필수설명
successboolean (boolean)예Whether the operation succeeded.
resultsarray<object>예Per-item results. Check success and error for each item.