Class ConfigResource
java.lang.Object
org.odpi.openmetadata.adminservices.spring.ConfigResource
@RestController
@RequestMapping("/open-metadata/admin-services/users/{userId}/servers/{serverName}")
public class ConfigResource
extends Object
OMAGServerConfigResource returns the current configuration document for the server. If the
configuration document is not found, a new one is created.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclearOMAGServerConfig
(String userId, String serverName) Clear the configuration properties for an OMAG Server in a single command.deployOMAGServerConfig
(String userId, String serverName, URLRequestBody destinationPlatform) Push the configuration for the server to another OMAG Server Platform.getStoredConfiguration
(String userId, String serverName) Return the stored configuration document for the server.setOMAGServerConfig
(String userId, String serverName, OMAGServerConfig omagServerConfig) Set up the configuration properties for an OMAG Server in a single command.
-
Constructor Details
-
ConfigResource
public ConfigResource()
-
-
Method Details
-
getStoredConfiguration
@GetMapping(path="/configuration") public OMAGServerConfigResponse getStoredConfiguration(@PathVariable String userId, @PathVariable String serverName) Return the stored configuration document for the server.- Parameters:
userId
- user that is issuing the requestserverName
- local server name- Returns:
- OMAGServerConfig properties or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException invalid serverName parameter.
-
setOMAGServerConfig
@PostMapping(path="/configuration") public VoidResponse setOMAGServerConfig(@PathVariable String userId, @PathVariable String serverName, @RequestBody OMAGServerConfig omagServerConfig) Set up the configuration properties for an OMAG Server in a single command.- Parameters:
userId
- user that is issuing the requestserverName
- local server nameomagServerConfig
- configuration for the server- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException invalid serverName or OMAGServerConfig parameter.
-
clearOMAGServerConfig
@DeleteMapping(path="/configuration") public VoidResponse clearOMAGServerConfig(@PathVariable String userId, @PathVariable String serverName) Clear the configuration properties for an OMAG Server in a single command.- 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 invalid serverName or OMAGServerConfig parameter.
-
deployOMAGServerConfig
@PostMapping(path="/configuration/deploy") public VoidResponse deployOMAGServerConfig(@PathVariable String userId, @PathVariable String serverName, @RequestBody URLRequestBody destinationPlatform) Push the configuration for the server to another OMAG Server Platform.- Parameters:
userId
- user that is issuing the requestserverName
- local server namedestinationPlatform
- location of the platform where the config is to be deployed to- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException there is a problem using the supplied configuration or OMAGInvalidParameterException invalid serverName or destinationPlatform parameter.
-