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