NVIDIA UFM Cable Validation Tool

Users Management APIs

Get All Users

  • Description – Gets all users.

  • Request URL – GET /cablevalidation/users

  • Response Content Type – application/json

  • Status Codes200 – OK500 – INTERNAL SERVER ERROR 

  • Response Data Example 

    [
        {
            "name": "admin",
            "account_type": "admin"
        }
    ]

Get User

  • Description – Gets the user by the given name.

  • Request URL – GET /cablevalidation/users/<user_name>

  • Response Content Type – application/json

  • Status Codes200 – OK404 – NOT FOUND

  • Response Data Example 

    {
    "name": "admin",
    "account_type": "admin"
    }
    

Create User

  • Description – Creates a user.

  • Request URL – POST /cablevalidation/users

  • Response Content Type – application/json

  • Request Data Example 

    {"account_type":"cabler","password":"user1","name":"user1"}
     

  • Status Codes201 – CREATED500 – INTERNAL SERVER ERROR400 – BAD REQUEST

  • Response - 201: Created


Update User

  • Description – Updates account type or password or both.

  • Request URL – PATCH /cablevalidation/users/<user_name>

  • Response Content Type – application/json

  • Request Data Example 

     {"account_type":"nvidia","password":"test"} 

  • Status Codes  204 – NO CONTENT500 – INTERNAL SERVER ERROR400 – BAD REQUEST

  • Response - NA

Delete User

  • Description – Deletes user by the given name.

  • Request URL – DELETE /cablevalidation/users/<user_name>

  • Response Content Type – application/json

  • Status Codes204 – NO CONTENT500 – INTERNAL SERVER ERROR

  • Response - NA

Get Account Types

  • Description – Gets user account types.

  • Request URL – GET /cablevalidation/users/account_types

  • Response Content Type – application/json

  • Status Codes200 – OK500 – INTERNAL SERVER ERROR

  • Response Data Example  

    ["nvidia", "admin", "cabler", "developer"]

Last updated: