Update content

This commit is contained in:
OpenTelekomCloud Proposal Bot 2023-06-01 01:55:40 +00:00
parent 684098bb12
commit 89d4a22a4d
55 changed files with 969 additions and 787 deletions

View File

@ -7,24 +7,28 @@ 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. |
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Task information query | Obtain task information about the task center. |
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 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. |
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 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. |
+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

View File

@ -2,8 +2,8 @@
.. _gaussdb_03_0000:
Calling APIs
============
API Usage Guidelines
====================
- :ref:`Making an API Request <gaussdb_03_0005>`
- :ref:`Authentication <gaussdb_03_0001>`

View File

@ -36,7 +36,7 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========
@ -45,7 +45,7 @@ Request Parameters
+-------------+-----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=============+===========+========+===================================================================================================================================================================================+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-------------+-----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| name | Yes | String | Backup name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). |
+-------------+-----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@ -104,7 +104,7 @@ Response Parameters
| | | |
| | | manual |
+-----------------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
| instance_id | String | Instance ID. |
| instance_id | String | DB instance ID. |
+-----------------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
**Status code: 400**
@ -134,7 +134,7 @@ Example Request
Creating a Manual Backup
.. code-block:: text
.. code-block::
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/backups/create
{
@ -160,7 +160,7 @@ Success.
"begin_time" : "2020-07-07T01:17:05+0800",
"status" : "BUILDING",
"type" : "manual",
"instance_id" : "ef25188419f941309882d2986b2210b9in07"
"instance_id" : "07033b125fd94a8a96896f8bcfee6ddain07"
},
"job_id" : "e0fbbfc8-1ac4-4721-b9e9-7dd685c5bdd7"
}

View File

@ -27,7 +27,7 @@ GET /v3/{project_id}/instances/{instance_id}/backups/policy
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters

View File

@ -33,7 +33,7 @@ GET /v3/{project_id}/backups
+-----------------+-----------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+=======================================================================================================================================================================================================================================+
| instance_id | No | String | Instance ID. |
| instance_id | No | String | DB instance ID. |
+-----------------+-----------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| backup_id | No | String | Backup ID. |
+-----------------+-----------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@ -60,7 +60,7 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========
@ -124,7 +124,7 @@ Response Parameters
+-----------------------+-------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| datastore | :ref:`MysqlDatastore <gaussdb_06_0004__response_mysqldatastore>` object | Database information. |
+-----------------------+-------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| instance_id | String | Instance ID. |
| instance_id | String | DB instance ID. |
+-----------------------+-------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| description | String | Description of the backup file. |
+-----------------------+-------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@ -183,10 +183,10 @@ Success.
{
"backups" : [ {
"id" : "1fe4feaab48f11e6654hfa163eba87e4b66u",
"id" : "c0c9f155c7b7423a9d30f0175998b63bbr01",
"name" : "GaussDBforMySQL-gauss-e747-20200705185048266",
"begin_time" : "2018-08-06T12:41:14+0800",
"end_time" : "2018-08-06T12:45:14+0800",
"begin_time" : "2020-07-06T10:41:14",
"end_time" : "2020-07-16T10:41:14+0800",
"take_up_time" : 2,
"status" : "COMPLETED",
"type" : "auto",
@ -195,7 +195,7 @@ Success.
"type" : "gaussdb-mysql",
"version" : "8.0"
},
"instance_id" : "43e4feaab48f11e89039fa163ebaa7e4br01"
"instance_id" : "c0c9f155c7b7423a9d30f0175998b63bbr01"
} ],
"total_count" : 1

View File

