Class OldOperationalServicesResource
java.lang.Object
org.odpi.openmetadata.platformservices.server.spring.OldOperationalServicesResource
@RestController
@RequestMapping("/open-metadata/admin-services/users/{userId}/servers/{serverName}")
@Deprecated
public class OldOperationalServicesResource
extends Object
Deprecated.
OldOperationalServicesResource provides the REST API for controlling the start-up, management and
shutdown of services in the OMAG Server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactivateWithStoredConfig
(String userId, String serverName) Deprecated.Activate the Open Metadata and Governance (OMAG) server using the configuration document stored for this server.activateWithSuppliedConfig
(String userId, String serverName, OMAGServerConfig configuration) Deprecated.Activate the open metadata and governance services using the supplied configuration document.addOpenMetadataArchive
(String userId, String serverName, Connection connection) Deprecated.Add a new open metadata archive to running repository.addOpenMetadataArchiveFile
(String userId, String serverName, String fileName) Deprecated.Add a new open metadata archive to running repository.deactivatePermanently
(String userId, String serverName) Deprecated.Permanently deactivate any open metadata and governance services and unregister from any cohorts.deactivateTemporarily
(String userId, String serverName) Deprecated.Temporarily deactivate any open metadata and governance services.getActiveConfiguration
(String userId, String serverName) Deprecated.Return the configuration used for the current active instance of the server.getActiveServerStatus
(String userId, String serverName) Deprecated.Return the status for the current active instance of the server.
-
Constructor Details
-
OldOperationalServicesResource
public OldOperationalServicesResource()Deprecated.
-
-
Method Details
-
activateWithStoredConfig
@PostMapping(path="/instance") public SuccessMessageResponse activateWithStoredConfig(@PathVariable String userId, @PathVariable String serverName) Deprecated.Activate the Open Metadata and Governance (OMAG) server using the configuration document stored for this server.- Parameters:
userId
- user that is issuing the requestserverName
- local server name- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException the server name is invalid or OMAGConfigurationErrorException there is a problem using the supplied configuration.
-
activateWithSuppliedConfig
@PostMapping(path="/instance/configuration") public SuccessMessageResponse activateWithSuppliedConfig(@PathVariable String userId, @PathVariable String serverName, @RequestBody OMAGServerConfig configuration) Deprecated.Activate the open metadata and governance services using the supplied configuration document.- Parameters:
userId
- user that is issuing the requestconfiguration
- properties used to initialize the servicesserverName
- local server name- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException the server name is invalid or OMAGConfigurationErrorException there is a problem using the supplied configuration.
-
deactivateTemporarily
@DeleteMapping(path="/instance") public VoidResponse deactivateTemporarily(@PathVariable String userId, @PathVariable String serverName) Deprecated.Temporarily deactivate any open metadata and governance services.- Parameters:
userId
- user that is issuing the requestserverName
- local server name- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException the serverName is invalid.
-
deactivatePermanently
@DeleteMapping(path="") public VoidResponse deactivatePermanently(@PathVariable String userId, @PathVariable String serverName) Deprecated.Permanently deactivate any open metadata and governance services and unregister from any cohorts.- Parameters:
userId
- user that is issuing the requestserverName
- local server name- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException the serverName is invalid.
-
getActiveConfiguration
@GetMapping(path="/instance/configuration") public OMAGServerConfigResponse getActiveConfiguration(@PathVariable String userId, @PathVariable String serverName) Deprecated.Return the configuration used for the current active instance of the server. Null is returned if the server instance is not running.- Parameters:
userId
- user that is issuing the requestserverName
- local server name- Returns:
- configuration properties used to initialize the server or null if not running or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException the server name is invalid or OMAGConfigurationErrorException there is a problem using the supplied configuration.
-
getActiveServerStatus
@GetMapping(path="/instance/status") public OMAGServerStatusResponse getActiveServerStatus(@PathVariable String userId, @PathVariable String serverName) Deprecated.Return the status for the current active instance of the server. Null is returned if the server instance is not running.- Parameters:
userId
- user that is issuing the requestserverName
- local server name- Returns:
- status of the server or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException the server name is invalid or not running or OMAGConfigurationErrorException there is a problem using the supplied configuration.
-
addOpenMetadataArchiveFile
@PostMapping(path="/instance/open-metadata-archives/file") public VoidResponse addOpenMetadataArchiveFile(@PathVariable String userId, @PathVariable String serverName, @RequestBody String fileName) Deprecated.Add a new open metadata archive to running repository.- Parameters:
userId
- user that is issuing the request.serverName
- local server name.fileName
- name of the open metadata archive file.- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException invalid serverName or fileName parameter.
-
addOpenMetadataArchive
@PostMapping(path="/instance/open-metadata-archives/connection") public VoidResponse addOpenMetadataArchive(@PathVariable String userId, @PathVariable String serverName, @RequestBody Connection connection) Deprecated.Add a new open metadata archive to running repository.- Parameters:
userId
- user that is issuing the request.serverName
- local server name.connection
- connection for the open metadata archive.- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException invalid serverName or connection parameter.
-