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, String portalService, String active) Incoming user add.jakarta.ws.rs.core.ResponseincomingUserAdd2(String authString, jakarta.servlet.http.HttpServletRequest request, String id, String email, String iso, String portalService, String active) 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 history list.jakarta.ws.rs.core.ResponsestepStatusList(String authString, jakarta.servlet.http.HttpServletRequest request, String product, String time, String step, String type, String status) Monitoring status list for a single product/cycle, optionally narrowed down with thestep/type/statusquery filters.jakarta.ws.rs.core.ResponsesummaryList(String authString, jakarta.servlet.http.HttpServletRequest request, String product, String time, String step, String type, String status) Monitoring summary list - every product/cycle currently known, optionally narrowed down with theproduct/time/step/type/statusquery filters.jakarta.ws.rs.core.ResponsesummaryListForProduct(String authString, jakarta.servlet.http.HttpServletRequest request, String product, String time, String step, String type, String status) Monitoring summary list for a single product - every cycle currently known for it, optionally narrowed down with thetime/step/type/statusquery filters.jakarta.ws.rs.core.ResponseUser del.jakarta.ws.rs.core.ResponsewebUserAdd(String authString, jakarta.servlet.http.HttpServletRequest request, String id, String pass, String name, String active) Web user add.jakarta.ws.rs.core.ResponsewebUserAdd2(String authString, jakarta.servlet.http.HttpServletRequest request, String id, String name, String active) Web user add 2.jakarta.ws.rs.core.ResponsewebUserDel(String authString, jakarta.servlet.http.HttpServletRequest request, String id) Web user del.jakarta.ws.rs.core.ResponsewebUserList(String authString, jakarta.servlet.http.HttpServletRequest request, String category) Web user list.
-
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, @QueryParam("portalService") String portalService, @QueryParam("active") String active) Incoming user add.- Parameters:
authString- the auth stringrequest- the requestid- the idpass- the passemail- the emailiso- the isoportalService- the portal service mode ("standard-login", "open-access" or "self-service"); optional, defaults to "standard-login" on creationactive- whether the user should be active; optional, defaults tofalse(inactive) on creation, or leaves it unchanged on update. See the `incoming/category/add` endpoint for the legacy activation mechanism- 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, @QueryParam("portalService") String portalService, @QueryParam("active") String active) Incoming user add2.- Parameters:
authString- the auth stringrequest- the requestid- the idemail- the emailiso- the isoportalService- the portal service mode ("standard-login", "open-access" or "self-service"); optional, defaults to "standard-login"active- whether the user should be active; optional, defaults totrue- 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
-
webUserAdd
@POST @Produces("application/json") @Path("web/user/add") public jakarta.ws.rs.core.Response webUserAdd(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") String id, @QueryParam("pass") String pass, @QueryParam("name") String name, @QueryParam("active") String active) Web user add. Creates or updates a web (admin console) user. Does not grant any ACL category - the account cannot access anything behind the console's Category/Resource ACL until an administrator assigns one via/do/user/user.- Parameters:
authString- the auth stringrequest- the requestid- the idpass- the passwordname- the common nameactive- the active- Returns:
- the response
-
webUserAdd2
@POST @Produces("application/json") @Path("web/user/add2") public jakarta.ws.rs.core.Response webUserAdd2(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("id") String id, @QueryParam("name") String name, @QueryParam("active") String active) Web user add 2. Creates a new web (admin console) user with a generated password. Does not grant any ACL category (seewebUserAdd(String, HttpServletRequest, String, String, String, String)).- Parameters:
authString- the auth stringrequest- the requestid- the idname- the common nameactive- the active- Returns:
- the response
-
webUserList
@GET @Produces("application/json") @Path("web/user/list") public jakarta.ws.rs.core.Response webUserList(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("category") String category) Web user list. Lists all active web (admin console) users, optionally filtered by ACL category id. Each user'spasswordfield is included only if the client also has theSHOW_SENSITIVE_INFO_SERVICEpermission - omitted otherwise, same treatment asincomingUserList(String, HttpServletRequest, String).- Parameters:
authString- the auth stringrequest- the requestcategory- the category- Returns:
- the response
-
webUserDel
@DELETE @Produces("application/json") @Path("web/user/del/{id}") public jakarta.ws.rs.core.Response webUserDel(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @PathParam("id") String id) Web 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. Each field'sdefaultValueis redacted (returned asnull) when itstypeispasswordunless the caller also has theSHOW_SENSITIVE_INFO_SERVICEpermission, matching the redaction already applied to stored values bydestinationMetadata(String, HttpServletRequest, String).- 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. A field not editable at the destination level always reflects the field definition's currentdefaultValueinstead of any stored value, matching how it is displayed on the Destination Metadata page and exported to Opsview notes (seeExportDestinationMetaNotesAction). A separateincludeInNotesobject, grouped the same way, says which fields are currently flagged to be included in the Opsview notes export for this destination.- 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":"..."}]}},"includeInNotes":{"General":{"organisationWebPage":true}}}Field names are resolved to IDs via the DB field definitions. Null or missing fields are skipped (no value stored).includeInNotesis optional - a field omitted from it is saved with the flag off, matching this endpoint's full-replace semantics (so a round-trip GET followed by PUT must resend it to keep it set). A field not editable at the destination level (DestinationMetaField.getEditable()) always has its submitted value(s) ignored (logged, not an error) in favour of the field definition's currentdefaultValue- matching the read-only rendering on the Destination Metadata page - soincludeInNotescan still be set for it even though its content cannot be customised per destination.- 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
-
summaryList
@GET @Produces("application/json") @Path("monitoring/summary") public jakarta.ws.rs.core.Response summaryList(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("product") String product, @QueryParam("time") String time, @QueryParam("step") String step, @QueryParam("type") String type, @QueryParam("status") String status) Monitoring summary list - every product/cycle currently known, optionally narrowed down with theproduct/time/step/type/statusquery filters. Mirrors the merged "All Cycles and Products" view available in the web interface at/do/monitoring/summary/.- Parameters:
authString- the auth stringrequest- the requestproduct- optional product name filter (exact match, case-insensitive)time- optional cycle/time filter (exact match, case-insensitive)step- optional step filter (exact match)type- optional product type filter (exact match, case-insensitive)status- optional raw generation status code filter (e.g. "DONE"), case-insensitive- Returns:
- the response
-
summaryListForProduct
@GET @Produces("application/json") @Path("monitoring/summary/{product}") public jakarta.ws.rs.core.Response summaryListForProduct(@HeaderParam("authorization") String authString, @Context jakarta.servlet.http.HttpServletRequest request, @PathParam("product") String product, @QueryParam("time") String time, @QueryParam("step") String step, @QueryParam("type") String type, @QueryParam("status") String status) Monitoring summary list for a single product - every cycle currently known for it, optionally narrowed down with thetime/step/type/statusquery filters. Mirrors the merged "All Cycles" view available in the web interface at/do/monitoring/summary/{product}.- Parameters:
authString- the auth stringrequest- the requestproduct- the producttime- optional cycle/time filter (exact match, case-insensitive)step- optional step filter (exact match)type- optional product type filter (exact match, case-insensitive)status- optional raw generation status code filter (e.g. "DONE"), case-insensitive- 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, @QueryParam("step") String step, @QueryParam("type") String type, @QueryParam("status") String status) Monitoring status list for a single product/cycle, optionally narrowed down with thestep/type/statusquery filters.- Parameters:
authString- the auth stringrequest- the requestproduct- the producttime- the timestep- optional step filter (exact match)type- optional product type filter (exact match, case-insensitive)status- optional raw generation status code filter (e.g. "DONE"), case-insensitive- 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 history 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
-