OS 켜기
POST
/api/v1/stations/{station_id}/os/boot
const url = 'https://dev.api.endueos.com/api/v1/stations/stn_01J9ZK3Q8M4XW7D2N5R6T0V1BC/os/boot';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dev.api.endueos.com/api/v1/stations/stn_01J9ZK3Q8M4XW7D2N5R6T0V1BC/os/boot \ --header 'Authorization: Bearer <token>'OS 를 다시 켠다. 이미 켜져 있어도 200. halt 가 멈춘 virtual Device 는 다시 켜지 않는다.
가이드 — Station 과 OS
파라미터
섹션 제목: “파라미터”경로 파라미터
섹션 제목: “경로 파라미터”station_id
필수
string
예시
stn_01J9ZK3Q8M4XW7D2N5R6T0V1BC200
섹션 제목: “200”성공.
Media typeapplication/json
object
data
필수
Station 에 정확히 하나 딸린 OS. 따로 만들거나 지울 수 없다.
object
os_id
필수
string
station_id
필수
string
version
필수
이 OS 를 만든 endue OS 릴리스.
string
status
필수
string
settings
필수
object
max_resources
필수
Station 에 등록할 수 있는 Device 수 (actual·virtual 합계). 1~500, 기본 50.
integer format: int32
default_command_timeout_ms
필수
명령에 timeout_ms 가 없을 때 쓰는 값. 1000~120000, 기본 12000.
integer format: int32
allowed_kinds
필수
허용하는 Device 종류. 기본은 다섯 가지 전부. actual·virtual 모두에 적용된다.
Array<string>
max_virtual_devices
필수
Station 에 만들 수 있는 virtual Device 수. 0~50, 기본 10. 0 이면 virtual Device 를 만들 수 없다.
integer format: int32
max_volume_gb
필수
Station 의 virtual Device 영구 볼륨(Storage) 크기 합계 상한 (GB). 0~2000, 기본 100.
integer format: int32
created_at
필수
string format: date-time
updated_at
필수
string format: date-time
meta
필수
object
request_id
필수
string
timestamp
필수
string format: date-time
duration
서버 처리 시간(ms).
integer format: int32
예시
{ "data": { "os_id": "osi_01J9ZK3Q8M4XW7D2N5R6T0V1BC", "station_id": "stn_01J9ZK3Q8M4XW7D2N5R6T0V1BC", "status": "running", "settings": { "allowed_kinds": [ "chrome" ] } }}401
섹션 제목: “401”인증이 없거나 무효다 — UNAUTHORIZED. 본문은 오류 봉투.
403
섹션 제목: “403”이 인증 수단으로는 못 하는 일이다 — FORBIDDEN (예: API 키로 클라우드 기기 만들기). 본문은 오류 봉투.
404
섹션 제목: “404”없거나 내 것이 아니다 — *_NOT_FOUND. 본문은 오류 봉투.
429
섹션 제목: “429”한도를 넘었다 — Retry-After 초 뒤에 다시. 본문은 오류 봉투.
500
섹션 제목: “500”서버 오류 — INTERNAL_ERROR. 본문은 오류 봉투.
503
섹션 제목: “503”의존 서비스에 닿지 못했다 — 잠시 뒤 다시. 본문은 오류 봉투.