Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

How to "Enable hardware decoding" (6.1.0 Server) through API ?

Answered

Comments

1 comment

  • Sergey Yuldashev
    • Network Optix team

    Hello Linssen Kong ,

    Currently this setting is managed by the key hardwareDecodingEnabled nested under parameters section of the JSON object for Server.

    This section is a bit special, so the proper way of handling that setting change is like following:

    1. Read the current state of the parameters for the running server using GET /rest/v4/servers/{id}?_with=parameters specifying the id of the server in question. 
    2. Save the current state into some JSON variable
    3. Find the hardwareDecodingEnabled key and change its value to true.
    4. If there is no such value, add it under the parameters nested key with the value true
    5. Use the updated JSON as a payload body for the modification request PATCH /rest/v4/servers/{id}
    0

Please sign in to leave a comment.