#NEWLINE# @ detail_route ( methods = [ 'post' ] ) #NEWLINE# @ safe_operation ( valid_state = models . Resource . States . OFFLINE ) #NEWLINE# def start( self , request , resource , uuid = None ) : #NEWLINE# #INDENT# '\n        Schedule resource start. Resource must be in OFFLINE state.\n        ' #NEWLINE# backend = resource . get_backend ( ) #NEWLINE# backend . start ( resource ) #NEWLINE# event_logger . resource . info ( 'Resource {resource_name} has been scheduled to start.' , event_type = 'resource_start_scheduled' , event_context = { #NEWLINE# #INDENT# 'resource' : resource , #NEWLINE# #UNINDENT# } )