Project

General

Profile

Actions

Task #7582

closed

Add hostname in uncloud file scanning

Added by Ahmed Bilal almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
01/07/2020
Due date:
% Done:

0%

Estimated time:
PM Check date:

Description

It is required as nico said that there would be multiple file hosts and not necessarily all files are available on some particular host.
https://chat.ungleich.ch/ungleich/pl/3pf77f1ui7yiupxjyqayzf67ry

Actions #1

Updated by Ahmed Bilal almost 5 years ago

Done. Sample

Before

[meow@meow-pc ~]$ uncloud cli user files
{
    "message": [
        {
            "filename": "docs/abc.txt",
            "uuid": "09085d08-46e1-4705-a249-141944517df2" 
        },
        {
            "filename": "images/alpine-ucloud.qcow2",
            "uuid": "2c28d504-c261-4bde-8f28-7b2cac2d74b3" 
        },
        {
            "filename": "a/b/cat",
            "uuid": "b21c4d28-25a4-4a83-86dd-6a84c4593e6a" 
        }
    ]
}

After

[meow@meow-pc ~]$ uncloud cli user files
{
    "message": [
        {
            "creation_date": "Sun Jan  5 17:16:53 2020",
            "filename": "docs/abc.txt",
            "host": "2a0a:e5c1:144::",
            "size": "1.2e-05 MB",
            "uuid": "09085d08-46e1-4705-a249-141944517df2" 
        },
        {
            "creation_date": "Sun Jan  5 16:49:43 2020",
            "filename": "images/alpine-ucloud.qcow2",
            "host": "2a0a:e5c1:144::",
            "size": "292.749312 MB",
            "uuid": "2c28d504-c261-4bde-8f28-7b2cac2d74b3" 
        },
        {
            "creation_date": "Sun Jan  5 17:20:18 2020",
            "filename": "a/b/cat",
            "host": "2a0a:e5c1:144::",
            "size": "4e-06 MB",
            "uuid": "b21c4d28-25a4-4a83-86dd-6a84c4593e6a" 
        }
    ]
}
Actions #2

Updated by Nico Schottelius almost 5 years ago

We should have a "created_at" and "deleted_at" for every object.

Actions #3

Updated by Nico Schottelius almost 5 years ago

For the example above: the host would probably often more something like "files1.datacenterlight.ch" or "username.datacenterlight.ch" or so.

Actions #4

Updated by Ahmed Bilal almost 5 years ago

Nico Schottelius wrote:

For the example above: the host would probably often more something like "files1.datacenterlight.ch" or "username.datacenterlight.ch" or so.

Yeah, it is just my local machine. So, i put my IPv6 address directly :)

Actions #5

Updated by Ahmed Bilal over 4 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF