@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 |
addCohortConfig(String userId,
String serverName,
String cohortName,
Map<String,Object> additionalProperties)
Enable registration of server to an open metadata repository cohort.
|
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 |
clearCohortConfig(String userId,
String serverName,
String cohortName)
Unregister this server from an open metadata repository cohort.
|
VoidResponse |
clearLocalRepositoryConfig(String userId,
String serverName)
Remove all configuration for a local repository.
|
VoidResponse |
clearOpenMetadataArchives(String userId,
String serverName)
Set up the list of open metadata archives.
|
ConnectionListResponse |
getAuditLogDestinations(String userId,
String serverName)
Set up the list of audit log destinations.
|
CohortConfigResponse |
getCohortConfig(String userId,
String serverName,
String cohortName)
Enable registration of server to an open metadata repository cohort.
|
StringResponse |
getCohortTopicName(String userId,
String serverName,
String cohortName)
Retrieve the current topic name for the cohort.
|
GUIDResponse |
getLocalMetadataCollectionId(String userId,
String serverName)
Return the local metadata collection id.
|
LocalRepositoryConfigResponse |
getLocalRepositoryConfig(String userId,
String serverName)
Return the configuration for the local repository.
|
ConnectionListResponse |
getOpenMetadataArchives(String userId,
String serverName)
Return the list of open metadata archives.
|
VoidResponse |
overrideCohortTopicName(String userId,
String serverName,
String cohortName,
String topicName)
Override the current topic name for the cohort.
|
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,
NullRequestBody requestBody)
Set up the default audit log for the server.
|
VoidResponse |
setGraphLocalRepository(String userId,
String serverName,
Map<String,Object> storageProperties)
Set up a graph store as the local repository.
|
VoidResponse |
setInMemLocalRepository(String userId,
String serverName,
NullRequestBody requestBody)
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 |
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 |
setPluginRepositoryConnection(String userId,
String serverName,
Connection connection)
Provide the connection to the local repository - used when the local repository mode is set to plugin repository.
|
VoidResponse |
setPluginRepositoryConnection(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 plugin repository.
|
VoidResponse |
setReadOnlyLocalRepository(String userId,
String serverName)
Set up a read only local repository.
|
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.
|
VoidResponse |
setRepositoryProxyEventMapper(String userId,
String serverName,
Connection connection)
Provide the connection to a repository proxy's event mapper.
|
VoidResponse |
setRepositoryProxyEventMapper(String userId,
String serverName,
String connectorProvider,
String eventSource,
Map<String,Object> additionalProperties)
Provide the connection to a repository proxy's event mapper.
|
@PostMapping(path="/audit-log-destinations/default") public VoidResponse setDefaultAuditLog(@PathVariable String userId, @PathVariable String serverName, @RequestBody(required=false) NullRequestBody requestBody)
userId - user that is issuing the request.serverName - local server name.requestBody - null request body@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="/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, @RequestBody(required=false) NullRequestBody requestBody)
userId - user that is issuing the request.serverName - local server name.requestBody - null request body@PostMapping(path="/local-repository/mode/local-graph-repository") public VoidResponse setGraphLocalRepository(@PathVariable String userId, @PathVariable String serverName, @RequestBody @Nullable Map<String,Object> storageProperties)
userId - user that is issuing the request.serverName - local server name.storageProperties - properties used to configure the back end storage for the graph@PostMapping(path="/local-repository/mode/read-only-repository") public VoidResponse setReadOnlyLocalRepository(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@PostMapping(path="/local-repository/mode/plugin-repository/connection") public VoidResponse setPluginRepositoryConnection(@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/plugin-repository/details") public VoidResponse setPluginRepositoryConnection(@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/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 setRepositoryProxyEventMapper(@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 setRepositoryProxyEventMapper(@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 addCohortConfig(@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@GetMapping(path="/cohorts/{cohortName}")
public CohortConfigResponse getCohortConfig(@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.@GetMapping(path="/cohorts/{cohortName}/topic-name")
public StringResponse getCohortTopicName(@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="/cohorts/{cohortName}/topic-name-override")
public VoidResponse overrideCohortTopicName(@PathVariable
String userId,
@PathVariable
String serverName,
@PathVariable
String cohortName,
@RequestBody
String topicName)
userId - user that is issuing the request.serverName - local server name.cohortName - name of the cohort.topicName - new name for the topic.@DeleteMapping(path="/cohorts/{cohortName}")
public VoidResponse clearCohortConfig(@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@GetMapping(path="/audit-log-destinations") public ConnectionListResponse getAuditLogDestinations(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@DeleteMapping(path="/audit-log-destinations") 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") 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@GetMapping(path="/open-metadata-archives") public ConnectionListResponse getOpenMetadataArchives(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@DeleteMapping(path="/open-metadata-archives") public VoidResponse clearOpenMetadataArchives(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@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.@GetMapping(path="/local-repository/configuration") public LocalRepositoryConfigResponse getLocalRepositoryConfig(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@DeleteMapping(path="/local-repository/configuration") public VoidResponse clearLocalRepositoryConfig(@PathVariable String userId, @PathVariable String serverName)
userId - user that is issuing the request.serverName - local server name.@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–2021 LF AI & Data Foundation. All rights reserved.