savagea
Enthusiast
Enthusiast

How to simplify subject field of vROPs email alerts

Is there a way to do this?  Way too much text in the subject field.

0 Kudos
3 Replies
mark_j
Virtuoso
Virtuoso

You can modify the email template using the API (check out the commands in https:///suite-api ). It's not as simple as it once was int he past with 5.x. where you could tweak some XML of a file and call it good.

If you find this or any other answer useful please mark the answer as correct or helpful.
0 Kudos
savagea
Enthusiast
Enthusiast

Thanks for the reply.  That link doesn't appear to be working though.

0 Kudos
dtaliafe
Hot Shot
Hot Shot

Use the URL for your vROps server and append /suite-api.  https://<your vROps address>/suite-api

The API is helpful, but somewhat lacking.  This KB article does a good job walking through the process, but unfortunately it is also missing some info.

http://kb.vmware.com/kb/2125759

In step 5 of the KB article when you create the email condition you need to add an "emailAddress" to the request.  This is the email address you want the notification sent to.  So it should look something like this:

curl -k -X POST -i -H "X-vRealizeOps-API-use-unsupported: true" -H "Content-Type: application/xml" -u admin -d "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>

<ops:email-template-condition xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ops=\"http://webservice.vmware.com/vRealizeOpsMgr/1.0/\">

<ops:alertType>16</ops:alertType>

<ops:alertSubType>20</ops:alertSubType>

<ops:alertStatus>NEW</ops:alertStatus>

<ops:emailAddress>recipient@mydomain.com</ops:emailAddress>

</ops:email-template-condition>" https://localhost/suite-api/api/notifications/email/templates/a573a29e-b06f-4fce-978c-b829fa3e0175/c...


I've had a support ticket open for this for quite a while and we just got it working last week.  So hopefully this helps!