-
Notifications
You must be signed in to change notification settings - Fork 107
ReqMgr2 MicroService APIs
Alan Malta Rodrigues edited this page Apr 2, 2019
·
20 revisions
The MicroService is a data-service which provides set of APIs to perform certain actions. Its general architecture is shown below:
In particular the WMCore MicroService provides an interface to perform Unified actions, such as fetch requests from ReqMgr2 data-services, obtain necessary informations for data placement and place requests of assigned workflows into data placement system PhEDEx.
- /microservice/data provides basic information about MicroService. It returns the following information:
{"result": [
{"microservice": "UnifiedTransferorManager", "request": {}, "results": {"status": {}}}
]}
- /microservice/data/status provides detailed information about requests in MicroService. It returns the following information:
curl --cert $X509_USER_CERT --key $X509_USER_KEY -X GET -H "Content-type: application/json" https://cmsweb-testbed.cern.ch/microservice/data/status
{"result": [
{"microservice": "UnifiedTransferorManager", "request": {}, "results": {"status": {}}}
]}
- /microservice/data allows to send specific request to MicroService
post request to process some state
curl -X POST -H "Content-type: application/json" -d '{"request":{"process":"assignment-approved"}}' http://localhost:8822/microservice/data
obtain results about specific workflow
curl --cert $X509_USER_CERT --key $X509_USER_KEY -X POST -H "Content-type: application/json" -d '{"request":{"task":"amaltaro_StepChain_DupOutMod_Mar2019_Validation_190322_105219_7255"}}' https://cmsweb-testbed.cern.ch/microservice/data
{"result": [
{"amaltaro_StepChain_DupOutMod_Mar2019_Validation_190322_105219_7255": {"completed": 100}}
]}