Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 11 Next »

MD에게 Task 실행을 비동기식으로 요청합니다.

WAS에서는 새 트랜잭션 ID를 생성 후 이 함수의 파라메터를 통해 MD로 넘겨줍니다.

Request

[Request parameters]

Parameter

Type

Required

Description

tx_id

String

Required

WAS에서 중앙 관리하는 Transaction ID

app_code

String

Required

실행할 앱의 종류를 구분하는 코드. See app_code table

inputs [ ]

String

입력들. 복수개 입력을 URI 형식으로 나열함. 미입력 시 앱의 기본동작에 위임.

{
  "jsonrpc": "2.0",
  "method": "async_run_task",
  "params": {
    "tx_id": "89s7dyf98ydf98gy9s8d",
    "app_code": "1000",
    "inputs": [
      "rtsp://ec2-52-32-247-84.us-west-2.compute.amazonaws.com/stream?url=[rtsp://98.210.72.185:554]&id=admin&pw=admin"
    ]
  },
  "id": "0"
}

Response

[Error codes]

code

message

Meaning

-32000

“App server is not running”

앱을 제공하는 서버가 실행 중이 아님. 예를 들어, NK2에서 제공하는 기능을 실행하는 것을 요청받았을 때 NK2가 꺼져있을 경우 이 에러를 리턴함

-32001

“No response from app”

앱이 실행 중이지만 응답이 없음

  • No labels