Class DatabaseManagerResource
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.datamanager.server.spring.DatabaseManagerResource
-
@RestController @RequestMapping("/servers/{serverName}/open-metadata/access-services/data-manager/users/{userId}") public class DatabaseManagerResource extends ObjectDatabaseManagerRESTServices is the server-side implementation of the Data Manager OMAS's support for relational databases. It matches the DatabaseManagerClient.
-
-
Constructor Summary
Constructors Constructor Description DatabaseManagerResource()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidResponseaddForeignKeyRelationship(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String primaryKeyColumnGUID, String foreignKeyColumnGUID, DatabaseForeignKeyProperties databaseForeignKeyProperties)Create a foreign relationship between two columns.GUIDResponsecreateDatabase(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, DatabaseProperties databaseProperties)Create a new metadata element to represent a database.GUIDResponsecreateDatabaseColumn(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, DatabaseColumnProperties databaseColumnProperties)Create a new metadata element to represent a database column.GUIDResponsecreateDatabaseColumnFromTemplate(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseTableGUID, TemplateProperties templateProperties)Create a new metadata element to represent a database column using an existing metadata element as a template.GUIDResponsecreateDatabaseFromTemplate(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, TemplateProperties templateProperties)Create a new metadata element to represent a database using an existing metadata element as a template.GUIDResponsecreateDatabaseSchema(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID, DatabaseSchemaProperties databaseSchemaProperties)Create a new metadata element to represent a database schema.GUIDResponsecreateDatabaseSchemaFromTemplate(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseGUID, TemplateProperties templateProperties)Create a new metadata element to represent a database schema using an existing metadata element as a template.GUIDResponsecreateDatabaseTable(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, DatabaseTableProperties databaseTableProperties)Create a new metadata element to represent a database table.GUIDResponsecreateDatabaseTableFromTemplate(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseSchemaGUID, TemplateProperties templateProperties)Create a new metadata element to represent a database table using an existing metadata element as a template.GUIDResponsecreateDatabaseView(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, DatabaseViewProperties databaseViewProperties)Create a new metadata element to represent a database view.GUIDResponsecreateDatabaseViewFromTemplate(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseSchemaGUID, TemplateProperties templateProperties)Create a new metadata element to represent a database view using an existing metadata element as a template.DatabaseColumnsResponsefindDatabaseColumns(String serverName, String userId, SearchStringRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database column metadata elements that contain the search string.DatabasesResponsefindDatabases(String serverName, String userId, SearchStringRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database metadata elements that contain the search string.DatabaseSchemasResponsefindDatabaseSchemas(String serverName, String userId, SearchStringRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database schema metadata elements that contain the search string.DatabaseTablesResponsefindDatabaseTables(String serverName, String userId, SearchStringRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database table metadata elements that contain the search string.DatabaseViewsResponsefindDatabaseViews(String serverName, String userId, SearchStringRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database view metadata elements that contain the search string.DatabaseColumnsResponsegetColumnsForDatabaseTable(String serverName, String userId, String databaseTableGUID, int startFrom, int pageSize)Retrieve the list of column for a database table (or view)DatabaseResponsegetDatabaseByGUID(String serverName, String userId, String guid)Retrieve the database metadata element with the supplied unique identifier.DatabaseColumnResponsegetDatabaseColumnByGUID(String serverName, String userId, String guid)Retrieve the database column metadata element with the supplied unique identifier.DatabaseColumnsResponsegetDatabaseColumnsByName(String serverName, String userId, NameRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database column metadata elements with a matching qualified or display name.DatabasesResponsegetDatabasesByName(String serverName, String userId, NameRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database metadata elements with a matching qualified or display name.DatabaseSchemaResponsegetDatabaseSchemaByGUID(String serverName, String userId, String guid)Retrieve the database schema metadata element with the supplied unique identifier.DatabaseSchemasResponsegetDatabaseSchemasByName(String serverName, String userId, NameRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database schema metadata elements with a matching qualified or display name.DatabasesResponsegetDatabasesForDatabaseManager(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, int startFrom, int pageSize)Retrieve the list of databases created by this database manager.DatabaseTableResponsegetDatabaseTableByGUID(String serverName, String userId, String guid)Retrieve the database table metadata element with the supplied unique identifier.DatabaseTablesResponsegetDatabaseTablesByName(String serverName, String userId, NameRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database table metadata elements with a matching qualified or display name.DatabaseViewResponsegetDatabaseViewByGUID(String serverName, String userId, String guid)Retrieve the database view metadata element with the supplied unique identifier.DatabaseViewsResponsegetDatabaseViewsByName(String serverName, String userId, NameRequestBody requestBody, int startFrom, int pageSize)Retrieve the list of database view metadata elements with a matching qualified or display name.DatabaseSchemasResponsegetSchemasForDatabase(String serverName, String userId, String databaseGUID, int startFrom, int pageSize)Return the list of schemas associated with a database.DatabaseTablesResponsegetTablesForDatabaseSchema(String serverName, String userId, String databaseSchemaGUID, int startFrom, int pageSize)Retrieve the list of database tables associated with a database schema.DatabaseViewsResponsegetViewsForDatabaseSchema(String serverName, String userId, String databaseSchemaGUID, int startFrom, int pageSize)Retrieve the list of database views associated with a database schema.VoidResponsepublishDatabase(String serverName, String userId, String databaseGUID, NullRequestBody nullRequestBody)Update the zones for the database asset so that it becomes visible to consumers.VoidResponsepublishDatabaseSchema(String serverName, String userId, String databaseSchemaGUID, NullRequestBody nullRequestBody)Update the zones for the database asset so that it becomes visible to consumers.VoidResponseremoveDatabase(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID, String qualifiedName, NullRequestBody nullRequestBody)Remove the metadata element representing a database.VoidResponseremoveDatabaseColumn(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, String qualifiedName, NullRequestBody nullRequestBody)Remove the metadata element representing a database column.VoidResponseremoveDatabaseSchema(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, String qualifiedName, NullRequestBody nullRequestBody)Remove the metadata element representing a database schema.VoidResponseremoveDatabaseTable(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, String qualifiedName, NullRequestBody nullRequestBody)Remove the metadata element representing a database table.VoidResponseremoveDatabaseView(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseViewGUID, String qualifiedName, NullRequestBody nullRequestBody)Remove the metadata element representing a database table.VoidResponseremoveForeignKeyRelationship(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String primaryKeyColumnGUID, String foreignKeyColumnGUID, NullRequestBody nullRequestBody)Remove the foreign key relationship for the requested columns.VoidResponseremovePrimaryKeyFromColumn(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, NullRequestBody nullRequestBody)Remove the classification that this column is a primary key.VoidResponsesetPrimaryKeyOnColumn(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, DatabasePrimaryKeyProperties databasePrimaryKeyProperties)Classify a column in a database table as the primary key.VoidResponseupdateDatabase(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID, DatabaseProperties databaseProperties)Update the metadata element representing a database.VoidResponseupdateDatabaseColumn(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, DatabaseColumnProperties databaseColumnProperties)Update the metadata element representing a database column.VoidResponseupdateDatabaseSchema(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, DatabaseSchemaProperties databaseSchemaProperties)Update the metadata element representing a database schema.VoidResponseupdateDatabaseTable(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, DatabaseTableProperties databaseTableProperties)Update the metadata element representing a database table.VoidResponseupdateDatabaseView(String serverName, String userId, String databaseManagerGUID, String databaseManagerName, String databaseViewGUID, DatabaseViewProperties databaseViewProperties)Update the metadata element representing a database table.VoidResponsewithdrawDatabase(String serverName, String userId, String databaseGUID, NullRequestBody nullRequestBody)Update the zones for the database asset so that it is no longer visible to consumers.VoidResponsewithdrawDatabaseSchema(String serverName, String userId, String databaseSchemaGUID, NullRequestBody nullRequestBody)Update the zones for the database asset so that it is no longer visible to consumers.
-
-
-
Method Detail
-
createDatabase
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases") public GUIDResponse createDatabase(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @RequestBody DatabaseProperties databaseProperties)Create a new metadata element to represent a database.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseProperties- properties to store- Returns:
- unique identifier of the new metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createDatabaseFromTemplate
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/from-template/{templateGUID}") public GUIDResponse createDatabaseFromTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String templateGUID, @RequestBody TemplateProperties templateProperties)Create a new metadata element to represent a database using an existing metadata element as a template.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMStemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
updateDatabase
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/{databaseGUID}") public VoidResponse updateDatabase(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseGUID, @RequestBody DatabaseProperties databaseProperties)Update the metadata element representing a database.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseGUID- unique identifier of the metadata element to updatedatabaseProperties- new properties for this element- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
publishDatabase
@PostMapping(path="/databases/{databaseGUID}/publish") public VoidResponse publishDatabase(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseGUID, @RequestBody(required=false) NullRequestBody nullRequestBody)Update the zones for the database asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Data Manager OMAS).- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseGUID- unique identifier of the metadata element to publishnullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
withdrawDatabase
@PostMapping(path="/databases/{databaseGUID}/withdraw") public VoidResponse withdrawDatabase(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseGUID, @RequestBody(required=false) NullRequestBody nullRequestBody)Update the zones for the database asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Data Manager OMAS. This is the setting when the database is first created).- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseGUID- unique identifier of the metadata element to withdrawnullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
removeDatabase
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/{databaseGUID}/{qualifiedName}/delete") public VoidResponse removeDatabase(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseGUID, @PathVariable String qualifiedName, @RequestBody(required=false) NullRequestBody nullRequestBody)Remove the metadata element representing a database.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseGUID- unique identifier of the metadata element to removequalifiedName- unique name of the metadata element to removenullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
findDatabases
@PostMapping(path="/databases/by-search-string") public DatabasesResponse findDatabases(@PathVariable String serverName, @PathVariable String userId, @RequestBody SearchStringRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabasesByName
@PostMapping(path="/databases/by-name") public DatabasesResponse getDatabasesByName(@PathVariable String serverName, @PathVariable String userId, @RequestBody NameRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabasesForDatabaseManager
@GetMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases") public DatabasesResponse getDatabasesForDatabaseManager(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @RequestParam int startFrom, @RequestParam int pageSize)Retrieve the list of databases created by this database manager.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabaseByGUID
@GetMapping(path="/databases/{guid}") public DatabaseResponse getDatabaseByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)Retrieve the database metadata element with the supplied unique identifier.- Parameters:
serverName- name of the service to route the request to.userId- calling userguid- unique identifier of the requested metadata element- Returns:
- matching metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createDatabaseSchema
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/{databaseGUID}/schemas") public GUIDResponse createDatabaseSchema(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseGUID, @RequestBody DatabaseSchemaProperties databaseSchemaProperties)Create a new metadata element to represent a database schema.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseGUID- unique identifier of the database where the schema is locateddatabaseSchemaProperties- properties about the database schema- Returns:
- unique identifier of the new database schema or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createDatabaseSchemaFromTemplate
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/{databaseGUID}/schemas/from-template/{templateGUID}") public GUIDResponse createDatabaseSchemaFromTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String templateGUID, @PathVariable String databaseGUID, @RequestBody TemplateProperties templateProperties)Create a new metadata element to represent a database schema using an existing metadata element as a template.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMStemplateGUID- unique identifier of the metadata element to copydatabaseGUID- unique identifier of the database where the schema is locatedtemplateProperties- properties that override the template- Returns:
- unique identifier of the new database schema or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
updateDatabaseSchema
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/{databaseSchemaGUID}") public VoidResponse updateDatabaseSchema(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseSchemaGUID, @RequestBody DatabaseSchemaProperties databaseSchemaProperties)Update the metadata element representing a database schema.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseSchemaGUID- unique identifier of the metadata element to updatedatabaseSchemaProperties- new properties for the metadata element- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
publishDatabaseSchema
@PostMapping(path="/databases/schemas/{databaseSchemaGUID}/publish") public VoidResponse publishDatabaseSchema(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseSchemaGUID, @RequestBody(required=false) NullRequestBody nullRequestBody)Update the zones for the database asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Data Manager OMAS).- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseSchemaGUID- unique identifier of the metadata element to publishnullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
withdrawDatabaseSchema
@PostMapping(path="/databases/schemas/{databaseSchemaGUID}/withdraw") public VoidResponse withdrawDatabaseSchema(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseSchemaGUID, @RequestBody(required=false) NullRequestBody nullRequestBody)Update the zones for the database asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Data Manager OMAS. This is the setting when the database is first created).- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseSchemaGUID- unique identifier of the metadata element to withdrawnullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
removeDatabaseSchema
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/{databaseSchemaGUID}/{qualifiedName}/delete") public VoidResponse removeDatabaseSchema(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseSchemaGUID, @PathVariable String qualifiedName, @RequestBody(required=false) NullRequestBody nullRequestBody)Remove the metadata element representing a database schema.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseSchemaGUID- unique identifier of the metadata element to removequalifiedName- unique name of the metadata element to removenullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
findDatabaseSchemas
@PostMapping(path="/databases/schemas/by-search-string") public DatabaseSchemasResponse findDatabaseSchemas(@PathVariable String serverName, @PathVariable String userId, @RequestBody SearchStringRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database schema metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getSchemasForDatabase
@GetMapping(path="/databases/{databaseGUID}/schemas") public DatabaseSchemasResponse getSchemasForDatabase(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseGUID, @RequestParam int startFrom, @RequestParam int pageSize)Return the list of schemas associated with a database.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseGUID- unique identifier of the database to querystartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of metadata elements describing the schemas associated with the requested database or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabaseSchemasByName
@PostMapping(path="/databases/schemas/by-name") public DatabaseSchemasResponse getDatabaseSchemasByName(@PathVariable String serverName, @PathVariable String userId, @RequestBody NameRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database schema metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabaseSchemaByGUID
@GetMapping(path="/databases/schemas/{guid}") public DatabaseSchemaResponse getDatabaseSchemaByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)Retrieve the database schema metadata element with the supplied unique identifier.- Parameters:
serverName- name of the service to route the request to.userId- calling userguid- unique identifier of the requested metadata element- Returns:
- requested metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createDatabaseTable
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/{databaseSchemaGUID}/tables") public GUIDResponse createDatabaseTable(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseSchemaGUID, @RequestBody DatabaseTableProperties databaseTableProperties)Create a new metadata element to represent a database table.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseSchemaGUID- unique identifier of the database schema where the database table is located.databaseTableProperties- properties for the database table- Returns:
- unique identifier of the new metadata element for the database table or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createDatabaseTableFromTemplate
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/{databaseSchemaGUID}/tables/from-template/{templateGUID}") public GUIDResponse createDatabaseTableFromTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String templateGUID, @PathVariable String databaseSchemaGUID, @RequestBody TemplateProperties templateProperties)Create a new metadata element to represent a database table using an existing metadata element as a template.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMStemplateGUID- unique identifier of the metadata element to copydatabaseSchemaGUID- unique identifier of the database schema where the database table is located.templateProperties- properties that override the template- Returns:
- unique identifier of the new database table or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
updateDatabaseTable
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/{databaseTableGUID}") public VoidResponse updateDatabaseTable(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseTableGUID, @RequestBody DatabaseTableProperties databaseTableProperties)Update the metadata element representing a database table.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseTableGUID- unique identifier of the database table to updatedatabaseTableProperties- new properties for the database table- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
removeDatabaseTable
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/{databaseTableGUID}/{qualifiedName}/delete") public VoidResponse removeDatabaseTable(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseTableGUID, @PathVariable String qualifiedName, @RequestBody(required=false) NullRequestBody nullRequestBody)Remove the metadata element representing a database table.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseTableGUID- unique identifier of the metadata element to removequalifiedName- unique name of the metadata element to removenullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
findDatabaseTables
@PostMapping(path="/databases/schemas/tables/by-search-string") public DatabaseTablesResponse findDatabaseTables(@PathVariable String serverName, @PathVariable String userId, @RequestBody SearchStringRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database table metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getTablesForDatabaseSchema
@GetMapping(path="/databases/schemas/{databaseSchemaGUID}/tables") public DatabaseTablesResponse getTablesForDatabaseSchema(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseSchemaGUID, @RequestParam int startFrom, @RequestParam int pageSize)Retrieve the list of database tables associated with a database schema.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseSchemaGUID- unique identifier of the database schema of intereststartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of associated metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabaseTablesByName
@PostMapping(path="/databases/schemas/tables/by-name") public DatabaseTablesResponse getDatabaseTablesByName(@PathVariable String serverName, @PathVariable String userId, @RequestBody NameRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database table metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabaseTableByGUID
@GetMapping(path="/databases/schemas/tables/{guid}") public DatabaseTableResponse getDatabaseTableByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)Retrieve the database table metadata element with the supplied unique identifier.- Parameters:
serverName- name of the service to route the request to.userId- calling userguid- unique identifier of the requested metadata element- Returns:
- matching metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createDatabaseView
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/{databaseSchemaGUID}/tables/views") public GUIDResponse createDatabaseView(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseSchemaGUID, @RequestBody DatabaseViewProperties databaseViewProperties)Create a new metadata element to represent a database view.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseSchemaGUID- unique identifier of the database schema where the database view is located.databaseViewProperties- properties for the new view- Returns:
- unique identifier of the new metadata element for the database view or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createDatabaseViewFromTemplate
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/{databaseSchemaGUID}/tables/views/from-template/{templateGUID}") public GUIDResponse createDatabaseViewFromTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String templateGUID, @PathVariable String databaseSchemaGUID, @RequestBody TemplateProperties templateProperties)Create a new metadata element to represent a database view using an existing metadata element as a template.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMStemplateGUID- unique identifier of the metadata element to copydatabaseSchemaGUID- unique identifier of the database schema where the database view is located.templateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element for the database view or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
updateDatabaseView
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/views/{databaseViewGUID}") public VoidResponse updateDatabaseView(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseViewGUID, @RequestBody DatabaseViewProperties databaseViewProperties)Update the metadata element representing a database table.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseViewGUID- unique identifier of the database view to updatedatabaseViewProperties- properties for the new database view- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
removeDatabaseView
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/views/{databaseViewGUID}/{qualifiedName}/delete") public VoidResponse removeDatabaseView(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseViewGUID, @PathVariable String qualifiedName, @RequestBody(required=false) NullRequestBody nullRequestBody)Remove the metadata element representing a database table.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseViewGUID- unique identifier of the metadata element to removequalifiedName- unique name of the metadata element to removenullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
findDatabaseViews
@PostMapping(path="/databases/schemas/tables/views/by-search-string") public DatabaseViewsResponse findDatabaseViews(@PathVariable String serverName, @PathVariable String userId, @RequestBody SearchStringRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database view metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getViewsForDatabaseSchema
@GetMapping(path="/databases/schemas/{databaseSchemaGUID}/tables/views") public DatabaseViewsResponse getViewsForDatabaseSchema(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseSchemaGUID, @RequestParam int startFrom, @RequestParam int pageSize)Retrieve the list of database views associated with a database schema.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseSchemaGUID- unique identifier of the database schema of intereststartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of associated metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabaseViewsByName
@PostMapping(path="/databases/schemas/tables/views/by-name") public DatabaseViewsResponse getDatabaseViewsByName(@PathVariable String serverName, @PathVariable String userId, @RequestBody NameRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database view metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabaseViewByGUID
@GetMapping(path="/databases/schemas/tables/views/{guid}") public DatabaseViewResponse getDatabaseViewByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)Retrieve the database view metadata element with the supplied unique identifier.- Parameters:
serverName- name of the service to route the request to.userId- calling userguid- unique identifier of the requested metadata element- Returns:
- matching metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createDatabaseColumn
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/{databaseTableGUID}/columns") public GUIDResponse createDatabaseColumn(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseTableGUID, @RequestBody DatabaseColumnProperties databaseColumnProperties)Create a new metadata element to represent a database column.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseTableGUID- unique identifier of the database table where this column is locateddatabaseColumnProperties- properties for the new column- Returns:
- unique identifier of the new metadata element for the database column or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createDatabaseColumnFromTemplate
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/{databaseTableGUID}/columns/from-template/{templateGUID}") public GUIDResponse createDatabaseColumnFromTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String templateGUID, @PathVariable String databaseTableGUID, @RequestBody TemplateProperties templateProperties)Create a new metadata element to represent a database column using an existing metadata element as a template.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMStemplateGUID- unique identifier of the metadata element to copydatabaseTableGUID- unique identifier of the database table where this column is locatedtemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element for the database column InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
updateDatabaseColumn
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/columns/{databaseColumnGUID}") public VoidResponse updateDatabaseColumn(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseColumnGUID, @RequestBody DatabaseColumnProperties databaseColumnProperties)Update the metadata element representing a database column.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseColumnGUID- unique identifier of the metadata element to updatedatabaseColumnProperties- new properties for the metadata element- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
removeDatabaseColumn
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/columns/{databaseColumnGUID}/{qualifiedName}/delete") public VoidResponse removeDatabaseColumn(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseColumnGUID, @PathVariable String qualifiedName, @RequestBody(required=false) NullRequestBody nullRequestBody)Remove the metadata element representing a database column.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseColumnGUID- unique identifier of the metadata element to removequalifiedName- unique name of the metadata element to removenullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
findDatabaseColumns
@PostMapping(path="/databases/schemas/tables/columns/by-search-string") public DatabaseColumnsResponse findDatabaseColumns(@PathVariable String serverName, @PathVariable String userId, @RequestBody SearchStringRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database column metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getColumnsForDatabaseTable
@GetMapping(path="/databases/schemas/tables/{databaseTableGUID}/columns") public DatabaseColumnsResponse getColumnsForDatabaseTable(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseTableGUID, @RequestParam int startFrom, @RequestParam int pageSize)Retrieve the list of column for a database table (or view)- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseTableGUID- unique identifier of the database table of intereststartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabaseColumnsByName
@PostMapping(path="/databases/schemas/tables/columns/by-name") public DatabaseColumnsResponse getDatabaseColumnsByName(@PathVariable String serverName, @PathVariable String userId, @RequestBody NameRequestBody requestBody, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the list of database column metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getDatabaseColumnByGUID
@GetMapping(path="/databases/schemas/tables/columns/{guid}") public DatabaseColumnResponse getDatabaseColumnByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)Retrieve the database column metadata element with the supplied unique identifier.- Parameters:
serverName- name of the service to route the request to.userId- calling userguid- unique identifier of the requested metadata element- Returns:
- matching metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
setPrimaryKeyOnColumn
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/columns/{databaseColumnGUID}/primary-key") public VoidResponse setPrimaryKeyOnColumn(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseColumnGUID, @RequestBody DatabasePrimaryKeyProperties databasePrimaryKeyProperties)Classify a column in a database table as the primary key. This means each row has a different value in this column and it can be used to uniquely identify the column.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseColumnGUID- unique identifier if the primary key columndatabasePrimaryKeyProperties- properties to store- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
removePrimaryKeyFromColumn
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/columns/{databaseColumnGUID}/primary-key/delete") public VoidResponse removePrimaryKeyFromColumn(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String databaseColumnGUID, @RequestBody(required=false) NullRequestBody nullRequestBody)Remove the classification that this column is a primary key.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSdatabaseColumnGUID- unique identifier if the primary key columnnullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
addForeignKeyRelationship
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/columns/{foreignKeyColumnGUID}/foreign-key/{primaryKeyColumnGUID}") public VoidResponse addForeignKeyRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String primaryKeyColumnGUID, @PathVariable String foreignKeyColumnGUID, @RequestBody DatabaseForeignKeyProperties databaseForeignKeyProperties)Create a foreign relationship between two columns. One of the columns holds the primary key of the other to form a link.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSprimaryKeyColumnGUID- unique identifier of the column containing the primary keyforeignKeyColumnGUID- unique identifier of the column containing the primary key from the other tabledatabaseForeignKeyProperties- properties about the foreign key relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
removeForeignKeyRelationship
@PostMapping(path="/database-managers/{databaseManagerGUID}/{databaseManagerName}/databases/schemas/tables/columns/{foreignKeyColumnGUID}/foreign-key/{primaryKeyColumnGUID}/delete") public VoidResponse removeForeignKeyRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String databaseManagerGUID, @PathVariable String databaseManagerName, @PathVariable String primaryKeyColumnGUID, @PathVariable String foreignKeyColumnGUID, @RequestBody(required=false) NullRequestBody nullRequestBody)Remove the foreign key relationship for the requested columns.- Parameters:
serverName- name of the service to route the request to.userId- calling userdatabaseManagerGUID- unique identifier of software server capability representing the owning DBMSdatabaseManagerName- unique name of software server capability representing the owning DBMSprimaryKeyColumnGUID- unique identifier of the column that is the linked primary keyforeignKeyColumnGUID- unique identifier of the column the contains the primary key from another tablenullRequestBody- empty request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
-