Class ECpdsRESTV1
java.lang.Object
ecmwf.ecpds.master.plugin.service.ECpdsRESTV1
The Class ECpdsRESTV1.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsedatafileDel(String authString, jakarta.servlet.http.HttpServletRequest request, Long id) Datafile del.jakarta.ws.rs.core.ResponsedatafilePut(String authString, jakarta.servlet.http.HttpServletRequest request, String destination, String metadata, String source, String uniquename, String target, Integer priority, String lifetime, String at, Boolean standby, Boolean force) Datafile put.jakarta.ws.rs.core.ResponsedatafileSize(String authString, jakarta.servlet.http.HttpServletRequest request, Long id) Datafile size.jakarta.ws.rs.core.Responsedestination(String authString, jakarta.servlet.http.HttpServletRequest request, String name) Destination.jakarta.ws.rs.core.ResponsedestinationCountryList(String authString, jakarta.servlet.http.HttpServletRequest request) Destination country list.jakarta.ws.rs.core.ResponsedestinationList(String authString, jakarta.servlet.http.HttpServletRequest request, String iso, String id, Integer type) Destination list.jakarta.ws.rs.core.ResponsedestinationMetadata(String authString, jakarta.servlet.http.HttpServletRequest request, String name) GET /v1/destination/{name}/metadata Returns all metadata values for a destination grouped by category, matching the structure of the UI JSON export.jakarta.ws.rs.core.ResponsedestinationMetaFields(String authString, jakarta.servlet.http.HttpServletRequest request) GET /v1/destination/metadata/fields Returns all active metadata field definitions.jakarta.ws.rs.core.ResponsedestinationTypeList(String authString, jakarta.servlet.http.HttpServletRequest request) Destination type list.jakarta.ws.rs.core.ResponsegetDestinationBackup(String authString, jakarta.servlet.http.HttpServletRequest request, String name) Destination.jakarta.ws.rs.core.ResponsegetDestinationBackup(String authString, jakarta.servlet.http.HttpServletRequest request, String iso, String id, Integer type) Destination list.jakarta.ws.rs.core.ResponsegetVersion(jakarta.servlet.http.HttpServletRequest request) Gets the version.jakarta.ws.rs.core.ResponsehostSetOption(String authString, jakarta.servlet.http.HttpServletRequest request, String hostid, String name, String value) Incoming association add.jakarta.ws.rs.core.ResponseincomingAssociationAdd(String authString, jakarta.servlet.http.HttpServletRequest request, String id, String destination) Incoming association add.jakarta.ws.rs.core.ResponseincomingAssociationDel(String authString, jakarta.servlet.http.HttpServletRequest request, String id, String destination) Incoming association del.jakarta.ws.rs.core.ResponseincomingAssociationList(String authString, jakarta.servlet.http.HttpServletRequest request, String id) Incoming association list.jakarta.ws.rs.core.ResponseincomingCategoryAdd(String authString, jakarta.servlet.http.HttpServletRequest request, String id, List<String> categories) Incoming category add.jakarta.ws.rs.core.ResponseincomingUserAdd(String authString, jakarta.servlet.http.HttpServletRequest request, String id, String pass, String email, String iso) Incoming user add.jakarta.ws.rs.core.ResponseincomingUserAdd2(String authString, jakarta.servlet.http.HttpServletRequest request, String id, String email, String iso) Incoming user add2.jakarta.ws.rs.core.ResponseincomingUserList(String authString, jakarta.servlet.http.HttpServletRequest request, String destination) Incoming user list.jakarta.ws.rs.core.ResponseputDestinationBackup(String authString, jakarta.servlet.http.HttpServletRequest request, Boolean copySharedHost, ecmwf.ecpds.master.plugin.service.ECpdsRESTV1.PutDestinationBackupRequest backupRequest) Put destination backup.jakarta.ws.rs.core.ResponsesetDestinationMetadata(String authString, jakarta.servlet.http.HttpServletRequest request, String name, Map<String, Object> body) PUT /v1/destination/{name}/metadata Replace all metadata values for a destination.jakarta.ws.rs.core.ResponsestepStatusHistoryList(String authString, jakarta.servlet.http.HttpServletRequest request, String product, String time, String step, String type) Monitoring status list.jakarta.ws.rs.core.ResponsestepStatusList(String authString, jakarta.servlet.http.HttpServletRequest request, String product, String time) Monitoring status list.jakarta.ws.rs.core.ResponseUser del.
-
Constructor Details
-
ECpdsRESTV1
public ECpdsRESTV1()
-
-
Method Details
-
getVersion
@GET @Produces("application/json") @Path("version") public jakarta.ws.rs.core.Response getVersion(@Context jakarta.servlet.http.HttpServletRequest request) Gets the version.- Parameters:
request- the request- Returns:
- the version
-
incomingUserAdd
@POST @Produces("application/json") @Path("incoming/user/add") public jakarta.ws.rs.core.Response incomingUserAdd(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") String id, @QueryParam("pass") String pass, @QueryParam("email") String email, @QueryParam("iso") String iso) Incoming user add.- Parameters:
authString- the auth stringrequest- the requestid- the idpass- the passemail- the emailiso- the iso- Returns:
- the response
-
incomingUserAdd2
@POST @Produces("application/json") @Path("incoming/user/add2") public jakarta.ws.rs.core.Response incomingUserAdd2(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") String id, @QueryParam("email") String email, @QueryParam("iso") String iso) Incoming user add2.- Parameters:
authString- the auth stringrequest- the requestid- the idemail- the emailiso- the iso- Returns:
- the response
-
incomingUserList
@GET @Produces("application/json") @Path("incoming/user/list") public jakarta.ws.rs.core.Response incomingUserList(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("destination") String destination) Incoming user list.- Parameters:
authString- the auth stringrequest- the requestdestination- the destination- Returns:
- the response
-
userDel
@DELETE @Produces("application/json") @Path("incoming/user/del/{id}") public jakarta.ws.rs.core.Response userDel(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @PathParam("id") String id) User del.- Parameters:
authString- the auth stringrequest- the requestid- the id- Returns:
- the response
-
incomingCategoryAdd
@POST @Consumes("application/json") @Produces("application/json") @Path("incoming/category/add") public jakarta.ws.rs.core.Response incomingCategoryAdd(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") String id, List<String> categories) Incoming category add.- Parameters:
authString- the auth stringrequest- the requestid- the idcategories- the categories- Returns:
- the response
-
incomingAssociationAdd
@POST @Produces("application/json") @Path("incoming/association/add") public jakarta.ws.rs.core.Response incomingAssociationAdd(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") String id, @QueryParam("destination") String destination) Incoming association add.- Parameters:
authString- the auth stringrequest- the requestid- the iddestination- the destination- Returns:
- the response
-
incomingAssociationDel
@DELETE @Produces("application/json") @Path("incoming/association/del") public jakarta.ws.rs.core.Response incomingAssociationDel(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") String id, @QueryParam("destination") String destination) Incoming association del.- Parameters:
authString- the auth stringrequest- the requestid- the iddestination- the destination- Returns:
- the response
-
incomingAssociationList
@GET @Produces("application/json") @Path("incoming/association/list") public jakarta.ws.rs.core.Response incomingAssociationList(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") String id) Incoming association list.- Parameters:
authString- the auth stringrequest- the requestid- the id- Returns:
- the response
-
destinationMetaFields
@GET @Path("destination/metadata/fields") @Produces("application/json") public jakarta.ws.rs.core.Response destinationMetaFields(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request) GET /v1/destination/metadata/fields Returns all active metadata field definitions.- Parameters:
authString- the auth stringrequest- the request- Returns:
- the response
-
destinationMetadata
@GET @Path("destination/{name}/metadata") @Produces("application/json") public jakarta.ws.rs.core.Response destinationMetadata(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @PathParam("name") String name) GET /v1/destination/{name}/metadata Returns all metadata values for a destination grouped by category, matching the structure of the UI JSON export. Each category contains field names mapped to their value(s); fields with no value are included as null. Multi-value fields are returned as arrays. Structured types (contact, mail-group, switchboard) are parsed from JSON to nested objects.- Parameters:
authString- the auth stringrequest- the requestname- the destination name- Returns:
- the response
-
setDestinationMetadata
@PUT @Path("destination/{name}/metadata") @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response setDestinationMetadata(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @PathParam("name") String name, Map<String, Object> body) PUT /v1/destination/{name}/metadata Replace all metadata values for a destination.Body (grouped format, matching the GET response):
{"metadata":{"General":{"organisationWebPage":"..."},"Contacts":{"computerOperations":[{"name":"...","email":"..."}]}}}Field names are resolved to IDs via the DB field definitions. Null or missing fields are skipped (no value stored).- Parameters:
authString- the auth stringrequest- the requestname- the destination namebody- the request body- Returns:
- the response
-
destinationList
@GET @Produces("application/json") @Path("destination/list") public jakarta.ws.rs.core.Response destinationList(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("iso") String iso, @QueryParam("id") String id, @QueryParam("type") Integer type) Destination list.- Parameters:
authString- the auth stringrequest- the requestiso- the isoid- the idtype- the type- Returns:
- the response
-
destination
@GET @Produces("application/json") @Path("destination/{name}") public jakarta.ws.rs.core.Response destination(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @PathParam("name") String name) Destination.- Parameters:
authString- the auth stringrequest- the requestname- the name- Returns:
- the response
-
getDestinationBackup
@GET @Produces("application/json") @Path("destination/backup") public jakarta.ws.rs.core.Response getDestinationBackup(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("iso") String iso, @QueryParam("id") String id, @QueryParam("type") Integer type) Destination list.- Parameters:
authString- the auth stringrequest- the requestiso- the isoid- the idtype- the type- Returns:
- the response
-
getDestinationBackup
@GET @Produces("application/json") @Path("destination/backup/{name}") public jakarta.ws.rs.core.Response getDestinationBackup(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @PathParam("name") String name) Destination.- Parameters:
authString- the auth stringrequest- the requestname- the name- Returns:
- the response
-
putDestinationBackup
@PUT @Consumes("application/json") @Produces("application/json") @Path("destination/backup") public jakarta.ws.rs.core.Response putDestinationBackup(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("copySharedHost") Boolean copySharedHost, ecmwf.ecpds.master.plugin.service.ECpdsRESTV1.PutDestinationBackupRequest backupRequest) Put destination backup.- Parameters:
authString- the auth stringrequest- the requestcopySharedHost- the copy shared hostbackupRequest- the backup request- Returns:
- the response
-
hostSetOption
@POST @Consumes("application/x-www-form-urlencoded") @Produces("application/json") @Path("host/option") public jakarta.ws.rs.core.Response hostSetOption(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("hostid") String hostid, @QueryParam("name") String name, @FormParam("value") String value) Incoming association add.- Parameters:
authString- the auth stringrequest- the requesthostid- the hostidname- the namevalue- the value- Returns:
- the response
-
destinationTypeList
@GET @Produces("application/json") @Path("destination/type/list") public jakarta.ws.rs.core.Response destinationTypeList(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request) Destination type list.- Parameters:
authString- the auth stringrequest- the request- Returns:
- the response
-
destinationCountryList
@GET @Produces("application/json") @Path("destination/country/list") public jakarta.ws.rs.core.Response destinationCountryList(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request) Destination country list.- Parameters:
authString- the auth stringrequest- the request- Returns:
- the response
-
stepStatusList
@GET @Produces("application/json") @Path("monitoring/summary/{product}/{time}") public jakarta.ws.rs.core.Response stepStatusList(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @PathParam("product") String product, @PathParam("time") String time) Monitoring status list.- Parameters:
authString- the auth stringrequest- the requestproduct- the producttime- the time- Returns:
- the response
-
stepStatusHistoryList
@GET @Produces("application/json") @Path("monitoring/summary/{product}/{time}/{step}/{type}") public jakarta.ws.rs.core.Response stepStatusHistoryList(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @PathParam("product") String product, @PathParam("time") String time, @PathParam("step") String step, @PathParam("type") String type) Monitoring status list.- Parameters:
authString- the auth stringrequest- the requestproduct- the producttime- the timestep- the steptype- the type- Returns:
- the response
-
datafilePut
@GET @Produces("application/json") @Path("datafile/put") public jakarta.ws.rs.core.Response datafilePut(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("destination") String destination, @QueryParam("metadata") String metadata, @QueryParam("source") String source, @QueryParam("uniquename") String uniquename, @QueryParam("target") String target, @QueryParam("priority") Integer priority, @QueryParam("lifetime") String lifetime, @QueryParam("at") String at, @QueryParam("standby") Boolean standby, @QueryParam("force") Boolean force) Datafile put.- Parameters:
authString- the auth stringrequest- the requestdestination- the destinationmetadata- the metadatasource- the sourceuniquename- the uniquenametarget- the targetpriority- the prioritylifetime- the lifetimeat- the atstandby- the standbyforce- the force- Returns:
- the response
-
datafileSize
@GET @Produces("application/json") @Path("datafile/size") public jakarta.ws.rs.core.Response datafileSize(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") Long id) Datafile size.- Parameters:
authString- the auth stringrequest- the requestid- the id- Returns:
- the response
-
datafileDel
@DELETE @Produces("application/json") @Path("datafile/del") public jakarta.ws.rs.core.Response datafileDel(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") Long id) Datafile del.- Parameters:
authString- the auth stringrequest- the requestid- the id- Returns:
- the response
-