1. ホーム
  2. ナレッジベース
  3. デバイスの状態を取得する

デバイスの状態を取得する

会社から全デバイスを取得する

のURLです。

GET http://api.aurelon.com/api/v2/device/{DeviceGUID}/status

リクエストヘッダ。

MisKey : 認証を参照。
HardwareHash : 認証を参照
SerialNumber : 認証を参照
ApplicationVersion : Authenticationを参照。

対応する。

コンテンツタイプは application/json で、デバイスと現在実行中のジョブのステータスを含む。 実行中のジョブがない場合、”CurrentJob “としてnullを返すことができる。

成功です。

200 OK : 機器状態オブジェクトを返す

{
    "DeviceName": "Epson Stylus Pro 4800",
    "DeviceStatus": "Idle",
    "DeviceType": "Printer",
    "MediaSize": "Roll 17 inch ",
    "Location": null,
    "ComputerGUID": "81517066-7a5b-4122-8e04-c5306b17e8c2",
    "Rip": "Rip-35",
    "SerialNumber": 344781,
    "CurrentJob”: {
        "JobGUID": null,
        "Name": null,
        "Copies": null,
        "RemainingPages": null,
        "User": null,
        "Progress": null
    },
    "InProgressJobs": 0
}

エラーです。

  • 401 Unauthorized :{“Message”:”Invalid HardwareHash” }.
  • 401 不正なキー :{“Message”:”Invalid MisKey” }.
  • 404 Not Found :{“Message”:”DeviceGUID is not found”}と表示されます。
  • 401 Unauthorized :{“Message”:””MisKey” または “HardwareHash”, “SerialNumber” および “ApplicationVersion” ヘッダが必要です”}。
  • 400 Bad Request :{“Message”:”DeviceGUID “の値が必要です”}。
  • 500 Internal Server Error :{“Message”:”内部サーバーエラー”}。
Updated on 5月 10, 2022

Was this article helpful?