diff --git a/centreon-plugins/apps/vmware/vcsa/restapi/custom/api.pm b/centreon-plugins/apps/vmware/vcsa/restapi/custom/api.pm index 7d5a91349..533a05b99 100644 --- a/centreon-plugins/apps/vmware/vcsa/restapi/custom/api.pm +++ b/centreon-plugins/apps/vmware/vcsa/restapi/custom/api.pm @@ -192,6 +192,7 @@ sub authenticate { $options{statefile}->write(data => $datas); } + $self->{http}->add_header(key => 'vmware-api-session-id', value => $self->{session_id}); $self->{session_id} = $session_id; }