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

Status Page

rename camera with api

Answered

Comments

4 comments

  • Wendy Chuang
    • Network Optix team

    Hi Ali Ergin Hacimahmutoglu,

    You may misunderstand the usage of /ec2/setResourceParams. The name is the resource parameter name and you may be able to obtain the available parameter name by the API /ec2/getResourceParams.

    If you'd like to change the camera's name, you could use the APIs:
    - /ec2/saveCameraUserAttributes (JSON object, for signle camera)
    - /ec2/saveCameraUserAttributesList (JSON array, for multiple cameras)

    The required attributes could be obtained by /ec2/getCameraUserAttributesList. The cameraName should be the one that you are looking for.
    Let me know if you have further questions, thank you.

    0
  • Ali Ergin Hacimahmutoglu

    Hi Wendy, 

    I am using this post command below, but It is not working. Could you help me,  what is wrong with it.

    http://user:password@172.16.101.21:7001/ec2/saveCameraUserAttributes 

    {
    "cameraId": "{b7cccc9c-1908-fc92-380d-22dc545f6df7}",
    "name": "Camera_1"
    }

    Thanks,

     

    0
  • Wendy Chuang
    • Network Optix team

    Hi Ali Ergin Hacimahmutoglu,

    There're a lot of required parameters for this API call. You could refer to the details from the API document or testing tool:

     

    Thus, I would suggest you run the /ec2/getCameraUserAttributesList first. Copy and paste the result on the request body of JSON content.

    Thanks.

    0
  • Ali Ergin Hacimahmutoglu

    Thanks for help Wendy.

    It worked properly, when I copied the all values to the post statement for the specific camera. 

    Thanks.   

    0

Please sign in to leave a comment.