Get alarm property "Shelving Allowed" with script

Hi,

is there a way to get the property “Shelving Allowed” through scripting?

Thank you

I found it using the function system.tag.getAlarmStates(), but that uses a tag path and some iterations need to be done if you have more than 1 alarm on a tag.

Is it possible to find the shelvingAllowed for a specific alarm directly?