Thanks for your reply Chris.
I was actually considering alternatives to be able to carry out this task of alerting when the status of a consumer app changes.
How can I create this custom module that you mention, generating that activation when an application has an update in its status? Do you perhaps have some documentation that can guide me?
Thanks
Original Message:
Sent: Tue August 27, 2024 02:04 AM
From: Chris Dudley
Subject: I need to access the status of consumer apps to create an activity alert
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
Original Message:
Sent: Fri August 23, 2024 01:29 PM
From: Jimmy Perilla
Subject: I need to access the status of consumer apps to create an activity alert
I need to access the status of consumer apps to create an activity alert.
Hi team.
I am currently having problems performing the following task:
Using the toolkit I am trying to access a reserved instance, list the consumer applications and access the status of each one. This is for the purpose of monitoring and creating an alert when a consumer app is activated or deactivated.
The CMD command I am running is the following:
C:\localpath...>apic apps:get --catalog development --server "dataServer" --org "Organization" --consumer-org
I appreciate any recommendations or commands that I can run to obtain the status of consumer apps.
Thanks team
------------------------------
Jimmy Perilla
------------------------------