cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable Secret Http in Custom Problem Notification

nakb
Guide

Hi,

 

I am trying to create a new problem notification using the API, but there is no option to toggle Secret Http Header Value, does anyone have idea how to achieve this.

 

naveen_0-1633071575029.png

 

3 REPLIES 3

ChadTurner
DynaMight Legend
DynaMight Legend

You are exactly right, from the API there is no designator to enable if this is a secret http value or not. It can only be done in the UI as of today. I would recommend tossing in a RFE so they can build that in to the API. 

 

Test Results off: 

ChadTurner_0-1635533851262.png

 

ON:

ChadTurner_1-1635533922312.png

I wonder if you just need to pass the value encoded for it to work, but i'd have to leave that to be confirmed from a Dev person. 

 

-Chad

Thanks Chad for the confirmation.

dirk_wall
Dynatrace Helper
Dynatrace Helper

Hi @nakb, @ChadTurner,

If you use the settings API (POST /api/v2/settings/objects) instead of the problem notifications API, you can create secret HTTP header values through the API. We're in the process of figuring out how to communicate this to the broader audience. Here is an example payload:

dirk_wall_0-1650395680680.png

After the POST call, you can't read the secret values in the UI (duh), but if you try it out, e.g. with webhook.site, you'll see that this works just fine.

 

Hope this helps,

Cheers,

Dirk

Featured Posts