IBM Db2 as a Service Perfomance REST API

Introduction Use the IBM Db2 SaaS API to access data, view and create database objects, administer, and monitor your IBM Db2 SaaS service. These APIs are applicable only for the Perfomance Plan. Java developers can use this SDK to interact with IBM Db2 SaaS. Github

MethodPathSummary
GET/dbsettings/endpointsGet the endpoint information
PUT/dbsettings/endpointsUpdate service endpoints configuration
GET/dbsettings/whitelistipsGet all the whitelist IPs
POST/dbsettings/whitelistipsAdd whitelist IPs
DELETE/dbsettings/whitelistipsDelete whitelist IPs
PUT/access/config/publicConfigure public access settings
POST/auth/tokensRequest a new access token
GET/auth/token/publickeyReturns public key of Json Web Token
PUT/auth/passwordSets a new password using dswebToken
GET/backupsGet a list of backups
POST/backups/restoreRestore
POST/backups/backupCreate a backup
GET/backups/settingGet backup setting
POST/backups/settingUpdate backup setting
GET/connectioninfo/{DEPLOYMENT_ID}Get Db2 connection information
POST/manage/copy_dbCopy database to a new provision database
GET/load_jobsLists all data load jobs using Db2 load utility technology
POST/load_jobsCreates a data load job
GET/load_jobs/{id}Returns details about a load job including its progress
DELETE/load_jobs/{id}Removes load job from history
GET/load_jobs/{log_path}/logDownloads log file for a data load job
PATCH/deployments/availabilityConverting database availability to Single and High Availability
GET/admin/schemas/obj_type/{obj_type}Query the list of object schemas
POST/admin/schemasCreate schema
PUT/admin/schemas/deleteDrops multiple schemas
GET/admin/privilegesGet single object privilege
POST/admin/privilegesPrivilege list of selected objects
PUT/admin/privilegesGrant or revoke privileges
POST/admin/schemas/ddlGenerate schema DDL
PUT/admin/tablesCreate a new table
PUT/admin/tables/deleteDrop multiple tables
GET/admin/schemas/{schema_name}/tables/{table_name}/definitionGet table definition
GET/admin/schemas/{schema_name}/tables/{table_name}/dataQuery table data
GET/admin/schemas/{schema_name}/tables/{table_name}/columns/{column_name}/propertiesGet column detail properties
GET/admin/tables/meta/datatypeGet the metadata type
POST/admin/tables/ddlGenerate table DDL
GET/admin/schemas/{schema_name}/tables/{table_name}/distribution_keysGet distributin keys
GET/admin/schemas/{schema_name}/tables/{table_name}/distributions/propertiesGet data distributin property
GET/admin/schemas/{schema_name}/tables/{table_name}/partitions/expressionsGet partition expressions
GET/admin/schemas/{schema_name}/tables/{table_name}/partitionsGet data partitions
POST/admin/tables/move_activityMove tables
POST/admin/tables/move_activity/scriptMove tables script
POST/admin/tables/copy_activityCopy tables
POST/admin/tables/copy_activity/scriptCopy tables script
POST/admin/tables/tasks/statusGet the latest status after last updated time
GET/admin/schemas/{schema_name}/views/{view_name}/propertiesQuery view detail properties
PUT/admin/views/deleteDrop multiple views
GET/admin/schemas/{schema_name}/views/{view_name}/dataQuery view data
GET/admin/schemas/{schema_name}/views/{view_name}/definitionGet View definition
POST/admin/views/ddlGenerate view DDL
GET/admin/schemas/{schema_name}/{obj_type}/{object_name}/dependenciesGet the dependencies of the object
GET/admin/tablespaces/{tablespace}/dependenciesGet the dependencies of the tablespace
GET/admin/bufferpools/{bufferpool_name}/propertiesQuery bufferpool detail properties
GET/admin/schemas/{schema_name}/tables/{table_name}/constraints/{constraint_name}/propertiesQuery constraint detail properties
GET/admin/schemas/{schema_name}/tables/{table_name}/indexes/{index_name}/propertiesQuery index detail properties
GET/admin/schemas/{schema_name}/triggers/{trigger_name}/propertiesQuery trigger detail properties
GET/admin/schemas/{schema_name}/mqts/{mqt_name}/propertiesQuery MQT detail properties
GET/admin/schemas/{schema_name}/functions/{specific_name}/propertiesQuery UDF detail properties
GET/admin/tablespaces/{table_space}/propertiesQuery tablespace detail properties
GET/admin/schemas/{schema_name}/procedures/{specific_name}/propertiesQuery procedure detail properties
GET/admin/schemas/{schema_name}/sequences/{sequence_name}/propertiesQuery sequence detail properties
GET/admin/schemas/{schema_name}/packages/{package_name}/propertiesQuery package detail properties
GET/admin/schemas/{schema_name}/udts/{type_name}/propertiesQuery UDT detail properties
GET/admin/schemas/{schema_name}/aliases/{alias_name}/propertiesQuery alias detail properties
GET/admin/schemas/{schema_name}/tables/{table_name}/propertiesGet table detail properties
PUT/admin/aliasesCreate alias
PUT/admin/aliases/deleteDrop multiple aliases
POST/admin/aliases/ddlGenerate Alias DDL
GET/admin/schemas/{schema_name}/aliases/{alias_name}/dataQuery alias data
POST/admin/mqts/ddlGet the SQL statement template for creating MQT table
PUT/admin/mqts/deleteDelete multiple mqt tables
GET/admin/schemas/{schema_name}/mqts/{mqt_name}/definitionGet the definition of MQT table
GET/admin/schemas/{schema_name}/mqts/{mqt_name}/dataGet the data of specified mqt table
GET/admin/privileges/authenticationsGet authentications through the authid filter
GET/admin/privileges/{authid_type}/{authid}/{obj_type}Get the privieles of auth id
POST/admin/privileges/dclGet SQL statement of grant or revoke privileges
POST/admin/privileges/rolesAdd new role
PUT/admin/privileges/rolesGrant or revoke the privilges of role
DELETE/admin/privileges/roles/{role_name}Delete one role
GET/admin/privileges/roles/{authid_type}/{authid}Get the membership of authid
POST/admin/privileges/roles/dclGet SQL statement of grant or revoke role
POST/admin/privileges/multiple_objtypes/dclGet SQL statement for grant or revoke privileges
PUT/admin/privileges/multiple_objtypesGrant or revole privileges for multiple objects and objects type
POST/admin/privileges/multiple_roles/dclGet the SQL statement for grant or revoke multiple roles
PUT/admin/privileges/multiple_rolesGrant or revoke multiple roles
POST/admin/workloads/ddlGenerate workload DDL
GET/admin/workloadsLists workloads
PUT/admin/sequences/deleteDrop multiple sequences
PUT/admin/procedures/deleteDrop multiple procedures
GET/admin/schemas/{schema_name}/procedures/{specific_name}/parametersRetrieve parameters for procedure
POST/admin/procedures/ddlGenerate create procedure template
PUT/admin/functions/deleteDrop multiple functions
GET/admin/schemas/{schema_name}/functions/{specific_name}/parametersRetrieve parameters for specific udf
POST/admin/functions/ddlGenerate create function template
PUT/admin/udts/deleteDrop multiple User-defined Types
GET/admin/schemas/{schema_name}/udts/{udt_name}/definitionRetrieve row definition for User-defined Type object
POST/admin/udts/ddlGenerate Create User-defined Types template
GET/manage/tuneable_paramGet Tuneable Db2 settings
POST/manage/deployments/custom_settingChange Db2 Settings
GET/db_updateChecks for any available database update
POST/db_updateTrigger database update
GET/manage/drList disaster recovery enablement information
POST/manage/drEnable disaster recovery
GET/manage/dr/remotes/statusList disaster recovery remotes pair information
POST/manage/dr/takeoverPerform disaster recovery takeover
POST/manage/dr/resyncResync disaster recovery remote pair
GET/manage/dr/resync/statusCheck current disaster recovery resync status
POST/manage/backups/external_backupBackup database to external storage
POST/backups/external_restore(Deprecated) Restore to a particular external backup
GET/backups/external_restore/status(Deprecated) Get the status for the external restore task
POST/backups/external_rollforward(Deprecated) Rollforward the logs to a external storage
DELETE/home/{path}Deletes a file in the Db2 temporary cloud object storage
GET/home_content/{path}Download file from Db2 temporary cloud object storage
POST/home_content/{path}Uploads a file to Db2 temporary cloud object storage
GET/manage/license/describeRetrieve detailed license information
PUT/manage/update_db2_licensesUpdate DB2 license
GET/monitor/connectionsLists active database connections **DB ADMIN ONLY**
DELETE/monitor/connections/{application_handle}Terminates a database connection **DB ADMIN ONLY**
GET/metrics/max_connections_countGet the maximum number of concurrent connections **DB ADMIN ONLY**
GET/metrics/connections_countGet maximum numbers of concurrent connections. **DB ADMIN ONLY**
GET/metrics/applications/connectionsGets a list of connections
GET/metrics/applications/connections/current/listGets a list of current connections
GET/metrics/applications/connections/{application_handle}Gets a connection detail
DELETE/metrics/applications/connections/{application_handle}Terminates a database connection **DB ADMIN ONLY**
GET/metrics/applications/connections/{application_handle}/timeseriesGets a list of timeseries of a connection
GET/metrics/max_cpuGet the maximum percent of node CPU usage. **DB ADMIN ONLY**
GET/metrics/cpu_summaryGet the percent of node CPU usage. **DB ADMIN ONLY**
GET/metrics/max_lockwaits_rateGet the maximum lockwaits per minute. **DB ADMIN ONLY**
GET/metrics/lockwaits_rateGet the maximum lockwaits per minute. **DB ADMIN ONLY**
GET/metrics/max_log_spaceGet the maximum usage percentage of logs. **DB ADMIN ONLY**
GET/metrics/log_spaceGet the maximum usage percentages of logs. **DB ADMIN ONLY**
GET/metrics/max_memoryGet the maximum percent of node memory usage. **DB ADMIN ONLY**
GET/metrics/memory_summaryGet the percent of node memory usage. **DB ADMIN ONLY**
GET/metrics/response_time_histogramsGet the histogram of response time. **DB ADMIN ONLY**
GET/metrics/average_response_timeGet the average response time. **DB ADMIN ONLY**
GET/metrics/response_timeGet the list of average response time. **DB ADMIN ONLY**
GET/metrics/average_rows_readGet the average number of rows read(rows/min). **DB ADMIN ONLY**
GET/metrics/rows_readGet the numbers of rows read(rows/min). **DB ADMIN ONLY**
GET/metrics/statements_countGet the number of statements. **DB ADMIN ONLY**
GET/metrics/average_statements_rateGet the average number of statements executed every minutes. **DB ADMIN ONLY**
GET/metrics/statements_rateGet numbers of statements executed every minutes. **DB ADMIN ONLY**
GET/metrics/statements/inflight_executionsGets a list of inflight executions
GET/metrics/statements/inflight_executions/current/listGets a list of current inflight executions
GET/metrics/applications/{application_handle}/uow/{uow_id}/inflight_executions/{activity_id}Gets a infight execution detail
DELETE/metrics/applications/{application_handle}/uow/{uow_id}/inflight_executions/{activity_id}Terminates a statement **DB ADMIN ONLY**
GET/monitorGets overall status of system components
GET/monitor/storageGets current storage usage **DB ADMIN ONLY**
GET/monitor/storage/historyGets storage usage history **DB ADMIN ONLY**
GET/monitor/storage/by_schemaStorage utilization by schema **DB ADMIN ONLY**
GET/monitor/storage/by_schema/{schema_name}Storage utilization of a schema **DB ADMIN ONLY**
GET/metrics/max_storageGet the maximum usage percent of storage. **DB ADMIN ONLY**
GET/metrics/storageGet the usage percent of storage. **DB ADMIN ONLY**
GET/metrics/schemas/{tabschema}/tables/{tabname}/storage/timeseriesGet a table storage usage in a time range **DB ADMIN ONLY**
GET/metrics/tables/storageGets a list for tables storage **DB ADMIN ONLY**
GET/metrics/schemas/{tabschema}/tables/{tabname}/storageGets a table storage **DB ADMIN ONLY**
GET/metrics/storage/schemasGets a list for schemas storage **DB ADMIN ONLY**
GET/metrics/storage/schemas/{tabschema}/timeseriesGet a schema used storage in a time range **DB ADMIN ONLY**
GET/metrics/storage/schemas/{tabschema}Gets a schema storage **DB ADMIN ONLY**
POST/metrics/tables/storage/collectorRuns a tables storage collection **DB ADMIN ONLY**
GET/metrics/schemasGets performance metrics for schemas **DB ADMIN ONLY**
GET/metrics/schemas/current/listGets performance metrics for schemas **DB ADMIN ONLY**
GET/metrics/schemas/{schema_name}Gets performance metrics for one schema **DB ADMIN ONLY**
GET/metrics/schemas/{schema_name}/membersGets performance metrics on all members for one schema **DB ADMIN ONLY**
GET/metrics/schemas/{schema_name}/timeseriesGets performance metrics timeseries for one schema **DB ADMIN ONLY**
GET/metrics/tablesGets performance of tables **DB ADMIN ONLY**
GET/metrics/tables/current/listGets current performance of tables **DB ADMIN ONLY**
GET/metrics/schemas/{schema_name}/tables/{table_name}Gets performance of one table **DB ADMIN ONLY**
GET/metrics/schemas/{schema_name}/tables/{table_name}/membersGets performance on all members for one table **DB ADMIN ONLY**
GET/metrics/schemas/{schema_name}/tables/{table_name}/timeseriesGets performance timeseries for one table **DB ADMIN ONLY**
GET/metrics/tableperformanceGets performance of tables and schemas **DB ADMIN ONLY**
GET/metrics/tableperformance/current/listGets current performance of tables and schemas **DB ADMIN ONLY**
GET/metrics/timespentGet the time spent in each operation. **DB ADMIN ONLY**
POST/manage/backups/new_external_restoreRestore database from external storage
GET/manage/backups/new_external_restore/status/listGet the list of new external restores
POST/manage/backups/new_external_restore/rollforwardTrigger rollforward from an external restore backup
POST/manage/pausecomputePause database resources
DELETE/manage/resumecomputeResume database resources
GET/manage/pause/statusGet pause status of database resources
POST/scaling/requestCreate a scaling request
GET/scaling/resources/infoGet supported scaling ranges and current allocated resources
GET/scaling/historyView scaling history
GET/scaling/instance_typeGet available scaling instance types
GET/scaling/iops_rangesGet available scaling iops ranges
GET/scaling/mcsp_resourcesGet available scaling resources
POST/scaling/mcsp_requestCreate a scaling request (old path)
POST/sql_jobsExecutes SQL statements
GET/sql_jobs/{id}Fetches partial results of a SQL job execution
POST/sql_query_exportReturns the results of a SQL query to CSV
GET/db2audit/versionGet db2audit version
GET/db2audit/aliasGet db2audit alias
POST/db2audit/install_v3Install Db2 Audit Facility V3
GET/aboutGet system information
GET/tasks/statusGet tasks status
GET/usersReturns the list of users
POST/usersCreates a new user. **PLATFORM ADMIN ONLY**
GET/users/{id}Get a specific user by ID
PUT/users/{id}Updates an existing user **PLATFORM ADMIN ONLY**
DELETE/users/{id}Deletes an existing user **PLATFORM ADMIN ONLY**
PUT/users/{id}/lockLocks a user account indefinitely. **PLATFORM ADMIN ONLY**
PUT/users/{id}/unlockUnlocks a user account **PLATFORM ADMIN ONLY**
POST/schema_discoveryAnalyzes CSV data to return a list of value data types