@detail_route(methods=['post'])
    @safe_operation(valid_state=models.Resource.States.ONLINE)
    def restart(self, request, resource, uuid=None):
        backend = resource.get_backend()
        backend.restart(resource)
        event_logger.resource.info(
            'Resource {resource_name} has been scheduled to restart.',
            event_type='resource_restart_scheduled',
            event_context={'resource': resource})
Run the main application.
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/structure/views.py/BaseResourceViewSet.restart--crossover with--dataset/ETHPy150Open openstack/openstack-ansible/scripts/inventory-manage.py/main