added task for making ws client also admin of its workspace folder
This commit is contained in:
parent
bd895d4583
commit
64cb191730
|
@ -196,6 +196,35 @@
|
||||||
"Authorization" : "Bearer ${authorize_with_uma_rpt.output.body.access_token}"
|
"Authorization" : "Bearer ${authorize_with_uma_rpt.output.body.access_token}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name" : "check_vre_folder_outcome",
|
||||||
|
"taskReferenceName" : "check_vre_folder_outcome",
|
||||||
|
"type" : "DECISION",
|
||||||
|
"inputParameters" :{
|
||||||
|
"previous_outcome" : "${workspace_to_vre_folder.output.status}"
|
||||||
|
},
|
||||||
|
"caseValueParam" : "previous_outcome",
|
||||||
|
"decisionCases" : {
|
||||||
|
"200" : [
|
||||||
|
{
|
||||||
|
"name" : "pyrest",
|
||||||
|
"taskReferenceName" : "make_admin",
|
||||||
|
"type" : "SIMPLE",
|
||||||
|
"inputParameters" : {
|
||||||
|
"url" : "${init.input.storagehub}/workspace/groups/${shubify_context_name.output.result.shubified_context_name}/admins",
|
||||||
|
"method" : "PUT",
|
||||||
|
"expect" : [200, 400, 500],
|
||||||
|
"body" :{
|
||||||
|
"userId" : "${get_service_account_user.output.body.username}"
|
||||||
|
},
|
||||||
|
"headers" : {
|
||||||
|
"Authorization" : "Bearer ${authorize_with_uma_rpt.output.body.access_token}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue