private HttpResponse snapshot(String hostname) {
        Snapshot snapshot = nodeRepository.snapshots().create(hostname, nodeRepository.clock().instant());
        Slime slime = new Slime();
        Cursor root = slime.setObject();
        root.setString("id", snapshot.id().toString());
        root.setString("message", "Triggered a new snapshot of " + hostname + ": " + snapshot.id());
        return new SlimeJsonResponse(slime);
    }
Returns true if the peer is a tenant host or node.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiHandler.java