What authentication are you using? API Manager credentials?
Have you managed to run other commands successfully so you know you're logged in and authenticated correctly?
There could be thousands of consumer apps, this does not seem a very bright way to go about this. What are you intending to do, get every single application on some kind of schedule and loop over them? That doesn't sound a great plan.
I'm curious why too - consumers don't have access to enable or disable apps, only providers can do that from api manager so it seems an odd thing to need alerts for.
Personally if I was doing this I would use a custom module in the developer portal that gets triggered when an app is updated, then have code to trigger whatever external endpoint you want when the status field changes.
------------------------------
Chris Dudley
------------------------------