REST API  14
REST API for Luna Network HSMs
GET /users/{userid}/files

GET /users/{userid}/files

This resource will list the files owned by the currently logged in user.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

Parameters

userid

The identifier of a user.

Use: Required

JSON Schema:

    Object
    type: string

Responses

200

Success

User Files

JSON Schema: User Files

400

SERVERPLUGIN_INVALID_PATTERN_DETECTED

Loggedin user has provided characters that are vulnerable.

SERVERPLUGIN_INTERNAL_ERROR

Unexpected error

403

SERVERPLUGIN_USERID_NOT_AUTHORIZED

Loggedin user isn't allowed to perform this action for this userid.

SERVERPLUGIN_USERID_RESERVED_FOR_SYSTEM_USE

List will not be displayed for system level users.

404

SERVERPLUGIN_USERID_DOES_NOT_EXIST

User does not exist.

Example Request

   GET
   https://1.2.3.4:8443/users/admin/files
   { }

Example Response

{
    "files": [
        {
            "id": "supportInfo.txt",
            "url": "/users/admin/files/supportInfo.txt"
        },
        {
            "id": "update7_2_0_220.log",
            "url": "/users/admin/files/update7_2_0_220.log"
        },
        {
            "id": "154438865316.pid",
            "url": "/users/admin/files/154438865316.pid"
        },
        {
            "id": "firstboot.log",
            "url": "/users/admin/files/firstboot.log"
        }
    ]
}