@RestController
@RequestMapping(value="/open-metadata/admin-services/users/{userId}/servers/{serverName}")
public class ConfigRepositoryServicesResource
extends Object
| Constructor and Description |
|---|
ConfigRepositoryServicesResource() |
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
addAuditLogDestination(String userId,
String serverName,
Connection connection)
Add an audit log destination that is defined by the supplied connection object.
|
VoidResponse |
addConsoleAuditLogDestination(String userId,
String serverName,
List<String> supportedSeverities)
Set up the console audit log for the server.
|
VoidResponse |
addEventTopicAuditLogDestination(String userId,
String serverName,
List<String> supportedSeverities)
Add an audit log destination that sends each log record as an event on the supplied event topic.
|
VoidResponse |
addFileAuditLogDestination(String userId,
String serverName,
List<String> supportedSeverities)
Add an audit log destination that creates log records as JSON files in a shared directory.
|
VoidResponse |
addSLF4JAuditLogDestination(String userId,
String serverName,
List<String> supportedSeverities)
Add an audit log destination that creates slf4j records.
|
VoidResponse |
addStartUpOpenMetadataArchiveFile(String userId,
String serverName,
String fileName)
Add a new open metadata archive to load at startup.
|
VoidResponse |
clearAuditLogDestinations(String userId,
String serverName)
Clears all audit log destinations for this server.
|
VoidResponse |
disableCohortRegistration(String userId,
String serverName,
String cohortName)
Unregister this server from an open metadata repository cohort.
|
VoidResponse |
enableCohortRegistration(String userId,
String serverName,
String cohortName,
Map<String,Object> additionalProperties)
Enable registration of server to an open metadata repository cohort.
|
GUIDResponse |
getLocalMetadataCollectionId(String userId,
String serverName)
Return the local metadata collection id.
|
VoidResponse |
setAuditLogDestinations(String userId,
String serverName,
List<Connection> auditLogDestinations)
Set up the list of audit log destinations.
|
VoidResponse |
setCohortConfig(String userId,
String serverName,
String cohortName,
CohortConfig cohortConfig)
Set up the configuration properties for a cohort.
|
VoidResponse |
setDefaultAuditLog(String userId,
String serverName)
Set up the default audit log for the server.
|
VoidResponse |
setGraphLocalRepository(String userId,
String serverName)
Set up a graph store as the local repository.
|
VoidResponse |
setInMemLocalRepository(String userId,
String serverName)
Set up an in memory local repository.
|
VoidResponse |
setLocalMetadataCollectionName(String userId,
String serverName,
String name)
Set up the local metadata collection name.
|
VoidResponse |
setLocalRepositoryConfig(String userId,
String serverName,
LocalRepositoryConfig localRepositoryConfig)
Set up the configuration for the local repository.
|
VoidResponse |
setLocalRepositoryEventMapper(String userId,
String serverName,
Connection connection)
Provide the connection to the local repository's event mapper if needed.
|
VoidResponse |
setLocalRepositoryEventMapper(String userId,
String serverName,
String connectorProvider,
String eventSource,
Map<String,Object> additionalProperties)
Provide the connection to the local repository's event mapper if needed.
|
VoidResponse |
setNoRepositoryMode(String userId,
String serverName)
Remove all configuration for a local repository.
|
VoidResponse |
setOpenMetadataArchives(String userId,
String serverName,
List<Connection> openMetadataArchives)
Set up the list of open metadata archives.
|
VoidResponse |
setRepositoryProxyConnection(String userId,
String serverName,
Connection connection)
Provide the connection to the local repository - used when the local repository mode is set to repository proxy.
|
VoidResponse |
setRepositoryProxyConnection(String userId,
String serverName,
String connectorProvider,
Map<String,Object> additionalProperties)
Provide the connection to the local repository - used when the local repository mode is set to repository proxy.
|
@PostMapping(path="/audit-log-destinations/default") public VoidResponse setDefaultAuditLog(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@PostMapping(path="/audit-log-destinations/console") public VoidResponse addConsoleAuditLogDestination(@PathVariable String userId, @PathVariable String serverName, @RequestBody List<String> supportedSeverities)
userId - user that is issuing the request.serverName - local server name.supportedSeverities - list of severities that should be logged to this destination (empty list means all)@PostMapping(path="/audit-log-destinations/slf4j") public VoidResponse addSLF4JAuditLogDestination(@PathVariable String userId, @PathVariable String serverName, @RequestBody List<String> supportedSeverities)
userId - user that is issuing the request.serverName - local server name.supportedSeverities - list of severities that should be logged to this destination (empty list means all)@PostMapping(path="/audit-log-destinations/files") public VoidResponse addFileAuditLogDestination(@PathVariable String userId, @PathVariable String serverName, @RequestBody List<String> supportedSeverities)
userId - user that is issuing the request.serverName - local server name.supportedSeverities - list of severities that should be logged to this destination (empty list means all)@PostMapping(path="/audit-log-destinations/event-topic") public VoidResponse addEventTopicAuditLogDestination(@PathVariable String userId, @PathVariable String serverName, @RequestBody List<String> supportedSeverities)
userId - user that is issuing the request.serverName - local server name.supportedSeverities - list of severities that should be logged to this destination (empty list means all)@PostMapping(path="/audit-log-destinations/connection") public VoidResponse addAuditLogDestination(@PathVariable String userId, @PathVariable String serverName, @RequestBody Connection connection)
userId - user that is issuing the request.serverName - local server name.connection - connection object that defines the audit log destination@PostMapping(path="/audit-log-destinations/none") public VoidResponse clearAuditLogDestinations(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@PostMapping(path="/open-metadata-archives/file") public VoidResponse addStartUpOpenMetadataArchiveFile(@PathVariable String userId, @PathVariable String serverName, @RequestBody String fileName)
userId - user that is issuing the request.serverName - local server name.fileName - name of the open metadata archive file.@DeleteMapping(path="/local-repository") public VoidResponse setNoRepositoryMode(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@PostMapping(path="/local-repository/mode/in-memory-repository") public VoidResponse setInMemLocalRepository(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@PostMapping(path="/local-repository/mode/local-graph-repository") public VoidResponse setGraphLocalRepository(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@PostMapping(path="/local-repository/mode/repository-proxy/connection") public VoidResponse setRepositoryProxyConnection(@PathVariable String userId, @PathVariable String serverName, @RequestBody Connection connection)
userId - user that is issuing the request.serverName - local server name.connection - connection to the OMRS repository connector.@PostMapping(path="/local-repository/mode/repository-proxy/details") public VoidResponse setRepositoryProxyConnection(@PathVariable String userId, @PathVariable String serverName, @RequestParam String connectorProvider, @RequestBody(required=false) Map<String,Object> additionalProperties)
userId - user that is issuing the request.serverName - local server name.connectorProvider - connector provider class name to the OMRS repository connector.additionalProperties - additional parameters to pass to the repository connector@PostMapping(path="/local-repository/event-mapper-connection") public VoidResponse setLocalRepositoryEventMapper(@PathVariable String userId, @PathVariable String serverName, @RequestBody Connection connection)
userId - user that is issuing the request.serverName - local server name.connection - connection to the OMRS repository event mapper.@PostMapping(path="/local-repository/event-mapper-details") public VoidResponse setLocalRepositoryEventMapper(@PathVariable String userId, @PathVariable String serverName, @RequestParam String connectorProvider, @RequestParam String eventSource, @RequestBody(required=false) Map<String,Object> additionalProperties)
userId - user that is issuing the request.serverName - local server name.connectorProvider - Java class name of the connector provider for the OMRS repository event mapper.eventSource - topic name or URL to the native event source.additionalProperties - additional properties for the event mapper connection@PostMapping(path="/local-repository/metadata-collection-name/{name}")
public VoidResponse setLocalMetadataCollectionName(@PathVariable
String userId,
@PathVariable
String serverName,
@PathVariable
String name)
userId - user that is issuing the request.serverName - local server name.name - metadata collection name.@GetMapping(path="/local-repository/metadata-collection-id") public GUIDResponse getLocalMetadataCollectionId(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@PostMapping(path="/cohorts/{cohortName}")
public VoidResponse enableCohortRegistration(@PathVariable
String userId,
@PathVariable
String serverName,
@PathVariable
String cohortName,
@RequestBody(required=false)
Map<String,Object> additionalProperties)
userId - user that is issuing the request.serverName - local server name.cohortName - name of the cohort.additionalProperties - additional properties for the event bus connection@DeleteMapping(path="/cohorts/{cohortName}")
public VoidResponse disableCohortRegistration(@PathVariable
String userId,
@PathVariable
String serverName,
@PathVariable
String cohortName)
userId - user that is issuing the request.serverName - local server name.cohortName - name of the cohort.@PostMapping(path="/audit-log-destinations") public VoidResponse setAuditLogDestinations(@PathVariable String userId, @PathVariable String serverName, @RequestBody List<Connection> auditLogDestinations)
userId - user that is issuing the request.serverName - local server name.auditLogDestinations - list of connection objects@PostMapping(path="/open-metadata-archives") public VoidResponse setOpenMetadataArchives(@PathVariable String userId, @PathVariable String serverName, @RequestBody List<Connection> openMetadataArchives)
userId - user that is issuing the request.serverName - local server name.openMetadataArchives - list of connection objects@PostMapping(path="/local-repository/configuration") public VoidResponse setLocalRepositoryConfig(@PathVariable String userId, @PathVariable String serverName, @RequestBody LocalRepositoryConfig localRepositoryConfig)
userId - user that is issuing the request.serverName - local server name.localRepositoryConfig - configuration properties for the local repository.@PostMapping(path="/cohorts/{cohortName}/configuration")
public VoidResponse setCohortConfig(@PathVariable
String userId,
@PathVariable
String serverName,
@PathVariable
String cohortName,
@RequestBody
CohortConfig cohortConfig)
userId - user that is issuing the requestserverName - local server namecohortName - name of the cohortcohortConfig - configuration for the cohortCopyright © 2018–2020 ODPi. All rights reserved.