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

GET /users/{userid}/files{fileid}

This resource will show the information of the file 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

fileid

The identifier of a file. Can only contain alphanumeric characters, hyphens, and underscores.

Use: Required

JSON Schema:

    Object
    type: string

Responses

204

Success

User Files

JSON Schema: User File

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.

SERVERPLUGIN_FILEID_DOES_NOT_EXIST

File does not exist.

Example Request

   GET
   https://1.2.3.4:8443/users/admin/files/importRole.txt
   { }

Example Response

{
    "download": "/users/admin/files/importRole.txt/download",
    "lastUpdated": "2022-09-19 10:23:19",
    "size": 180965
}