function associateIPAddress(clusterID)
% Registers the current desktop client's IP address with the Cluster.

% Copyright 2019-2020 The MathWorks, Inc.

cloudCenterClient = parallel.internal.cloud.currentCloudCenterClient();
associateIPAddressFcn = @() cloudCenterClient.associateIPAddress(clusterID);
responseWithMessages = parallel.internal.mwa.invokeWithLogin(associateIPAddressFcn);
parallel.internal.cloud.checkAndIssueWebServiceWarnings(responseWithMessages);
end
