+__PACKAGE__->register_method({
+ name => 'trigger_update_fp',
+ path => 'trigger-update-fingerprint',
+ method => 'POST',
+ description => "Notify master to refresh all certificate fingerprints",
+ parameters => {
+ additionalProperties => 0,
+ properties => {},
+ },
+ returns => { type => 'null' },
+ code => sub {
+ my ($param) = @_;
+
+ my $cinfo = PMG::ClusterConfig->new();
+
+ die "no cluster defined\n" if !scalar(keys %{$cinfo->{ids}});
+
+ PMG::Cluster::trigger_update_fingerprints($cinfo);
+ }});
+