... | ... | @@ -90,18 +90,40 @@ The JSON is: |
|
|
Operations:
|
|
|
- GET - returns public part of the stored delegation as application/x-pem-file.
|
|
|
- HEAD - supported.
|
|
|
- PUT - stores public part of delegated certificate to finish delegation procedure or to re-new delegation.
|
|
|
- POST - initiates renewal of delegation under same delegation id. No options or bode expected. Response is 200 with certificate request of application/x-pem-file type.
|
|
|
- PUT - stores public part of delegated certificate to finish delegation procedure (2nd step of delegation procedure) or to re-new delegation without changing private key.
|
|
|
- POST - initiates renewal of delegation under same delegation id. No options or body expected. Response is 200 with certificate request of application/x-pem-file type.
|
|
|
- DELETE - removes delegation.
|
|
|
|
|
|
|
|
|
## Job control functionality
|
|
|
\<base URL\>/jobs
|
|
|
Operations:
|
|
|
- GET - retrieves list of jobs belonging to authenticated user (consider paging and filtering through URL options) as text/html, application/xml or application/json. Returned document contains minimal information about job - probably job state, references to selected sub-resources of the job. Also consider providing list of all jobs (or per-VO jobs) to special user identity (for monitoring).
|
|
|
- GET - retrieves list of jobs belonging to authenticated user (consider paging and filtering through URL options) as text/html, application/xml or application/json. Returned document contains minimal information about job - currebtly only job identifier. TODO: consider providing list of all jobs (or per-VO jobs) to special user identity (for monitoring). The XML response is (subject to change, maybe it would be better to use GLUE2 elements):
|
|
|
<pre>
|
|
|
<jobs>
|
|
|
<job>
|
|
|
<id>1234567890abcdef</id>
|
|
|
</job>
|
|
|
<job>
|
|
|
<id>fedcba0987654321</id>
|
|
|
</job>
|
|
|
</jobs>
|
|
|
</pre>
|
|
|
The JSON is:
|
|
|
<pre>
|
|
|
{
|
|
|
"job":{
|
|
|
"id":"1234567890abcdef"
|
|
|
},
|
|
|
"job":{
|
|
|
"id":"fedcba0987654321"
|
|
|
}
|
|
|
}
|
|
|
</pre>
|
|
|
|
|
|
- HEAD - supported.
|
|
|
- PUT - not supported.
|
|
|
- POST - initiates new job. Without URL options body contains job description in whatever format is supported (currently probably application/xml or applicaton/rsl). Response is 201 with Location header referring to created job resource and body contains minimal information about job.
|
|
|
- POST - initiates new job. Without URL options body contains job description in whatever format is supported (currently EMI-ES as application/xml and XRSL as applicaton/rsl). Response is 201 with Location header referring to created job resource and body contains minimal information about job (not implemented yet, must define which elements must be present).
|
|
|
- DELETE - not supported
|
|
|
|
|
|
|
... | ... | @@ -109,11 +131,14 @@ Operations: |
|
|
Each job is represented by URL
|
|
|
\<base URL\>/jobs/\<job id\>
|
|
|
Operations:
|
|
|
- GET - Retrieves full information about job (famous XML file, possibly automatically converted to JSON).
|
|
|
- GET - Retrieves full information about job (famous GLUE2 XML file, automatically converted to JSON).
|
|
|
- HEAD - supported.
|
|
|
- DELETE - initiates clear request for the job.
|
|
|
- POST - accepts requests to modify job. Currently cancel and restart through passing in body partial job information with requested job state.
|
|
|
|
|
|
- POST - accepts requests to modify job. Currently cancel and restart through passing partial job information (XML or JSON (to be implemented)) with requested job state in HTTP body. Currently accepted states are emies:terminal for canceling job and emies:accepted for restarting. Example of request:
|
|
|
<ComputingActivity>
|
|
|
<State>emies:terminal<State>
|
|
|
</ComputingActivity>
|
|
|
The response code is 202 to indicate request is queued for later execution.
|
|
|
|
|
|
## Sub-resources of the job.
|
|
|
### Session directory
|
... | ... | |