added task for making ws client also admin of its workspace folder

This commit is contained in:
Marco Lettere 2022-01-31 10:32:44 +01:00
parent bd895d4583
commit 64cb191730
1 changed files with 29 additions and 0 deletions

View File

@ -196,6 +196,35 @@
"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}"
}
}
}
]
}
}
]
}