@ -28,7 +28,7 @@ POST /v3/{project_id}/instances/{instance_id}/proxy/enlarge
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters
@ -91,7 +91,7 @@ Response Parameters
Example Request
---------------
.. code-block:: text
.. code-block::
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/61a4ea66210545909d74a05c27a7179ein07/proxy/enlarge
{

View File

@ -25,7 +25,7 @@ PUT /v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/weight
+=============+===========+========+=============================================================+
| project_id | Yes | String | Project ID of a tenant in a region. |
+-------------+-----------+--------+-------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-------------+-----------+--------+-------------------------------------------------------------+
| proxy_id | Yes | String | Database proxy ID, which is compliant with the UUID format. |
+-------------+-----------+--------+-------------------------------------------------------------+
@ -101,7 +101,7 @@ Response Parameters
Example Request
---------------
.. code-block:: text
.. code-block::
PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/e73893ef73754465a8bd2e0857bbf13ein07/proxy/e87088f0b6a345e79db19d57c41fde15po01/weight
{

View File

@ -27,7 +27,7 @@ PUT /v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/flavor
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| proxy_id | Yes | String | Database proxy ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
@ -90,11 +90,11 @@ Response Parameters
Example Request
---------------
.. code-block:: text
.. code-block::
PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/61a4ea66210545909d74a05c27a7179ein07/proxy/e87088f0b6a345e79db19d57c41fde15po01/flavor
{
"flavor_ref" : "gaussdb.proxy.xlarge.arm.2"
"flavor_ref" :gaussdb.proxy.xlarge.x86.2
}
Example Response

View File

@ -28,7 +28,7 @@ DELETE /v3/{project_id}/instances/{instance_id}/proxy
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters

View File

@ -28,7 +28,7 @@ POST /v3/{project_id}/instances/{instance_id}/proxy
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters
@ -45,24 +45,24 @@ Request Parameters
.. table:: **Table 3** Request body parameters
+-------------------+-----------------+----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+===================+=================+==================================================================================+===========================================================================================================================================================================================================================================================+
| flavor_ref | Yes | String | Proxy specification code. |
+-------------------+-----------------+----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| node_num | Yes | Integer | Number of proxy instance nodes. The value is an integer from 2 to 32. |
+-------------------+-----------------+----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| proxy_name | No | String | Proxy instance name. Instances of the same type can have same names under the same tenant. The name consists of 4 to 64 characters and starts with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). |
+-------------------+-----------------+----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| proxy_mode | No | String | Proxy instance type. The default type is **readwrite**. |
| | | | |
| | | | Valid value: |
| | | | |
| | | | - **readwrite** |
| | | | - **readonly** |
+-------------------+-----------------+----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| nodes_read_weight | No | Array of :ref:`NodesWeight <creategaussmysqlproxy__request_nodesweight>` objects | Read weight of the node. |
+-------------------+-----------------+----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-------------------+-----------------+----------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+===================+=================+==================================================================================+==============================================================================================================================================================================================================================================================+
| flavor_ref | Yes | String | Proxy specification code. |
+-------------------+-----------------+----------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| node_num | Yes | Integer | Number of proxy instance nodes. The value is an integer from 2 to 32. |
+-------------------+-----------------+----------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| proxy_name | No | String | Proxy instance name. DB instances of the same type can have same names under the same tenant. The name consists of 4 to 64 characters and starts with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). |
+-------------------+-----------------+----------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| proxy_mode | No | String | Proxy instance type. The default type is **readwrite**. |
| | | | |
| | | | Valid value: |
| | | | |
| | | | - **readwrite** |
| | | | - **readonly** |
+-------------------+-----------------+----------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| nodes_read_weight | No | Array of :ref:`NodesWeight <creategaussmysqlproxy__request_nodesweight>` objects | Read weight of the node. |
+-------------------+-----------------+----------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
.. _creategaussmysqlproxy__request_nodesweight:
@ -114,7 +114,7 @@ Response Parameters
Example Request
---------------
.. code-block:: text
.. code-block::
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/43e4feaab48f11e89039fa163ebaa7e4br01/proxy
{

View File

@ -28,7 +28,7 @@ GET /v3/{project_id}/instances/{instance_id}/proxies
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
.. table:: **Table 2** Query parameters
@ -49,7 +49,7 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========
@ -128,6 +128,8 @@ Response Parameters
+----------------------------+--------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+
| name | String | Proxy instance name. |
+----------------------------+--------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+
| transaction_split | String | Whether the proxy transaction splitting is enabled. Value: **ON** or **OFF**. |
+----------------------------+--------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+
.. _showgaussmysqlproxylist__en-us_topic_0000001216000914_response_mysqlproxynodes:
@ -158,7 +160,7 @@ Response Parameters
+===================+==================================================================================================================================+==========================+
| id | String | Node ID. |
+-------------------+----------------------------------------------------------------------------------------------------------------------------------+--------------------------+
| instance_id | String | Instance ID. |
| instance_id | String | DB instance ID. |
+-------------------+----------------------------------------------------------------------------------------------------------------------------------+--------------------------+
| status | String | Node status. |
+-------------------+----------------------------------------------------------------------------------------------------------------------------------+--------------------------+
@ -237,15 +239,17 @@ Success.
"id" : "db53a238a02240c49365e72e284a4890pn01",
"name" : "PROXY-2e7cf21d14794bafab623a334efd9ad8po01_0",
"role" : "master",
"az_code" : "az1xahz",
"az_code" : "az1",
"status" : "ACTIVE",
"frozen_flag" : 0
} ],
"name" : "proxy-name"
"name" : "proxy-name",
"flavor_ref":"gaussdb.proxy.large.x86.2",
"transaction_split":"OFF"
},
"master_node" : {
"id" : "c01a5645eb2c4fb6a9373542f5366e50no07",
"instance_id" : "7a871d6d494e4327ad2e326afb591108in07",
"instance_id" : "096c0fc43e804757b59946b80dc27f8bin07",
"status" : "ACTIVE",
"name" : "taurus_mysql80_x86-ondemand-2-1U4G_1_202103070251274842281_node01",
"weight" : 0,

View File

@ -28,7 +28,7 @@ GET /v3/{project_id}/instances/{instance_id}/proxy/flavors
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters
@ -39,7 +39,7 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========
@ -60,13 +60,13 @@ Response Parameters
.. table:: **Table 4** MysqlProxyFlavorGroups
+---------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------+
| Parameter | Type | Description |
+===============+================================================================================================================+=========================================================+
| group_type | String | Specification group type. It can be **x86** or **arm**. |
+---------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------+
| proxy_flavors | Array of :ref:`MysqlProxyComputeFlavor <showgaussmysqlproxyflavors__response_mysqlproxycomputeflavor>` objects | Proxy specifications. |
+---------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------+
+---------------+----------------------------------------------------------------------------------------------------------------+----------------------------------------------+
| Parameter | Type | Description |
+===============+================================================================================================================+==============================================+
| group_type | String | Specification group type. It can be **x86**. |
+---------------+----------------------------------------------------------------------------------------------------------------+----------------------------------------------+
| proxy_flavors | Array of :ref:`MysqlProxyComputeFlavor <showgaussmysqlproxyflavors__response_mysqlproxycomputeflavor>` objects | Proxy specifications. |
+---------------+----------------------------------------------------------------------------------------------------------------+----------------------------------------------+
.. _showgaussmysqlproxyflavors__response_mysqlproxycomputeflavor:

View File

@ -16,7 +16,7 @@ This API is used to query database error logs. Before using this API:
URI
---
GET /v3/{project_id}/instances/{instance_id}/errorlog
GET /v3/{project_id}/instances/{instance_id}/errorlog?start_date={start_date}&end_date={end_date}&node_id={node_id}
.. table:: **Table 1** URI parameters
@ -27,7 +27,7 @@ GET /v3/{project_id}/instances/{instance_id}/errorlog
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
.. table:: **Table 2** Query parameters
@ -69,7 +69,7 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========
@ -138,7 +138,7 @@ Example Request
.. code-block:: text
GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/errorlog?offset=0&limit=1&level=ALL&start_date=2022-07-10T00:00:00+0800&end_date=2022-07-19T00:00:00+0800&node_id=cc07c60e94ec4575989840e648fb4f66no07
GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/errorlog?offset=0&limit=1&level=ERROR&start_date=2022-07-10T00:00:00+0800&end_date=2022-07-19T00:00:00+0800&node_id=cc07c60e94ec4575989840e648fb4f66no07
Example Response
----------------
@ -155,7 +155,8 @@ Success.
"time" : "2022-07-17T07:34:33",
"level" : "ERROR",
"content" : "[MY013508] [Repl] do failed: 1"
} ]
} ],
"total_record":1
}
Status Code

