@rest_initialiser(version_check=True, enterprise_check=True, cluster_init_check=True)
def execute(self, opts):
    'Run the backup plan managment command'
    if opts.list:
        self.list_plans((opts.output == 'json'))
    elif opts.get:
        self.get_plan(opts.name, (opts.output == 'json'))
    elif opts.remove:
        self.remove_plan(opts.name)
    elif opts.add:
        self.add_plan(opts.name, opts.services, opts.task, opts.description)
Run the backup plan managment command
@rest_initialiser(version_check=True, enterprise_check=True, cluster_init_check=True)
def execute(self, opts):
    
    if opts.list:
        self.list_plans((opts.output == 'json'))
    elif opts.get:
        self.get_plan(opts.name, (opts.output == 'json'))
    elif opts.remove:
        self.remove_plan(opts.name)
    elif opts.add:
        self.add_plan(opts.name, opts.services, opts.task, opts.description)