]> git.proxmox.com Git - pve-storage.git/commitdiff
api: storage/content: add ctime to return schema
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Mar 2020 10:46:19 +0000 (11:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 6 Mar 2020 18:26:17 +0000 (19:26 +0100)
to allow implementation from plugins in future patches

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
PVE/API2/Storage/Content.pm

index ce89ec5dccdc595a4618f816079ff3b210483249..80c950146cf268922863852b3b199d08c12bcf2b 100644 (file)
@@ -81,6 +81,12 @@ __PACKAGE__->register_method ({
                    renderer => 'bytes',
                    optional => 1,
                },
                    renderer => 'bytes',
                    optional => 1,
                },
+               ctime => {
+                   description => "Creation time (Unix epoch). Currently only set for backup volumes.",
+                   type => 'integer',
+                   minimum => 0,
+                   optional => 1,
+               },
            },
        },
        links => [ { rel => 'child', href => "{volid}" } ],
            },
        },
        links => [ { rel => 'child', href => "{volid}" } ],