View File

@ -16,7 +16,7 @@ This API is used to query database slow logs. Before using this API:
URI
---
GET /v3/{project_id}/instances/{instance_id}/slowlog
GET /v3/{project_id}/instances/{instance_id}/slowlog?start_date={start_date}&end_date={end_date}&node_id={node_id}
.. table:: **Table 1** URI parameters
@ -27,7 +27,7 @@ GET /v3/{project_id}/instances/{instance_id}/slowlog
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
.. table:: **Table 2** Query parameters
@ -71,7 +71,7 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========
@ -149,40 +149,26 @@ Example Response
Success.
- Example 1
.. code-block::
.. code-block::
{
"slow_log_list" : [ {
"node_id" : "cc07c60e94ec4575989840e648fb4f66no07",
"count" : 1,
"time" : "1.04899 s",
"lock_time" : "0.00003 s",
"rows_sent" : 0,
"rows_examined" : 0,
"database" : "gaussdb-mysql",
"users" : "root",
"query_sample" : "INSERT INTO time_zone_name (Name, Time_zone_id) VALUES (N @time_zone_id);",
"type" : "INSERT",
"start_time" : "2121-03-25T10:55:16.000Z",
"client_ip" : "192.*.*.1"
} ],
"long_query_time" : 10,
"total_record" : 15
}
- Example 2
.. code-block::
10
- Example 3
.. code-block::
15
{
"slow_log_list" : [ {
"node_id" : "cc07c60e94ec4575989840e648fb4f66no07",
"count" : 1,
"time" : "1.04899 s",
"lock_time" : "0.00003 s",
"rows_sent" : 0,
"rows_examined" : 0,
"database" : "gaussdb-mysql",
"users" : "root",
"query_sample" : "INSERT INTO time_zone_name (Name, Time_zone_id) VALUES (N @time_zone_id);",
"type" : "INSERT",
"start_time" : "2022-07-11T00:00:00+0800",
"client_ip" : "192.*.*.1"
} ],
"long_query_time" : 10,
"total_record" : 1
}
Status Code
-----------

