extract ws client names

This commit is contained in:
Marco Lettere 2021-11-25 12:18:54 +01:00
parent f438b0e0b1
commit e95442434c
1 changed files with 9 additions and 4 deletions

View File

@ -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** '