private HttpResponse restoreSnapshot(SnapshotId id, String hostname) {
        Snapshot snapshot = nodeRepository.snapshots().restore(id, hostname);
        return new MessageResponse("Triggered restore of snapshot '" + snapshot.id() + "' to " + hostname);
    }
Returns true if the peer is a tenant host or node.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiHandler.java