quertStatus returns an list of alarms, so to get the IDs, you will need to iterate through the list and get them:
state = ['ActiveUnacked']
alarms = system.alarm.queryStatus(state = state)
for alarm in alarms:
print alarm.id
Here is a tutorial that details how to get the other alarm properties in this manner as well: