How can we create an email alert if any new API is published or any API is updated.
Please help on this.
you can configure the assertion in the service to trigger mail from the gateway. Docops link is below
Send Email Alert Assertion - CA API Gateway - 9.3 - CA Technologies Documentation
I guess this is what you are looking for.
The Send Email Alert Assertion will only send the email depending upon how we use it in the policy.
But my requirement is to trigger an email automatically if any new service is published on the gateway or any service is updated.
I honestly don't think the Gateway has the capability right now built-in to send an email every time a new service is created on it. If it exists, I'm definitely missing it at the moment while I think of this use-case. I think it's a great idea though for a future update of the Gateway. In such a case, I encourage creating a new idea in the CA API Management Community here, where it can be voted on and product managers can interface with everyone publicly about the feature request.
Also, as this might matter, who is your target audience with this use-case? Is it just other system admins of the Gateway, or is it developers/customers of yours, etc.? Because there may be another way to achieve a similar use-case if it's for local admins, for example. It just may not be through email. This wouldn't be supported in any way, but I can imagine a tool of some sort that might monitor the specific table holding the service names in the ssg database and emails when it detects changes to specific fields or the count of rows change, for example. But again, such a thing would not be supported, but I would think it's theoretically possible and a tool may already exist to monitor database content for a similar use-case as yours.
I hope the above helps a bit, even if it may not be the answer you were hoping for.
Sr Support Engineer, Global Customer Success
Phone: +1 800 225 5224, 48385
Phone if outside North America: https://tinyurl.com/CAContactSupport
CA API Management Community: https://tinyurl.com/CAAPIMCommunity
Thank you for your reply.
I guess this can be achieved by using audit sink policy. Whenever a service is published or updated an audit is generated so in audit we can read it using convert the audit to XML Assertion and trigger a mail depending on that through policy logic.
But I don't know to develop it. Please let me know if it's feasible. It will be a great help
Your suggestion may be worth exploring, for sure. I think it may be possible, or at least may be something on the right track. I'm not sure how I can help you "develop it” though, as there would need to be a lot of trial and error in your environment since this is not an out-of-the-box supported method in the Gateway at this point in time.
We do have CA Services which can be of some assistance as they specialize in customizations and unique use-cases, if you're interested. They are a paid service, however. If you are interested in learning more about how CA Services might be able to help you achieve this use-case, it's typically best to communicate this through your CA Account Executive. If you do now know who that is though, please let me know and I can try to get someone to reach out to you (I may need you to message me with your contact details outside of this thread, however).
Thank you, Irfan, for your time. And if you haven't already I would still suggest creating a new idea in the CA API Management Community here to make a use-case like this one easy to use with a supported built-in feature.
Adding to what Dustin said, true, we do not have OOTB such an option.
With that said, if one looks at the audit messages of a newly created published service and an updated one, one can see the difference and capture the needed text using the XML parse option we have in the Policy Manager.
The idea behind it is to turn the internal Audit sink policy so we can "capture" the audit of the created/published service and parse out the needed information.
For example a newly published created service will have in its Audit something like:
PublishedService #e5f6044bf2c4b135575b67847567802a (newapi) updated (set policy)
Whereas an updated one would have something like:
Policy #e5f6044bf2c4b135575b67847567802c (Policy for service #e5f6044bf2c4b135575b67847567802a, newapi) updated (changed xml)
So if we capture/parse out the "PublishedService" + "(newapi)" + (set policy)" we can 'tell' that this is a newly created/published service and trigger an email alert based on this condition.
Another option is to integrate with CA Precision API Monitor product and use its EPAgent (which part of the integration is installed on the Gateway and monitor also the SSG log) to parse the Gateway SSG log and again, capture/parse the needed data and trigger an alert using a command line.
Going back to what Dustin mentioned - both options are a customized solution (which can be done) and CA Professional Service team can assist if required (as a paid service).
Hope this helps in guiding you to your needed path.
Retrieving data ...