I have created the following Credential using that custom type:
“name”: “Dev API Key”
“inputs”: {
“App_API_Key”: “$encrypted$”,
“App_API_username”: “”
},
What I am having a hard time figuring out is how to get the App_API_Key value for that credential into a Webhook Notification header:
{
“content-type”: “application/json”,
“key”: “{this is where I need the value from the credential}”
}
If I’m understanding what you’ve said correctly. It would be App_API_Key.
Assuming in AWX you have your Job Template and you’ve created a Credential from the custom Credential Type and associated it with the Job Template, in your playbook:
OK, you’re configuring a Notification Template with the Webhook type. That wasn’t clear to me in your initial post.
I don’t know of any way to access a Credential within a Notification Template. I don’t think it’s possible. The AWX Community documentation shows an example with an Authentication header having the value directly.