added email notifications

This commit is contained in:
dcore94 2021-03-23 11:08:02 +01:00
parent ea9cecb070
commit 2b20e70da2
1 changed files with 42 additions and 42 deletions

View File

@ -156,48 +156,48 @@
"scriptExpression" : "1 == 1" "scriptExpression" : "1 == 1"
} }
} }
] ],
], [
[ {
{ "name" : "pyrest",
"name" : "pyrest", "taskReferenceName" : "get_rootvo",
"taskReferenceName" : "get_rootvo", "type" : "SIMPLE",
"type" : "SIMPLE", "inputParameters" : {
"inputParameters" : { "url" : "${init.input.keycloak_admin}/clients?clientId=${workflow.input.root_vo}",
"url" : "${init.input.keycloak_admin}/clients?clientId=${workflow.input.root_vo}", "method" : "GET",
"method" : "GET", "headers" : {
"headers" : { "Authorization" : "Bearer ${authorize.output.body.access_token}",
"Authorization" : "Bearer ${authorize.output.body.access_token}", "Accept" : "application/json"
"Accept" : "application/json" }
} }
} },
}, {
{ "name" : "pyrest",
"name" : "pyrest", "taskReferenceName" : "get_rootvo_roles",
"taskReferenceName" : "get_rootvo_roles", "type" : "SIMPLE",
"type" : "SIMPLE", "inputParameters" : {
"inputParameters" : { "url" : "${init.input.keycloak_admin}/clients/${get_rootvo.output.body[0].id}/roles",
"url" : "${init.input.keycloak_admin}/clients/${get_rootvo.output.body[0].id}/roles", "method" : "GET",
"method" : "GET", "headers" : {
"headers" : { "Authorization" : "Bearer ${authorize.output.body.access_token}",
"Authorization" : "Bearer ${authorize.output.body.access_token}", "Accept" : "application/json"
"Accept" : "application/json" }
} }
} },
}, {
{ "name" : "pyrest",
"name" : "pyrest", "taskReferenceName" : "get_rootvo_infra_managers",
"taskReferenceName" : "get_rootvo_infra_managers", "type" : "SIMPLE",
"type" : "SIMPLE", "inputParameters" : {
"inputParameters" : { "url" : "${init.input.keycloak_admin}/clients/${get_rootvo.output.body[0].id}/roles/Infrastructure-Manager/users",
"url" : "${init.input.keycloak_admin}/clients/${get_rootvo.output.body[0].id}/roles/Infrastructure-Manager/users", "method" : "GET",
"method" : "GET", "headers" : {
"headers" : { "Authorization" : "Bearer ${authorize.output.body.access_token}",
"Authorization" : "Bearer ${authorize.output.body.access_token}", "Accept" : "application/json"
"Accept" : "application/json" }
} }
} }
} ]
] ]
}, },
{ {