4.0.0alpha.svn.7719
Amanda::Rest modules list
Amanda modules list
List of All Modules
All Amanda Releases

Amanda::Rest::Dles

NAME

Amanda::Rest::Dles -- Rest interface to Amanda::Curinfo and other DLE functionnalities.

INTERFACE

Get a list (and setting) of all Dles
 request:
  GET /amanda/v1.0/configs/:CONF/dles
 query arguments:
  expand_application=1
  expand_dumptype=1
  expand_interface=1
  expand_script=1

 reply:
  HTTP status: 200 OK
  [
   {
      "module" : "amanda",
      "source_line" : "242",
      "severity" : "info",
      "process" : "Amanda::Rest::Dles",
      "diskfile" : "/amanda/h1/etc/amanda/test/disklist",
      "source_filename" : "/amanda/h1/linux/lib/amanda/perl/Amanda/Rest/Dles.pm",
      "component" : "rest-server",
      "message" : "List of DLEs.",
      "running_on" : "amanda-server",
      "code" : "1400010",
      "result" : [
         {
            "disk" : "/boot",
            "dumptype" : "custom(10.5.15.56:_boot).114",
            "host" : "10.5.15.56",
            "spindle" : "-1",
            "device" : "/boot"
         },
         {
            "host" : "127.0.0.1",
            "spindle" : "-1",
            "device" : "/boot",
            "disk" : "/bootAMGTAR",
            "dumptype" : "custom(127.0.0.1:_bootAMGTAR).78"
         }
      ]
   }
  ]
Get a list (and setting) of all Dles for a host
 request:
  GET /amanda/v1.0/configs/:CONF/dles/hosts/:HOST
 query arguments:
  expand_application=1
  expand_dumptype=1
  expand_interface=1
  expand_script=1

 reply:
Get a list (and setting) of a Dle
 request:
  GET /amanda/v1.0/configs/:CONF/dles/hosts/:HOST/disk/:DISK
   each '/' in the :DISK must be encoded as '%252F'
 query arguments:
  expand_application=1
  expand_dumptype=1
  expand_interface=1
  expand_script=1

 reply:
Change setting on Dles
 request:
  POST /amanda/v1.0/configs/:CONF/dles/hosts/:HOST/disks/:DISK
    each '/' in the :DISK must be encoded as '%252F'
        force=0|1
        force_level_1=0|1
        force_bump=0|1
        force_no_bump=0|1

  POST /amanda/v1.0/configs/:CONF/dles/hosts/:HOST
    query arguments:
        disk=DISK
        force=0|1
        force_level_1=0|1
        force_bump=0|1
        force_no_bump=0|1

 reply:
  HTTP status: 200 OK
  [
     {
        "code" : "1300003",
        "disk" : "/bootAMGTAR",
        "host" : "localhost.localdomain",
        "message" : "localhost.localdomain:/bootAMGTAR is set to a forced level 0 at next run.",
        "severity" : "16",
        "source_filename" : "/usr/lib/amanda/perl/Amanda/Curinfo.pm",
        "source_line" : "336"
     }
  ]
  [
     {
        "code" : "1300019",
        "disk" : "/bootAMGTAR",
        "host" : "localhost.localdomain",
        "message" : "force command for localhost.localdomain:/bootAMGTAR cleared.",
        "severity" : "16",
        "source_filename" : "/usr/lib/amanda/perl/Amanda/Curinfo.pm",
        "source_line" : "365"
     }
  ]
  [
     {
        "code" : "1300021",
        "disk" : "/bootAMGTAR",
        "host" : "localhost.localdomain",
        "message" : "no force command outstanding for localhost.localdomain:/bootAMGTAR, unchanged.",
        "severity" : "16",
        "source_filename" : "/usr/lib/amanda/perl/Amanda/Curinfo.pm",
        "source_line" : "390"
     }
  ]
  [
     {
        "code" : "1300022",
        "disk" : "/bootAMGTAR",
        "host" : "localhost.localdomain",
        "message" : "localhost.localdomain:/bootAMGTAR FORCE command was cleared",
        "severity" : "16",
        "source_filename" : "/usr/lib/amanda/perl/Amanda/Curinfo.pm",
        "source_line" : "466"
     }
  ]
  [
     {
        "code" : "1300023",
        "disk" : "/bootAMGTAR",
        "host" : "localhost.localdomain",
        "message" : "localhost.localdomain:/bootAMGTAR is set to a forced level 1 at next run.",
        "severity" : "16",
        "source_filename" : "/usr/lib/amanda/perl/Amanda/Curinfo.pm",
        "source_line" : "434"
     }
  ]
  [
     {
        "code" : "1300020",
        "disk" : "/bootAMGTAR",
        "host" : "localhost.localdomain",
        "message" : "force-level-1 command for localhost.localdomain:/bootAMGTAR cleared.",
        "severity" : "16",
        "source_filename" : "/usr/lib/amanda/perl/Amanda/Curinfo.pm",
        "source_line" : "380"
     }
  ]
  [
     {
        "code" : "1300025",
        "disk" : "/bootAMGTAR",
        "host" : "localhost.localdomain",
        "message" : "localhost.localdomain:/bootAMGTAR is set to bump at next run.",
        "severity" : "16",
        "source_filename" : "/usr/lib/amanda/perl/Amanda/Curinfo.pm",
        "source_line" : "486"
     }
  ]
  [
     {
        "code" : "1300027",
        "disk" : "/bootAMGTAR",
        "host" : "localhost.localdomain",
        "message" : "bump command for localhost.localdomain:/bootAMGTAR cleared.",
        "severity" : "16",
        "source_filename" : "/usr/lib/amanda/perl/Amanda/Curinfo.pm",
        "source_line" : "547"
     }
  ]
  [
     {
        "code" : "1300026",
        "disk" : "/bootAMGTAR",
        "host" : "localhost.localdomain",
        "message" : "localhost.localdomain:/bootAMGTAR is set to not bump at next run.",
        "severity" : "16",
        "source_filename" : "/usr/lib/amanda/perl/Amanda/Curinfo.pm",
        "source_line" : "520"
     }
  ]

ABOUT THIS PAGE

This page was automatically generated Tue Mar 19 07:08:16 2019 from the Amanda source tree, and documents the most recent development version of Amanda. For documentation specific to the version of Amanda on your system, use the 'perldoc' command.


4.0.0alpha.svn.7719