diff --git a/api-ref/source/api_overview.rst b/api-ref/source/api_overview.rst index bf739b6..412e8bf 100644 --- a/api-ref/source/api_overview.rst +++ b/api-ref/source/api_overview.rst @@ -7,28 +7,26 @@ API Overview With GaussDB(for MySQL) APIs, you can query, set, and modify resource quotas. -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Type | Description | -+===================================+====================================================================================================================================================================================================================+ -| DB engine version query | Query the DB version information of a specified DB engine. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| DB specifications query | Query the DB specifications of a specified DB engine version. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| DB instance management | Create instances, query instance lists, query instance details, delete instances, create read replicas, delete read replicas, change instance names, reset database passwords, and change instance specifications. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Backup management | Create manual backups, query backup lists, query automated backup policies, and modify automated backup policies. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Parameter template management | Query parameter templates. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Quota management | Query, set, and modify resource quotas. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Database proxy | Query database proxy information and specifications, and enable or disable database proxy. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Log management | Obtain log information, including database error logs and slow logs. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Tag management | Manage tags, including adding tags in batches, deleting tags in batches, and querying project tags. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| SQL statement concurrency control | Query, configure and delete concurrency control rules of SQL statements. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Task center | Obtain task information about the task center. | -+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Type | Description | ++===============================+====================================================================================================================================================================================================================+ +| DB engine version query | Query the DB version information of a specified DB engine. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| DB specifications query | Query the DB specifications of a specified DB engine version. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| DB instance management | Create instances, query instance lists, query instance details, delete instances, create read replicas, delete read replicas, change instance names, reset database passwords, and change instance specifications. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Backup management | Create manual backups, query backup lists, query automated backup policies, and modify automated backup policies. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Parameter template management | Query parameter templates. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Quota management | Query, set, and modify resource quotas. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Database proxy | Query database proxy information and specifications, and enable or disable database proxy. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Log management | Obtain log information, including database error logs and slow logs. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Tag management | Manage tags, including adding tags in batches, deleting tags in batches, and querying project tags. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Task center | Obtain task information about the task center. | ++-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ diff --git a/api-ref/source/apis_recommended/index.rst b/api-ref/source/apis_recommended/index.rst index f93a766..6600034 100644 --- a/api-ref/source/apis_recommended/index.rst +++ b/api-ref/source/apis_recommended/index.rst @@ -14,7 +14,6 @@ APIs (Recommended) - :ref:`Database Proxy ` - :ref:`Log Management ` - :ref:`Tag Management ` -- :ref:`SQL Statement Concurrency Control ` - :ref:`Task Center ` .. toctree:: @@ -30,5 +29,4 @@ APIs (Recommended) database_proxy/index log_management/index tag_management/index - sql_statement_concurrency_control/index task_center/index diff --git a/api-ref/source/apis_recommended/sql_statement_concurrency_control/configuring_concurrency_control_rules_of_sql_statements.rst b/api-ref/source/apis_recommended/sql_statement_concurrency_control/configuring_concurrency_control_rules_of_sql_statements.rst deleted file mode 100644 index a61e574..0000000 --- a/api-ref/source/apis_recommended/sql_statement_concurrency_control/configuring_concurrency_control_rules_of_sql_statements.rst +++ /dev/null @@ -1,196 +0,0 @@ -:original_name: SetSqlFilterRule.html - -.. _SetSqlFilterRule: - -Configuring Concurrency Control Rules of SQL Statements -======================================================= - -Function --------- - -This API is used to configure concurrency control rules of SQL statements. Before calling this API: - -- Learn how to :ref:`authorize and authenticate ` it. -- Obtain the required :ref:`region and endpoint `. - -URI ---- - -PUT /v3/{project_id}/instances/{instance_id}/sql-filter/rules - -.. table:: **Table 1** URI parameters - - +-----------------+-----------------+-----------------+----------------------------------------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +=================+=================+=================+============================================================================+ - | project_id | Yes | String | Project ID of a tenant in a region. | - | | | | | - | | | | To obtain this value, see :ref:`Obtaining a Project ID `. | - +-----------------+-----------------+-----------------+----------------------------------------------------------------------------+ - | instance_id | Yes | String | DB instance ID. | - +-----------------+-----------------+-----------------+----------------------------------------------------------------------------+ - -Request Parameters ------------------- - -.. table:: **Table 2** Request header parameters - - ============ ========= ====== =========== - Parameter Mandatory Type Description - ============ ========= ====== =========== - X-Auth-Token Yes String User token. - X-Language No String Language. - ============ ========= ====== =========== - -.. table:: **Table 3** Request body parameters - - +------------------+-----------+------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +==================+===========+==============================================================================================================================+========================================================+ - | sql_filter_rules | Yes | Array of :ref:`NodeSqlFilterRuleInfo ` objects | Concurrency control rules of SQL statements for nodes. | - +------------------+-----------+------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+ - -.. _setsqlfilterrule__en-us_topic_0000001374871969_request_nodesqlfilterruleinfo: - -.. table:: **Table 4** NodeSqlFilterRuleInfo - - +-----------+-----------+----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +===========+===========+======================================================================================================================+=====================================================================================+ - | node_id | Yes | String | Node ID. | - +-----------+-----------+----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ - | rules | Yes | Array of :ref:`NodeSqlFilterRule ` objects | Concurrency control rules of SQL statements. The **sql_type** value must be unique. | - +-----------+-----------+----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ - -.. _setsqlfilterrule__en-us_topic_0000001374871969_request_nodesqlfilterrule: - -.. table:: **Table 5** NodeSqlFilterRule - - +-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +=================+=================+====================================================================================================================================+==============================================+ - | sql_type | Yes | String | SQL statement type. | - | | | | | - | | | | Valid value: | - | | | | | - | | | | - SELECT | - | | | | - UPDATE | - | | | | - DELETE | - +-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - | patterns | Yes | Array of :ref:`NodeSqlFilterRulePattern ` objects | Concurrency control rules of SQL statements. | - +-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - -.. _setsqlfilterrule__en-us_topic_0000001374871969_request_nodesqlfilterrulepattern: - -.. table:: **Table 6** NodeSqlFilterRulePattern - - +-----------------+-----------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +=================+===========+=========+================================================================================================================================================================================================================================================================================+ - | pattern | Yes | String | A concurrency control rule of SQL statements. A rule can consist of up to 128 keywords. The keywords are separated by tildes (~), for example, **select~from~t1**. The rule cannot contain backslashes (\\), commas (,), or double tildes (~~). It cannot end with tildes (~). | - +-----------------+-----------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | max_concurrency | Yes | Integer | Maximum number of concurrent SQL statements. Value: a non-negative integer. | - +-----------------+-----------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - -Response Parameters -------------------- - -**Status code: 200** - -.. table:: **Table 7** Response body parameters - - +-----------+--------+-----------------------------------------------------------------------------+ - | Parameter | Type | Description | - +===========+========+=============================================================================+ - | job_id | String | ID of the task for configuring concurrency control rules of SQL statements. | - +-----------+--------+-----------------------------------------------------------------------------+ - -**Status code: 400** - -.. table:: **Table 8** Response body parameters - - ========== ====== ============== - Parameter Type Description - ========== ====== ============== - error_code String Error code. - error_msg String Error message. - ========== ====== ============== - -**Status code: 500** - -.. table:: **Table 9** Response body parameters - - ========== ====== ============== - Parameter Type Description - ========== ====== ============== - error_code String Error code. - error_msg String Error message. - ========== ====== ============== - -Example Request ---------------- - -Configuring concurrency control rules of SQL statements - -.. code-block:: - - PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instance/af315b8e6aaa41799bd9a31f2de15abcin07/sql-filter/rules - { - "sql_filter_rules" : [ { - "node_id" : "c01a5645eb2c4fb6a9373542f5366e50no07", - "rules" : [ { - "sql_type" : "SELECT", - "patterns" : [ { - "pattern" : "select~from~t1", - "max_concurrency" : 0 - }, { - "pattern" : "select~from~t3~where~id", - "max_concurrency" : 10 - } ] - }, { - "sql_type" : "UPDATE", - "patterns" : [ { - "pattern" : "update~t3~where~id", - "max_concurrency" : 10 - } ] - } ] - }, { - "node_id" : "b234a5645eb2c4ji3b9372342f5362397no07", - "rules" : [ { - "sql_type" : "SELECT", - "patterns" : [ { - "pattern" : "select~from~t3~where~id", - "max_concurrency" : 10 - } ] - }, { - "sql_type" : "DELETE", - "patterns" : [ { - "pattern" : "delete~t3~where~id", - "max_concurrency" : 10 - } ] - } ] - } ] - } - -Example Response ----------------- - -**Status code: 200** - -Success. - -.. code-block:: - - { - "job_id" : "aef6a470-fb63-4d5b-b644-12ead7e019b3" - } - -Status Code ------------ - -For details, see :ref:`Status Codes `. - -Error Code ----------- - -For details, see :ref:`Error Codes `. diff --git a/api-ref/source/apis_recommended/sql_statement_concurrency_control/deleting_concurrency_control_rules_of_sql_statements.rst b/api-ref/source/apis_recommended/sql_statement_concurrency_control/deleting_concurrency_control_rules_of_sql_statements.rst deleted file mode 100644 index 6702b08..0000000 --- a/api-ref/source/apis_recommended/sql_statement_concurrency_control/deleting_concurrency_control_rules_of_sql_statements.rst +++ /dev/null @@ -1,169 +0,0 @@ -:original_name: DeleteSqlFilterRule.html - -.. _DeleteSqlFilterRule: - -Deleting Concurrency Control Rules of SQL Statements -==================================================== - -Function --------- - -This API is used to delete concurrency control rules of SQL statements. Before calling this API: - -- Learn how to :ref:`authorize and authenticate ` it. -- Obtain the required :ref:`region and endpoint `. - -URI ---- - -DELETE /v3/{project_id}/instances/{instance_id}/sql-filter/rules - -.. table:: **Table 1** URI parameters - - +-----------------+-----------------+-----------------+----------------------------------------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +=================+=================+=================+============================================================================+ - | project_id | Yes | String | Project ID of a tenant in a region. | - | | | | | - | | | | To obtain this value, see :ref:`Obtaining a Project ID `. | - +-----------------+-----------------+-----------------+----------------------------------------------------------------------------+ - | instance_id | Yes | String | DB instance ID. | - +-----------------+-----------------+-----------------+----------------------------------------------------------------------------+ - -Request Parameters ------------------- - -.. table:: **Table 2** Request header parameters - - ============ ========= ====== =========== - Parameter Mandatory Type Description - ============ ========= ====== =========== - X-Auth-Token Yes String User token. - X-Language No String Language. - ============ ========= ====== =========== - -.. table:: **Table 3** Request body parameters - - +------------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +==================+===========+=============================================================================================================================================+========================================================+ - | sql_filter_rules | Yes | Array of :ref:`DeleteNodeSqlFilterRuleInfo ` objects | Concurrency control rules of SQL statements for nodes. | - +------------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+ - -.. _deletesqlfilterrule__en-us_topic_0000001323271972_request_deletenodesqlfilterruleinfo: - -.. table:: **Table 4** DeleteNodeSqlFilterRuleInfo - - +-----------+-----------+-------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +===========+===========+=====================================================================================================================================+==============================================+ - | node_id | Yes | String | Node ID. | - +-----------+-----------+-------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - | rules | Yes | Array of :ref:`DeleteNodeSqlFilterRule ` objects | Concurrency control rules of SQL statements. | - +-----------+-----------+-------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - -.. _deletesqlfilterrule__en-us_topic_0000001323271972_request_deletenodesqlfilterrule: - -.. table:: **Table 5** DeleteNodeSqlFilterRule - - +-----------------+-----------------+------------------+----------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +=================+=================+==================+==============================================+ - | sql_type | Yes | String | SQL statement type. | - | | | | | - | | | | Valid value: | - | | | | | - | | | | - SELECT | - | | | | - UPDATE | - | | | | - DELETE | - +-----------------+-----------------+------------------+----------------------------------------------+ - | patterns | Yes | Array of strings | Concurrency control rules of SQL statements. | - +-----------------+-----------------+------------------+----------------------------------------------+ - -Response Parameters -------------------- - -**Status code: 200** - -.. table:: **Table 6** Response body parameters - - +-----------+--------+--------------------------------------------------------------------------+ - | Parameter | Type | Description | - +===========+========+==========================================================================+ - | job_id | String | ID of the task for deleting concurrency control rules of SQL statements. | - +-----------+--------+--------------------------------------------------------------------------+ - -**Status code: 400** - -.. table:: **Table 7** Response body parameters - - ========== ====== ============== - Parameter Type Description - ========== ====== ============== - error_code String Error code. - error_msg String Error message. - ========== ====== ============== - -**Status code: 500** - -.. table:: **Table 8** Response body parameters - - ========== ====== ============== - Parameter Type Description - ========== ====== ============== - error_code String Error code. - error_msg String Error message. - ========== ====== ============== - -Example Request ---------------- - -Deleting concurrency control rules of SQL statements - -.. code-block:: text - - DELETE https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instance/af315b8e6aaa41799bd9a31f2de15abcin07/sql-filter/rules - { - "sql_filter_rules" : [ { - "node_id" : "c01a5645eb2c4fb6a9373542f5366e50no07", - "rules" : [ { - "sql_type" : "SELECT", - "patterns" : [ "select~from~t1", "select~from~t2" ] - }, { - "sql_type" : "UPDATE", - "patterns" : [ "udpate~t3~where~id" ] - } ] - }, { - "node_id" : "b234a5645eb2c4ji3b9372342f5362397no07", - "rules" : [ { - "sql_type" : "SELECT", - "patterns" : [ "select~from~t1", "select~from~t2" ] - }, { - "sql_type" : "DELETE", - "patterns" : [ "delete~t3~where~id" ] - } ] - } ] - } - -Example Response ----------------- - -**Status code: 200** - -Success. - -.. code-block:: - - { - "job_id" : "aef6a470-fb63-4d5b-b644-12ead7e019b3" - } - -Status Code ------------ - -For details, see :ref:`Status Codes `. - -Error Code ----------- - -For details, see :ref:`Error Codes `. diff --git a/api-ref/source/apis_recommended/sql_statement_concurrency_control/index.rst b/api-ref/source/apis_recommended/sql_statement_concurrency_control/index.rst deleted file mode 100644 index a6f0a54..0000000 --- a/api-ref/source/apis_recommended/sql_statement_concurrency_control/index.rst +++ /dev/null @@ -1,18 +0,0 @@ -:original_name: topic_300000012.html - -.. _topic_300000012: - -SQL Statement Concurrency Control -================================= - -- :ref:`Configuring Concurrency Control Rules of SQL Statements ` -- :ref:`Querying Concurrency Control Rules of SQL Statements ` -- :ref:`Deleting Concurrency Control Rules of SQL Statements ` - -.. toctree:: - :maxdepth: 1 - :hidden: - - configuring_concurrency_control_rules_of_sql_statements - querying_concurrency_control_rules_of_sql_statements - deleting_concurrency_control_rules_of_sql_statements diff --git a/api-ref/source/apis_recommended/sql_statement_concurrency_control/querying_concurrency_control_rules_of_sql_statements.rst b/api-ref/source/apis_recommended/sql_statement_concurrency_control/querying_concurrency_control_rules_of_sql_statements.rst deleted file mode 100644 index c2a9c1c..0000000 --- a/api-ref/source/apis_recommended/sql_statement_concurrency_control/querying_concurrency_control_rules_of_sql_statements.rst +++ /dev/null @@ -1,176 +0,0 @@ -:original_name: ShowSqlFilterRule.html - -.. _ShowSqlFilterRule: - -Querying Concurrency Control Rules of SQL Statements -==================================================== - -Function --------- - -This API is used to query concurrency control rules of SQL statements. Before calling this API: - -- Learn how to :ref:`authorize and authenticate ` it. -- Obtain the required :ref:`region and endpoint `. - -URI ---- - -GET /v3/{project_id}/instances/{instance_id}/sql-filter/rules?node_id={node_id} - -.. table:: **Table 1** URI parameters - - +-----------------+-----------------+-----------------+----------------------------------------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +=================+=================+=================+============================================================================+ - | project_id | Yes | String | Project ID of a tenant in a region. | - | | | | | - | | | | To obtain this value, see :ref:`Obtaining a Project ID `. | - +-----------------+-----------------+-----------------+----------------------------------------------------------------------------+ - | instance_id | Yes | String | DB instance ID. | - +-----------------+-----------------+-----------------+----------------------------------------------------------------------------+ - -.. table:: **Table 2** Query parameters - - +-----------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Parameter | Mandatory | Type | Description | - +===========+===========+========+=======================================================================================================================================================================================================+ - | node_id | Yes | String | Node ID. | - +-----------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | type | No | String | SQL statement type. The value can be **SELECT**, **UPDATE**, and **DELETE** (case-insensitive). If this parameter is not specified, concurrency control rules of all types of statements are queried. | - +-----------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - -Request Parameters ------------------- - -.. table:: **Table 3** Request header parameters - - ============ ========= ====== =========== - Parameter Mandatory Type Description - ============ ========= ====== =========== - X-Auth-Token Yes String User token. - X-Language No String Language. - ============ ========= ====== =========== - -Response Parameters -------------------- - -**Status code: 200** - -.. table:: **Table 4** Response body parameters - - +------------------+----------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - | Parameter | Type | Description | - +==================+================================================================================================================+==============================================+ - | node_id | String | Node ID. | - +------------------+----------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - | sql_filter_rules | Array of :ref:`SqlFilterRule ` objects | Concurrency control rules of SQL statements. | - +------------------+----------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - -.. _showsqlfilterrule__en-us_topic_0000001323591588_response_sqlfilterrule: - -.. table:: **Table 5** SqlFilterRule - - +-----------------------+------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - | Parameter | Type | Description | - +=======================+==============================================================================================================================+==============================================+ - | sql_type | String | SQL statement type. | - | | | | - | | | Valid value: | - | | | | - | | | - SELECT | - | | | - UPDATE | - | | | - DELETE | - +-----------------------+------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - | patterns | Array of :ref:`SqlFilterRulePattern ` objects | Concurrency control rules of SQL statements. | - +-----------------------+------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------+ - -.. _showsqlfilterrule__en-us_topic_0000001323591588_response_sqlfilterrulepattern: - -.. table:: **Table 6** SqlFilterRulePattern - - =============== ======= ============================================= - Parameter Type Description - =============== ======= ============================================= - pattern String A concurrency control rule of SQL statements. - max_concurrency Integer Maximum number of concurrent SQL statements. - =============== ======= ============================================= - -**Status code: 400** - -.. table:: **Table 7** Response body parameters - - ========== ====== ============== - Parameter Type Description - ========== ====== ============== - error_code String Error code. - error_msg String Error message. - ========== ====== ============== - -**Status code: 500** - -.. table:: **Table 8** Response body parameters - - ========== ====== ============== - Parameter Type Description - ========== ====== ============== - error_code String Error code. - error_msg String Error message. - ========== ====== ============== - -Example Request ---------------- - -Querying concurrency control rules of SQL statements - -.. code-block:: text - - GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instance/af315b8e6aaa41799bd9a31f2de15abcin07/sql-filter/rules?node_id=c01a5645eb2c4fb6a9373542f5366e50no07 - -Example Response ----------------- - -**Status code: 200** - -Success. - -.. code-block:: - - { - "node_id" : "c01a5645eb2c4fb6a9373542f5366e50no07", - "sql_filter_rules" : [ { - "sql_type" : "SELECT", - "patterns" : [ { - "pattern" : "select~from~t1", - "max_concurrency" : 0 - }, { - "pattern" : "select~from~t2~where~id", - "max_concurrency" : 10 - } ] - }, { - "sql_type" : "UDPATE", - "patterns" : [ { - "pattern" : "update~t1", - "max_concurrency" : 0 - }, { - "pattern" : "update~t2~where~id", - "max_concurrency" : 10 - } ] - }, { - "sql_type" : "DELETE", - "patterns" : [ { - "pattern" : "delete~from", - "max_concurrency" : 0 - } ] - } ] - } - -Status Code ------------ - -For details, see :ref:`Status Codes `. - -Error Code ----------- - -For details, see :ref:`Error Codes `. diff --git a/api-ref/source/change_history.rst b/api-ref/source/change_history.rst index 490dc68..4c65fa0 100644 --- a/api-ref/source/change_history.rst +++ b/api-ref/source/change_history.rst @@ -8,6 +8,14 @@ Change History +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | Released On | Description | +===================================+===========================================================================================================================+ +| 2023-07-12 | Modified the following content: | +| | | +| | Delete the following APIs: | +| | | +| | - Configuring Concurrency Control Rules of SQL Statements | +| | - Querying Concurrency Control Rules of SQL Statements | +| | - Deleting Concurrency Control Rules of SQL Statements | ++-----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | 2023-04-06 | Modified the following content: | | | | | | - Deleted the **backup_level** parameter in :ref:`Querying Backups `. | @@ -15,40 +23,42 @@ Change History +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | 2022-11-30 | Modified the following content: | | | | -| | - Added :ref:`Querying Version Information About a DB Engine `. | -| | - Added :ref:`Querying Database Specifications `. | -| | - Added :ref:`Deleting a DB Instance `. | -| | - Added :ref:`Querying Details of a DB Instance `. | -| | - Added :ref:`Creating a Read Replica `. | -| | - Added :ref:`Deleting a Read Replica `. | -| | - Added :ref:`Changing a DB Instance Name `. | -| | - Added :ref:`Resetting a Database Password `. | -| | - Added :ref:`Changing DB Instance Specifications `. | -| | - Added :ref:`Creating a Manual Backup `. | -| | - Added :ref:`Querying Backups `. | -| | - Added :ref:`Querying an Automated Backup Policy `. | -| | - Added :ref:`Modifying an Automated Backup Policy `. | -| | - Added :ref:`Querying Parameter Templates `. | -| | - Added :ref:`Querying Resource Quotas `. | -| | - Added :ref:`Configuring Resource Quotas `. | -| | - Added :ref:`Modifying Resource Quotas `. | -| | - Added :ref:`Querying the DB Instance Quotas of a Tenant `. | -| | - Added :ref:`Querying Database Proxy Specifications `. | -| | - Added :ref:`Enabling Database Proxy `. | -| | - Added :ref:`Disabling Database Proxy `. | -| | - Added :ref:`Adding Database Proxy Nodes `. | -| | - Added :ref:`Querying Database Proxy Instances `. | -| | - Added :ref:`Changing Specifications of a Database Proxy Instance `. | -| | - Added :ref:`Assigning Read Weights `. | -| | - Added :ref:`Querying Database Error Logs `. | -| | - Added :ref:`Querying Database Slow Logs `. | -| | - Added :ref:`Querying Resource Tags `. | -| | - Added :ref:`Querying Project Tags `. | -| | - Added :ref:`Adding or Deleting Tags in Batches `. | -| | - Added :ref:`Configuring Concurrency Control Rules of SQL Statements `. | -| | - Added :ref:`Querying Concurrency Control Rules of SQL Statements `. | -| | - Added :ref:`Deleting Concurrency Control Rules of SQL Statements `. | -| | - Added :ref:`Obtaining Information About a Task with a Specified ID `. | +| | Added the following APIs: | +| | | +| | - :ref:`Querying Version Information About a DB Engine ` | +| | - :ref:`Querying Database Specifications ` | +| | - :ref:`Deleting a DB Instance ` | +| | - :ref:`Querying Details of a DB Instance ` | +| | - :ref:`Creating a Read Replica ` | +| | - :ref:`Deleting a Read Replica ` | +| | - :ref:`Changing a DB Instance Name ` | +| | - :ref:`Resetting a Database Password ` | +| | - :ref:`Changing DB Instance Specifications ` | +| | - :ref:`Creating a Manual Backup ` | +| | - :ref:`Querying Backups ` | +| | - :ref:`Querying an Automated Backup Policy ` | +| | - :ref:`Modifying an Automated Backup Policy ` | +| | - :ref:`Querying Parameter Templates ` | +| | - :ref:`Querying Resource Quotas ` | +| | - :ref:`Configuring Resource Quotas ` | +| | - :ref:`Modifying Resource Quotas ` | +| | - :ref:`Querying the DB Instance Quotas of a Tenant ` | +| | - :ref:`Querying Database Proxy Specifications ` | +| | - :ref:`Enabling Database Proxy ` | +| | - :ref:`Disabling Database Proxy ` | +| | - :ref:`Adding Database Proxy Nodes ` | +| | - :ref:`Querying Database Proxy Instances ` | +| | - :ref:`Changing Specifications of a Database Proxy Instance ` | +| | - :ref:`Assigning Read Weights ` | +| | - :ref:`Querying Database Error Logs ` | +| | - :ref:`Querying Database Slow Logs ` | +| | - :ref:`Querying Resource Tags ` | +| | - :ref:`Querying Project Tags ` | +| | - :ref:`Adding or Deleting Tags in Batches ` | +| | - :ref:`Obtaining Information About a Task with a Specified ID ` | +| | - Configuring Concurrency Control Rules of SQL Statements | +| | - Querying Concurrency Control Rules of SQL Statements | +| | - Deleting Concurrency Control Rules of SQL Statements | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | 2020-12-09 | Modified the following content: | | | |