Device get documentation

Hi,
I am confused on this piece of documentation so the documentation says cannot invoke from cloud action but when I tried I was able to. Is there any other way to get device factory serial number (fsn) from a cloud action or has this been changed to allow calls from cloud action and won’t be changed? I need the fsn for an external api call.