2021-06-30 16:05:48 +02:00
|
|
|
{
|
|
|
|
"ownerApp" : "Orchestrator",
|
|
|
|
"name" : "add_all_system_services_to_vre",
|
|
|
|
"createBy" : "Marco Lettere",
|
|
|
|
"description": "All system services retrieved from the IS through IC Proxy are added as Member to a VRE",
|
|
|
|
"version" : 1,
|
|
|
|
"ownerEmail" : "marco.lettere@nubisware.com",
|
|
|
|
"inputParameters" : ["client_id"],
|
|
|
|
"tasks" : [
|
|
|
|
{
|
|
|
|
"name": "LAMBDA_TASK",
|
|
|
|
"taskReferenceName": "init",
|
|
|
|
"type": "LAMBDA",
|
|
|
|
"inputParameters": {
|
|
|
|
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
|
|
|
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
|
|
|
"iC_proxy" : "{{ ic_proxy }}",
|
|
|
|
"scriptExpression": "1 == 1"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name" : "pyrest",
|
2021-06-30 16:37:40 +02:00
|
|
|
"taskReferenceName" : "authorize_on_realm",
|
2021-06-30 16:05:48 +02:00
|
|
|
"type" : "SIMPLE",
|
|
|
|
"inputParameters" : {
|
2021-06-30 16:37:40 +02:00
|
|
|
"url" : "{{ keycloak }}/{{ keycloak_realm }}/protocol/openid-connect/token",
|
2021-06-30 16:05:48 +02:00
|
|
|
"method" : "POST",
|
|
|
|
"headers" : {
|
|
|
|
"Accept" : "application/json"
|
|
|
|
},
|
|
|
|
"body" : {
|
|
|
|
"client_id" : "orchestrator",
|
2021-06-30 16:37:40 +02:00
|
|
|
"client_secret" : "{{ keycloak_auth }}",
|
2021-06-30 16:05:48 +02:00
|
|
|
"grant_type" : "client_credentials"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-06-30 17:24:51 +02:00
|
|
|
{
|
|
|
|
"name" : "pyrest",
|
|
|
|
"taskReferenceName" : "authorize_with_uma_rpt",
|
|
|
|
"type" : "SIMPLE",
|
|
|
|
"inputParameters" : {
|
|
|
|
"url" : "{{ keycloak }}/{{ keycloak_realm }}/protocol/openid-connect/token",
|
|
|
|
"method" : "POST",
|
|
|
|
"headers" : {
|
2021-06-30 17:26:58 +02:00
|
|
|
"Accept" : "application/json",
|
|
|
|
"Authorization" : "Bearer ${authorize_on_realm.output.body.access_token}"
|
2021-06-30 17:24:51 +02:00
|
|
|
},
|
|
|
|
"body" : {
|
|
|
|
"audience" : "{{ root_vo }}",
|
|
|
|
"grant_type" : "urn:ietf:params:oauth:grant-type:uma-ticket"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-06-30 16:05:48 +02:00
|
|
|
{
|
|
|
|
"name" : "pyrest",
|
|
|
|
"taskReferenceName" : "retrieve_system_services",
|
|
|
|
"type" : "SIMPLE",
|
|
|
|
"inputParameters" : {
|
|
|
|
"url" : "{{ ic_proxy }}/icproxy/gcube/service/ServiceEndpoint/SystemService",
|
|
|
|
"method" : "GET",
|
|
|
|
"headers" : {
|
2021-06-30 16:22:22 +02:00
|
|
|
"Accept" : "application/xml",
|
2021-06-30 17:24:51 +02:00
|
|
|
"Authorization" : "Bearer ${authorize_with_uma_rpt.output.body.access_token}"
|
2021-06-30 16:05:48 +02:00
|
|
|
}
|
|
|
|
}
|
2021-06-30 16:37:40 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name" : "pyrest",
|
|
|
|
"taskReferenceName" : "authorize",
|
|
|
|
"type" : "SIMPLE",
|
|
|
|
"inputParameters" : {
|
|
|
|
"url" : "{{ keycloak }}/master/protocol/openid-connect/token",
|
|
|
|
"method" : "POST",
|
|
|
|
"headers" : {
|
|
|
|
"Accept" : "application/json"
|
|
|
|
},
|
|
|
|
"body" : {
|
|
|
|
"client_id" : "orchestrator",
|
|
|
|
"client_secret" : "{{ keycloak_auth_master }}",
|
|
|
|
"grant_type" : "client_credentials"
|
|
|
|
}
|
|
|
|
}
|
2021-06-30 16:38:39 +02:00
|
|
|
}
|
2021-06-30 16:05:48 +02:00
|
|
|
]
|
|
|
|
}
|