extract ws client names
This commit is contained in:
parent
f438b0e0b1
commit
e95442434c
|
@ -47,13 +47,18 @@
|
|||
"url" : "{{ ic_proxy }}/icproxy/gcube/service/ServiceEndpoint/SystemWorkspaceClient",
|
||||
"method" : "GET",
|
||||
"headers" : {
|
||||
"Accept" : "application/json",
|
||||
"Authorization" : "Bearer ${authorize_with_uma_rpt.output.body.access_token}"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name" : "pyeval",
|
||||
"taskReferenceName" : "extract_workspace_client_names",
|
||||
"type" : "SIMPLE",
|
||||
"inputParameters" : {
|
||||
"code" : "exec('import xml.etree.ElementTree as ET') or list(map(lambda n: n.text, ET.fromstring(data['xmlstring']).findall('Resource/Profile/Name')))",
|
||||
"xmlstring" : "${query_workspace_clients_on_icproxy.output.body}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
curl --location --request GET 'https://node10-d-d4s.d4science.org/icproxy/gcube/service/ServiceEndpoint/SystemWorkspaceClient' \
|
||||
--header 'Authorization: Bearer ACCESS TOKEN CON AUDIENCE **CTX** '
|
||||
|
|
Loading…
Reference in New Issue