View File

@ -27,7 +27,7 @@ PUT /v3/{project_id}/instances/{instance_id}/name
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters
@ -38,17 +38,17 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========
.. table:: **Table 3** Request body parameters
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+===========+===========+========+=====================================================================================================================================================================================================================================================+
| name | Yes | String | Instance name. Instances of the same type can have same names under the same tenant. The name consists of 4 to 64 characters and starts with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). |
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+===========+===========+========+===========================================================================================================================================================================================================================================================+
| name | Yes | String | DB instance name. DB instances of the same type can have same names under the same tenant. The name consists of 4 to 64 characters and starts with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). |
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
@ -57,11 +57,11 @@ Response Parameters
.. table:: **Table 4** Response body parameters
========= ====== ======================================
========= ====== ========================================
Parameter Type Description
========= ====== ======================================
job_id String Task ID for changing an instance name.
========= ====== ======================================
========= ====== ========================================
job_id String Task ID for changing a DB instance name.
========= ====== ========================================
**Status code: 400**
@ -90,7 +90,7 @@ Example Request
Changing a DB Instance Name
.. code-block:: text
.. code-block::
PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/name
{

View File

@ -27,7 +27,7 @@ POST /v3/{project_id}/instances/{instance_id}/action
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters

View File

@ -27,7 +27,7 @@ PUT /v3/{project_id}/instances/{instance_id}/monitor-policy
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters
@ -99,7 +99,7 @@ Example Request
Modifying the collection period of Monitoring by Seconds for an instance. The current collection period to 1s.
.. code-block:: text
.. code-block::
PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/monitor-policy
{

View File

@ -27,7 +27,7 @@ POST /v3/{project_id}/instances/{instance_id}/nodes/enlarge
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters
@ -60,7 +60,7 @@ Response Parameters
+-----------------------+-----------------------+-----------------------------------------------------------------------------+
| Parameter | Type | Description |
+=======================+=======================+=============================================================================+
| instance_id | String | Instance ID. |
| instance_id | String | DB instance ID. |
+-----------------------+-----------------------+-----------------------------------------------------------------------------+
| node_names | Array of strings | Node name list |
+-----------------------+-----------------------+-----------------------------------------------------------------------------+
@ -96,7 +96,7 @@ Example Request
Creating a read replica
.. code-block:: text
.. code-block::
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/nodes/enlarge
{

View File

@ -27,7 +27,7 @@ DELETE /v3/{project_id}/instances/{instance_id}
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters

View File

@ -27,7 +27,7 @@ DELETE /v3/{project_id}/instances/{instance_id}/nodes/{node_id}
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| node_id | Yes | String | Node ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
@ -40,7 +40,7 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========

View File

@ -5,8 +5,8 @@
Managing DB Instances
=====================
- :ref:`Creating an Instance <gaussdb_04_0004>`
- :ref:`Querying Instances <gaussdb_04_0005>`
- :ref:`Creating a DB Instance <gaussdb_04_0004>`
- :ref:`Querying DB Instances <gaussdb_04_0005>`
- :ref:`Deleting a DB Instance <gaussdb_04_0007>`
- :ref:`Querying Details of a DB Instance <gaussdb_04_0006>`
- :ref:`Creating a Read Replica <gaussdb_04_0015>`
@ -21,8 +21,8 @@ Managing DB Instances
:maxdepth: 1
:hidden:
creating_an_instance
querying_instances
creating_a_db_instance
querying_db_instances
deleting_a_db_instance
querying_details_of_a_db_instance
creating_a_read_replica

View File

@ -27,7 +27,7 @@ GET /v3/{project_id}/instances/{instance_id}/monitor-policy
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters

View File

@ -27,7 +27,7 @@ POST /v3/{project_id}/instances/{instance_id}/password
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters
@ -38,7 +38,7 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========
@ -80,7 +80,7 @@ Example Request
Resetting a database password
.. code-block:: text
.. code-block::
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/password
{
@ -90,6 +90,10 @@ Resetting a database password
Example Response
----------------
**Status code: 200**
Success.
None
Status Code

View File

@ -52,22 +52,24 @@ Request Parameters
.. table:: **Table 4** setQuota
+-----------------------+-----------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=======================+===========+=========+======================================================================================================================================================================================+
| enterprise_project_id | Yes | String | Enterprise project ID. |
+-----------------------+-----------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| instance_quota | Yes | Integer | Quota of the DB instance quantity. Value: **0** to **100000**. (If there are already instances created, this parameter value must be greater than the number of existing instances.) |
+-----------------------+-----------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| vcpus_quota | Yes | Integer | Quota of vCPUs. Value: **0** to **2147483646**. (If there are already instances created, this parameter value must be greater than the number of used vCPUs.) |
+-----------------------+-----------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ram_quota | Yes | Integer | Memory quota in GB. Value: **0** to **2147483646**. (If there are already instances created, this parameter value must be greater than the used memory size.) |
+-----------------------+-----------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-------------------------+-----------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=========================+===========+=========+=========================================================================================================================================================================================+
| enterprise_project_id | Yes | String | Enterprise project ID. |
+-------------------------+-----------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| enterprise_project_name | Yes | String | Enterprise project name. |
+-------------------------+-----------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| instance_quota | Yes | Integer | Quota of the DB instance quantity. Value: **0** to **100000**. (If there are already DB instances created, this parameter value must be greater than the number of existing instances.) |
+-------------------------+-----------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| vcpus_quota | Yes | Integer | Quota of vCPUs. Value: **0** to **2147483646**. (If there are already DB instances created, this parameter value must be greater than the number of used vCPUs.) |
+-------------------------+-----------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ram_quota | Yes | Integer | Memory quota in GB. Value: **0** to **2147483646**. (If there are already DB instances created, this parameter value must be greater than the used memory size.) |
+-------------------------+-----------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
**Status code: 200**
**Status code: 201**
.. table:: **Table 5** Response body parameters
@ -81,24 +83,26 @@ Response Parameters
.. table:: **Table 6** setQuota
===================== ======= ==================================
Parameter Type Description
===================== ======= ==================================
enterprise_project_id String Enterprise project ID.
instance_quota Integer Quota of the DB instance quantity.
vcpus_quota Integer Quota of vCPUs.
ram_quota Integer Memory quota in GB.
===================== ======= ==================================
======================= ======= ==================================
Parameter Type Description
======================= ======= ==================================
enterprise_project_id String Enterprise project ID.
enterprise_project_name String Enterprise project name.
instance_quota Integer Quota of the DB instance quantity.
vcpus_quota Integer Quota of vCPUs.
ram_quota Integer Memory quota in GB.
======================= ======= ==================================
Example Request
---------------
.. code-block:: text
.. code-block::
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/quotas
{
"quota_list" : [ {
"enterprise_project_id" : "0",
"enterprise_project_name" : "default",
"instance_quota" : 20,
"vcpus_quota" : 20,
"ram_quota" : 40
@ -108,7 +112,7 @@ Example Request
Example Response
----------------
**Status code: 200**
**Status code: 201**
Success.
@ -117,6 +121,7 @@ Success.
{
"quota_list" : [ {
"enterprise_project_id" : "0",
"enterprise_project_name" : "default",
"instance_quota" : 20,
"vcpus_quota" : 20,
"ram_quota" : 40

View File

@ -8,7 +8,7 @@ Quota Management
- :ref:`Querying Resource Quotas <gaussdb_04_0011>`
- :ref:`Configuring Resource Quotas <gaussdb_04_0012>`
- :ref:`Modifying Resource Quotas <gaussdb_04_0013>`
- :ref:`Querying the Instance Quotas of a Tenant <showgaussmysqlprojectquotas>`
- :ref:`Querying the DB Instance Quotas of a Tenant <showgaussmysqlprojectquotas>`
.. toctree::
:maxdepth: 1
@ -17,4 +17,4 @@ Quota Management
querying_resource_quotas
configuring_resource_quotas
modifying_resource_quotas
querying_the_instance_quotas_of_a_tenant
querying_the_db_instance_quotas_of_a_tenant

View File

@ -2,8 +2,8 @@
.. _ShowGaussMySqlProjectQuotas:
Querying the Instance Quotas of a Tenant
========================================
Querying the DB Instance Quotas of a Tenant
===========================================
Function
--------
@ -48,7 +48,7 @@ Request Parameters
============ ========= ====== ===========
Parameter Mandatory Type Description
============ ========= ====== ===========
X-Auth-Token No String User token.
X-Auth-Token Yes String User token.
X-Language No String Language.
============ ========= ====== ===========
@ -79,21 +79,21 @@ Response Parameters
.. table:: **Table 6** resource
+-----------------------+-----------------------+------------------------------------------------+
| Parameter | Type | Description |
+=======================+=======================+================================================+
| type | String | Quota of a specified type. |
| | | |
| | | - **instance**: indicates the instance quota. |
| | | |
| | | Valid value: |
| | | |
| | | - **instance** |
+-----------------------+-----------------------+------------------------------------------------+
| used | Integer | Number of created resources. |
+-----------------------+-----------------------+------------------------------------------------+
| quota | Integer | Maximum resource quota. |
+-----------------------+-----------------------+------------------------------------------------+
+-----------------------+-----------------------+---------------------------------------------------+
| Parameter | Type | Description |
+=======================+=======================+===================================================+
| type | String | Quota of a specified type. |
| | | |
| | | - **instance**: indicates the DB instance quota. |
| | | |
| | | Valid value: |
| | | |
| | | - **instance** |
+-----------------------+-----------------------+---------------------------------------------------+
| used | Integer | Number of created resources. |
+-----------------------+-----------------------+---------------------------------------------------+
| quota | Integer | Maximum resource quota. |
+-----------------------+-----------------------+---------------------------------------------------+
**Status code: 400**

View File

@ -27,7 +27,7 @@ PUT /v3/{project_id}/instances/{instance_id}/sql-filter/rules
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters
@ -132,7 +132,7 @@ Example Request
Configuring concurrency control rules of SQL statements
.. code-block:: text
.. code-block::
PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instance/af315b8e6aaa41799bd9a31f2de15abcin07/sql-filter/rules
{

View File

@ -27,7 +27,7 @@ DELETE /v3/{project_id}/instances/{instance_id}/sql-filter/rules
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters

View File

@ -5,6 +5,7 @@
SQL Statement Concurrency Control
=================================
- :ref:`Querying Whether SQL Statement Concurrency Control Is Enabled <showsqlfiltercontrol>`
- :ref:`Configuring Concurrency Control Rules of SQL Statements <setsqlfilterrule>`
- :ref:`Querying Concurrency Control Rules of SQL Statements <showsqlfilterrule>`
- :ref:`Deleting Concurrency Control Rules of SQL Statements <deletesqlfilterrule>`
@ -13,6 +14,7 @@ SQL Statement Concurrency Control
:maxdepth: 1
:hidden:
querying_whether_sql_statement_concurrency_control_is_enabled
configuring_concurrency_control_rules_of_sql_statements
querying_concurrency_control_rules_of_sql_statements
deleting_concurrency_control_rules_of_sql_statements

View File

@ -16,7 +16,7 @@ This API is used to query concurrency control rules of SQL statements. Before ca
URI
---
GET /v3/{project_id}/instances/{instance_id}/sql-filter/rules
GET /v3/{project_id}/instances/{instance_id}/sql-filter/rules?node_id={node_id}
.. table:: **Table 1** URI parameters
@ -27,7 +27,7 @@ GET /v3/{project_id}/instances/{instance_id}/sql-filter/rules
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
.. table:: **Table 2** Query parameters

View File

@ -27,7 +27,7 @@ POST /v3/{project_id}/instances/{instance_id}/tags/action
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
Request Parameters
@ -100,7 +100,7 @@ Example Request
- Adding tags
.. code-block:: text
.. code-block::
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/tags/action
{
@ -116,7 +116,7 @@ Example Request
- Deleting tags
.. code-block:: text
.. code-block::
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/tags/action
{
@ -132,6 +132,10 @@ Example Request
Example Response
----------------
**Status code: 200**
Success.
None
Status Code

View File

@ -27,7 +27,7 @@ GET /v3/{project_id}/instances/{instance_id}/tags
| | | | |
| | | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
| instance_id | Yes | String | Instance ID. |
| instance_id | Yes | String | DB instance ID. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------+
.. table:: **Table 2** Query parameters

View File

@ -8,7 +8,7 @@ Obtaining Information About a Task with a Specified ID
Function
--------
This API is used to obtain task information from the task center. Before using this API:
This API is used to obtain task information from the task center. Before calling this API:
- Learn how to :ref:`authorize and authenticate <gaussdb_03_0001>` it.
- Obtain the required :ref:`region and endpoint <gaussdb_00_0003>`.
@ -22,7 +22,7 @@ Constraints
URI
---
GET /v3/{project_id}/jobs
GET /v3/{project_id}/jobs?id={id}
.. table:: **Table 1** URI parameters
@ -94,11 +94,15 @@ Response Parameters
+-----------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| created | String | Creation time in the "yyyy-mm-ddThh:mm:ssZ" format. **T** is the separator between the calendar and the hourly notation of time. **Z** indicates the time zone offset. |
| | | |
| | | The value is empty unless the instance creation is complete. |
| | | The value is empty unless the DB instance creation is complete. |
+-----------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ended | String | End time in the "yyyy-mm-ddThh:mm:ssZ" format. **T** is the separator between the calendar and the hourly notation of time. **Z** indicates the time zone offset. |
| | | |
| | | The value is empty unless the DB instance creation is complete. |
+-----------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| process | String | Task execution progress. The execution progress (such as 60%) is displayed only when the task is being executed. Otherwise, **""** is returned. |
+-----------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| instance | :ref:`GetJobInstanceInfoDetail <showgaussmysqljobinfo__response_getjobinstanceinfodetail>` object | Instance information of the task with the specified ID. |
| instance | :ref:`GetJobInstanceInfoDetail <showgaussmysqljobinfo__response_getjobinstanceinfodetail>` object | DB instance information of the task with the specified ID. |
+-----------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| entities | Object | Displayed information varies depending on tasks. |
+-----------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@ -109,12 +113,12 @@ Response Parameters
.. table:: **Table 6** GetJobInstanceInfoDetail
========= ====== ==============
========= ====== =================
Parameter Type Description
========= ====== ==============
id String Instance ID.
name String Instance name.
========= ====== ==============
========= ====== =================
id String DB instance ID.
name String DB instance name.
========= ====== =================
**Status code: 400**
@ -160,7 +164,7 @@ Success.
{
"job" : {
"id" : "31b8ae23-c687-4d80-b7b4-42a66c9bb886",
"id" : "a9767ede-fe0f-4888-9003-e843a4c90514",
"name" : "CreateMysqlInstance",
"status" : "Completed",
"created" : "2018-08-06T10:41:14+0800",

View File

@ -56,7 +56,7 @@ Request Parameters
+-----------------+-----------------+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+==============================================================================================================================================================+
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | String | DB instance ID, which is compliant with the UUID format. |
+-----------------+-----------------+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| name | Yes | String | Backup name. |
| | | | |
@ -108,7 +108,7 @@ Response Parameters
| | | |
| | | **manual**: manual full backup |
+-----------------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
| instance_id | String | Instance ID. |
| instance_id | String | DB instance ID. |
+-----------------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
**Status code: 400**

View File

@ -109,9 +109,9 @@ Response Parameters
| | | - **COMPLETED**: Modification completed |
| | | - **FAILED**: Modification failed |
+-----------------------+-----------------------+-------------------------------------------+
| instance_id | String | Instance ID. |
| instance_id | String | DB instance ID. |
+-----------------------+-----------------------+-------------------------------------------+
| instance_name | String | Instance name. |
| instance_name | String | DB instance name. |
+-----------------------+-----------------------+-------------------------------------------+
**Status code: 400**

View File

@ -58,7 +58,7 @@ Request Parameters
+-----------------+-----------------+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+==============================================================================================================================================================+
| name | Yes | String | Instance name. |
| name | Yes | String | DB instance name. |
| | | | |
| | | | Instances of the same type can have same names under the same tenant. |
| | | | |

View File

@ -67,7 +67,7 @@ Request Parameters
+--------------------------+-----------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| datastore | Yes | :ref:`MysqlDatastore <gaussdb_11_0004__en-us_topic_0000001226682425_request_mysqldatastore>` object | Database information. |
+--------------------------+-----------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| mode | Yes | String | DB instance type, which is case-insensitive. Currently, only the cluster type is supported. |
| mode | Yes | String | DB instance type, which is case-insensitive. Its value is **Cluster**. |
+--------------------------+-----------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| flavor_ref | Yes | String | Specification code. For details, see :ref:`Querying Database Specifications <gaussdb_11_0002>`. |
+--------------------------+-----------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@ -238,17 +238,17 @@ Response Parameters
+--------------------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Type | Description |
+==========================+================================================================================================================+===============================================================================================================================================================+
| id | String | Instance ID. |
| id | String | DB instance ID. |
+--------------------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
| name | String | DB instance name. Instances of the same type can have same names under the same tenant. |
| | | |
| | | The name consists of 4 to 64 characters and starts with a letter. It is case-insensitive and contains only letters, digits, hyphens (-), and underscores (_). |
+--------------------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
| status | String | Instance status. Value: **creating**. |
| status | String | DB instance status. Value: **creating**. |
+--------------------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
| datastore | :ref:`MysqlDatastore <gaussdb_11_0004__en-us_topic_0000001226682425_response_mysqldatastore>` object | Database information. |
+--------------------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
| mode | String | DB instance type. Currently, only the cluster type is supported. |
| mode | String | DB instance type. Currently, Its value is **Cluster**. |
+--------------------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
| configuration_id | String | Parameter template ID. |
+--------------------------+----------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+

View File

@ -35,7 +35,7 @@ URI
| | | |
| | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------------+-----------------------+----------------------------------------------------------------------------+
| instance_id | Yes | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | DB instance ID, which is compliant with the UUID format. |
+-----------------------+-----------------------+----------------------------------------------------------------------------+
Request Parameters

View File

@ -35,7 +35,7 @@ URI
| | | |
| | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------------+-----------------------+----------------------------------------------------------------------------+
| instance_id | Yes | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | DB instance ID, which is compliant with the UUID format. |
+-----------------------+-----------------------+----------------------------------------------------------------------------+
Request Parameters

View File

@ -35,7 +35,7 @@ URI
| | | |
| | | To obtain this value, see :ref:`Obtaining a Project ID <gaussdb_10_0004>`. |
+-----------------------+-----------------------+----------------------------------------------------------------------------+
| instance_id | Yes | Instance ID, which is compliant with the UUID format. |
| instance_id | Yes | DB instance ID, which is compliant with the UUID format. |
+-----------------------+-----------------------+----------------------------------------------------------------------------+
| node_id | Yes | Read-only node ID, which is compliant with the UUID format. |
+-----------------------+-----------------------+----------------------------------------------------------------------------+

View File

@ -43,7 +43,7 @@ URI
| | | | |
| | | | The asterisk (``*``) is reserved for the system. If the instance name starts with an asterisk (``*``), the value following asterisk (``*``) is used for fuzzy matching. Otherwise, the instance name is used for exact matching. |
+-----------------+-----------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| type | String | No | DB instance type to be queried. Currently, only the cluster type is supported. |
| type | String | No | DB instance type to be queried. Its value is **Cluster**. |
+-----------------+-----------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| datastore_type | String | No | DB type. Currently, only gaussdb-mysql is supported. |
+-----------------+-----------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Some files were not shown because too many files have changed in this diff Show More