diff --git a/docs/gaussdb_mysql/api-ref/ALL_META.TXT.json b/docs/gaussdb_mysql/api-ref/ALL_META.TXT.json index 4265abb2f..8e8929e16 100644 --- a/docs/gaussdb_mysql/api-ref/ALL_META.TXT.json +++ b/docs/gaussdb_mysql/api-ref/ALL_META.TXT.json @@ -13,7 +13,7 @@ "uri":"gaussdb_00_0001.html", "product_code":"gaussdb", "code":"2", - "des":"This document describes how to use application programming interfaces (APIs) to perform operations on DB instances. For details about all supported operations, see API Ov", + "des":"GaussDB(for MySQL) is a MySQL-compatible, enterprise-grade distributed database service. It uses a compute-storage decoupled architecture and supports up to 128 TB of sto", "doc_type":"api", "kw":"Overview,Before You Start,API Reference", "title":"Overview", @@ -23,7 +23,7 @@ "uri":"gaussdb_00_0002.html", "product_code":"gaussdb", "code":"3", - "des":"GaussDB(for MySQL) supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.", + "des":"GaussDB(for MySQL) supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see API Usage Guidelines.", "doc_type":"api", "kw":"API Calling,Before You Start,API Reference", "title":"API Calling", @@ -75,8 +75,8 @@ "code":"8", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Calling APIs", - "title":"Calling APIs", + "kw":"API Usage Guidelines", + "title":"API Usage Guidelines", "githuburl":"" }, { @@ -85,7 +85,7 @@ "code":"9", "des":"This section describes the structure of a REST API, and uses the IAM API for obtaining a user token as an example to describe how to call an API. The obtained token is us", "doc_type":"api", - "kw":"Making an API Request,Calling APIs,API Reference", + "kw":"Making an API Request,API Usage Guidelines,API Reference", "title":"Making an API Request", "githuburl":"" }, @@ -95,7 +95,7 @@ "code":"10", "des":"Token authentication must be performed to call APIs.Authentication using tokens: General requests are authenticated using tokens.The validity period of a token is 24 hour", "doc_type":"api", - "kw":"Authentication,Calling APIs,API Reference", + "kw":"Authentication,API Usage Guidelines,API Reference", "title":"Authentication", "githuburl":"" }, @@ -105,7 +105,7 @@ "code":"11", "des":"After sending a request, you will receive a response, including the status code, response header, and response body.A status code is a group of digits ranging from 1xx to", "doc_type":"api", - "kw":"Response,Calling APIs,API Reference", + "kw":"Response,API Usage Guidelines,API Reference", "title":"Response", "githuburl":"" }, @@ -115,17 +115,17 @@ "code":"12", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"API", - "title":"API", + "kw":"APIs (Recommended)", + "title":"APIs (Recommended)", "githuburl":"" }, { "uri":"gaussdb_04_0001.html", "product_code":"gaussdb", "code":"13", - "des":"This API is used to query the DB version information of a specified DB engine.Learn how to authorize and authenticate this API before using it.Before calling this API, ob", + "des":"This API is used to query the version information of a specified DB engine. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region ", "doc_type":"api", - "kw":"Querying Version Information About a DB Engine,API,API Reference", + "kw":"Querying Version Information About a DB Engine,APIs (Recommended),API Reference", "title":"Querying Version Information About a DB Engine", "githuburl":"" }, @@ -133,9 +133,9 @@ "uri":"gaussdb_04_0002.html", "product_code":"gaussdb", "code":"14", - "des":"This API is used to query the database specifications of a specified DB engine version.Learn how to authorize and authenticate this API before using it.Before calling thi", + "des":"This API is used to query the database specifications of a specified DB engine version. Before calling this API:Learn how to authorize and authenticate it.Obtain the requ", "doc_type":"api", - "kw":"Querying Database Specifications,API,API Reference", + "kw":"Querying Database Specifications,APIs (Recommended),API Reference", "title":"Querying Database Specifications", "githuburl":"" }, @@ -153,116 +153,696 @@ "uri":"gaussdb_04_0004.html", "product_code":"gaussdb", "code":"16", - "des":"This API is used to create a GaussDB(for MySQL) DB instanceLearn how to authorize and authenticate this API before using it.Before calling this API, obtain the required r", + "des":"This API is used to create a GaussDB(for MySQL) instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST ", "doc_type":"api", - "kw":"Creating a DB instance,Managing DB Instances,API Reference", - "title":"Creating a DB instance", + "kw":"Creating a DB Instance,Managing DB Instances,API Reference", + "title":"Creating a DB Instance", "githuburl":"" }, { "uri":"gaussdb_04_0005.html", "product_code":"gaussdb", "code":"17", - "des":"This API is used to query a DB instance list according to search criteria.Learn how to authorize and authenticate this API before using it.Before calling this API, obtain", + "des":"This API is used to query DB instances according to search criteria. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpo", "doc_type":"api", - "kw":"Querying a DB Instance List,Managing DB Instances,API Reference", - "title":"Querying a DB Instance List", - "githuburl":"" - }, - { - "uri":"gaussdb_04_0006.html", - "product_code":"gaussdb", - "code":"18", - "des":"This API is used to query the details of a specified DB instance.Learn how to authorize and authenticate this API before using it.Before calling this API, obtain the requ", - "doc_type":"api", - "kw":"Querying Details of a DB Instance,Managing DB Instances,API Reference", - "title":"Querying Details of a DB Instance", + "kw":"Querying DB Instances,Managing DB Instances,API Reference", + "title":"Querying DB Instances", "githuburl":"" }, { "uri":"gaussdb_04_0007.html", "product_code":"gaussdb", - "code":"19", - "des":"This API is used to delete a DB instance.Learn how to authorize and authenticate this API before using it.Before calling this API, obtain the required region and endpoint", + "code":"18", + "des":"This API is used to delete a DB instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.DELETE /v3/{project_i", "doc_type":"api", "kw":"Deleting a DB Instance,Managing DB Instances,API Reference", "title":"Deleting a DB Instance", "githuburl":"" }, { - "uri":"gaussdb_04_0008.html", + "uri":"gaussdb_04_0006.html", + "product_code":"gaussdb", + "code":"19", + "des":"This API is used to query the details of a specified DB instance. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint", + "doc_type":"api", + "kw":"Querying Details of a DB Instance,Managing DB Instances,API Reference", + "title":"Querying Details of a DB Instance", + "githuburl":"" + }, + { + "uri":"gaussdb_04_0015.html", "product_code":"gaussdb", "code":"20", + "des":"This API is used to create a read replica. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST /v3/{project_id}/", + "doc_type":"api", + "kw":"Creating a Read Replica,Managing DB Instances,API Reference", + "title":"Creating a Read Replica", + "githuburl":"" + }, + { + "uri":"gaussdb_04_0016.html", + "product_code":"gaussdb", + "code":"21", + "des":"This API is used to delete a read replica. For multi-AZ deployment, the primary node and remaining read replicas must be located in different AZs after read replicas are ", + "doc_type":"api", + "kw":"Deleting a Read Replica,Managing DB Instances,API Reference", + "title":"Deleting a Read Replica", + "githuburl":"" + }, + { + "uri":"gaussdb_04_0018.html", + "product_code":"gaussdb", + "code":"22", + "des":"This API is used to change a DB instance name. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.PUT /v3/{project_i", + "doc_type":"api", + "kw":"Changing a DB Instance Name,Managing DB Instances,API Reference", + "title":"Changing a DB Instance Name", + "githuburl":"" + }, + { + "uri":"gaussdb_04_0019.html", + "product_code":"gaussdb", + "code":"23", + "des":"This API is used to reset a database password. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST /v3/{project_", + "doc_type":"api", + "kw":"Resetting a Database Password,Managing DB Instances,API Reference", + "title":"Resetting a Database Password", + "githuburl":"" + }, + { + "uri":"gaussdb_04_0020.html", + "product_code":"gaussdb", + "code":"24", + "des":"This API is used to change DB instance specifications. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST /v3/{", + "doc_type":"api", + "kw":"Changing DB Instance Specifications,Managing DB Instances,API Reference", + "title":"Changing DB Instance Specifications", + "githuburl":"" + }, + { + "uri":"UpdateInstanceMonitor.html", + "product_code":"gaussdb", + "code":"25", + "des":"This API is used to enable and disable Monitoring by Seconds, and change its collection period. Before calling this API, you can:Learn how to authorize and authenticate i", + "doc_type":"api", + "kw":"Changing the Collection Period of Monitoring by Seconds,Managing DB Instances,API Reference", + "title":"Changing the Collection Period of Monitoring by Seconds", + "githuburl":"" + }, + { + "uri":"ShowInstanceMonitorExtend.html", + "product_code":"gaussdb", + "code":"26", + "des":"This API is used to query the collection period of Monitoring by Seconds. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region an", + "doc_type":"api", + "kw":"Querying the Collection Period of Monitoring by Seconds,Managing DB Instances,API Reference", + "title":"Querying the Collection Period of Monitoring by Seconds", + "githuburl":"" + }, + { + "uri":"gaussdb_06_0002.html", + "product_code":"gaussdb", + "code":"27", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Managing Parameter Templates", - "title":"Managing Parameter Templates", + "kw":"Backup Management", + "title":"Backup Management", + "githuburl":"" + }, + { + "uri":"gaussdb_06_0003.html", + "product_code":"gaussdb", + "code":"28", + "des":"This API is used to create a manual backup. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST /v3/{project_id}", + "doc_type":"api", + "kw":"Creating a Manual Backup,Backup Management,API Reference", + "title":"Creating a Manual Backup", + "githuburl":"" + }, + { + "uri":"gaussdb_06_0004.html", + "product_code":"gaussdb", + "code":"29", + "des":"This API is used to query backups according to search criteria. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.G", + "doc_type":"api", + "kw":"Querying Backups,Backup Management,API Reference", + "title":"Querying Backups", + "githuburl":"" + }, + { + "uri":"gaussdb_06_0005.html", + "product_code":"gaussdb", + "code":"30", + "des":"This API is used to query an automated backup policy. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.GET /v3/{pr", + "doc_type":"api", + "kw":"Querying an Automated Backup Policy,Backup Management,API Reference", + "title":"Querying an Automated Backup Policy", + "githuburl":"" + }, + { + "uri":"gaussdb_06_0006.html", + "product_code":"gaussdb", + "code":"31", + "des":"This API is used to modify an automated backup policy. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.PUT /v3/{p", + "doc_type":"api", + "kw":"Modifying an Automated Backup Policy,Backup Management,API Reference", + "title":"Modifying an Automated Backup Policy", + "githuburl":"" + }, + { + "uri":"gaussdb_04_0008.html", + "product_code":"gaussdb", + "code":"32", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Parameter Template Management", + "title":"Parameter Template Management", "githuburl":"" }, { "uri":"gaussdb_04_0009.html", "product_code":"gaussdb", - "code":"21", - "des":"This API is used to obtain a parameter template list, including all databases' default and custom parameter templates.Learn how to authorize and authenticate this API bef", + "code":"33", + "des":"This API is used to obtain parameter templates, including all databases' default and custom parameter templates. Before using this API:Learn how to authorize and authenti", "doc_type":"api", - "kw":"Querying a Parameter Template,Managing Parameter Templates,API Reference", - "title":"Querying a Parameter Template", + "kw":"Querying Parameter Templates,Parameter Template Management,API Reference", + "title":"Querying Parameter Templates", "githuburl":"" }, { "uri":"gaussdb_04_0010.html", "product_code":"gaussdb", - "code":"22", + "code":"34", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Managing Quotas", - "title":"Managing Quotas", + "kw":"Quota Management", + "title":"Quota Management", "githuburl":"" }, { "uri":"gaussdb_04_0011.html", "product_code":"gaussdb", - "code":"23", - "des":"This API is used to obtain the resource quota of a specified enterprise project.Learn how to authorize and authenticate this API before using it.Before calling this API, ", + "code":"35", + "des":"This API is used to obtain the resource quotas of a specified enterprise project. Before using this API:Learn how to authorize and authenticate it.Obtain the required reg", "doc_type":"api", - "kw":"Querying Resource Quotas,Managing Quotas,API Reference", + "kw":"Querying Resource Quotas,Quota Management,API Reference", "title":"Querying Resource Quotas", "githuburl":"" }, { "uri":"gaussdb_04_0012.html", "product_code":"gaussdb", - "code":"24", - "des":"This API is used to set resource quotas for a specified enterprise project.Learn how to authorize and authenticate this API before using it.Before calling this API, obtai", + "code":"36", + "des":"This API is used to configure resource quotas for a specified enterprise project. Before using this API:Learn how to authorize and authenticate it.Obtain the required reg", "doc_type":"api", - "kw":"Configuring Resource Quotas,Managing Quotas,API Reference", + "kw":"Configuring Resource Quotas,Quota Management,API Reference", "title":"Configuring Resource Quotas", "githuburl":"" }, { "uri":"gaussdb_04_0013.html", "product_code":"gaussdb", - "code":"25", - "des":"This API is used to modify the resource quota of a specified enterprise project.Learn how to authorize and authenticate this API before using it.Before calling this API, ", + "code":"37", + "des":"This API is used to modify the resource quota of a specified enterprise project.Learn how to authorize and authenticate it.Obtain the required region and endpoint.PUT /v3", "doc_type":"api", - "kw":"Modifying Resource Quotas,Managing Quotas,API Reference", + "kw":"Modifying Resource Quotas,Quota Management,API Reference", "title":"Modifying Resource Quotas", "githuburl":"" }, + { + "uri":"ShowGaussMySqlProjectQuotas.html", + "product_code":"gaussdb", + "code":"38", + "des":"This API is used to obtain the resource quotas of a specified tenant. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endp", + "doc_type":"api", + "kw":"Querying the DB Instance Quotas of a Tenant,Quota Management,API Reference", + "title":"Querying the DB Instance Quotas of a Tenant", + "githuburl":"" + }, + { + "uri":"topic_300000006.html", + "product_code":"gaussdb", + "code":"39", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Database Proxy", + "title":"Database Proxy", + "githuburl":"" + }, + { + "uri":"CreateGaussMySqlProxy.html", + "product_code":"gaussdb", + "code":"40", + "des":"This API is used to enable database proxy in ELB mode. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database p", + "doc_type":"api", + "kw":"Enabling Database Proxy,Database Proxy,API Reference", + "title":"Enabling Database Proxy", + "githuburl":"" + }, + { + "uri":"DeleteGaussMySqlProxy.html", + "product_code":"gaussdb", + "code":"41", + "des":"This API is used to disable database proxy. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database proxy is una", + "doc_type":"api", + "kw":"Disabling Database Proxy,Database Proxy,API Reference", + "title":"Disabling Database Proxy", + "githuburl":"" + }, + { + "uri":"ShowGaussMySqlProxyList.html", + "product_code":"gaussdb", + "code":"42", + "des":"This API is used to query database proxy instances. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database pr", + "doc_type":"api", + "kw":"Querying Database Proxy Instances,Database Proxy,API Reference", + "title":"Querying Database Proxy Instances", + "githuburl":"" + }, + { + "uri":"ShowGaussMySqlProxyFlavors.html", + "product_code":"gaussdb", + "code":"43", + "des":"This API is used to query database proxy specifications. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database", + "doc_type":"api", + "kw":"Querying Database Proxy Specifications,Database Proxy,API Reference", + "title":"Querying Database Proxy Specifications", + "githuburl":"" + }, + { + "uri":"ExpandGaussMySqlProxy.html", + "product_code":"gaussdb", + "code":"44", + "des":"This API is used to add database proxy nodes.Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database proxy is unavailable for DB insta", + "doc_type":"api", + "kw":"Adding Database Proxy Nodes,Database Proxy,API Reference", + "title":"Adding Database Proxy Nodes", + "githuburl":"" + }, + { + "uri":"ChangeGaussMySqlProxySpecification.html", + "product_code":"gaussdb", + "code":"45", + "des":"This API is used to change specifications of a database proxy instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and ", + "doc_type":"api", + "kw":"Changing Specifications of a Database Proxy Instance,Database Proxy,API Reference", + "title":"Changing Specifications of a Database Proxy Instance", + "githuburl":"" + }, + { + "uri":"SetGaussMySqlProxyWeight.html", + "product_code":"gaussdb", + "code":"46", + "des":"This API is used to assign read weights for nodes. Being using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.PUT /v3/{projec", + "doc_type":"api", + "kw":"Assigning Read Weights,Database Proxy,API Reference", + "title":"Assigning Read Weights", + "githuburl":"" + }, + { + "uri":"topic_300000007.html", + "product_code":"gaussdb", + "code":"47", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log Management", + "title":"Log Management", + "githuburl":"" + }, + { + "uri":"ListGaussMySqlErrorLog.html", + "product_code":"gaussdb", + "code":"48", + "des":"This API is used to query database error logs. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.GET /v3/{project_i", + "doc_type":"api", + "kw":"Querying Database Error Logs,Log Management,API Reference", + "title":"Querying Database Error Logs", + "githuburl":"" + }, + { + "uri":"ListGaussMySqlSlowLog.html", + "product_code":"gaussdb", + "code":"49", + "des":"This API is used to query database slow logs. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.GET /v3/{project_id", + "doc_type":"api", + "kw":"Querying Database Slow Logs,Log Management,API Reference", + "title":"Querying Database Slow Logs", + "githuburl":"" + }, + { + "uri":"topic_300000009.html", + "product_code":"gaussdb", + "code":"50", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Tag Management", + "title":"Tag Management", + "githuburl":"" + }, + { + "uri":"ListInstanceTags.html", + "product_code":"gaussdb", + "code":"51", + "des":"This API is used to query tags of a specified instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.GET /v3", + "doc_type":"api", + "kw":"Querying Resource Tags,Tag Management,API Reference", + "title":"Querying Resource Tags", + "githuburl":"" + }, + { + "uri":"ListProjectTags.html", + "product_code":"gaussdb", + "code":"52", + "des":"This API is used to query all tags of instances in a specified project. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and en", + "doc_type":"api", + "kw":"Querying Project Tags,Tag Management,API Reference", + "title":"Querying Project Tags", + "githuburl":"" + }, + { + "uri":"BatchTagAction.html", + "product_code":"gaussdb", + "code":"53", + "des":"This API is used to add tags to or delete tags from a specified DB instance in batches. Before calling this API:Learn how to authorize and authenticate it.Obtain the requ", + "doc_type":"api", + "kw":"Adding or Deleting Tags in Batches,Tag Management,API Reference", + "title":"Adding or Deleting Tags in Batches", + "githuburl":"" + }, + { + "uri":"topic_300000012.html", + "product_code":"gaussdb", + "code":"54", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"SQL Statement Concurrency Control", + "title":"SQL Statement Concurrency Control", + "githuburl":"" + }, + { + "uri":"SetSqlFilterRule.html", + "product_code":"gaussdb", + "code":"55", + "des":"This API is used to configure concurrency control rules of SQL statements. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region a", + "doc_type":"api", + "kw":"Configuring Concurrency Control Rules of SQL Statements,SQL Statement Concurrency Control,API Refere", + "title":"Configuring Concurrency Control Rules of SQL Statements", + "githuburl":"" + }, + { + "uri":"ShowSqlFilterRule.html", + "product_code":"gaussdb", + "code":"56", + "des":"This API is used to query concurrency control rules of SQL statements. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and e", + "doc_type":"api", + "kw":"Querying Concurrency Control Rules of SQL Statements,SQL Statement Concurrency Control,API Reference", + "title":"Querying Concurrency Control Rules of SQL Statements", + "githuburl":"" + }, + { + "uri":"DeleteSqlFilterRule.html", + "product_code":"gaussdb", + "code":"57", + "des":"This API is used to delete concurrency control rules of SQL statements. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and ", + "doc_type":"api", + "kw":"Deleting Concurrency Control Rules of SQL Statements,SQL Statement Concurrency Control,API Reference", + "title":"Deleting Concurrency Control Rules of SQL Statements", + "githuburl":"" + }, { "uri":"gaussdb_04_0014.html", "product_code":"gaussdb", - "code":"26", - "des":"This API is used to obtain task information from the task center.Learn how to authorize and authenticate this API before using it.Before calling this API, obtain the requ", + "code":"58", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Obtaining Task Information,API,API Reference", - "title":"Obtaining Task Information", + "kw":"Task Center", + "title":"Task Center", + "githuburl":"" + }, + { + "uri":"ShowGaussMySqlJobInfo.html", + "product_code":"gaussdb", + "code":"59", + "des":"This API is used to obtain task information from the task center. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoi", + "doc_type":"api", + "kw":"Obtaining Information About a Task with a Specified ID,Task Center,API Reference", + "title":"Obtaining Information About a Task with a Specified ID", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0000.html", + "product_code":"gaussdb", + "code":"60", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"APIs (Unavailable Soon)", + "title":"APIs (Unavailable Soon)", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0001.html", + "product_code":"gaussdb", + "code":"61", + "des":"This API is used to query the version information of a specified DB engine. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region ", + "doc_type":"api", + "kw":"Querying Version Information About a DB Engine,APIs (Unavailable Soon),API Reference", + "title":"Querying Version Information About a DB Engine", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0002.html", + "product_code":"gaussdb", + "code":"62", + "des":"This API is used to query the database specifications of a specified DB engine version. Before calling this API:Learn how to authorize and authenticate it.Obtain the requ", + "doc_type":"api", + "kw":"Querying Database Specifications,APIs (Unavailable Soon),API Reference", + "title":"Querying Database Specifications", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0003.html", + "product_code":"gaussdb", + "code":"63", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Instance Management", + "title":"Instance Management", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0004.html", + "product_code":"gaussdb", + "code":"64", + "des":"This API is used to create a GaussDB(for MySQL) instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI f", + "doc_type":"api", + "kw":"Creating a DB Instance,Instance Management,API Reference", + "title":"Creating a DB Instance", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0005.html", + "product_code":"gaussdb", + "code":"65", + "des":"This API is used to query instances according to search criteria. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoi", + "doc_type":"api", + "kw":"Querying DB Instances,Instance Management,API Reference", + "title":"Querying DB Instances", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0006.html", + "product_code":"gaussdb", + "code":"66", + "des":"This API is used to query the details of a specified DB instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoi", + "doc_type":"api", + "kw":"Querying Details of a DB Instance,Instance Management,API Reference", + "title":"Querying Details of a DB Instance", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0007.html", + "product_code":"gaussdb", + "code":"67", + "des":"This API is used to delete a DB instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatDELETE http", + "doc_type":"api", + "kw":"Deleting a DB Instance,Instance Management,API Reference", + "title":"Deleting a DB Instance", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0015.html", + "product_code":"gaussdb", + "code":"68", + "des":"This API is used to create a read replica. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPOST https", + "doc_type":"api", + "kw":"Creating a Read Replica,Instance Management,API Reference", + "title":"Creating a Read Replica", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0016.html", + "product_code":"gaussdb", + "code":"69", + "des":"This API is used to delete a read replica. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatDELETE htt", + "doc_type":"api", + "kw":"Deleting a Read Replica,Instance Management,API Reference", + "title":"Deleting a Read Replica", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0018.html", + "product_code":"gaussdb", + "code":"70", + "des":"This API is used to change a DB instance name. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPUT ht", + "doc_type":"api", + "kw":"Changing a DB Instance Name,Instance Management,API Reference", + "title":"Changing a DB Instance Name", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0019.html", + "product_code":"gaussdb", + "code":"71", + "des":"This API is used to reset a database password. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPOST h", + "doc_type":"api", + "kw":"Resetting a Database Password,Instance Management,API Reference", + "title":"Resetting a Database Password", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0020.html", + "product_code":"gaussdb", + "code":"72", + "des":"This API is used to change DB instance specifications. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI form", + "doc_type":"api", + "kw":"Changing DB Instance Specifications,Instance Management,API Reference", + "title":"Changing DB Instance Specifications", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0021.html", + "product_code":"gaussdb", + "code":"73", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Backup Management", + "title":"Backup Management", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0022.html", + "product_code":"gaussdb", + "code":"74", + "des":"This API is used to create a manual backup. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPOST http", + "doc_type":"api", + "kw":"Creating a Manual Backup,Backup Management,API Reference", + "title":"Creating a Manual Backup", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0023.html", + "product_code":"gaussdb", + "code":"75", + "des":"This API is used to query backups according to search criteria. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint", + "doc_type":"api", + "kw":"Querying Backups,Backup Management,API Reference", + "title":"Querying Backups", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0024.html", + "product_code":"gaussdb", + "code":"76", + "des":"This API is used to query an automated backup policy. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI forma", + "doc_type":"api", + "kw":"Querying an Automated Backup Policy,Backup Management,API Reference", + "title":"Querying an Automated Backup Policy", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0025.html", + "product_code":"gaussdb", + "code":"77", + "des":"This API is used to modify the backup policy. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPUT htt", + "doc_type":"api", + "kw":"Modifying the Backup Policy,Backup Management,API Reference", + "title":"Modifying the Backup Policy", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0026.html", + "product_code":"gaussdb", + "code":"78", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Parameter Template Management", + "title":"Parameter Template Management", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0027.html", + "product_code":"gaussdb", + "code":"79", + "des":"This API is used to obtain parameter templates, including all databases' default and custom parameter templates. Before calling this API:Learn how to authorize and authen", + "doc_type":"api", + "kw":"Querying Parameter Templates,Parameter Template Management,API Reference", + "title":"Querying Parameter Templates", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0028.html", + "product_code":"gaussdb", + "code":"80", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Quota Management", + "title":"Quota Management", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0029.html", + "product_code":"gaussdb", + "code":"81", + "des":"This API is used to obtain the resource quotas of a specified enterprise project. Before calling this API:Learn how to authorize and authenticate it.Obtain the required r", + "doc_type":"api", + "kw":"Querying Enterprise Project Resource Quotas of a Tenant,Quota Management,API Reference", + "title":"Querying Enterprise Project Resource Quotas of a Tenant", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0030.html", + "product_code":"gaussdb", + "code":"82", + "des":"This API is used to configure resource quotas for a specified enterprise project. Before calling this API:Learn how to authorize and authenticate it.Obtain the required r", + "doc_type":"api", + "kw":"Configuring Enterprise Project Resource Quotas of a Tenant,Quota Management,API Reference", + "title":"Configuring Enterprise Project Resource Quotas of a Tenant", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0031.html", + "product_code":"gaussdb", + "code":"83", + "des":"This API is used to modify the resource quotas of a specified enterprise project. Before calling this API:Learn how to authorize and authenticate it.Obtain the required r", + "doc_type":"api", + "kw":"Modifying Enterprise Project Resource Quotas of a Tenant,Quota Management,API Reference", + "title":"Modifying Enterprise Project Resource Quotas of a Tenant", + "githuburl":"" + }, + { + "uri":"gaussdb_11_0032.html", + "product_code":"gaussdb", + "code":"84", + "des":"This API is used to obtain task information from the task center. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoi", + "doc_type":"api", + "kw":"Obtaining Information About a Task with a Specified ID,APIs (Unavailable Soon),API Reference", + "title":"Obtaining Information About a Task with a Specified ID", "githuburl":"" }, { "uri":"gaussdb_10_0000.html", "product_code":"gaussdb", - "code":"27", + "code":"85", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Appendix", @@ -272,7 +852,7 @@ { "uri":"gaussdb_10_0001.html", "product_code":"gaussdb", - "code":"28", + "code":"86", "des":"Abnormal response descriptionAbnormal response descriptionNameTypeDescriptionerror_codeStringReturned error code when a task submission exception occurs. For details, see", "doc_type":"api", "kw":"Abnormal Request Results,Appendix,API Reference", @@ -282,8 +862,8 @@ { "uri":"gaussdb_10_0002.html", "product_code":"gaussdb", - "code":"29", - "des":"Status code list:", + "code":"87", + "des":"The following table describes status codes.", "doc_type":"api", "kw":"Status Codes,Appendix,API Reference", "title":"Status Codes", @@ -292,7 +872,7 @@ { "uri":"gaussdb_10_0003.html", "product_code":"gaussdb", - "code":"30", + "code":"88", "des":"The following table describes error codes.", "doc_type":"api", "kw":"Error Codes,Appendix,API Reference", @@ -302,7 +882,7 @@ { "uri":"gaussdb_10_0004.html", "product_code":"gaussdb", - "code":"31", + "code":"89", "des":"When calling APIs, you need to specify the project ID in some URLs. To do so, you need to obtain the project ID first. Two methods are available:Obtaining the Project ID ", "doc_type":"api", "kw":"Obtaining a Project ID,Appendix,API Reference", @@ -312,7 +892,7 @@ { "uri":"gaussdb_10_0006.html", "product_code":"gaussdb", - "code":"32", + "code":"90", "des":"This section describes namespaces, descriptions, and dimensions of monitoring metrics to be reported to Cloud Eye. You can use APIs provided by Cloud Eye to retrieve moni", "doc_type":"api", "kw":"GaussDB(for MySQL) Monitoring Metrics,Appendix,API Reference", @@ -322,7 +902,7 @@ { "uri":"changeHistory.html", "product_code":"gaussdb", - "code":"33", + "code":"91", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Change History,API Reference", diff --git a/docs/gaussdb_mysql/api-ref/BatchTagAction.html b/docs/gaussdb_mysql/api-ref/BatchTagAction.html new file mode 100644 index 000000000..3b005022a --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/BatchTagAction.html @@ -0,0 +1,235 @@ + + +

Adding or Deleting Tags in Batches

+

Function

This API is used to add tags to or delete tags from a specified DB instance in batches. Before calling this API:

+ +
+

URI

POST /v3/{project_id}/instances/{instance_id}/tags/action

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token.

+

X-Language

+

No

+

String

+

Language.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

Action. Value:

+
  • create
  • delete
+

tags

+

Yes

+

Array of TagItem objects

+

Tag list.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 TagItem

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. It contains a maximum of 36 Unicode characters and cannot be null, an empty string, or a space. Only digits, uppercase letters, lowercase letters, underscores (_), and hyphens (-) are allowed.

+

value

+

No

+

String

+

Tag value. It contains a maximum of 43 Unicode characters. It can be an empty string but cannot be a space. Only digits, uppercase letters, lowercase letters, underscores (_), periods (.), and hyphens (-) are allowed.

+
  • If action is set to create, this parameter is mandatory.
  • If action is set to delete and value is specified, tags are deleted by key and value. If value is not specified, tags are deleted by key.
+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

+
+

Example Response

Status code: 200

+

Success.

+

None

+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/CLASS.TXT.json b/docs/gaussdb_mysql/api-ref/CLASS.TXT.json index 0d48ad616..61d2f6fe2 100644 --- a/docs/gaussdb_mysql/api-ref/CLASS.TXT.json +++ b/docs/gaussdb_mysql/api-ref/CLASS.TXT.json @@ -9,7 +9,7 @@ "code":"1" }, { - "desc":"This document describes how to use application programming interfaces (APIs) to perform operations on DB instances. For details about all supported operations, see API Ov", + "desc":"GaussDB(for MySQL) is a MySQL-compatible, enterprise-grade distributed database service. It uses a compute-storage decoupled architecture and supports up to 128 TB of sto", "product_code":"gaussdb", "title":"Overview", "uri":"gaussdb_00_0001.html", @@ -18,7 +18,7 @@ "code":"2" }, { - "desc":"GaussDB(for MySQL) supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.", + "desc":"GaussDB(for MySQL) supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see API Usage Guidelines.", "product_code":"gaussdb", "title":"API Calling", "uri":"gaussdb_00_0002.html", @@ -65,7 +65,7 @@ { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"gaussdb", - "title":"Calling APIs", + "title":"API Usage Guidelines", "uri":"gaussdb_03_0000.html", "doc_type":"api", "p_code":"", @@ -101,14 +101,14 @@ { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"gaussdb", - "title":"API", + "title":"APIs (Recommended)", "uri":"gaussdb_04_0000.html", "doc_type":"api", "p_code":"", "code":"12" }, { - "desc":"This API is used to query the DB version information of a specified DB engine.Learn how to authorize and authenticate this API before using it.Before calling this API, ob", + "desc":"This API is used to query the version information of a specified DB engine. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region ", "product_code":"gaussdb", "title":"Querying Version Information About a DB Engine", "uri":"gaussdb_04_0001.html", @@ -117,7 +117,7 @@ "code":"13" }, { - "desc":"This API is used to query the database specifications of a specified DB engine version.Learn how to authorize and authenticate this API before using it.Before calling thi", + "desc":"This API is used to query the database specifications of a specified DB engine version. Before calling this API:Learn how to authorize and authenticate it.Obtain the requ", "product_code":"gaussdb", "title":"Querying Database Specifications", "uri":"gaussdb_04_0002.html", @@ -135,103 +135,625 @@ "code":"15" }, { - "desc":"This API is used to create a GaussDB(for MySQL) DB instanceLearn how to authorize and authenticate this API before using it.Before calling this API, obtain the required r", + "desc":"This API is used to create a GaussDB(for MySQL) instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST ", "product_code":"gaussdb", - "title":"Creating a DB instance", + "title":"Creating a DB Instance", "uri":"gaussdb_04_0004.html", "doc_type":"api", "p_code":"15", "code":"16" }, { - "desc":"This API is used to query a DB instance list according to search criteria.Learn how to authorize and authenticate this API before using it.Before calling this API, obtain", + "desc":"This API is used to query DB instances according to search criteria. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpo", "product_code":"gaussdb", - "title":"Querying a DB Instance List", + "title":"Querying DB Instances", "uri":"gaussdb_04_0005.html", "doc_type":"api", "p_code":"15", "code":"17" }, { - "desc":"This API is used to query the details of a specified DB instance.Learn how to authorize and authenticate this API before using it.Before calling this API, obtain the requ", - "product_code":"gaussdb", - "title":"Querying Details of a DB Instance", - "uri":"gaussdb_04_0006.html", - "doc_type":"api", - "p_code":"15", - "code":"18" - }, - { - "desc":"This API is used to delete a DB instance.Learn how to authorize and authenticate this API before using it.Before calling this API, obtain the required region and endpoint", + "desc":"This API is used to delete a DB instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.DELETE /v3/{project_i", "product_code":"gaussdb", "title":"Deleting a DB Instance", "uri":"gaussdb_04_0007.html", "doc_type":"api", "p_code":"15", + "code":"18" + }, + { + "desc":"This API is used to query the details of a specified DB instance. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint", + "product_code":"gaussdb", + "title":"Querying Details of a DB Instance", + "uri":"gaussdb_04_0006.html", + "doc_type":"api", + "p_code":"15", "code":"19" }, { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "desc":"This API is used to create a read replica. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST /v3/{project_id}/", "product_code":"gaussdb", - "title":"Managing Parameter Templates", - "uri":"gaussdb_04_0008.html", + "title":"Creating a Read Replica", + "uri":"gaussdb_04_0015.html", "doc_type":"api", - "p_code":"12", + "p_code":"15", "code":"20" }, { - "desc":"This API is used to obtain a parameter template list, including all databases' default and custom parameter templates.Learn how to authorize and authenticate this API bef", + "desc":"This API is used to delete a read replica. For multi-AZ deployment, the primary node and remaining read replicas must be located in different AZs after read replicas are ", "product_code":"gaussdb", - "title":"Querying a Parameter Template", - "uri":"gaussdb_04_0009.html", + "title":"Deleting a Read Replica", + "uri":"gaussdb_04_0016.html", "doc_type":"api", - "p_code":"20", + "p_code":"15", "code":"21" }, + { + "desc":"This API is used to change a DB instance name. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.PUT /v3/{project_i", + "product_code":"gaussdb", + "title":"Changing a DB Instance Name", + "uri":"gaussdb_04_0018.html", + "doc_type":"api", + "p_code":"15", + "code":"22" + }, + { + "desc":"This API is used to reset a database password. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST /v3/{project_", + "product_code":"gaussdb", + "title":"Resetting a Database Password", + "uri":"gaussdb_04_0019.html", + "doc_type":"api", + "p_code":"15", + "code":"23" + }, + { + "desc":"This API is used to change DB instance specifications. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST /v3/{", + "product_code":"gaussdb", + "title":"Changing DB Instance Specifications", + "uri":"gaussdb_04_0020.html", + "doc_type":"api", + "p_code":"15", + "code":"24" + }, + { + "desc":"This API is used to enable and disable Monitoring by Seconds, and change its collection period. Before calling this API, you can:Learn how to authorize and authenticate i", + "product_code":"gaussdb", + "title":"Changing the Collection Period of Monitoring by Seconds", + "uri":"UpdateInstanceMonitor.html", + "doc_type":"api", + "p_code":"15", + "code":"25" + }, + { + "desc":"This API is used to query the collection period of Monitoring by Seconds. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region an", + "product_code":"gaussdb", + "title":"Querying the Collection Period of Monitoring by Seconds", + "uri":"ShowInstanceMonitorExtend.html", + "doc_type":"api", + "p_code":"15", + "code":"26" + }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"gaussdb", - "title":"Managing Quotas", + "title":"Backup Management", + "uri":"gaussdb_06_0002.html", + "doc_type":"api", + "p_code":"12", + "code":"27" + }, + { + "desc":"This API is used to create a manual backup. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.POST /v3/{project_id}", + "product_code":"gaussdb", + "title":"Creating a Manual Backup", + "uri":"gaussdb_06_0003.html", + "doc_type":"api", + "p_code":"27", + "code":"28" + }, + { + "desc":"This API is used to query backups according to search criteria. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.G", + "product_code":"gaussdb", + "title":"Querying Backups", + "uri":"gaussdb_06_0004.html", + "doc_type":"api", + "p_code":"27", + "code":"29" + }, + { + "desc":"This API is used to query an automated backup policy. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.GET /v3/{pr", + "product_code":"gaussdb", + "title":"Querying an Automated Backup Policy", + "uri":"gaussdb_06_0005.html", + "doc_type":"api", + "p_code":"27", + "code":"30" + }, + { + "desc":"This API is used to modify an automated backup policy. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.PUT /v3/{p", + "product_code":"gaussdb", + "title":"Modifying an Automated Backup Policy", + "uri":"gaussdb_06_0006.html", + "doc_type":"api", + "p_code":"27", + "code":"31" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Parameter Template Management", + "uri":"gaussdb_04_0008.html", + "doc_type":"api", + "p_code":"12", + "code":"32" + }, + { + "desc":"This API is used to obtain parameter templates, including all databases' default and custom parameter templates. Before using this API:Learn how to authorize and authenti", + "product_code":"gaussdb", + "title":"Querying Parameter Templates", + "uri":"gaussdb_04_0009.html", + "doc_type":"api", + "p_code":"32", + "code":"33" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Quota Management", "uri":"gaussdb_04_0010.html", "doc_type":"api", "p_code":"12", - "code":"22" + "code":"34" }, { - "desc":"This API is used to obtain the resource quota of a specified enterprise project.Learn how to authorize and authenticate this API before using it.Before calling this API, ", + "desc":"This API is used to obtain the resource quotas of a specified enterprise project. Before using this API:Learn how to authorize and authenticate it.Obtain the required reg", "product_code":"gaussdb", "title":"Querying Resource Quotas", "uri":"gaussdb_04_0011.html", "doc_type":"api", - "p_code":"22", - "code":"23" + "p_code":"34", + "code":"35" }, { - "desc":"This API is used to set resource quotas for a specified enterprise project.Learn how to authorize and authenticate this API before using it.Before calling this API, obtai", + "desc":"This API is used to configure resource quotas for a specified enterprise project. Before using this API:Learn how to authorize and authenticate it.Obtain the required reg", "product_code":"gaussdb", "title":"Configuring Resource Quotas", "uri":"gaussdb_04_0012.html", "doc_type":"api", - "p_code":"22", - "code":"24" + "p_code":"34", + "code":"36" }, { - "desc":"This API is used to modify the resource quota of a specified enterprise project.Learn how to authorize and authenticate this API before using it.Before calling this API, ", + "desc":"This API is used to modify the resource quota of a specified enterprise project.Learn how to authorize and authenticate it.Obtain the required region and endpoint.PUT /v3", "product_code":"gaussdb", "title":"Modifying Resource Quotas", "uri":"gaussdb_04_0013.html", "doc_type":"api", - "p_code":"22", - "code":"25" + "p_code":"34", + "code":"37" }, { - "desc":"This API is used to obtain task information from the task center.Learn how to authorize and authenticate this API before using it.Before calling this API, obtain the requ", + "desc":"This API is used to obtain the resource quotas of a specified tenant. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endp", "product_code":"gaussdb", - "title":"Obtaining Task Information", + "title":"Querying the DB Instance Quotas of a Tenant", + "uri":"ShowGaussMySqlProjectQuotas.html", + "doc_type":"api", + "p_code":"34", + "code":"38" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Database Proxy", + "uri":"topic_300000006.html", + "doc_type":"api", + "p_code":"12", + "code":"39" + }, + { + "desc":"This API is used to enable database proxy in ELB mode. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database p", + "product_code":"gaussdb", + "title":"Enabling Database Proxy", + "uri":"CreateGaussMySqlProxy.html", + "doc_type":"api", + "p_code":"39", + "code":"40" + }, + { + "desc":"This API is used to disable database proxy. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database proxy is una", + "product_code":"gaussdb", + "title":"Disabling Database Proxy", + "uri":"DeleteGaussMySqlProxy.html", + "doc_type":"api", + "p_code":"39", + "code":"41" + }, + { + "desc":"This API is used to query database proxy instances. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database pr", + "product_code":"gaussdb", + "title":"Querying Database Proxy Instances", + "uri":"ShowGaussMySqlProxyList.html", + "doc_type":"api", + "p_code":"39", + "code":"42" + }, + { + "desc":"This API is used to query database proxy specifications. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database", + "product_code":"gaussdb", + "title":"Querying Database Proxy Specifications", + "uri":"ShowGaussMySqlProxyFlavors.html", + "doc_type":"api", + "p_code":"39", + "code":"43" + }, + { + "desc":"This API is used to add database proxy nodes.Learn how to authorize and authenticate it.Obtain the required region and endpoint.Database proxy is unavailable for DB insta", + "product_code":"gaussdb", + "title":"Adding Database Proxy Nodes", + "uri":"ExpandGaussMySqlProxy.html", + "doc_type":"api", + "p_code":"39", + "code":"44" + }, + { + "desc":"This API is used to change specifications of a database proxy instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and ", + "product_code":"gaussdb", + "title":"Changing Specifications of a Database Proxy Instance", + "uri":"ChangeGaussMySqlProxySpecification.html", + "doc_type":"api", + "p_code":"39", + "code":"45" + }, + { + "desc":"This API is used to assign read weights for nodes. Being using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.PUT /v3/{projec", + "product_code":"gaussdb", + "title":"Assigning Read Weights", + "uri":"SetGaussMySqlProxyWeight.html", + "doc_type":"api", + "p_code":"39", + "code":"46" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Log Management", + "uri":"topic_300000007.html", + "doc_type":"api", + "p_code":"12", + "code":"47" + }, + { + "desc":"This API is used to query database error logs. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.GET /v3/{project_i", + "product_code":"gaussdb", + "title":"Querying Database Error Logs", + "uri":"ListGaussMySqlErrorLog.html", + "doc_type":"api", + "p_code":"47", + "code":"48" + }, + { + "desc":"This API is used to query database slow logs. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.GET /v3/{project_id", + "product_code":"gaussdb", + "title":"Querying Database Slow Logs", + "uri":"ListGaussMySqlSlowLog.html", + "doc_type":"api", + "p_code":"47", + "code":"49" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Tag Management", + "uri":"topic_300000009.html", + "doc_type":"api", + "p_code":"12", + "code":"50" + }, + { + "desc":"This API is used to query tags of a specified instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.GET /v3", + "product_code":"gaussdb", + "title":"Querying Resource Tags", + "uri":"ListInstanceTags.html", + "doc_type":"api", + "p_code":"50", + "code":"51" + }, + { + "desc":"This API is used to query all tags of instances in a specified project. Before using this API:Learn how to authorize and authenticate it.Obtain the required region and en", + "product_code":"gaussdb", + "title":"Querying Project Tags", + "uri":"ListProjectTags.html", + "doc_type":"api", + "p_code":"50", + "code":"52" + }, + { + "desc":"This API is used to add tags to or delete tags from a specified DB instance in batches. Before calling this API:Learn how to authorize and authenticate it.Obtain the requ", + "product_code":"gaussdb", + "title":"Adding or Deleting Tags in Batches", + "uri":"BatchTagAction.html", + "doc_type":"api", + "p_code":"50", + "code":"53" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"SQL Statement Concurrency Control", + "uri":"topic_300000012.html", + "doc_type":"api", + "p_code":"12", + "code":"54" + }, + { + "desc":"This API is used to configure concurrency control rules of SQL statements. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region a", + "product_code":"gaussdb", + "title":"Configuring Concurrency Control Rules of SQL Statements", + "uri":"SetSqlFilterRule.html", + "doc_type":"api", + "p_code":"54", + "code":"55" + }, + { + "desc":"This API is used to query concurrency control rules of SQL statements. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and e", + "product_code":"gaussdb", + "title":"Querying Concurrency Control Rules of SQL Statements", + "uri":"ShowSqlFilterRule.html", + "doc_type":"api", + "p_code":"54", + "code":"56" + }, + { + "desc":"This API is used to delete concurrency control rules of SQL statements. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and ", + "product_code":"gaussdb", + "title":"Deleting Concurrency Control Rules of SQL Statements", + "uri":"DeleteSqlFilterRule.html", + "doc_type":"api", + "p_code":"54", + "code":"57" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Task Center", "uri":"gaussdb_04_0014.html", "doc_type":"api", "p_code":"12", - "code":"26" + "code":"58" + }, + { + "desc":"This API is used to obtain task information from the task center. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoi", + "product_code":"gaussdb", + "title":"Obtaining Information About a Task with a Specified ID", + "uri":"ShowGaussMySqlJobInfo.html", + "doc_type":"api", + "p_code":"58", + "code":"59" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"APIs (Unavailable Soon)", + "uri":"gaussdb_11_0000.html", + "doc_type":"api", + "p_code":"", + "code":"60" + }, + { + "desc":"This API is used to query the version information of a specified DB engine. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region ", + "product_code":"gaussdb", + "title":"Querying Version Information About a DB Engine", + "uri":"gaussdb_11_0001.html", + "doc_type":"api", + "p_code":"60", + "code":"61" + }, + { + "desc":"This API is used to query the database specifications of a specified DB engine version. Before calling this API:Learn how to authorize and authenticate it.Obtain the requ", + "product_code":"gaussdb", + "title":"Querying Database Specifications", + "uri":"gaussdb_11_0002.html", + "doc_type":"api", + "p_code":"60", + "code":"62" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Instance Management", + "uri":"gaussdb_11_0003.html", + "doc_type":"api", + "p_code":"60", + "code":"63" + }, + { + "desc":"This API is used to create a GaussDB(for MySQL) instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI f", + "product_code":"gaussdb", + "title":"Creating a DB Instance", + "uri":"gaussdb_11_0004.html", + "doc_type":"api", + "p_code":"63", + "code":"64" + }, + { + "desc":"This API is used to query instances according to search criteria. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoi", + "product_code":"gaussdb", + "title":"Querying DB Instances", + "uri":"gaussdb_11_0005.html", + "doc_type":"api", + "p_code":"63", + "code":"65" + }, + { + "desc":"This API is used to query the details of a specified DB instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoi", + "product_code":"gaussdb", + "title":"Querying Details of a DB Instance", + "uri":"gaussdb_11_0006.html", + "doc_type":"api", + "p_code":"63", + "code":"66" + }, + { + "desc":"This API is used to delete a DB instance. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatDELETE http", + "product_code":"gaussdb", + "title":"Deleting a DB Instance", + "uri":"gaussdb_11_0007.html", + "doc_type":"api", + "p_code":"63", + "code":"67" + }, + { + "desc":"This API is used to create a read replica. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPOST https", + "product_code":"gaussdb", + "title":"Creating a Read Replica", + "uri":"gaussdb_11_0015.html", + "doc_type":"api", + "p_code":"63", + "code":"68" + }, + { + "desc":"This API is used to delete a read replica. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatDELETE htt", + "product_code":"gaussdb", + "title":"Deleting a Read Replica", + "uri":"gaussdb_11_0016.html", + "doc_type":"api", + "p_code":"63", + "code":"69" + }, + { + "desc":"This API is used to change a DB instance name. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPUT ht", + "product_code":"gaussdb", + "title":"Changing a DB Instance Name", + "uri":"gaussdb_11_0018.html", + "doc_type":"api", + "p_code":"63", + "code":"70" + }, + { + "desc":"This API is used to reset a database password. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPOST h", + "product_code":"gaussdb", + "title":"Resetting a Database Password", + "uri":"gaussdb_11_0019.html", + "doc_type":"api", + "p_code":"63", + "code":"71" + }, + { + "desc":"This API is used to change DB instance specifications. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI form", + "product_code":"gaussdb", + "title":"Changing DB Instance Specifications", + "uri":"gaussdb_11_0020.html", + "doc_type":"api", + "p_code":"63", + "code":"72" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Backup Management", + "uri":"gaussdb_11_0021.html", + "doc_type":"api", + "p_code":"60", + "code":"73" + }, + { + "desc":"This API is used to create a manual backup. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPOST http", + "product_code":"gaussdb", + "title":"Creating a Manual Backup", + "uri":"gaussdb_11_0022.html", + "doc_type":"api", + "p_code":"73", + "code":"74" + }, + { + "desc":"This API is used to query backups according to search criteria. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint", + "product_code":"gaussdb", + "title":"Querying Backups", + "uri":"gaussdb_11_0023.html", + "doc_type":"api", + "p_code":"73", + "code":"75" + }, + { + "desc":"This API is used to query an automated backup policy. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI forma", + "product_code":"gaussdb", + "title":"Querying an Automated Backup Policy", + "uri":"gaussdb_11_0024.html", + "doc_type":"api", + "p_code":"73", + "code":"76" + }, + { + "desc":"This API is used to modify the backup policy. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoint.URI formatPUT htt", + "product_code":"gaussdb", + "title":"Modifying the Backup Policy", + "uri":"gaussdb_11_0025.html", + "doc_type":"api", + "p_code":"73", + "code":"77" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Parameter Template Management", + "uri":"gaussdb_11_0026.html", + "doc_type":"api", + "p_code":"60", + "code":"78" + }, + { + "desc":"This API is used to obtain parameter templates, including all databases' default and custom parameter templates. Before calling this API:Learn how to authorize and authen", + "product_code":"gaussdb", + "title":"Querying Parameter Templates", + "uri":"gaussdb_11_0027.html", + "doc_type":"api", + "p_code":"78", + "code":"79" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"gaussdb", + "title":"Quota Management", + "uri":"gaussdb_11_0028.html", + "doc_type":"api", + "p_code":"60", + "code":"80" + }, + { + "desc":"This API is used to obtain the resource quotas of a specified enterprise project. Before calling this API:Learn how to authorize and authenticate it.Obtain the required r", + "product_code":"gaussdb", + "title":"Querying Enterprise Project Resource Quotas of a Tenant", + "uri":"gaussdb_11_0029.html", + "doc_type":"api", + "p_code":"80", + "code":"81" + }, + { + "desc":"This API is used to configure resource quotas for a specified enterprise project. Before calling this API:Learn how to authorize and authenticate it.Obtain the required r", + "product_code":"gaussdb", + "title":"Configuring Enterprise Project Resource Quotas of a Tenant", + "uri":"gaussdb_11_0030.html", + "doc_type":"api", + "p_code":"80", + "code":"82" + }, + { + "desc":"This API is used to modify the resource quotas of a specified enterprise project. Before calling this API:Learn how to authorize and authenticate it.Obtain the required r", + "product_code":"gaussdb", + "title":"Modifying Enterprise Project Resource Quotas of a Tenant", + "uri":"gaussdb_11_0031.html", + "doc_type":"api", + "p_code":"80", + "code":"83" + }, + { + "desc":"This API is used to obtain task information from the task center. Before calling this API:Learn how to authorize and authenticate it.Obtain the required region and endpoi", + "product_code":"gaussdb", + "title":"Obtaining Information About a Task with a Specified ID", + "uri":"gaussdb_11_0032.html", + "doc_type":"api", + "p_code":"60", + "code":"84" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -240,7 +762,7 @@ "uri":"gaussdb_10_0000.html", "doc_type":"api", "p_code":"", - "code":"27" + "code":"85" }, { "desc":"Abnormal response descriptionAbnormal response descriptionNameTypeDescriptionerror_codeStringReturned error code when a task submission exception occurs. For details, see", @@ -248,17 +770,17 @@ "title":"Abnormal Request Results", "uri":"gaussdb_10_0001.html", "doc_type":"api", - "p_code":"27", - "code":"28" + "p_code":"85", + "code":"86" }, { - "desc":"Status code list:", + "desc":"The following table describes status codes.", "product_code":"gaussdb", "title":"Status Codes", "uri":"gaussdb_10_0002.html", "doc_type":"api", - "p_code":"27", - "code":"29" + "p_code":"85", + "code":"87" }, { "desc":"The following table describes error codes.", @@ -266,8 +788,8 @@ "title":"Error Codes", "uri":"gaussdb_10_0003.html", "doc_type":"api", - "p_code":"27", - "code":"30" + "p_code":"85", + "code":"88" }, { "desc":"When calling APIs, you need to specify the project ID in some URLs. To do so, you need to obtain the project ID first. Two methods are available:Obtaining the Project ID ", @@ -275,8 +797,8 @@ "title":"Obtaining a Project ID", "uri":"gaussdb_10_0004.html", "doc_type":"api", - "p_code":"27", - "code":"31" + "p_code":"85", + "code":"89" }, { "desc":"This section describes namespaces, descriptions, and dimensions of monitoring metrics to be reported to Cloud Eye. You can use APIs provided by Cloud Eye to retrieve moni", @@ -284,8 +806,8 @@ "title":"GaussDB(for MySQL) Monitoring Metrics", "uri":"gaussdb_10_0006.html", "doc_type":"api", - "p_code":"27", - "code":"32" + "p_code":"85", + "code":"90" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -294,6 +816,6 @@ "uri":"changeHistory.html", "doc_type":"api", "p_code":"", - "code":"33" + "code":"91" } ] \ No newline at end of file diff --git a/docs/gaussdb_mysql/api-ref/ChangeGaussMySqlProxySpecification.html b/docs/gaussdb_mysql/api-ref/ChangeGaussMySqlProxySpecification.html new file mode 100644 index 000000000..c9149b1f7 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ChangeGaussMySqlProxySpecification.html @@ -0,0 +1,204 @@ + + +

Changing Specifications of a Database Proxy Instance

+

Function

This API is used to change specifications of a database proxy instance. Before calling this API:

+ +
+

URI

PUT /v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/flavor

+ +
+ + + + + + + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

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.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token.

+

X-Language

+

No

+

String

+

Language.

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

flavor_ref

+

Yes

+

String

+

ID of the new flavor.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

job_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

+PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/61a4ea66210545909d74a05c27a7179ein07/proxy/e87088f0b6a345e79db19d57c41fde15po01/flavor
+{
+  "flavor_ref" :"gaussdb.proxy.xlarge.x86.2"
+}
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/CreateGaussMySqlProxy.html b/docs/gaussdb_mysql/api-ref/CreateGaussMySqlProxy.html new file mode 100644 index 000000000..989cfea76 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/CreateGaussMySqlProxy.html @@ -0,0 +1,275 @@ + + +

Enabling Database Proxy

+

Function

This API is used to enable database proxy in ELB mode. Before using this API:

+ +
+

URI

POST /v3/{project_id}/instances/{instance_id}/proxy

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token.

+

X-Language

+

No

+

String

+

Language.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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. 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 NodesWeight objects

+

Read weight of the node.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 NodesWeight

Parameter

+

Mandatory

+

Type

+

Description

+

id

+

No

+

String

+

Node ID.

+

weight

+

No

+

Integer

+

Weight assigned to the node. Value: 0 to 1000.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

job_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

+POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/43e4feaab48f11e89039fa163ebaa7e4br01/proxy
+{
+  "flavor_ref" : "gaussdb.mysql.large.x86.4",
+  "node_num" : 2,
+  "proxy_name" : "gaussdb-proxy",
+  "proxy_mode" : "readonly",
+  "nodes_read_weight" : [ {
+    "id" : "45021bf73a244312a3f2af95092feeecno07",
+    "weight" : 50
+  }, {
+    "id" : "d78a65690cea4af5ad14585e110ff89bno07",
+    "weight" : 400
+  } ]
+}
+
+

Example Response

Status code: 201

+

Success.

+
{
+  "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/DeleteGaussMySqlProxy.html b/docs/gaussdb_mysql/api-ref/DeleteGaussMySqlProxy.html new file mode 100644 index 000000000..c34dd20fd --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/DeleteGaussMySqlProxy.html @@ -0,0 +1,194 @@ + + +

Disabling Database Proxy

+

Function

This API is used to disable database proxy. Before using this API:

+ +
+

URI

DELETE /v3/{project_id}/instances/{instance_id}/proxy

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token.

+

X-Language

+

No

+

String

+

Language.

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

proxy_ids

+

No

+

Array of strings

+

Proxy instance IDs. If only one proxy instance is created, this parameter is not required. If multiple proxy instances are created, this parameter must be specified.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

job_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

DELETE https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/proxy
+{
+  "proxy_ids" : [ "151c14381ac14ecfb9703a745b992677po01" ]
+}
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/DeleteSqlFilterRule.html b/docs/gaussdb_mysql/api-ref/DeleteSqlFilterRule.html new file mode 100644 index 000000000..f3fcf32d7 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/DeleteSqlFilterRule.html @@ -0,0 +1,279 @@ + + +

Deleting Concurrency Control Rules of SQL Statements

+

Function

This API is used to delete concurrency control rules of SQL statements. Before calling this API:

+ +
+

URI

DELETE /v3/{project_id}/instances/{instance_id}/sql-filter/rules

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token.

+

X-Language

+

No

+

String

+

Language.

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

sql_filter_rules

+

Yes

+

Array of DeleteNodeSqlFilterRuleInfo objects

+

Concurrency control rules of SQL statements for nodes.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 DeleteNodeSqlFilterRuleInfo

Parameter

+

Mandatory

+

Type

+

Description

+

node_id

+

Yes

+

String

+

Node ID.

+

rules

+

Yes

+

Array of DeleteNodeSqlFilterRule objects

+

Concurrency control rules of SQL statements.

+
+
+ +
+ + + + + + + + + + + + + + + + +
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 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 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
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

+
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.

+
{
+  "job_id" : "aef6a470-fb63-4d5b-b644-12ead7e019b3"
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ExpandGaussMySqlProxy.html b/docs/gaussdb_mysql/api-ref/ExpandGaussMySqlProxy.html new file mode 100644 index 000000000..b2c8c894e --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ExpandGaussMySqlProxy.html @@ -0,0 +1,205 @@ + + +

Adding Database Proxy Nodes

+

Function

This API is used to add database proxy nodes.

+ +
+

URI

POST /v3/{project_id}/instances/{instance_id}/proxy/enlarge

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID, which is compliant with the UUID format.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token.

+

X-Language

+

No

+

String

+

Language.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

node_num

+

Yes

+

Integer

+

The number of proxy nodes to be added. The value is an integer from 1 to 30. Restrictions: The total number of proxy nodes for an instance is no more than 32.

+

proxy_id

+

No

+

String

+

ID of the proxy instance. If only one proxy instance is created, this parameter is not required. If multiple proxy instances are created, you must configure this parameter.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

job_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

+POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/61a4ea66210545909d74a05c27a7179ein07/proxy/enlarge
+{
+  "node_num" : 2,
+  "proxy_id" : "151c14381ac14ecfb9703a745b992677po01"
+}
+
+

Example Response

Status code: 201

+

Success.

+
{
+  "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ListGaussMySqlErrorLog.html b/docs/gaussdb_mysql/api-ref/ListGaussMySqlErrorLog.html new file mode 100644 index 000000000..ec1acf16f --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ListGaussMySqlErrorLog.html @@ -0,0 +1,294 @@ + + +

Querying Database Error Logs

+

Function

This API is used to query database error logs. Before using this API:

+ +
+

URI

GET /v3/{project_id}/instances/{instance_id}/errorlog?start_date={start_date}&end_date={end_date}&node_id={node_id}

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

start_date

+

Yes

+

String

+

Start 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.

+

end_date

+

Yes

+

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.

+

Only error logs generated within the last month can be queried.

+

offset

+

No

+

Integer

+

Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

+

limit

+

No

+

Integer

+

Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

+

level

+

No

+

String

+

Log level. The default value is ALL. Valid value:

+
  • ALL
  • INFO
  • WARNING
  • ERROR
  • FATAL
  • NOTE
+

node_id

+

Yes

+

String

+

Node ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
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 4 Response body parameters

Parameter

+

Type

+

Description

+

error_log_list

+

Array of MysqlErrorLogList objects

+

Error log details.

+

total_record

+

Integer

+

Total number of records.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 MysqlErrorLogList

Parameter

+

Type

+

Description

+

node_id

+

String

+

Node ID.

+

time

+

String

+

Time in the UTC format.

+

level

+

String

+

Log level.

+
  • ALL
  • INFO
  • WARNING
  • ERROR
  • FATAL
  • NOTE
+

content

+

String

+

Error log content.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

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

Status code: 200

+

Success.

+
{
+  "error_log_list" : [ {
+    "node_id" : "cc07c60e94ec4575989840e648fb4f66no07",
+    "time" : "2022-07-17T07:34:33",
+    "level" : "ERROR",
+    "content" : "[MY013508] [Repl] do failed: 1"
+  } ],
+ "total_record":1
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ListGaussMySqlSlowLog.html b/docs/gaussdb_mysql/api-ref/ListGaussMySqlSlowLog.html new file mode 100644 index 000000000..0c7070f97 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ListGaussMySqlSlowLog.html @@ -0,0 +1,365 @@ + + +

Querying Database Slow Logs

+

Function

This API is used to query database slow logs. Before using this API:

+ +
+

URI

GET /v3/{project_id}/instances/{instance_id}/slowlog?start_date={start_date}&end_date={end_date}&node_id={node_id}

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

start_date

+

Yes

+

String

+

Start time in the "yyyy-mm-ddThh:mm:ssZ" format.

+

T is the separator between calendar and hourly notation of time. Z indicates the time zone offset.

+

end_date

+

Yes

+

String

+

End time in the "yyyy-mm-ddThh:mm:ssZ" format.

+

T is the separator between calendar and hourly notation of time. Z indicates the time zone offset.

+

Only error logs generated within the last month can be queried.

+

offset

+

No

+

Integer

+

Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

+

limit

+

No

+

Integer

+

Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

+

type

+

No

+

String

+

Statement type. The default value All. If this parameter is left empty, all statement types are queried. Valid value:

+
  • ALL
  • INSERT
  • UPDATE
  • SELECT
  • DELETE
  • CREATE
  • DROP
  • ALTER
+

node_id

+

Yes

+

String

+

Node ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
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 4 Response body parameters

Parameter

+

Type

+

Description

+

slow_log_list

+

Array of MysqlSlowLogList objects

+

Error log details.

+

long_query_time

+

String

+

Slow query log threshold.

+

total_record

+

Integer

+

Total number of records.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 MysqlSlowLogList

Parameter

+

Type

+

Description

+

node_id

+

String

+

Node ID.

+

count

+

String

+

Number of executions.

+

time

+

String

+

Execution time.

+

lock_time

+

String

+

Lock wait time.

+

rows_sent

+

String

+

Number of sent rows.

+

rows_examined

+

String

+

Number of scanned rows.

+

database

+

String

+

Database which slow logs belong to.

+

users

+

String

+

Account.

+

query_sample

+

String

+

Execution syntax.

+

type

+

String

+

Statement type.

+

start_time

+

String

+

Start time in the UTC format.

+

client_ip

+

String

+

IP address.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/slowlog?offset=0&limit=1&start_date=2022-07-10T00:00:00+0800&end_date=2022-07-19T00:00:00+0800&node_id=cc07c60e94ec4575989840e648fb4f66no07&type=INSERT
+
+

Example Response

Status code: 200

+
Success.
{
+  "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

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ListInstanceTags.html b/docs/gaussdb_mysql/api-ref/ListInstanceTags.html new file mode 100644 index 000000000..31e6c1ba8 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ListInstanceTags.html @@ -0,0 +1,241 @@ + + +

Querying Resource Tags

+

Function

This API is used to query tags of a specified instance. Before calling this API:

+ +
+

URI

GET /v3/{project_id}/instances/{instance_id}/tags

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Integer

+

Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

+

limit

+

No

+

Integer

+

Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
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 4 Response body parameters

Parameter

+

Type

+

Description

+

total_count

+

Integer

+

Total number of records.

+

tags

+

Array of ResourceTagItem objects

+

Tag list.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 ResourceTagItem

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

value

+

String

+

Tag value.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

Querying resource tags

+
GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/tags?offset=0&limit=2
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "total_count" : 2,
+  "tags" : [ {
+    "key" : "key1",
+    "value" : "value1"
+  }, {
+    "key" : "key2",
+    "value" : "value2"
+  } ]
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ListProjectTags.html b/docs/gaussdb_mysql/api-ref/ListProjectTags.html new file mode 100644 index 000000000..ab3c164bf --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ListProjectTags.html @@ -0,0 +1,232 @@ + + +

Querying Project Tags

+

Function

This API is used to query all tags of instances in a specified project. Before using this API:

+ +
+

URI

GET /v3/{project_id}/tags

+ +
+ + + + + + + + + + + +
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 Obtaining a Project ID.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Integer

+

Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

+

limit

+

No

+

Integer

+

Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
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 4 Response body parameters

Parameter

+

Type

+

Description

+

total_count

+

Integer

+

Total number of records.

+

tags

+

Array of ProjectTagItem objects

+

Tag list.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 ProjectTagItem

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

values

+

Array of strings

+

Tag value.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

Querying tags in a specified project

+
GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/tags?offset=0&limit=2
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "total_count" : 2,
+  "tags" : [ {
+    "key" : "key1",
+    "values" : [ "value1", "value2" ]
+  }, {
+    "key" : "key2",
+    "values" : [ "value3", "value4" ]
+  } ]
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/SetGaussMySqlProxyWeight.html b/docs/gaussdb_mysql/api-ref/SetGaussMySqlProxyWeight.html new file mode 100644 index 000000000..44168b8e9 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/SetGaussMySqlProxyWeight.html @@ -0,0 +1,244 @@ + + +

Assigning Read Weights

+

Function

This API is used to assign read weights for nodes. Being using this API:

+ +
+

URI

PUT /v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/weight

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 URI parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID of a tenant in a region.

+

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.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token.

+

X-Language

+

No

+

String

+

Language.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

master_weight

+

No

+

Integer

+

Weight of the primary node.

+

readonly_nodes

+

No

+

Array of TaurusModifyProxyWeightReadonlyNode objects

+

Weight information of the read replicas.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 TaurusModifyProxyWeightReadonlyNode

Parameter

+

Mandatory

+

Type

+

Description

+

id

+

No

+

String

+

Read replica ID.

+

weight

+

No

+

Integer

+

Weight of the read replica.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

job_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

+PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/e73893ef73754465a8bd2e0857bbf13ein07/proxy/e87088f0b6a345e79db19d57c41fde15po01/weight
+{
+  "master_weight" : 100
+}
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "job_id" : "04efe8e2-9255-44ae-a98b-d87c11411890"
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/SetSqlFilterRule.html b/docs/gaussdb_mysql/api-ref/SetSqlFilterRule.html new file mode 100644 index 000000000..a2ecb0fe9 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/SetSqlFilterRule.html @@ -0,0 +1,327 @@ + + +

Configuring Concurrency Control Rules of SQL Statements

+

Function

This API is used to configure concurrency control rules of SQL statements. Before calling this API:

+ +
+

URI

PUT /v3/{project_id}/instances/{instance_id}/sql-filter/rules

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token.

+

X-Language

+

No

+

String

+

Language.

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

sql_filter_rules

+

Yes

+

Array of NodeSqlFilterRuleInfo objects

+

Concurrency control rules of SQL statements for nodes.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 NodeSqlFilterRuleInfo

Parameter

+

Mandatory

+

Type

+

Description

+

node_id

+

Yes

+

String

+

Node ID.

+

rules

+

Yes

+

Array of NodeSqlFilterRule objects

+

Concurrency control rules of SQL statements. The sql_type value must be unique.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 NodeSqlFilterRule

Parameter

+

Mandatory

+

Type

+

Description

+

sql_type

+

Yes

+

String

+

SQL statement type.

+

Valid value:

+
  • SELECT
  • UPDATE
  • DELETE
+

patterns

+

Yes

+

Array of NodeSqlFilterRulePattern objects

+

Concurrency control rules of SQL statements.

+
+
+ +
+ + + + + + + + + + + + + + + + +
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 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 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
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

+
+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.

+
{
+  "job_id" : "aef6a470-fb63-4d5b-b644-12ead7e019b3"
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ShowGaussMySqlJobInfo.html b/docs/gaussdb_mysql/api-ref/ShowGaussMySqlJobInfo.html new file mode 100644 index 000000000..5a1ec016f --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ShowGaussMySqlJobInfo.html @@ -0,0 +1,315 @@ + + +

Obtaining Information About a Task with a Specified ID

+

Function

This API is used to obtain task information from the task center. Before calling this API:

+ +
+

Constraints

+
+

URI

GET /v3/{project_id}/jobs?id={id}

+ +
+ + + + + + + + + + + +
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 Obtaining a Project ID.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

id

+

Yes

+

String

+

Task ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
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 4 Response body parameter

Parameter

+

Type

+

Description

+

job

+

GetJobInfoDetail object

+

Task information.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 GetJobInfoDetail

Parameter

+

Type

+

Description

+

id

+

String

+

Task ID.

+

name

+

String

+

Task name.

+

status

+

String

+

Task execution status.

+

Value:

+
  • Running: The task is being executed.
  • Completed: The task is successfully executed.
  • Failed: The task fails to be executed.
+

Valid value:

+
  • Running
  • Completed
  • Failed
+

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 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

+

GetJobInstanceInfoDetail object

+

DB instance information of the task with the specified ID.

+

entities

+

Object

+

Displayed information varies depending on tasks.

+

fail_reason

+

String

+

Task failure information.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 GetJobInstanceInfoDetail

Parameter

+

Type

+

Description

+

id

+

String

+

DB instance ID.

+

name

+

String

+

DB instance name.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/jobs?id=a9767ede-fe0f-4888-9003-e843a4c90514
+
+

Example Response

Status code: 200

+

In the response example, some tasks in the task center are used as examples.

+
+

Success.

+
{
+  "job" : {
+    "id" : "a9767ede-fe0f-4888-9003-e843a4c90514",
+    "name" : "CreateMysqlInstance",
+    "status" : "Completed",
+    "created" : "2018-08-06T10:41:14+0800",
+    "ended" : "2018-08-06T16:41:14+0000",
+    "process" : "",
+    "instance" : {
+      "id" : "a48e43ff268f4c0e879652d65e63d0fbin07",
+      "name" : "DO-NOT-TOUCH-mgr2-mysql-single"
+    },
+    "entities" : {
+      "instance" : {
+        "endpoint" : "192.168.1.203:3306",
+        "type" : "Cluster",
+        "datastore" : {
+          "type" : "gaussdb-mysql",
+          "version" : "8.0"
+        }
+      },
+      "resource_ids" : [ "a48e43ff268f4c0e879652d65e63d0fbin07.vm", "a48e43ff268f4c0e879652d65e63d0fbin07.volume" ]
+    }
+  }
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ShowGaussMySqlProjectQuotas.html b/docs/gaussdb_mysql/api-ref/ShowGaussMySqlProjectQuotas.html new file mode 100644 index 000000000..e66e7e9f7 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ShowGaussMySqlProjectQuotas.html @@ -0,0 +1,245 @@ + + +

Querying the DB Instance Quotas of a Tenant

+

Function

This API is used to obtain the resource quotas of a specified tenant. Before using this API:

+ +
+

URI

GET /v3/{project_id}/project-quotas

+ +
+ + + + + + + + + + + +
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 Obtaining a Project ID.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

type

+

No

+

String

+

Resource type used to filter quotas. Its value can be instance.

+

Valid value:

+
  • instance
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
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 4 Response body parameters

Parameter

+

Type

+

Description

+

quotas

+

project-quotas object

+

Tenant instance quota information.

+
+
+ +
+ + + + + + + + + +
Table 5 project-quotas

Parameter

+

Type

+

Description

+

resources

+

Array of resource objects

+

Resource list objects.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 resource

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

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/project-quotas?type=instance
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "quotas" : {
+    "resources" : [ {
+      "type" : "instance,",
+      "used" : "4,",
+      "quota" : 50
+    } ]
+  }
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ShowGaussMySqlProxyFlavors.html b/docs/gaussdb_mysql/api-ref/ShowGaussMySqlProxyFlavors.html new file mode 100644 index 000000000..6b23ddc0a --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ShowGaussMySqlProxyFlavors.html @@ -0,0 +1,261 @@ + + +

Querying Database Proxy Specifications

+

Function

This API is used to query database proxy specifications. Before using this API:

+ +
+

URI

GET /v3/{project_id}/instances/{instance_id}/proxy/flavors

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 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 3 Response body parameters

Parameter

+

Type

+

Description

+

proxy_flavor_groups

+

Array of MysqlProxyFlavorGroups objects

+

Specification group information.

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 MysqlProxyFlavorGroups

Parameter

+

Type

+

Description

+

group_type

+

String

+

Specification group type. It can be x86.

+

proxy_flavors

+

Array of MysqlProxyComputeFlavor objects

+

Proxy specifications.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 MysqlProxyComputeFlavor

Parameter

+

Type

+

Description

+

vcpus

+

String

+

Number of vCPUs. For example, the value 1 indicates 1 vCPU.

+

ram

+

String

+

Memory size in GB.

+

db_type

+

String

+

Database type.

+

id

+

String

+

Proxy specification ID.

+

spec_code

+

String

+

Proxy specification code.

+

az_status

+

Object

+

AZ status. key indicates the AZ ID and value indicates the status of the AZ where the proxy specifications reside. The value can be normal or unsupported.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/proxy/flavors
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "proxy_flavor_groups" : {
+    "group_type" : "X86",
+    "proxy_flavors" : {
+      "id" : "19be4c5d-d363-3342-bdbc-0dd9dbf7fafe",
+      "spec_code" : "gaussdb.proxy.large.x86.2",
+      "vcpus" : 2,
+      "ram" : 4,
+      "db_type" : "Proxy",
+      "az_status" : {
+        "az1" : "normal"
+      },
+      "region_status" : "normal"
+    }
+  }
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ShowGaussMySqlProxyList.html b/docs/gaussdb_mysql/api-ref/ShowGaussMySqlProxyList.html new file mode 100644 index 000000000..d997b4e76 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ShowGaussMySqlProxyList.html @@ -0,0 +1,540 @@ + + +

Querying Database Proxy Instances

+

Function

This API is used to query database proxy instances. Before calling this API:

+ +
+

URI

GET /v3/{project_id}/instances/{instance_id}/proxies

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Integer

+

Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

+

limit

+

No

+

Integer

+

Number of records to be queried. The default value is 10. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
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 4 Response body parameters

Parameter

+

Type

+

Description

+

proxy_list

+

Array of MysqlShowProxyResponseV3 objects

+

Proxy instances.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 MysqlShowProxyResponseV3

Parameter

+

Type

+

Description

+

proxy

+

MysqlProxyV3 object

+

Proxy instance information.

+

master_node

+

MysqlProxyNodeV3 object

+

Primary node information.

+

readonly_nodes

+

Array of MysqlProxyNodeV3 objects

+

Read replica information.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 MysqlProxyV3

Parameter

+

Type

+

Description

+

pool_id

+

String

+

Proxy instance ID.

+

status

+

String

+

Operating status of the proxy instance. It can be either of the following:

+
  • ACTIVE: The database proxy is normal.
  • FAILED: The database proxy fails to be created.
  • DELETED: The database proxy is deleted.
  • ABNORMAL: The database proxy is abnormal.
  • ENABLING PROXY: The database proxy is being enabled.
  • DISABLING PROXY: The database proxy is being disabled.
  • ADDING PROXY NODE: Nodes are being added to the database proxy.
  • DELETING READ REPLICAS FROM PROXY: Read replicas are being removed from the database proxy.
  • ADDING READ REPLICAS TO PROXY: Read replicas are being added to the database proxy.
  • CHANGING WEIGHT: The weights of read replicas for the database proxy are being changed.
+

address

+

String

+

Proxy read/write splitting address.

+

port

+

Integer

+

Proxy port information.

+

pool_status

+

String

+

Proxy instance status. Value: ACTIVE, ABNORMAL, FAILED, or DELETED.

+

delay_threshold_in_seconds

+

Integer

+

Delay threshold in seconds.

+

elb_vip

+

String

+

Virtual IP address in ELB mode.

+

eip

+

String

+

EIP information.

+

vcpus

+

String

+

Number of vCPUs of the proxy instance.

+

ram

+

String

+

Memory size of the proxy instance.

+

node_num

+

Integer

+

Number of proxy nodes.

+

mode

+

String

+

Primary/standby proxy. The value is Cluster.

+

nodes

+

Array of MysqlProxyNodes objects

+

Proxy node information.

+

flavor_ref

+

String

+

Proxy specifications.

+

name

+

String

+

Proxy instance name.

+

transaction_split

+

String

+

Whether the proxy transaction splitting is enabled. Value: ON or OFF.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 MysqlProxyNodes

Parameter

+

Type

+

Description

+

id

+

String

+

Proxy node ID.

+

status

+

String

+

Proxy node status. Value: ACTIVE, ABNORMAL, BUILD, or FAILED.

+

name

+

String

+

Proxy node name.

+

role

+

String

+

Role of the proxy node. It can be master or slave.

+

az_code

+

String

+

AZ.

+

frozen_flag

+

Integer

+

Whether the proxy node is frozen. It can be 0 (unfrozen), 1 (frozen), or 2 (deleted after being frozen).

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 MysqlProxyNodeV3

Parameter

+

Type

+

Description

+

id

+

String

+

Node ID.

+

instance_id

+

String

+

DB instance ID.

+

status

+

String

+

Node status.

+

name

+

String

+

Node name.

+

weight

+

Integer

+

Read weight of the node.

+

availability_zone

+

Array of MysqlProxyAvailable objects

+

AZ information.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 MysqlProxyAvailable

Parameter

+

Type

+

Description

+

code

+

String

+

AZ code.

+

description

+

String

+

AZ description.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/proxies?offset=0&limit=10
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "proxy_list" : [ {
+    "proxy" : {
+      "pool_id" : "2e7cf21d14794bafab623a334efd9ad8po01",
+      "status" : "ACTIVE",
+      "address" : "192.168.125.69",
+      "port" : 3306,
+      "pool_status" : "ACTIVE",
+      "delay_threshold_in_seconds" : 30,
+      "elb_vip" : "192.168.125.60",
+      "eip" : "192.168.125.50",
+      "vcpus" : 4,
+      "ram" : 8,
+      "node_num" : 2,
+      "mode" : "Cluster",
+      "nodes" : [ {
+        "id" : "db53a238a02240c49365e72e284a4890pn01",
+        "name" : "PROXY-2e7cf21d14794bafab623a334efd9ad8po01_0",
+        "role" : "master",
+        "az_code" : "az1",
+        "status" : "ACTIVE",
+        "frozen_flag" : 0
+      } ],
+      "name" : "proxy-name",
+      "flavor_ref":"gaussdb.proxy.large.x86.2",
+      "transaction_split":"OFF"
+    },
+    "master_node" : {
+      "id" : "c01a5645eb2c4fb6a9373542f5366e50no07",
+      "instance_id" : "096c0fc43e804757b59946b80dc27f8bin07",
+      "status" : "ACTIVE",
+      "name" : "taurus_mysql80_x86-ondemand-2-1U4G_1_202103070251274842281_node01",
+      "weight" : 0,
+      "availability_zone" : [{
+        "code" : "az1",
+        "description": "AZ1"
+      }]
+    },
+    "readonly_nodes" : {
+      "id" : "d23535333138462880bfa1838fdfced2no07",
+      "instance_id" : "7a871d6d494e4327ad2e326afb591108in07",
+      "status" : "ACTIVE",
+      "name" : "taurus_mysql80_x86-ondemand-2-1U4G_1_202103070251274842281_node02",
+      "weight" : 100,
+      "availability_zone" : [{
+        "code" : "az1",
+        "description": "AZ1"
+      }]
+    }
+  } ]
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ShowInstanceMonitorExtend.html b/docs/gaussdb_mysql/api-ref/ShowInstanceMonitorExtend.html new file mode 100644 index 000000000..2ba9faa8e --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ShowInstanceMonitorExtend.html @@ -0,0 +1,179 @@ + + +

Querying the Collection Period of Monitoring by Seconds

+

Function

This API is used to query the collection period of Monitoring by Seconds. Before calling this API:

+ +
+

URI

GET /v3/{project_id}/instances/{instance_id}/monitor-policy

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 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 3 Response body parameters

Parameter

+

Type

+

Description

+

monitor_switch

+

Boolean

+

Whether to enable Monitoring by Seconds. true indicates that the function is enabled, and false indicates that the function is disabled.

+

period

+

Integer

+

Collection period. This parameter is returned only when monitor_switch is set to true.

+
  • 1: The collection period is 1s.
  • 5: The collection period is 5s.
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

Querying the collection period of Monitoring by Seconds for an instance

+
GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/monitor-policy
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "monitor_switch" : true,
+  "period" : "1"
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/ShowSqlFilterRule.html b/docs/gaussdb_mysql/api-ref/ShowSqlFilterRule.html new file mode 100644 index 000000000..6010fc36e --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/ShowSqlFilterRule.html @@ -0,0 +1,287 @@ + + +

Querying Concurrency Control Rules of SQL Statements

+

Function

This API is used to query concurrency control rules of SQL statements. Before calling this API:

+ +
+

URI

GET /v3/{project_id}/instances/{instance_id}/sql-filter/rules?node_id={node_id}

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+ +
+ + + + + + + + + + + + + + + + +
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 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 4 Response body parameters

Parameter

+

Type

+

Description

+

node_id

+

String

+

Node ID.

+

sql_filter_rules

+

Array of SqlFilterRule objects

+

Concurrency control rules of SQL statements.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 SqlFilterRule

Parameter

+

Type

+

Description

+

sql_type

+

String

+

SQL statement type.

+

Valid value:

+
  • SELECT
  • UPDATE
  • DELETE
+

patterns

+

Array of SqlFilterRulePattern objects

+

Concurrency control rules of SQL statements.

+
+
+ +
+ + + + + + + + + + + + + +
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 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
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

+
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.

+
{
+  "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 Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/UpdateInstanceMonitor.html b/docs/gaussdb_mysql/api-ref/UpdateInstanceMonitor.html new file mode 100644 index 000000000..8a84600eb --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/UpdateInstanceMonitor.html @@ -0,0 +1,209 @@ + + +

Changing the Collection Period of Monitoring by Seconds

+

Function

This API is used to enable and disable Monitoring by Seconds, and change its collection period. Before calling this API, you can:

+ +
+

URI

PUT /v3/{project_id}/instances/{instance_id}/monitor-policy

+ +
+ + + + + + + + + + + + + + + + +
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 Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

DB instance ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token.

+

X-Language

+

No

+

String

+

Language.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

monitor_switch

+

Yes

+

Boolean

+

Whether to enable Monitoring by Seconds. true indicates that the function is enabled, and false indicates that the function is disabled.

+

period

+

No

+

Integer

+

Collection period. This parameter is available only when monitor_switch is set to true. The default value is 5s. This parameter is not displayed when monitor_switch is set to false.

+

1: indicates that the collection period is 1s. 5: indicates that the collection period is 5s.

+

Valid value:

+
  • 1
  • 5
+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

job_id

+

String

+

Taskflow ID for modifying Monitoring by Seconds

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

Modifying the collection period of Monitoring by Seconds for an instance. The current collection period to 1s.

+
+PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/monitor-policy
+{
+  "monitor_switch" : true,
+  "period" : 1
+}
+
+

Example Response

Status code: 200

+

Success.

+
{
+  "job_id" : "6b7dd5d4-4590-4f14-b164-a8737ce071d5"
+}
+
+

Status Code

For details, see Status Codes.

+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/gaussdb_mysql/api-ref/changeHistory.html b/docs/gaussdb_mysql/api-ref/changeHistory.html index 50d0c9c1d..87c96a3b6 100644 --- a/docs/gaussdb_mysql/api-ref/changeHistory.html +++ b/docs/gaussdb_mysql/api-ref/changeHistory.html @@ -2,21 +2,34 @@

Change History

-

Released On

+
- - - - - + + + + + + diff --git a/docs/gaussdb_mysql/api-ref/en-us_image_0000001372529646.png b/docs/gaussdb_mysql/api-ref/en-us_image_0000001427231638.png similarity index 100% rename from docs/gaussdb_mysql/api-ref/en-us_image_0000001372529646.png rename to docs/gaussdb_mysql/api-ref/en-us_image_0000001427231638.png diff --git a/docs/gaussdb_mysql/api-ref/en-us_image_0000001423128721.jpg b/docs/gaussdb_mysql/api-ref/en-us_image_0000001476990897.jpg similarity index 100% rename from docs/gaussdb_mysql/api-ref/en-us_image_0000001423128721.jpg rename to docs/gaussdb_mysql/api-ref/en-us_image_0000001476990897.jpg diff --git a/docs/gaussdb_mysql/api-ref/en-us_image_0000001422968749.gif b/docs/gaussdb_mysql/api-ref/en-us_image_0000001477110589.gif similarity index 100% rename from docs/gaussdb_mysql/api-ref/en-us_image_0000001422968749.gif rename to docs/gaussdb_mysql/api-ref/en-us_image_0000001477110589.gif diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_00_0001.html b/docs/gaussdb_mysql/api-ref/gaussdb_00_0001.html index 9519e72ae..e63cef779 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_00_0001.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_00_0001.html @@ -1,8 +1,11 @@

Overview

-

This document describes how to use application programming interfaces (APIs) to perform operations on DB instances. For details about all supported operations, see API Overview.

-

If you plan to access GaussDB(for MySQL) through an API, ensure that you are familiar with GaussDB(for MySQL) concepts. For details, see "What Is GaussDB(for MySQL)?" in the GaussDB(for MySQL) User Guide.

+

GaussDB(for MySQL) is a MySQL-compatible, enterprise-grade distributed database service. It uses a compute-storage decoupled architecture and supports up to 128 TB of storage. With GaussDB(for MySQL), there is no need to do sharding, and no need to worry about data loss. It provides superior performance of commercial databases at the price of open-source databases.

+

Data Function Virtualization (DFV) is a high-performance and high-reliability distributed storage system that is vertically integrated with databases. Storage clusters are deployed in pools to improve storage utilization.

+
+

This document describes how to use application programming interfaces (APIs) to perform operations on DB instances. For details about all supported operations, see API Overview.

+

If you plan to access GaussDB(for MySQL) through an API, ensure that you are familiar with GaussDB(for MySQL) concepts. For details, see Introduction in GaussDB(for MySQL) User Guide.

- + + + - - + + + + + + + + + + + + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_03_0000.html b/docs/gaussdb_mysql/api-ref/gaussdb_03_0000.html index 954e92898..87f435490 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_03_0000.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_03_0000.html @@ -1,6 +1,6 @@ -

Calling APIs

+

API Usage Guidelines

Released On

Description

+

Description

2022-10-30

+

2023-04-06

This issue is the second official release.

- +

Modified the following content:

+

2020-05-30

+

2022-11-30

This issue is the first official release.

+

Modified the following content:

+ +

2020-12-09

+

Modified the following content:

+

Optimized the content for API usage.

+

Modified the spec_code description parameter in Querying Database Specifications.

+

2020-05-30

+

This issue is the first official release.

DB instance management

Create DB instances, query DB instance lists, query DB instance details, delete DB instances, create read replicas, and delete read replicas.

+

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

@@ -34,9 +39,29 @@

Query, set, and modify resource quotas.

Task information query

+

Database proxy

Obtain task information about the task center.

+

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.

1
-2
Content-Type: application/json
-X-Auth-Token: ABCDEFJ....
+2
Content-Type: application/json
+X-Auth-Token: ABCDEFJ....
 
@@ -18,7 +42,7 @@
diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_03_0005.html b/docs/gaussdb_mysql/api-ref/gaussdb_03_0005.html index a0c0fc293..ad0f8a6d3 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_03_0005.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_03_0005.html @@ -1,7 +1,7 @@

Making an API Request

-

This section describes the structure of a REST API, and uses the IAM API for obtaining a user token as an example to describe how to call an API. The obtained token is used to authenticate the calling of other APIs.

+

This section describes the structure of a REST API, and uses the IAM API for obtaining a user token as an example to describe how to call an API. The obtained token is used to authenticate the calling of other APIs.

Request URI

A request URI consists of the following:

{URI-scheme}://{Endpoint}/{resource-path}?{query-string}

Although a request URI is included in a request header, most programming languages or frameworks require the request URI to be separately transmitted, rather than being conveyed in a request message.

@@ -138,7 +138,7 @@

(Optional) Request Body

This part is optional. The body of a request is often sent in a structured format (for example, JSON or XML) as specified in the Content-Type header field. If the request body contains full-width characters, these characters must be coded in UTF-8.

The request body varies between APIs. Some APIs do not require the request body, such as the APIs requested using the GET and DELETE methods.

-
In the case of the API used to obtain a user token, the request parameters and parameter description can be obtained from the API request. The following provides an example request with a body included. Replace username, domainname, ******** (login password), and xxxxxxxxxxxxxxxxxx (project name) with actual values. You can obtain the values from Regions and Endpoints.

The scope parameter specifies where a token takes effect. You can set scope to an account or a project under an account. In the following example, the token takes effect only for the resources in a specified project. For more information about this API, see Obtaining a User Token.

+
In the case of the API used to obtain a user token, the request parameters and parameter description can be obtained from the API request. The following provides an example request with a body included. Replace username, domainname, ******** (login password), and xxxxxxxxxxxxxxxxxx (project name) with actual values. It can be obtained from Regions and Endpoints.

The scope parameter specifies where a token takes effect. You can set scope to an account or a project under an account. In the following example, the token takes effect only for the resources in a specified project. For more information about this API, see Obtaining a User Token.

@@ -172,7 +172,7 @@ Content-Type: application/json
 
diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_03_0006.html b/docs/gaussdb_mysql/api-ref/gaussdb_03_0006.html index 75fde4251..9772ba99c 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_03_0006.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_03_0006.html @@ -7,7 +7,7 @@

Response Header

Similar to a request, a response also has a header, for example, Content-Type.

Figure 1 shows the response header for the API used to obtain a user token. The x-subject-token header field is the desired user token. This token can then be used to authenticate the calling of other APIs.

-
Figure 1 Header fields of the response to the request for obtaining a user token
+
Figure 1 Header fields of the response to the request for obtaining a user token

(Optional) Response Body

This part is optional. The body of a response is often returned in structured format as specified in the Content-Type header field. The response body transfers content except the response header.

The following is part of the response body for the API used to obtain a user token.
{
@@ -33,7 +33,7 @@
 
diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0000.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0000.html index 395720fac..b107aa077 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0000.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0000.html @@ -1,6 +1,6 @@ -

API

+

APIs (Recommended)

diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0001.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0001.html index 41622425f..d0f02d5e6 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0001.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0001.html @@ -1,97 +1,189 @@

Querying Version Information About a DB Engine

-

Function

This API is used to query the DB version information of a specified DB engine.

- +

Function

This API is used to query the version information of a specified DB engine. Before calling this API:

+
-

URI

  • URI format

    GET https://{Endpoint}/mysql/v3/{project_id}/datastores/{database_name}

    -
  • Example

    GET https://{Endpoint}/mysql/v3/619d3e78f61b4be68bc5aa0b59edcf7b/datastores/gaussdb-mysql

    -
  • Parameter description -
    Table 1 Parameter description

    Name

    +

    URI

    GET /v3/{project_id}/datastores/{database_name}

    + +
    - - + - - - + - - - +
    Table 1 URI parameters

    Parameter

    Mandatory

    +

    Mandatory

    Description

    +

    Type

    +

    Description

    project_id

    +

    project_id

    Yes

    +

    Yes

    Project ID of a tenant in a region.

    -

    To obtain this value, see Obtaining a Project ID.

    +

    String

    +

    Project ID of a tenant in a region.

    +

    To obtain this value, see Obtaining a Project ID.

    database_name

    +

    database_name

    Yes

    +

    Yes

    DB engine. The following DB engine is supported (case-insensitive): gaussdb-mysql

    +

    String

    +

    DB engine. The following DB engine is supported (case-insensitive): gaussdb-mysql

    -
    -

    Request

    None.

    -
    -

    Response

    • Normal response -
      Table 2 Parameter description

      Name

      +

      Request Parameters

      +
      - - + - - - + + + + + + + + +
      Table 2 Request header parameters

      Parameter

      Type

      +

      Mandatory

      Description

      +

      Type

      +

      Description

      datastores

      +

      X-Auth-Token

      Array of objects

      +

      Yes

      DB version list.

      -

      For details, see Table 3.

      +

      String

      +

      User token.

      +

      X-Language

      +

      No

      +

      String

      +

      Language.

      +
      +
      +
      +

      Response Parameters

      Status code: 200

      + +
      + + + + + + +
      Table 3 Response body parameters

      Parameter

      +

      Type

      +

      Description

      +

      datastores

      +

      Array of MysqlEngineVersionInfo objects

      +

      DB versions.

      -
      Table 3 datastores field data structure description

      Name

      +
      - - - - - - - -
      Table 4 MysqlEngineVersionInfo

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      id

      +

      id

      String

      +

      String

      DB version ID. Its value is unique.

      +

      DB version ID. Its value is unique.

      name

      +

      name

      String

      +

      String

      DB version number. Only the major version number with two digits is returned.

      +

      DB version number. Only the major version number with two digits is returned.

      - +

      Status code: 400

      + +
      + + + + + + + + + + + + + +
      Table 5 Response body parameters

      Parameter

      +

      Type

      +

      Description

      +

      error_code

      +

      String

      +

      Error code.

      +

      error_msg

      +

      String

      +

      Error message.

      +
      -
      • Example normal response
        {
        -         "datastores": [{
        -                   "id": "87620726-6802-46c0-9028-a8785e1f1921",
        -                   "name": "8.0"
        -         }]
        +

        Status code: 500

        + +
        + + + + + + + + + + + + + +
        Table 6 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        error_code

        +

        String

        +

        Error code.

        +

        error_msg

        +

        String

        +

        Error message.

        +
        +
        + +

        Example Request

        GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/datastores/gaussdb-mysql
        +
        +

        Example Response

        Status code: 200

        +

        Success.

        +
        {
        +  "datastores" : [ {
        +    "id" : "87620726-6802-46c0-9028-a8785e1f1921",
        +    "name" : "8.0"
        +  } ]
         }
        -
      +

      Status Code

      For details, see Status Codes.

      Error Code

      For details, see Error Codes.

      @@ -99,7 +191,7 @@
      diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0002.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0002.html index 1b39aeb20..de23e2cf5 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0002.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0002.html @@ -1,208 +1,291 @@

      Querying Database Specifications

      -

      Function

      This API is used to query the database specifications of a specified DB engine version.

      - +

      Function

      This API is used to query the database specifications of a specified DB engine version. Before calling this API:

      +
      -

      URI

      • URI format

        GET https://{Endpoint}/mysql/v3/{project_id}/flavors/{database}?version_name={version_name}&spec_code={spec_code}

        -
      • Example

        GET https://{Endpoint}/mysql/v3/0483b6b16e954cb88930a360d2c4e663/flavors/gaussdb-mysql?version_name=8.0&spec_code=gaussdb.mysql.xlarge.x86.4

        -
      -
      • Parameter description -
        Table 1 Parameter description

        Name

        +

        URI

        GET /v3/{project_id}/flavors/{database_name}?availability_zone_mode={availability_zone_mode}

        + +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 1 URI parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID of a tenant in a region.

        -

        To obtain this value, see Obtaining a Project ID.

        +

        Project ID of a tenant in a region.

        +

        To obtain this value, see Obtaining a Project ID.

        database

        +

        database_name

        Yes

        +

        Yes

        String

        +

        String

        DB engine. Its value can be any of the following and is case-insensitive:

        -
        • gaussdb-mysql
        -

        version_name

        -

        No

        -

        String

        -

        DB version number. To obtain this value, see Querying Version Information About a DB Engine.

        -

        Currently, only MySQL 8.0 is supported.

        -

        availability_zone_mode

        -

        Yes

        -

        String

        -

        AZ type of the specification. The value can be single or multi.

        -

        spec_code

        -

        No

        -

        String

        -

        Specification code.

        -
        -
        - -
        -

        Request

        None.

        -
        -

        Response

        • Normal response -
          - - - - - - -
          Table 2 Parameter description

          Name

          -

          Type

          -

          Description

          -

          flavors

          -

          Array of objects

          -

          DB instance specification list.

          -

          For details, see Table 3.

          +

          DB engine.

          -
          Table 3 flavors field data structure description

          Name

          +
          - - + - - - + - - - + - - - - - - - - - - - - - - - - - - - - - - -
          Table 2 Query parameters

          Parameter

          Type

          +

          Mandatory

          Description

          +

          Type

          +

          Description

          vcpus

          +

          version_name

          String

          +

          No

          Number of vCPUs. For example, the value 1 indicates 1 vCPU.

          +

          String

          +

          DB version number. To obtain this value, see Querying Version Information About a DB Engine.

          +

          Currently, only MySQL 8.0 is supported.

          ram

          +

          availability_zone_mode

          Integer

          +

          Yes

          Memory size in gigabyte (GB).

          +

          String

          +

          AZ mode. Its value can be single or multi and is case-insensitive.

          type

          +

          spec_code

          String

          +

          No

          Specification type. The value can be arm or x86.

          +

          String

          id

          -

          String

          -

          Specification ID. The value must be unique.

          -

          spec_code

          -

          String

          -

          Resource specification code. For example: gaussdb.mysql.xlarge.x86.4.

          -

          version_name

          -

          String

          -

          DB version number.

          -

          instance_mode

          -

          String

          -

          DB instance type. Currently, only the cluster type is supported.

          -

          az_status

          -

          Map<String, String>

          -

          Status of the AZ where the specification belongs. Its value can be any of the following:

          -
          • normal: on sale.
          • unsupported: not supported.
          • sellout: sold out.
          +

          Specification code.

          - -
          • Example normal response
            {
            -    "flavors":[
            -        {
            -            "vcpus":"1",
            -            "ram":"4",
            -            "type":"x86"            
            -"id":"3169caaf-6c2f-41d5-aadd-c8fc3d83597e",
            -            "spec_code":"gaussdb.xlarge.x86.4",
            -            "instance_mode":"Cluster",
            -            "version_name": "8.0",
            -            "az_status":{
            -                "az1":"normal",
            -                "az2":"normal"
            -            }
            -        },
            -        {
            -            "vcpus":"2",
            -            "ram":"4",
            -            "type":"arm"
            -            "id":"cefb8fab-c9f7-482f-a97c-e8a0c8abe35b",
            -            "spec_code":"gaussdb.mysql.xlarge.x86.2",
            -            "instance_mode":"Cluster",
            -"version_name": "8.0",
            -            "az_status":{
            -                "az1":"normal",
            -                "az2":"normal"
            -            }
            -        }
            -    ]
            +

            Request Parameters

            +
            + + + + + + + + + + + + + + + + +
            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 4 Response body parameters

            Parameter

            +

            Type

            +

            Description

            +

            flavors

            +

            Array of MysqlFlavorsInfo objects

            +

            DB instance specifications.

            +
            +
            + +
            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
            Table 5 MysqlFlavorsInfo

            Parameter

            +

            Type

            +

            Description

            +

            vcpus

            +

            String

            +

            Number of vCPUs. For example, the value 1 indicates 1 vCPU.

            +

            ram

            +

            String

            +

            Memory size in GB.

            +

            type

            +

            String

            +

            Specification type. The value can be arm.

            +

            id

            +

            String

            +

            Specification ID. The value must be unique.

            +

            spec_code

            +

            String

            +

            Resource specification code. Its value is same as the value of flavor_ref. For example: gaussdb.mysql.xlarge.arm.8

            +

            version_name

            +

            String

            +

            DB version number.

            +

            instance_mode

            +

            String

            +

            DB instance type. Currently, its value can only be Cluster.

            +

            az_status

            +

            Map<String,String>

            +

            Status of the AZ to which the DB instance specifications belong. Its value can be any of the following:

            +
            • normal: on sale
            • unsupported: not supported
            • sellout: sold out
            +
            +
            +

            Status code: 400

            + +
            + + + + + + + + + + + + + +
            Table 6 Response body parameters

            Parameter

            +

            Type

            +

            Description

            +

            error_code

            +

            String

            +

            Error code.

            +

            error_msg

            +

            String

            +

            Error message.

            +
            +
            +

            Status code: 500

            + +
            + + + + + + + + + + + + + +
            Table 7 Response body parameters

            Parameter

            +

            Type

            +

            Description

            +

            error_code

            +

            String

            +

            Error code.

            +

            error_msg

            +

            String

            +

            Error message.

            +
            +
            +
            +

            Example Request

            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/flavors/gaussdb-mysql?version_name=8.0&spec_code=gaussdb.mysql.xlarge.arm.8&availability_zone_mode=single
            +
            +

            Example Response

            Status code: 200

            +

            Success.

            +
            {
            +  "flavors" : [ {
            +    "vcpus" : "4",
            +    "ram" : "32",
            +    "type" : "arm",
            +    "id" : "3169caaf-6c2f-41d5-aadd-c8fc3d83597e",
            +    "spec_code" : "gaussdb.mysql.xlarge.arm.8",
            +    "instance_mode" : "Cluster",
            +    "version_name" : "8.0",
            +    "az_status" : {
            +      "az1" : "normal",
            +      "az2" : "unsupported"
            +    }
            +  } ]
             }
            -
          -

          Status Code

          For details, see Status Codes.

          -

          Error Code

          For details, see Error Codes.

          +

          Status Code

          For details, see Status Codes.

          +
          +

          Error Code

          For details, see Error Codes.

          diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0003.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0003.html index 29955fd13..ed2667b05 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0003.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0003.html @@ -5,18 +5,32 @@ diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0004.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0004.html index 64f0f2f1c..89a78d833 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0004.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0004.html @@ -1,585 +1,733 @@ -

          Creating a DB instance

          -

          Function

          This API is used to create a GaussDB(for MySQL) DB instance

          - +

          Creating a DB Instance

          +

          Function

          This API is used to create a GaussDB(for MySQL) instance. Before calling this API:

          +
          -

          URI

          • URI format

            POST https://{Endpoint}/mysql/v3/{project_id}/instances

            -
          • Example

            POST https://{Endpoint}/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances

            -
          • Parameter description -
            Table 1 Parameter description

            Name

            +

            URI

            POST /v3/{project_id}/instances

            + +
            - - + - - - +
            Table 1 URI parameters

            Parameter

            Mandatory

            +

            Mandatory

            Description

            +

            Type

            +

            Description

            project_id

            +

            project_id

            Yes

            +

            Yes

            Project ID of a tenant in a region.

            -

            To obtain this value, see Obtaining a Project ID.

            +

            String

            +

            Project ID of a tenant in a region.

            +

            To obtain this value, see Obtaining a Project ID.

            -
            -

            Request

            -
            Table 2 Parameter description

            Name

            +

            Request Parameters

            +
            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            Table 2 Request header parameters

            Parameter

            Mandatory

            +

            Mandatory

            Type

            +

            Type

            Description

            +

            Description

            charge_info

            +

            X-Auth-Token

            No

            +

            Yes

            Object

            +

            String

            Billing mode.

            -

            For details, see Table 3.

            +

            User token.

            name

            +

            X-Language

            Yes

            +

            No

            String

            +

            String

            DB instance name.

            -

            DB instances of the same type can have same names under the same tenant.

            -

            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 (_).

            -

            datastore

            -

            Yes

            -

            Object

            -

            Database information.

            -

            For details, see Table 4.

            -

            mode

            -

            Yes

            -

            String

            -

            DB instance type. Currently, only the cluster type is supported.

            -

            flavor_ref

            -

            Yes

            -

            String

            -

            Specification code.

            -

            vpc_id

            -

            Yes

            -

            String

            -

            VPC ID. To obtain this value, use either of the following methods:

            -
            • Method 1: Log in to the VPC console and view the VPC ID on the VPC details page.
            • Method 2: See "Querying VPCs" in the Virtual Private Cloud API Reference.
            -

            subnet_id

            -

            Yes

            -

            String

            -

            Network ID. To obtain this value, use either of the following methods:

            -
            • Method 1: Log in to the VPC console and click the target subnet on the Subnets page. You can view the network ID on the displayed page.
            • Method 2: See "Querying Subnets" in the Virtual Private Cloud API Reference.
            -

            security_group_id

            -

            No

            -

            String

            -

            Security group ID.

            -

            If the network ACL is enabled for the subnet used by the created DB instance, this parameter is optional. If the network ACL is not enabled, this parameter is mandatory.

            -
            • Method 1: Log in to VPC console. Choose Access Control > Security Groups in the navigation pane on the left. On the displayed page, click the target security group. You can view the security group ID on the displayed page.
            • Method 2: See "Querying Security Groups" in the Virtual Private Cloud API Reference.
            -

            configuration_id

            -

            No

            -

            String

            -

            Parameter template ID.

            -

            password

            -

            Yes

            -

            String

            -

            Database password.

            -

            Valid value:

            -

            The password is 8 to 32 characters long and must contain at least three types of the following: uppercase letters, lowercase letters, digits, and special characters (~!@#%^*-_=+?).

            -

            You are advised to enter a strong password to improve security and prevent security risks such as brute force cracking. If you enter a weak password, the system automatically determines that the password is invalid.

            -

            backup_strategy

            -

            No

            -

            Object

            -

            Automated backup policy.

            -

            For details, see Table 5.

            -

            time_zone

            -

            No

            -

            String

            -

            UTC time zone.

            -
            • If this parameter is not specified, UTC is used by default.
            • If this parameter is specified, the value ranges from UTC-12:00 to UTC+12:00 at the full hour. For example, the parameter can be UTC+08:00 rather than UTC+08:30.
            -

            availability_zone_mode

            -

            Yes

            -

            String

            -

            AZ type. The value can be single or multi.

            -

            master_availability_zone

            -

            If availability_zone_mode is set to multi, this parameter is mandatory.

            -

            If availability_zone_mode is set to single, this parameter cannot be specified.

            -

            String

            -

            Primary AZ.

            -

            slave_count

            -

            Yes

            -

            Integer

            -

            Number of read-only nodes from 1 to 9. A DB instance can have a maximum of 15 read-only nodes.

            -

            region

            -

            Yes

            -

            String

            -

            Region ID.

            -

            The value cannot be empty. To obtain this value, see Regions and Endpoints.

            -

            enterprise_project_id

            -

            No

            -

            String

            -

            Enterprise project ID. This parameter is mandatory only when the enterprise project is enabled.

            +

            Language.

            -
            Table 3 charge_info field data structure description

            Name

            +
            - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
            Table 3 Request body parameters

            Parameter

            Mandatory

            +

            Mandatory

            Type

            +

            Type

            Description

            +

            Description

            charge_mode

            +

            charge_info

            Yes

            +

            No

            String

            +

            MysqlChargeInfo object

            Billing mode.

            -

            Value: postPaid

            +

            Billing mode.

            +

            region

            +

            Yes

            +

            String

            +

            Region ID.

            +

            The value cannot be empty. To obtain this value, see Regions and Endpoints.

            +

            name

            +

            Yes

            +

            String

            +

            DB instance name.

            +

            DB instances of the same type can have same names under the same tenant.

            +

            The value consists of 4 to 64 characters and starts with a letter. It is case-sensitive and contains only letters, digits, hyphens (-), and underscores (_).

            +

            datastore

            +

            Yes

            +

            MysqlDatastore object

            +

            Database information.

            +

            mode

            +

            Yes

            +

            String

            +

            DB instance type. Its value is Cluster.

            +

            flavor_ref

            +

            Yes

            +

            String

            +

            Specification code.

            +

            vpc_id

            +

            Yes

            +

            String

            +

            VPC ID. To obtain this value, use either of the following methods:

            +
            • Method 1: Log in to the VPC console and view the VPC ID on the VPC details page.
            • Method 2: See "Querying VPCs" in the Virtual Private Cloud API Reference.
            +

            subnet_id

            +

            Yes

            +

            String

            +

            Network ID. To obtain this value, use either of the following methods:

            +
            • Method 1: Log in to the VPC console and click the target subnet on the Subnets page. You can view the network ID on the displayed page.
            • Method 2: See "Querying Subnets" in the Virtual Private Cloud API Reference.
            +

            security_group_id

            +

            No

            +

            String

            +

            Security group ID.

            +

            If network ACL is enabled, this parameter cannot be specified. If network ACL is disabled, this parameter is mandatory.

            +
            • Method 1: Log in to VPC console. Choose Access Control > Security Groups in the navigation pane on the left. On the displayed page, click the target security group. You can view the security group ID on the displayed page.
            • Method 2: See "Querying Security Groups" in the Virtual Private Cloud API Reference.
            +

            configuration_id

            +

            No

            +

            String

            +

            Parameter template ID.

            +

            password

            +

            Yes

            +

            String

            +

            Database password. The password consists of 8 to 32 characters and contains at least three types of the following: uppercase letters, lowercase letters, digits, and special characters (~!@#$%^*-_=+?,()&). You are advised to enter a strong password to improve security and prevent security risks such as brute force cracking. If you enter a weak password, the system automatically determines that the password is invalid.

            +

            backup_strategy

            +

            No

            +

            MysqlBackupStrategy object

            +

            Automated backup policy.

            +

            time_zone

            +

            No

            +

            String

            +

            Time zone. The default time zone is UTC.

            +

            availability_zone_mode

            +

            Yes

            +

            String

            +

            AZ type. The value can be single or multi.

            +

            master_availability_zone

            +

            No

            +

            String

            +

            Primary AZ.

            +
            • If availability_zone_mode is set to multi, this parameter is mandatory.
            • If availability_zone_mode is set to single, this parameter cannot be specified.
            +

            slave_count

            +

            Yes

            +

            Integer

            +

            Number of read replicas. A maximum of nine read replicas can be created at a time.

            +

            tags

            +

            No

            +

            Array of MysqlTags objects

            +

            Tag list. DB instances are created based on tag keys and values.

            +
            • {key} indicates the tag key. It must be unique and cannot be empty.
            • {value} indicates the tag value, which can be empty.
            +

            To create DB instances with multiple tag keys and values, separate key-value pairs with commas (,). Up to 10 key-value pairs can be added.

            +

            enterprise_project_id

            +

            No

            +

            String

            +

            Enterprise project ID. This parameter is mandatory when the enterprise project is enabled.

            +

            dedicated_resource_id

            +

            No

            +

            String

            +

            Dedicated resource pool ID. This parameter is displayed only when the dedicated resource pool is enabled.

            -
            Table 4 datastore field data structure description

            Name

            +
            - - - - - - - - - - - -
            Table 4 MysqlChargeInfo

            Parameter

            Mandatory

            +

            Mandatory

            Type

            +

            Type

            Description

            +

            Description

            type

            +

            charge_mode

            Yes

            +

            Yes

            String

            +

            String

            DB engine. Currently, only gaussdb-mysql is supported.

            -

            version

            -

            Yes

            -

            String

            -

            DB version.

            -

            For details about supported DB versions, see section Querying Version Information About a DB Engine.

            +

            Billing mode.

            +

            Value: postPaid

            -
            Table 5 backup_strategy field data structure description

            Name

            +
            - - - - - - - + + + + +
            Table 5 MysqlDatastore

            Parameter

            Mandatory

            +

            Mandatory

            Type

            +

            Type

            Description

            +

            Description

            start_time

            +

            type

            Yes

            +

            Yes

            String

            +

            String

            Automated backup start time. The automatic backup will be triggered within one hour after the time specified by this parameter.

            +

            DB engine. Currently, only gaussdb-mysql is supported.

            +

            version

            +

            Yes

            +

            String

            +

            DB version.

            +

            For details about supported DB versions, see Querying Version Information About a DB Engine.

            -

            The value of region in the following is used as an example.

            + +
            + + + + + + + + + + + + + + + + +
            Table 6 MysqlBackupStrategy

            Parameter

            +

            Mandatory

            +

            Type

            +

            Description

            +

            start_time

            +

            Yes

            +

            String

            +

            Automated backup start time. The automated backup will be triggered within one hour after the time specified by this parameter.

            +

            The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

            +
            • The HH value must be 1 greater than the hh value.
            • The values of mm and MM must be the same and must be set to 00.
            +

            Example value:

            +
            • 21:00-22:00
            +

            keep_days

            +

            No

            +

            String

            +

            Automated backup retention days. Value: 1-732.

            +
            +
            + +
            + + + + + + + + + + + + + + + + +
            Table 7 MysqlTags

            Parameter

            +

            Mandatory

            +

            Type

            +

            Description

            +

            key

            +

            Yes

            +

            String

            +

            Tag key. It contains a maximum of 36 Unicode characters.

            +

            The value cannot be an empty string, a space, or left blank.

            +

            Only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_) are allowed.

            +

            value

            +

            Yes

            +

            String

            +

            Tag value. It contains a maximum of 43 Unicode characters.

            +

            It can be an empty string.

            +

            Only uppercase letters, lowercase letters, digits, periods (.), hyphens (-), and underscores (_) are allowed.

            +
            +
            +
            +

            Response Parameters

            Status code: 201

            + +
            + + + + + + + + + + + + + +
            Table 8 Response body parameters

            Parameter

            +

            Type

            +

            Description

            +

            instance

            +

            MysqlInstanceResponse object

            +

            DB instance information.

            +

            job_id

            +

            String

            +

            DB instance creation task ID.

            +
            +
            + +
            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
            Table 9 MysqlInstanceResponse

            Parameter

            +

            Type

            +

            Description

            +

            id

            +

            String

            +

            DB instance ID.

            +

            name

            +

            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-insensitive and contains only letters, digits, hyphens (-), and underscores (_).

            +

            status

            +

            String

            +

            DB instance status.

            +

            datastore

            +

            MysqlDatastore object

            +

            Database information.

            +

            mode

            +

            String

            +

            DB instance type. Its value is Cluster.

            +

            configuration_id

            +

            String

            +

            Parameter template ID.

            +

            port

            +

            String

            +

            Database port.

            +

            backup_strategy

            +

            MysqlBackupStrategy object

            +

            Automated backup policy.

            +

            region

            +

            String

            +

            Region ID, which is the same as the request parameter.

            +

            availability_zone_mode

            +

            String

            +

            AZ mode, which is the same as the request parameter.

            +

            master_availability_zone

            +

            String

            +

            Primary AZ ID.

            +

            vpc_id

            +

            String

            +

            VPC ID, which is the same as the request parameter.

            +

            security_group_id

            +

            String

            +

            Security group ID, which is the same as the request parameter.

            +

            subnet_id

            +

            String

            +

            Subnet ID, which is the same as the request parameter.

            +

            flavor_ref

            +

            String

            +

            Specification code, which is the same as the request parameter.

            +

            charge_info

            +

            MysqlChargeInfo object

            +

            Billing mode.

            +
            +
            + +
            + + + + + + + + + + + + + +
            Table 10 MysqlDatastore

            Parameter

            +

            Type

            +

            Description

            +

            type

            +

            String

            +

            DB engine. Currently, only gaussdb-mysql is supported.

            +

            version

            +

            String

            +

            DB version.

            +

            To obtain details about supported DB engine versions, call the API for querying the DB engine versions.

            +
            +
            + +
            + + + + + + + + + + + + + +
            Table 11 MysqlBackupStrategy

            Parameter

            +

            Type

            +

            Description

            +

            start_time

            +

            String

            +

            Automated backup start time. The automated backup will be triggered within one hour after the time specified by this parameter.

            +

            The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

            +
            1. The HH value must be 1 greater than the hh value.
            2. The values of mm and MM must be the same and must be set to 00.
            +

            keep_days

            +

            String

            +

            Automated backup retention days. Value: 1-732.

            +
            +
            + +
            + + + + + + + + + +
            Table 12 MysqlChargeInfo

            Parameter

            +

            Type

            +

            Description

            +

            charge_mode

            +

            String

            +

            Billing mode.

            +
            +
            +

            Status code: 400

            + +
            + + + + + + + + + + + + + +
            Table 13 Response body parameters

            Parameter

            +

            Type

            +

            Description

            +

            error_code

            +

            String

            +

            Error code.

            +

            error_msg

            +

            String

            +

            Error message.

            +
            +
            +

            Status code: 500

            + +
            + + + + + + + + + + + + + +
            Table 14 Response body parameters

            Parameter

            +

            Type

            +

            Description

            +

            error_code

            +

            String

            +

            Error code.

            +

            error_msg

            +

            String

            +

            Error message.

            +
            +
            +
            +

            Example Request

            The value of region is used as an example.

            -
            • Request example
              {
              -"charge_info":{
              -        "charge_mode":"postPaid"
              -    },
              -    "region":"cn-north-4b",
              -    "name":"gaussdb-2d34",
              -    "datastore":{
              -        "type":"gaussdb-mysql",
              -        "version":"8.0"
              -    },
              -    "mode":"Cluster",
              -    "flavor_ref":"gaussdb.mysql.large.4",
              -    "vpc_id":"f7ee62e2-9705-4523-ba49-a85ea1a1fa87",
              -    "subnet_id":"140af7bf-a9da-4dcf-8837-34199fd6d186",
              -    "security_group_id":"c7f69884-fe2b-4630-8114-70a11499d902",
              -    "configuration_id":"43570e0de32e40c5a15f831aa5ce4176pr07",
              -    "password":"Gauss_234",
              -    "backup_strategy":{
              -        "start_time":"17:00-18:00"
              -    },
              -    "time_zone":"UTC+08:00",
              -    "availability_zone_mode":"single",
              -    "master_availability_zone":"az1pod1",
              -    "slave_count":1,
              -    "enterprise_project_id":"0"
              +

              Creating a DB instance

              +
              +POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances 
              +{
              +  "name" : "gaussdb-mysql-instance1",
              +  "region" : "br-iaas-odin1",
              +  "charge_info" : {
              +    "charge_mode" : "postPaid"
              +  },
              +  "datastore" : {
              +    "type" : "gaussdb-mysql",
              +    "version" : "8.0"
              +  },
              +  "mode" : "Cluster",
              +  "flavor_ref" : "gaussdb.mysql.xlarge.arm.8",
              +  "vpc_id" : "3cedfc54-b105-4652-a4e0-847b11576b58",
              +  "subnet_id" : "c1cfa53c-65d3-431e-8552-326bf310c7ad",
              +  "security_group_id" : "fc577a1a-f202-424a-977f-24faec3fdd55",
              +  "configuration_id" : "43570e0de32e40c5a15f831aa5ce4176pr07",
              +  "password" : "xxxxxx",
              +  "backup_strategy" : {
              +    "start_time" : "08:00-09:00"
              +  },
              +  "availability_zone_mode" : "single",
              +  "slave_count" : 1,
              +  "enterprise_project_id" : 0
               }
              -
            -

            Response

            • Normal response -
              - - - - - - - - - - - - - -
              Table 6 Parameter description

              Name

              -

              Type

              -

              Description

              -

              instance

              -

              Object

              -

              DB instance information.

              -

              For details, see Table 7.

              -

              job_id

              -

              String

              -

              DB instance creation task ID.

              -
              -
              - -
              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              Table 7 instance field data structure description

              Name

              -

              Type

              -

              Description

              -

              id

              -

              String

              -

              DB instance ID.

              -

              name

              -

              String

              -

              DB instance name. DB instances of the same type can have same names under the same tenant.

              -

              The value must be 4 to 64 characters in length and start with a letter. It is case-insensitive and can contain only letters, digits, hyphens (-), and underscores (_).

              -

              status

              -

              String

              -

              DB instance status.

              -

              datastore

              -

              Object

              -

              Database information.

              -

              For details, see Table 8.

              -

              mode

              -

              String

              -

              DB instance type. Currently, only the cluster type is supported.

              -

              configuration_id

              -

              String

              -

              Parameter template ID.

              -

              port

              -

              String

              -

              Database port, which is the same as the request parameter.

              -

              backup_strategy

              -

              Object

              -

              Automated backup policy.

              -

              For details, see Table 9.

              -

              region

              -

              String

              -

              Region ID.

              -

              availability_zone_mode

              -

              String

              -

              AZ ID.

              -

              master_ availability_zone

              -

              String

              -

              Primary AZ ID.

              -

              vpc_id

              -

              String

              -

              VPC ID.

              -

              security_group_id

              -

              String

              -

              Security group ID.

              -

              subnet_id

              -

              String

              -

              Subnet ID.

              -

              slave_count

              -

              Integer

              -

              Number of read-only nodes.

              -

              charge_info

              -

              Object

              -

              Billing mode.

              -

              For details, see Table 10.

              -
              -
              - -
              - - - - - - - - - - - - - -
              Table 8 datastore field data structure description

              Name

              -

              Type

              -

              Description

              -

              type

              -

              String

              -

              DB Engine

              -

              version

              -

              String

              -

              DB version.

              -
              -
              - -
              - - - - - - - - - - - - - -
              Table 9 backup_strategy field data structure description

              Name

              -

              Type

              -

              Description

              -

              start_time

              -

              String

              -

              Backup time window. Automated backups will be triggered during the backup time window.

              -

              keep_days

              -

              Integer

              -

              Backup retention days.

              -
              -
              - -
              - - - - - - - - - -
              Table 10 charge_info field data structure description

              Name

              -

              Type

              -

              Description

              -

              charge_mode

              -

              String

              -

              Billing mode.

              -
              -
              -
            -

            The values of region and master_availability_zone are used as examples.

            +

            Example Response

            Status code: 201

            +

            The values of region and master_availability_zone are used as examples.

            -
            • Example normal response
              {
              -    "instance":{
              -        "id":"5eebbb4c0f9f4a99b42ed1b6334569aain07",
              -        "name":"gaussdb-2d34",
              -        "status":"BUILD",
              -        "datastore":{
              -            "type":"gaussdb-mysql",
              -            "version":"8.0"
              -        },
              -        "mode":"Cluster",
              -        "configuration_id": "",
              -        "port":null,
              -        "backup_strategy":{
              -            "start_time":null,
              -            "keep_days":"7"
              -        },
              -        "enterprise_project_id": "0",
              -        "region":"aaa",
              -        "availability_zone_mode":"single",
              -        "master_availability_zone":"aaa",
              -        "vpc_id":"f7ee62e2-9705-4523-ba49-a85ea1a1fa87",
              -        "security_group_id":"c7f69884-fe2b-4630-8114-70a11499d902",
              -        "subnet_id":"140af7bf-a9da-4dcf-8837-34199fd6d186",
              -        "slave_count":1,     
              -        "charge_info":{
              -            "charge_mode":"postPaid"
              -        }
              +

              Success.

              +
              {
              +  "instance" : {
              +    "id" : "5eebbb4c0f9f4a99b42ed1b6334569aain07",
              +    "name" : "gaussdb-mysql-instance1",
              +    "region" : "br-iaas-odin1",
              +    "charge_info" : {
              +      "charge_mode" : "postPaid"
                   },
              -    "job_id":"43672fe5-56bd-47f1-8fd1-595cded08a7c"
              -    }
              -
            + "datastore" : { + "type" : "gaussdb-mysql", + "version" : "8.0" + }, + "mode" : "Cluster", + "flavor_ref" : "gaussdb.mysql.xlarge.arm.8", + "vpc_id" : "3cedfc54-b105-4652-a4e0-847b11576b58", + "subnet_id" : "c1cfa53c-65d3-431e-8552-326bf310c7ad", + "security_group_id" : "fc577a1a-f202-424a-977f-24faec3fdd55", + "configuration_id" : "43570e0de32e40c5a15f831aa5ce4176pr07", + "backup_strategy" : { + "start_time" : "08:00-09:00", + "keep_days" : 7 + }, + "availability_zone_mode" : "single", + "slave_count" : 1 + }, + "job_id" : "dff1d289-4d03-4942-8b9f-463ea07c000d" +}

            Status Code

            For details, see Status Codes.

            diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0005.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0005.html index f2b7d1246..3aaf45529 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0005.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0005.html @@ -1,440 +1,614 @@ -

            Querying a DB Instance List

            -

            Function

            This API is used to query a DB instance list according to search criteria.

            - +

            Querying DB Instances

            +

            Function

            This API is used to query DB instances according to search criteria. Before using this API:

            +
            -

            URI

            • URI format

              GET https://{Endpoint}/mysql/v3/{project_id}/instances?id={id}&name={name}&type={type}&datastore_type={datastore_type}&vpc_id={vpc_id}&subnet_id={subnet_id}&offset={offset}&limit={limit}

              -
            • Example

              GET https://{Endpoint}/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances?id=ed7cc6166ec24360a5ed5c5c9c2ed726in01&name=hy&type=Cluster&datastore_type=gaussdb-mysql&vpc_id=19e5d45d-70fd-4a91-87e9-b27e71c9891f&subnet_id=bd51fb45-2dcb-4296-8783-8623bfe89bb7&offset=0&limit=10

              -
            • Parameter description -
              Table 1 Parameter description

              Name

              +

              URI

              GET /v3/{project_id}/instances

              + +
              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              Table 1 URI parameters

              Parameter

              Type

              +

              Mandatory

              Mandatory

              +

              Type

              Description

              +

              Description

              project_id

              +

              project_id

              String

              +

              Yes

              Yes

              +

              String

              Project ID of a tenant in a region.

              -

              To obtain this value, see Obtaining a Project ID.

              -

              id

              -

              String

              -

              No

              -

              DB instance ID.

              -

              The asterisk (*) is reserved for the system. If the instance ID starts with an asterisk (*), the value following asterisk (*) is used for fuzzy matching. Otherwise, the instance ID is used for exact matching.

              -

              name

              -

              String

              -

              No

              -

              DB instance name.

              -

              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.

              -

              datastore_type

              -

              String

              -

              No

              -

              Database type.

              -

              vpc_id

              -

              String

              -

              No

              -

              VPC ID.

              -
              • Method 1: Log in to VPC console and view the VPC ID in the VPC details.
              • Method 2: See the "Querying VPCs" section in the Virtual Private Cloud API Reference.
              -

              subnet_id

              -

              String

              -

              No

              -

              Network ID of the subnet.

              -
              • Method 1: Log in to VPC console and click the target subnet on the Subnets page. You can view the network ID on the displayed page.
              • Method 2: See the "Querying Subnets" section under "APIs" or the "Querying Networks" section under "OpenStack Neutron APIs" in the Virtual Private Cloud API Reference.
              -

              offset

              -

              Integer

              -

              No

              -

              Index position. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

              -

              limit

              -

              Integer

              -

              No

              -

              Number of records to be queried. The default value is 100. The value cannot be a negative number. The minimum value is 1 and the maximum value is 100.

              -
              -
              - -
              -

              Request

              None.

              -
              -

              Response

              • Normal response -
                - - - - - - - - - - -
                Table 2 Parameter description

                Name

                -

                Type

                -

                Description

                -

                instances

                -

                Array of objects

                -

                DB instance information.

                -

                For details, see Table 3.

                -

                total_count

                -

                Integer

                -

                Total number of records.

                +

                Project ID of a tenant in a region.

                +

                To obtain this value, see Obtaining a Project ID.

                -
                Table 3 instances field data structure description

                Name

                +
                - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - +
                Table 2 Query parameters

                Parameter

                Type

                +

                Mandatory

                Description

                +

                Type

                +

                Description

                id

                +

                id

                String

                +

                No

                DB instance ID.

                +

                String

                +

                DB instance ID. The asterisk (*) is reserved for the system. If the DB instance ID starts with *, it indicates that fuzzy match is performed based on the value following *. Otherwise, the exact match is performed based on the DB instance ID. The value cannot contain only asterisks (*).

                name

                +

                name

                String

                +

                No

                DB instance name.

                +

                String

                +

                DB instance name. The asterisk (*) is reserved for the system. If the instance name starts with *, it indicates that fuzzy match is performed based on the value following *. Otherwise, the exact match is performed based on the instance name. The value cannot contain only asterisks (*).

                status

                +

                type

                String

                +

                No

                DB instance status.

                +

                String

                +

                DB instance type to be queried. Currently, its value can only be Cluster.

                private_ips

                +

                datastore_type

                List<String>

                +

                No

                Private IP address for write. It is a blank string until an ECS is created.

                +

                String

                +

                DB type. Currently, only gaussdb-mysql is supported.

                public_ips

                +

                vpc_id

                List<String>

                +

                No

                Public IP address list.

                +

                String

                +

                VPC ID.

                +
                • Method 1: Log in to VPC console and view the VPC ID in the VPC details.
                • Method 2: See the "Querying VPCs" section in the Virtual Private Cloud API Reference.

                port

                +

                subnet_id

                Integer

                +

                No

                Database port number.

                +

                String

                +

                Network ID of the subnet.

                +
                • Method 1: Log in to VPC console and click the target subnet on the Subnets page. You can view the network ID on the displayed page.
                • Method 2: See the "Querying Subnets" section under "APIs" or the "Querying Networks" section under "OpenStack Neutron APIs" in the Virtual Private Cloud API Reference.

                type

                +

                private_ip

                String

                +

                No

                DB instance type. The value is Cluster.

                +

                String

                +

                Private IP address.

                region

                +

                offset

                String

                +

                No

                Region where the DB instance is deployed.

                +

                Integer

                +

                Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

                datastore

                +

                limit

                Object

                +

                No

                Database information.

                -

                For details, see Table 4.

                +

                Integer

                +

                Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

                created

                +

                tags

                String

                +

                No

                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 DB instance creation is complete.

                +

                String

                +

                Query based on the DB instance tag key and value. {key} indicates the tag key, and {value} indicates the tag value. To query DB instances with multiple tag keys and values, separate key-value pairs with commas (,). The key must be unique. Multiple keys are in AND relationship.

                updated

                +
                +
                + +

                Request Parameters

                +
                + + + + + + - - + - - - + - +
                Table 3 Request header parameters

                Parameter

                +

                Mandatory

                +

                Type

                +

                Description

                +

                X-Auth-Token

                String

                +

                Yes

                Update time. The format is the same as that of the created field.

                -

                The value is empty unless the DB instance creation is complete.

                +

                String

                +

                User token.

                db_user_name

                +

                X-Language

                String

                +

                No

                Default username.

                +

                String

                +

                Language.

                vpc_id

                +
                +
                +
                +

                Response Parameters

                Status code: 200

                + +
                + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                Table 4 Response body parameters

                Parameter

                +

                Type

                +

                Description

                +

                instances

                String

                +

                Array of MysqlInstanceListInfo objects

                VPC ID.

                +

                DB instance list information.

                subnet_id

                +

                total_count

                String

                +

                Integer

                Network ID of the subnet.

                -

                security_group_id

                -

                String

                -

                Security group ID.

                -

                flavor_ref

                -

                String

                -

                Specification code.

                -

                flavor_info

                -

                Object

                -

                Specification description.

                -

                volume

                -

                Object

                -

                Volume information.

                -

                For details, see Table 5.

                -

                backup_strategy

                -

                Object

                -

                Backup policy.

                -

                For details, see Table 7.

                -

                time_zone

                -

                String

                -

                Time zone.

                +

                Total number of records.

                -
                Table 4 datastore field data structure description

                Name

                +
                - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                Table 5 MysqlInstanceListInfo

                Parameter

                Type

                +

                Type

                Description

                +

                Description

                type

                +

                id

                String

                +

                String

                DB engine.

                +

                DB instance ID.

                version

                +

                name

                String

                +

                String

                DB version.

                +

                DB instance name.

                +

                status

                +

                String

                +

                DB instance status.

                +

                private_ips

                +

                Array of strings

                +

                Private IP address for write. It is a blank string until an ECS is created.

                +

                public_ips

                +

                Array of strings

                +

                Public IP addresses.

                +

                port

                +

                String

                +

                Database port.

                +

                type

                +

                String

                +

                DB instance type. The value is Cluster.

                +

                region

                +

                String

                +

                Region where the DB instance is deployed.

                +

                datastore

                +

                MysqlDatastore object

                +

                Database information.

                +

                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 DB instance creation is complete.

                +

                updated

                +

                String

                +

                Update time. The format is the same as that of the created field. The value is empty unless the DB instance creation is complete.

                +

                db_user_name

                +

                String

                +

                Default username.

                +

                vpc_id

                +

                String

                +

                VPC ID.

                +

                subnet_id

                +

                String

                +

                Network ID of the subnet.

                +

                security_group_id

                +

                String

                +

                Security group ID.

                +

                flavor_ref

                +

                String

                +

                Specification code.

                +

                flavor_info

                +

                MysqlFlavorInfo object

                +

                Flavor information.

                +

                volume

                +

                MysqlVolumeInfo object

                +

                Storage disk information.

                +

                backup_strategy

                +

                MysqlBackupStrategy object

                +

                Automated backup policy.

                +

                time_zone

                +

                String

                +

                Time zone.

                +

                dedicated_resource_id

                +

                String

                +

                Dedicated resource pool ID. This parameter is returned only when the DB instance belongs to a dedicated resource pool.

                +

                tags

                +

                Array of InstanceTagItem objects

                +

                Tag list.

                -
                Table 5 volume field data structure description

                Name

                +
                - - - - - - - - + + + +
                Table 6 MysqlDatastoreWithKernelVersion

                Parameter

                Type

                +

                Type

                Description

                +

                Description

                type

                +

                type

                String

                +

                String

                Disk type.

                +

                DB engine. Currently, only gaussdb-mysql is supported.

                size

                +

                version

                String

                +

                String

                Used disk size.

                +

                DB version.

                +

                To obtain details about supported DB engine versions, call the API for querying the DB engine versions.

                +

                kernel_version

                +

                String

                +

                Database kernel version.

                -
                Table 6 flavor_ref field data structure description

                Name

                +
                - - - - - - - -
                Table 7 MysqlFlavorInfo

                Parameter

                Type

                +

                Type

                Description

                +

                Description

                vcpus

                +

                vcpus

                String

                +

                String

                Number of vCPUs.

                +

                Number of vCPUs.

                ram

                +

                ram

                String

                +

                String

                Memory size in GB.

                +

                Memory size in GB.

                -
                Table 7 backup_strategy field data structure description

                Name

                +
                - - - - - - - -
                Table 8 MysqlVolumeInfo

                Parameter

                Type

                +

                Type

                Description

                +

                Description

                start_time

                +

                type

                String

                +

                String

                Backup time window. Automated backups will be triggered during the backup time window.

                +

                Disk type.

                keep_days

                +

                size

                String

                +

                String

                Backup retention days.

                +

                Used disk size in GB.

                + +
                + + + + + + + + + + + + + +
                Table 9 MysqlBackupStrategy

                Parameter

                +

                Type

                +

                Description

                +

                start_time

                +

                String

                +

                Automated backup start time. The automated backup will be triggered within one hour after the time specified by this parameter.

                +

                The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

                +
                1. The HH value must be 1 greater than the hh value.
                2. The values of mm and MM must be the same and must be set to 00.
                +

                keep_days

                +

                String

                +

                Automated backup retention days. Value: 1-732.

                +
                +
                + +
                + + + + + + + + + + + + + +
                Table 10 InstanceTagItem

                Parameter

                +

                Type

                +

                Description

                +

                key

                +

                String

                +

                Tag key.

                +

                value

                +

                String

                +

                Tag value.

                +
                +
                +

                Status code: 400

                + +
                + + + + + + + + + + + + + +
                Table 11 Response body parameters

                Parameter

                +

                Type

                +

                Description

                +

                error_code

                +

                String

                +

                Error code.

                +

                error_msg

                +

                String

                +

                Error message.

                +
                +
                +

                Status code: 500

                + +
                + + + + + + + + + + + + + +
                Table 12 Response body parameters

                Parameter

                +

                Type

                +

                Description

                +

                error_code

                +

                String

                +

                Error code.

                +

                error_msg

                +

                String

                +

                Error message.

                +
                +
                + +

                Example Request

                Querying DB instances

                +
                GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances?id=d738399de028480fabb2b8120d4e01a4in07&name=gaussdb-mysql-instance01&type=Cluster&datastore_type=gaussdb-mysql&vpc_id=3cedfc54-b105-4652-a4e0-847b11576b58&subnet_id=c1cfa53c-65d3-431e-8552-326bf310c7ad&private_ip=192.168.0.142&offset=0&limit=10&tags=Key1=Value1
                +
                +

                Example Response

                Status code: 200

                The value of region is used as an example in the following response.

                -
              • Example normal response
                {
                -    "total_count":6,
                -    "instances":[
                -        {
                -            "id":"d738399de028480fabb2b8120d4e01a4in07",
                -            "status":"ACTIVE",
                -                            "name":"oMoS_001",
                -                            "port":3306,
                -                            "type":"Cluster",
                -                            "private_ips": ["192.168.0.142"],
                -                            "public_ips": ["10.154.219.187"],
                -                            "db_user_name": "root",
                -                            "region": "aaa",
                -                            "datastore": {"type": "gaussdb-mysql", "version":"8.0"},
                -                            "created": "2018-08-20T02:33:49+0800",
                -                            "updated": "2018-08-20T02:33:50+0800",
                -            "volume": {
                -                    "type": "POOL",
                -                    "used_size": 100
                -            },                         
                -                            "vpc_id": "f7ee62e2-9705-4523-ba49-a85ea1a1fa87",
                -                            "subnet_id": "140af7bf-a9da-4dcf-8837-34199fd6d186",
                -                            "security_group_id":"c7f69884-fe2b-4630-8114-70a11499d902",
                -                            "flavor_ref":"gaussdb.mysql.c3.small.4",
                -            "backup_strategy": {"start_time": "19:00-20:00", "keep_days": 7}                          
                -            "charge_info": {
                -                "charge_mode": "postPaid"
                -            },
                -            "enterprise_project_id": "0",
                -                 "time_zone": "",
                -        }
                -    ]
                +

                Success.

                +
                {
                +  "total_count" : 1,
                +  "instances" : [ {
                +    "id" : "d738399de028480fabb2b8120d4e01a4in07",
                +    "name" : "gaussdb-mysql-instance01",
                +    "status" : "ACTIVE",
                +    "port" : 3306,
                +    "type" : "Cluster",
                +    "private_ips" : [ "192.168.0.142" ],
                +    "db_user_name" : "root",
                +    "region" : "aaa",
                +    "datastore" : {
                +      "type" : "gaussdb-mysql",
                +      "version" : "8.0",
                +      "kernel_version" : "2.0.28.7"
                +    },
                +    "created" : "2018-08-20T02:33:49_0800",
                +    "updated" : "2018-08-20T02:33:49_0800",
                +    "volume" : {
                +      "type" : "POOL",
                +      "size" : 100
                +    },
                +    "vpc_id" : "3cedfc54-b105-4652-a4e0-847b11576b58",
                +    "subnet_id" : "c1cfa53c-65d3-431e-8552-326bf310c7ad",
                +    "security_group_id" : "fc577a1a-f202-424a-977f-24faec3fdd55",
                +    "flavor_ref" : "gaussdb.mysql.xlarge.arm.8",
                +    "flavor_info" : {
                +      "vcpus" : 8,
                +      "ram" : 64
                +    },
                +    "backup_strategy" : {
                +      "start_time" : "19:00-20:00",
                +      "keep_days" : 7
                +    },
                +    "charge_info" : {
                +      "charge_mode" : "postPaid"
                +    },
                +    "enterprise_project_id" : 0,
                +    "time_zone" : "UTC",
                +    "tags": [{ 
                +       "key":"Key",
                +       "value":"Value1" 
                +     }]
                +  } ]
                 }
                -
              • Status Code

                For details, see Status Codes.

                diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0006.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0006.html index fabee687d..b1c4d3392 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0006.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0006.html @@ -1,572 +1,798 @@

                Querying Details of a DB Instance

                -

                Function

                This API is used to query the details of a specified DB instance.

                - +

                Function

                This API is used to query the details of a specified DB instance. Before using this API:

                +
                -

                URI

                • URI format

                  GET https://{Endpoint}/mysql/v3/{project_id}/instances/{instance_id}

                  -
                • Example

                  GET https://{Endpoint}/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/436aaafb689c4250a9a5bb33cb271e8cin07

                  -
                • Parameter description -
                  Table 1 Parameter description

                  Name

                  +

                  URI

                  GET /v3/{project_id}/instances/{instance_id}

                  + +
                  - - - - - - - - - - -
                  Table 1 URI parameters

                  Parameter

                  Type

                  +

                  Mandatory

                  Mandatory

                  +

                  Type

                  Description

                  +

                  Description

                  project_id

                  +

                  project_id

                  String

                  +

                  Yes

                  Yes

                  +

                  String

                  Project ID of a tenant in a region.

                  -

                  To obtain this value, see Obtaining a Project ID.

                  +

                  Project ID of a tenant in a region.

                  +

                  To obtain this value, see Obtaining a Project ID.

                  instance_id

                  +

                  instance_id

                  String

                  +

                  Yes

                  Yes

                  +

                  String

                  DB instance ID.

                  +

                  DB instance ID.

                  -
                  -

                  Request

                  None.

                  -
                  -

                  Response

                  • Normal response -
                    Table 2 Parameter description

                    Name

                    +

                    Request Parameters

                    +
                    - - + - - - + + + + + + + + +
                    Table 2 Request header parameters

                    Parameter

                    Type

                    +

                    Mandatory

                    Description

                    +

                    Type

                    +

                    Description

                    instance

                    +

                    X-Auth-Token

                    Object

                    +

                    Yes

                    DB instance information.

                    -

                    For details, see Table 3.

                    +

                    String

                    +

                    User token.

                    +

                    X-Language

                    +

                    No

                    +

                    String

                    +

                    Language.

                    +
                    +
                    +
                    +

                    Response Parameters

                    Status code: 200

                    + +
                    + + + + + + +
                    Table 3 Response body parameters

                    Parameter

                    +

                    Type

                    +

                    Description

                    +

                    instance

                    +

                    MysqlInstanceInfoDetail object

                    +

                    DB instance information.

                    -
                    Table 3 instance field data structure description

                    Name

                    +
                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
                    Table 4 MysqlInstanceInfoDetail

                    Parameter

                    Type

                    +

                    Type

                    Description

                    +

                    Description

                    id

                    +

                    id

                    String

                    +

                    String

                    DB instance ID.

                    +

                    DB instance ID.

                    name

                    +

                    name

                    String

                    +

                    String

                    DB instance name.

                    +

                    DB instance name.

                    project_id

                    +

                    project_id

                    String

                    +

                    String

                    Project ID of a tenant in a region.

                    +

                    Project ID of a tenant in a region.

                    status

                    +

                    status

                    String

                    +

                    String

                    DB instance status.

                    +

                    DB instance status.

                    +

                    Valid value:

                    +

                    If the value is BUILD, the DB instance is being created.

                    +

                    If the value is ACTIVE, the DB instance is normal.

                    +

                    If the value is FAILED, the DB instance is abnormal.

                    +

                    If the value is FROZEN, the DB instance is frozen.

                    +

                    If the value is MODIFYING, the DB instance is being scaled up.

                    +

                    If the value is REBOOTING, the DB instance is being rebooted.

                    +

                    If the value is RESTORING, the DB instance is being restored.

                    +

                    If the value is MODIFYING INSTANCE TYPE, the DB instance is changing from primary to standby.

                    +

                    If the value is SWITCHOVER, the primary/standby switchover is being performed.

                    +

                    If the value is MIGRATING, the DB instance is being migrated.

                    +

                    If the value is BACKING UP, the DB instance is being backed up.

                    +

                    If the value is MODIFYING DATABASE PORT, the database port is being changed.

                    +

                    If the value is STORAGE FULL, the DB instance storage space is full.

                    enterprise_project_id

                    +

                    port

                    String

                    +

                    String

                    Enterprise project ID.

                    +

                    Database port.

                    type

                    +

                    alias

                    String

                    +

                    String

                    DB instance type. Currently, only the cluster type is supported.

                    +

                    DB instance remarks.

                    node_count

                    +

                    type

                    Integer

                    +

                    String

                    Number of nodes.

                    +

                    DB instance type. The value is Cluster.

                    datastore

                    +

                    charge_info

                    Object

                    +

                    MysqlInstanceChargeInfo object

                    Database information. For details, see Table 4.

                    +

                    Billing mode, which is yearly/monthly or pay-per-use (default setting).

                    backup_used_space

                    +

                    node_count

                    Integer

                    +

                    Integer

                    Used backup space, in GB.

                    +

                    Number of nodes.

                    created

                    +

                    datastore

                    String

                    +

                    MysqlDatastore object

                    DB instance creation time.

                    +

                    Database information.

                    updated

                    +

                    backup_used_space

                    String

                    +

                    Double

                    DB instance update time.

                    +

                    Used backup space in GB.

                    public_ips

                    +

                    created

                    String

                    +

                    String

                    Public IP address of the DB instance.

                    +

                    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 DB instance creation is complete.

                    private_write_ips

                    +

                    updated

                    Array of List

                    +

                    String

                    Private IP address for write.

                    +

                    Update time. The format is the same as that of the created field. The value is empty unless the DB instance creation is complete.

                    db_user_name

                    +

                    private_write_ips

                    String

                    +

                    Array of strings

                    Default username.

                    +

                    Private IP address for write.

                    port

                    +

                    public_ips

                    String

                    +

                    String

                    Database port number.

                    +

                    Public IP address of the DB instance.

                    vpc_id

                    +

                    db_user_name

                    String

                    +

                    String

                    VPC ID.

                    +

                    Default username.

                    subnet_id

                    +

                    vpc_id

                    String

                    +

                    String

                    Subnet ID.

                    +

                    VPC ID.

                    security_group_id

                    +

                    subnet_id

                    String

                    +

                    String

                    Security group ID.

                    +

                    Network ID of the subnet.

                    volume

                    +

                    security_group_id

                    Object

                    +

                    String

                    Disk information. For details, see Table 8.

                    +

                    Security group ID.

                    backup_strategy

                    +

                    configuration_id

                    Object

                    +

                    String

                    Backup policy. For details, see Table 6.

                    +

                    ID of the parameter template used for creating a DB instance or ID of the latest parameter template that is applied to an instance.

                    nodes

                    +

                    backup_strategy

                    Arrays of object

                    +

                    MysqlBackupStrategy object

                    Node information. For details, see Table 7.

                    +

                    Automated backup policy.

                    time_zone

                    +

                    nodes

                    String

                    +

                    Array of MysqlInstanceNodeInfo objects

                    Time zone.

                    +

                    Node information.

                    az_mode

                    +

                    enterprise_project_id

                    String

                    +

                    String

                    AZ.

                    +

                    Enterprise project ID.

                    master_az_code

                    +

                    time_zone

                    String

                    +

                    String

                    Primary AZ.

                    +

                    Time zone.

                    +

                    az_mode

                    +

                    String

                    +

                    AZ type. It can be single or multi.

                    +

                    master_az_code

                    +

                    String

                    +

                    Primary AZ.

                    +

                    maintenance_window

                    +

                    String

                    +

                    Maintenance window in the UTC format.

                    +

                    tags

                    +

                    Array of MysqlTags objects

                    +

                    Tags for managing DB instances.

                    +

                    dedicated_resource_id

                    +

                    String

                    +

                    Dedicated resource pool ID. This parameter is returned only when the DB instance belongs to a dedicated resource pool.

                    +

                    proxies

                    +

                    Array of MysqlProxyInfo objects

                    +

                    Proxy information.

                    -
                    Table 4 datastore field data structure description

                    Name

                    +
                    - - - - - - - -
                    Table 5 MysqlInstanceChargeInfo

                    Parameter

                    Type

                    +

                    Type

                    Description

                    +

                    Description

                    type

                    +

                    charge_mode

                    String

                    +

                    String

                    DB engine.

                    +

                    Billing mode.

                    version

                    +

                    order_id

                    String

                    +

                    String

                    DB version.

                    +

                    Order ID.

                    -
                    Table 5 configurations field data structure description

                    Name

                    +
                    - - - - - - - -
                    Table 6 MysqlDatastoreWithKernelVersion

                    Parameter

                    Type

                    +

                    Type

                    Description

                    +

                    Description

                    id

                    +

                    type

                    String

                    +

                    String

                    Parameter template ID.

                    +

                    DB engine. Currently, only gaussdb-mysql is supported.

                    name

                    +

                    version

                    String

                    +

                    String

                    Parameter template name.

                    +

                    DB version.

                    +

                    To obtain details about supported DB engine versions, call the API for querying the DB engine versions.

                    -
                    Table 6 backup_strategy field data structure description

                    Name

                    +
                    - - - - - - - -
                    Table 7 MysqlBackupStrategy

                    Parameter

                    Type

                    +

                    Type

                    Description

                    +

                    Description

                    start_time

                    +

                    start_time

                    String

                    +

                    String

                    Backup time window. Automated backups will be triggered during the backup time window.

                    +

                    Automated backup start time. The automated backup will be triggered within one hour after the time specified by this parameter.

                    +

                    The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

                    +
                    1. The HH value must be 1 greater than the hh value.
                    2. The values of mm and MM must be the same and must be set to 00.

                    keep_days

                    +

                    keep_days

                    Integer

                    +

                    String

                    Backup retention days.

                    +

                    Automated backup retention days. Value: 1-732.

                    -
                    Table 7 nodes field data structure description

                    Name

                    +
                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +
                    Table 8 MysqlInstanceNodeInfo

                    Parameter

                    Type

                    +

                    Type

                    Description

                    +

                    Description

                    id

                    +

                    id

                    String

                    +

                    String

                    Node ID.

                    +

                    DB instance ID.

                    name

                    +

                    name

                    Array of object

                    +

                    String

                    Node name.

                    +

                    Node name.

                    type

                    +

                    type

                    String

                    +

                    String

                    Node type, which can be master or slave.

                    +

                    Node type, which can be master or slave.

                    status

                    +

                    status

                    String

                    +

                    String

                    Node status.

                    +

                    Node status.

                    port

                    +

                    port

                    Integer

                    +

                    Integer

                    Database port number.

                    +

                    Database port.

                    private_read_ips

                    +

                    private_read_ips

                    Array of String

                    +

                    Array of strings

                    Private IP address for read.

                    +

                    Private IP address for read of the node.

                    volume

                    +

                    volume

                    Object

                    +

                    MysqlInstanceNodeVolumeInfo object

                    Disk information.

                    +

                    Storage disk information.

                    az_code

                    +

                    az_code

                    String

                    +

                    String

                    AZ.

                    +

                    AZ.

                    region_code

                    +

                    region_code

                    String

                    +

                    String

                    Region where the DB instance is deployed.

                    +

                    Region where the DB instance is located.

                    created

                    +

                    created

                    String

                    +

                    String

                    DB instance creation time.

                    +

                    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 DB instance creation is complete.

                    updated

                    +

                    updated

                    String

                    +

                    String

                    Update time.

                    +

                    Update time. The format is the same as that of the created field. The value is empty unless the DB instance creation is complete.

                    flavor_ref

                    +

                    flavor_id

                    String

                    +

                    String

                    Specification code.

                    +

                    Specification ID.

                    max_connections

                    +

                    flavor_ref

                    String

                    +

                    String

                    Maximum number of connections.

                    +

                    Specification code.

                    vcpus

                    +

                    max_connections

                    String

                    +

                    String

                    Number of vCPUs.

                    +

                    Maximum number of connections.

                    ram

                    +

                    vcpus

                    String

                    +

                    String

                    Memory size in GB.

                    +

                    Number of vCPUs.

                    need_restart

                    +

                    ram

                    Boolean

                    +

                    String

                    Whether to reboot the DB instance for the modifications to take effect.

                    +

                    Memory size in GB.

                    priority

                    +

                    need_restart

                    String

                    +

                    Boolean

                    Failover priority.

                    +

                    Whether to reboot the DB instance for the parameter modifications to take effect.

                    +

                    priority

                    +

                    Integer

                    +

                    Failover priority.

                    -
                    Table 8 volume field data structure description

                    Name

                    +
                    - - - - - - - - + + + +
                    Table 9 MysqlInstanceNodeVolumeInfo

                    Parameter

                    Type

                    +

                    Type

                    Description

                    +

                    Description

                    type

                    +

                    type

                    String

                    +

                    String

                    Storage type. Currently, only POOL is supported.

                    +

                    Disk type.

                    used

                    +

                    used

                    String

                    +

                    String

                    Used storage size, in GB.

                    +

                    Used disk size in GB.

                    +

                    size

                    +

                    Long

                    +

                    Disk size of the yearly/monthly DB instance in GB

                    -

                    The values of region_code and az_code are used as examples.

                    + +
                    + + + + + + + + + + + + + +
                    Table 10 MysqlTags

                    Parameter

                    +

                    Type

                    +

                    Description

                    +

                    key

                    +

                    String

                    +

                    Tag key. The value can contain a maximum of 36 Unicode characters. The value cannot be an empty string, a space, or left blank. Only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_) are allowed.

                    +

                    value

                    +

                    String

                    +

                    Tag value. It contains a maximum of 43 Unicode characters. The value can be an empty string. Only uppercase letters, lowercase letters, digits, periods (.), hyphens (-), and underscores (_) are allowed.

                    +
                    +
                    + +
                    + + + + + + + + + + + + + + + + + +
                    Table 11 MysqlProxyInfo

                    Parameter

                    +

                    Type

                    +

                    Description

                    +

                    pool_id

                    +

                    String

                    +

                    Proxy instance ID.

                    +

                    name

                    +

                    String

                    +

                    Proxy instance name.

                    +

                    address

                    +

                    String

                    +

                    Proxy read/write splitting address.

                    +
                    +
                    +

                    Status code: 400

                    + +
                    + + + + + + + + + + + + + +
                    Table 12 Response body parameters

                    Parameter

                    +

                    Type

                    +

                    Description

                    +

                    error_code

                    +

                    String

                    +

                    Error code.

                    +

                    error_msg

                    +

                    String

                    +

                    Error message.

                    +
                    +
                    +

                    Status code: 500

                    + +
                    + + + + + + + + + + + + + +
                    Table 13 Response body parameters

                    Parameter

                    +

                    Type

                    +

                    Description

                    +

                    error_code

                    +

                    String

                    +

                    Error code.

                    +

                    error_msg

                    +

                    String

                    +

                    Error message.

                    +
                    +
                    +
                    +

                    Example Request

                    Querying instance details

                    +
                    GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/97b026aa9cc4417888c14c84a1ad9860/instances/436aaafb689c4250a9a5bb33cb271e8cin07
                    +
                    +

                    Example Response

                    Status code: 201

                    +

                    The values of region_code and az_code are used as examples.

                    -
                  • Example normal response
                    {
                    -  "instance": {
                    -    "id": "d2cda7b97a39488e8b30e3cea4066204in07",
                    -    "name": "gauss-d616-lb07",
                    -    "status": "FAILED",
                    -    "project_id": "053f533ead80d5102f0cc012e8d468a4",
                    -    "enterprise_project_id": "0",
                    -    "type": "Cluster",
                    -    "charge_info": {
                    -      "charge_mode": "postPaid",
                    -      "order_id": ""
                    +

                    Success.

                    +
                    {
                    +  "instance" : {
                    +    "id" : "436aaafb689c4250a9a5bb33cb271e8cin07",
                    +    "name" : "gaussdb-mysql-instance01",
                    +    "alias" : "",
                    +    "status" : "ACTIVE",
                    +    "project_id" : "97b026aa9cc4417888c14c84a1ad9860",
                    +    "enterprise_project_id" : 0,
                    +    "type" : "Cluster",
                    +    "charge_info" : {
                    +      "charge_mode" : "postPaid",
                    +      "order_id" : ""
                         },
                    -    "node_count": 2,
                    -    "datastore": {
                    -      "type": "GaussDB(for MySQL)",
                    -      "version": "8.0"
                    +    "node_count" : 2,
                    +    "datastore" : {
                    +      "type" : "gaussdb-mysql",
                    +      "version" : "8.0",
                    +      "kernel_version" : "2.0.29.1"
                         },
                    -    "created": "2020-07-21T09:13:56+0800",
                    -    "updated": "2020-07-21T09:27:54+0800",
                    -    "public_ips": "",
                    -    "private_write_ips": [
                    -      "192.168.0.235"
                    -    ],
                    -    "db_user_name": "root",
                    -    "port": "3306",
                    -    "vpc_id": "f7ee62e2-9705-4523-ba49-a85ea1a1fa87",
                    -    "subnet_id": "140af7bf-a9da-4dcf-8837-34199fd6d186",
                    -    "security_group_id": "c7f69884-fe2b-4630-8114-70a11499d902",
                    -    "backup_strategy": {
                    -      "start_time": "00:00-00:00",
                    -      "keep_days": "0"
                    +    "created" : "2022-07-14T16:26:58+0800",
                    +    "updated" : "2022-07-18T14:20:33+0800",
                    +    "public_ips" : [ "10.154.219.187" ],
                    +    "private_write_ips" : [ "192.168.0.142" ],
                    +    "db_user_name" : "root",
                    +    "port" : 3306,
                    +    "vpc_id" : "3cedfc54-b105-4652-a4e0-847b11576b58",
                    +    "subnet_id" : "c1cfa53c-65d3-431e-8552-326bf310c7ad",
                    +    "security_group_id" : "fc577a1a-f202-424a-977f-24faec3fdd55",
                    +    "backup_strategy" : {
                    +      "start_time" : "19:00-20:00",
                    +      "keep_days" : 7
                         },
                    -    "nodes": [
                    -      {
                    -        "id": "799a0f2fa49a4151bf9f7063c1fbba36no07",
                    -        "name": "gauss-d616-lb07_node01",
                    -        "type": "master",
                    -        "status": "FAILED",
                    -        "port": 3306,
                    -        "private_read_ips": [
                    -          "192.168.0.163"
                    -        ],
                    -        "volume": {
                    -          "type": "POOL",
                    -          "used": "0.0"
                    -        },
                    -        "az_code": "az1xahz",
                    -        "region_code": "cn-xianhz-1",
                    -        "flavor_id": "3169caaf-6c2f-41d5-aadd-c8fc3d83597e",
                    -        "flavor_ref": "taurus.large.4",
                    -        "max_connections": null,
                    -        "vcpus": "1",
                    -        "ram": "4",
                    -        "need_restart": false,
                    -        "priority": 1
                    +    "nodes" : [ {
                    +      "id" : "799a0f2fa49a4151bf9f7063c1fbba36no07",
                    +      "name" : "gauss-d616-lb07_node01",
                    +      "type" : "master",
                    +      "status" : "ACTIVE",
                    +      "port" : 3306,
                    +      "private_read_ips" : [ "192.168.0.163" ],
                    +      "volume" : {
                    +        "type" : "POOL",
                    +        "used" : 0.07
                           },
                    -      {
                    -        "id": "816459d771c444db9fa4c1d5c173cb1cno07",
                    -        "name": "gauss-d616-lb07_node02",
                    -        "type": "slave",
                    -        "status": "FAILED",
                    -        "port": 3306,
                    -        "private_read_ips": [
                    -          "192.168.0.160"
                    -        ],
                    -        "volume": {
                    -          "type": "POOL",
                    -          "used": "0.0"
                    -        },
                    -        "az_code": "az1xahz",
                    -        "region_code": "cn-xianhz-1",
                    -        "flavor_id": "3169caaf-6c2f-41d5-aadd-c8fc3d83597e",
                    -        "flavor_ref": "taurus.large.4",
                    -        "max_connections": null,
                    -        "vcpus": "1",
                    -        "ram": "4",
                    -        "need_restart": false,
                    -        "priority": 1
                    -      }
                    -    ],
                    -    "time_zone": "UTC+08:00",
                    -    "backup_used_space": 0,
                    -    "az_mode": "single",
                    -    "master_az_code": "az1xahz"
                    +      "az_code" : "az1",
                    +      "region_code" : "br-iaas-odin1",
                    +      "flavor_id" : "3169caaf-6c2f-41d5-aadd-c8fc3d83597e",
                    +      "flavor_ref" : "gaussdb.mysql.xlarge.arm.8",
                    +      "max_connections" : 1500,
                    +      "vcpus" : 1,
                    +      "ram" : 4,
                    +      "need_restart" : false,
                    +      "priority" : 1,
                    +      "created" : "2022-07-14T16:26:58+0800",
                    +      "updated" : "2022-07-18T09:24:18+0800"
                    +    }, {
                    +      "id" : "799a0f2fa49a4151bf9f7063c1fbba35no07",
                    +      "name" : "gauss-d616-lb07_node02",
                    +      "type" : "slave",
                    +      "status" : "ACTIVE",
                    +      "port" : 3306,
                    +      "private_read_ips" : [ "192.168.0.162" ],
                    +      "volume" : {
                    +        "type" : "POOL",
                    +        "used" : 0.07
                    +      },
                    +      "az_code" : "az1",
                    +      "region_code" : "br-iaas-odin1",
                    +      "flavor_id" : "3169caaf-6c2f-41d5-aadd-c8fc3d83597e",
                    +      "flavor_ref" : "gaussdb.mysql.xlarge.arm.8",
                    +      "max_connections" : 1500,
                    +      "vcpus" : 1,
                    +      "ram" : 4,
                    +      "need_restart" : false,
                    +      "priority" : 1,
                    +      "created" : "2022-07-14T16:26:58+0800",
                    +      "updated" : "2022-07-18T09:36:18+0800"
                    +    } ],
                    +    "time_zone" : "UTC+08:00",
                    +    "backup_used_space" : 0.24,
                    +    "az_mode" : "single",
                    +    "master_az_code" : "az1",
                    +    "maintenance_window" : "18:00-22:00",
                    +    "tags" : [ ],
                    +    "configuration_id" : "53570e0de54e40c5a15f331aa5sd2176pr07",
                    +    "dedicated_resource_id" : "",
                    +    "proxies" : [ {
                    +      "pool_id" : "dab1cfc5150c4d1ca0e8c6596bfc0d8cpo01",
                    +      "address" : "192.168.10.76",
                    +      "name" : "proxy-name"
                    +    } ]
                       }
                     }
                    -
                  • Status Code

                    For details, see Status Codes.

                    diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0007.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0007.html index ec91e716c..28a71aeb4 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0007.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0007.html @@ -1,65 +1,159 @@

                    Deleting a DB Instance

                    -

                    Function

                    This API is used to delete a DB instance.

                    - +

                    Function

                    This API is used to delete a DB instance. Before calling this API:

                    +
                    -

                    URI

                    • URI format

                      DELETE https://{Endpoint}/mysql/v3/{project_id}/instances/{instance_id}

                      -
                    • Example

                      DELETE https://{Endpoint}/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01

                      -
                    • Parameter description -
                      Table 1 Parameter description

                      Name

                      +

                      URI

                      DELETE /v3/{project_id}/instances/{instance_id}

                      + +
                      - - + - - - + - - - +
                      Table 1 URI parameters

                      Parameter

                      Mandatory

                      +

                      Mandatory

                      Description

                      +

                      Type

                      +

                      Description

                      project_id

                      +

                      project_id

                      Yes

                      +

                      Yes

                      Project ID of a tenant in a region.

                      -

                      To obtain this value, see Obtaining a Project ID.

                      +

                      String

                      +

                      Project ID of a tenant in a region.

                      +

                      To obtain this value, see Obtaining a Project ID.

                      instance_id

                      +

                      instance_id

                      Yes

                      +

                      Yes

                      DB instance ID, which is compliant with the UUID format.

                      +

                      String

                      +

                      DB instance ID, which is compliant with the UUID format.

                      -
                      -

                      Request

                      None.

                      -
                      -

                      Response

                      • Normal response -
                        Table 2 Parameter description

                        Name

                        +

                        Request Parameters

                        +
                        - - + - - - + + + + + +
                        Table 2 Request header parameters

                        Parameter

                        Type

                        +

                        Mandatory

                        Description

                        +

                        Type

                        +

                        Description

                        job_id

                        +

                        X-Auth-Token

                        String

                        +

                        Yes

                        ID of the DB instance deletion task.

                        +

                        String

                        +

                        User token.

                        +

                        X-Language

                        +

                        No

                        +

                        String

                        +

                        Language.

                        -
                      • Example normal response
                        {
                        -	"job_id": "dff1d289-4d03-4942-8b9f-463ea07c000d"
                        +
                      • +

                        Response Parameters

                        Status code: 200

                        + +
                        + + + + + + + + + +
                        Table 3 Response body parameters

                        Parameter

                        +

                        Type

                        +

                        Description

                        +

                        job_id

                        +

                        String

                        +

                        Task ID.

                        +
                        +
                        +

                        Status code: 400

                        + +
                        + + + + + + + + + + + + + +
                        Table 4 Response body parameters

                        Parameter

                        +

                        Type

                        +

                        Description

                        +

                        error_code

                        +

                        String

                        +

                        Error code.

                        +

                        error_msg

                        +

                        String

                        +

                        Error message.

                        +
                        +
                        +

                        Status code: 500

                        + +
                        + + + + + + + + + + + + + +
                        Table 5 Response body parameters

                        Parameter

                        +

                        Type

                        +

                        Description

                        +

                        error_code

                        +

                        String

                        +

                        Error code.

                        +

                        error_msg

                        +

                        String

                        +

                        Error message.

                        +
                        +
                        +
                        +

                        Example Request

                        DELETE https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07
                        +
                        +

                        Example Response

                        Status code: 500

                        +

                        Server error.

                        +
                        {
                        +  "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
                         }
                        -

                        Status Code

                        For details, see Status Codes.

                        diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0008.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0008.html index 2236f1fcd..7180ef16e 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0008.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0008.html @@ -1,16 +1,15 @@ -

                        Managing Parameter Templates

                        -

                        -
                        +

                        Parameter Template Management

                        +
                        diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0009.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0009.html index 235945101..6b368c20a 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0009.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0009.html @@ -1,149 +1,279 @@ -

                        Querying a Parameter Template

                        -

                        Function

                        This API is used to obtain a parameter template list, including all databases' default and custom parameter templates.

                        - +

                        Querying Parameter Templates

                        +

                        Function

                        This API is used to obtain parameter templates, including all databases' default and custom parameter templates. Before using this API:

                        +
                        -

                        URI

                        • URI format

                          GET https://{Endpoint}/mysql/v3/{project_id}/configurations

                          -
                        • Example

                          GET https://{Endpoint}/mysql/v3/0483b6b16e954cb88930a360d2c4e663/configurations

                          -
                        • Parameter description -
                          Table 1 Parameter description

                          Name

                          +

                          URI

                          GET /v3/{project_id}/configurations

                          + +
                          - - + - - - - - -
                          Table 1 URI parameters

                          Parameter

                          Mandatory

                          +

                          Mandatory

                          Description

                          +

                          Type

                          +

                          Description

                          project_id

                          +

                          project_id

                          Yes

                          +

                          Yes

                          Project ID of a tenant in a region.

                          -

                          To obtain this value, see Obtaining a Project ID.

                          +

                          String

                          -
                          - -
                          -

                          Request

                          None.

                          -
                          -

                          Response

                          • Normal response -
                            - - - - - - - - - - -
                            Table 2 Parameter description

                            Name

                            -

                            Type

                            -

                            Description

                            -

                            configurations

                            -

                            Array of objects

                            -

                            Parameter template list.

                            -

                            For details, see Table 3.

                            -

                            total_count

                            -

                            Integer

                            -

                            Total number of parameter templates.

                            +

                            Project ID of a tenant in a region.

                            +

                            To obtain this value, see Obtaining a Project ID.

                            -
                            Table 3 configurations field data structure description

                            Name

                            +
                            - - + - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - -
                            Table 2 Query parameters

                            Parameter

                            Type

                            +

                            Mandatory

                            Description

                            +

                            Type

                            +

                            Description

                            id

                            +

                            offset

                            String

                            +

                            No

                            Parameter template ID.

                            +

                            Integer

                            +

                            Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

                            name

                            +

                            limit

                            String

                            +

                            No

                            Parameter template name.

                            +

                            Integer

                            description

                            -

                            String

                            -

                            Parameter template description.

                            -

                            datastore_version_name

                            -

                            String

                            -

                            DB version name.

                            -

                            datastore_name

                            -

                            String

                            -

                            DB name.

                            -

                            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.

                            -

                            updated

                            -

                            String

                            -

                            Update 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.

                            -

                            user_defined

                            -

                            Boolean

                            -

                            Whether the parameter template is a custom template.

                            -
                            • false: The parameter template is a default template.
                            • true: The parameter template is a custom template.
                            +

                            Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

                            - -
                            • Example normal response
                              {
                              -    "configurations":[
                              -        {
                              -            "id":"1ad028f5f6b8482483948860feb33339pr07",
                              -            "name":"DBS_GaussDB_ParameterTemple_Apply_001",
                              -            "description":"GaussDB-Test",
                              -            "datastore_version_name":"8.0",
                              -            "datastore_name":"gaussdb-mysql",
                              -            "created":"2020-04-08 07:12:17",
                              -            "updated":"2020-04-08 07:12:17",
                              -            "user_defined":true,
                              -        }
                              -]
                              +
                              +

                              Request Parameters

                              +
                              + + + + + + + + + + + + + + + + +
                              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 4 Response body parameters

                              Parameter

                              +

                              Type

                              +

                              Description

                              +

                              configurations

                              +

                              Array of ConfigurationSummary objects

                              +

                              Parameter template information.

                              +

                              total_count

                              +

                              Integer

                              +

                              Total number of parameter templates.

                              +
                              +
                              + +
                              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                              Table 5 ConfigurationSummary

                              Parameter

                              +

                              Type

                              +

                              Description

                              +

                              id

                              +

                              String

                              +

                              Parameter template ID.

                              +

                              name

                              +

                              String

                              +

                              Parameter template name.

                              +

                              description

                              +

                              String

                              +

                              Parameter template description.

                              +

                              datastore_version_name

                              +

                              String

                              +

                              Engine version

                              +

                              datastore_name

                              +

                              String

                              +

                              Engine name.

                              +

                              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.

                              +

                              updated

                              +

                              String

                              +

                              Update 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.

                              +

                              user_defined

                              +

                              Boolean

                              +

                              Whether the parameter template is a custom template.

                              +
                              • false: The parameter template is a default template.
                              • true: The parameter template is a custom template.
                              +
                              +
                              +

                              Status code: 400

                              + +
                              + + + + + + + + + + + + + +
                              Table 6 Response body parameters

                              Parameter

                              +

                              Type

                              +

                              Description

                              +

                              error_code

                              +

                              String

                              +

                              Error code.

                              +

                              error_msg

                              +

                              String

                              +

                              Error message.

                              +
                              +
                              +

                              Status code: 500

                              + +
                              + + + + + + + + + + + + + +
                              Table 7 Response body parameters

                              Parameter

                              +

                              Type

                              +

                              Description

                              +

                              error_code

                              +

                              String

                              +

                              Error code.

                              +

                              error_msg

                              +

                              String

                              +

                              Error message.

                              +
                              +
                              +
                              +

                              Example Request

                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/configurations
                              +
                              +

                              Example Response

                              Status code: 200

                              +

                              Success.

                              +
                              {
                              +  "total_count" : 1,
                              +  "configurations" : [ {
                              +    "id" : "887ea0d1bb0843c49e8d8e5a09a95652pr07",
                              +    "name" : "configuration_test",
                              +    "description" : "configuration_test",
                              +    "datastore_version_name" : "8.0",
                              +    "datastore_name" : "GaussDB(for MySQL)",
                              +    "created" : "2019-05-15T11:53:34+0000",
                              +    "updated" : "2019-05-15T11:53:34+0000",
                              +    "user_defined" : true
                              +  }, {
                              +    "id" : "3bc1e9cc0d34404b9225ed7a58fb284epr07",
                              +    "name" : "Default-GaussDBforMySQL",
                              +    "description" : "Default parameter template for GaussDBforMySQL",
                              +    "datastore_version_name" : "8.0",
                              +    "datastore_name" : "GaussDB(for MySQL)",
                              +    "created" : "2019-05-27T03:38:51+0000",
                              +    "updated" : "2019-05-27T03:38:51+0000",
                              +    "user_defined" : false
                              +  } ]
                               }
                              -

                            Status Code

                            For details, see Status Codes.

                            @@ -152,7 +282,7 @@ diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0010.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0010.html index 3ac2eaee1..4bba95585 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0010.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0010.html @@ -1,11 +1,7 @@ - -

                            Managing Quotas

                            - -

                            -
                            - +

                            Quota Management

                            +
                            diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0011.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0011.html index 42893e89e..25c5f738a 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0011.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0011.html @@ -1,160 +1,275 @@

                            Querying Resource Quotas

                            -

                            Function

                            This API is used to obtain the resource quota of a specified enterprise project.

                            - +

                            Function

                            This API is used to obtain the resource quotas of a specified enterprise project. Before using this API:

                            +
                            -

                            URI

                            • URI format

                              GET https://{Endpoint}/mysql/v3/{project_id}/quotas

                              -
                            • Example

                              GET https://{Endpoint}/mysql/v3/619d3e78f61b4be68bc5aa0b59edcf7b/quotas

                              -
                            • Parameter description -
                              Table 1 Parameter description

                              Name

                              +

                              URI

                              GET /v3/{project_id}/quotas

                              + +
                              - - + - - - - - - - - - - - - - -
                              Table 1 URI parameters

                              Parameter

                              Mandatory

                              +

                              Mandatory

                              Description

                              +

                              Type

                              +

                              Description

                              project_id

                              +

                              project_id

                              Yes

                              +

                              Yes

                              Project ID of a tenant in a region.

                              -

                              To obtain this value, see Obtaining a Project ID.

                              +

                              String

                              offset

                              -

                              No

                              -

                              Index position. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

                              -

                              limit

                              -

                              No

                              -

                              Number of records to be queried. The default value is 10. The value cannot be a negative number. The minimum value is 1 and the maximum value is 100.

                              -
                              -
                              - -
                              -

                              Request

                              None

                              -
                              -

                              Response

                              • Parameter description -
                                - - - - - - - - - - -
                                Table 2 Parameter description

                                Name

                                -

                                Type

                                -

                                Description

                                -

                                quota_list

                                -

                                Array of objects

                                -

                                Quota information list.

                                -

                                For details, see Table 3.

                                -

                                total_count

                                -

                                Integer

                                -

                                Number of quota records.

                                +

                                Project ID of a tenant in a region.

                                +

                                To obtain this value, see Obtaining a Project ID.

                                -
                                Table 3 quota_list field data structure description

                                Name

                                +
                                - - + - - - + - - - + - - - - - - - - - - - - - - - - - - -
                                Table 2 Query parameters

                                Parameter

                                Type

                                +

                                Mandatory

                                Description

                                +

                                Type

                                +

                                Description

                                enterprise_project_id

                                +

                                offset

                                String

                                +

                                No

                                Enterprise project ID.

                                +

                                String

                                +

                                Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number. Value: 0 to 10000

                                instance_quota

                                +

                                limit

                                Integer

                                +

                                No

                                Quota of the DB instance quantity.

                                +

                                String

                                +

                                Number of records to be queried. The default value is 10. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

                                vcpus_quota

                                +

                                enterprise_project_name

                                Integer

                                +

                                No

                                Quota of vCPUs.

                                +

                                String

                                ram_quota

                                -

                                Integer

                                -

                                Memory quota in GB.

                                -

                                availability_instance_quota

                                -

                                Integer

                                -

                                Remaining quota of DB instances.

                                -

                                availability_vcpus_quota

                                -

                                Integer

                                -

                                Remaining quota of vCPU.

                                -

                                availability_ram_quota

                                -

                                Integer

                                -

                                Remaining memory quota.

                                +

                                Enterprise project name.

                                -
                              • Example response
                                "quota_list": [
                                -  {
                                -    "enterprise_project_id": "0",
                                -    "instance_quota": 20,
                                -    "vcpus_quota": 20,
                                -    "ram_quota": 40,
                                -    "availability_instance_quota": 1,
                                -    "availability_vcpus_quota ": 4,
                                -    "availability_ram_quota": 8
                                -  },
                                -  {
                                -    "enterprise_project_id": "d72ebb42-9110-464c-a8e2-f9b9f349f80f",
                                -    "instance_quota": 0,
                                -    "vcpus_quota": 0,
                                -    "ram_quota": 0,
                                -    "availability_instance_quota ": 1,
                                -    "availability_vcpus_quota ": 4,
                                -    "availability_ram_quota ": 8
                                -  }
                                -],
                                -"total_count": 2
                                +
                                +

                                Request Parameters

                                +
                                + + + + + + + + + + + + + + + + +
                                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 4 Response body parameters

                                Parameter

                                +

                                Type

                                +

                                Description

                                +

                                quota_list

                                +

                                Array of quota objects

                                +

                                Resource list objects.

                                +

                                total_count

                                +

                                Integer

                                +

                                Number of quota records.

                                +
                                +
                                + +
                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                Table 5 quota

                                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.

                                +

                                availability_instance_quota

                                +

                                Integer

                                +

                                Remaining quota of DB instances.

                                +

                                availability_vcpus_quota

                                +

                                Integer

                                +

                                Remaining quota of vCPUs.

                                +

                                availability_ram_quota

                                +

                                Integer

                                +

                                Remaining memory quota.

                                +
                                +
                                +

                                Status code: 400

                                + +
                                + + + + + + + + + + + + + +
                                Table 6 Response body parameters

                                Parameter

                                +

                                Type

                                +

                                Description

                                +

                                error_code

                                +

                                String

                                +

                                Error code.

                                +

                                error_msg

                                +

                                String

                                +

                                Error message.

                                +
                                +
                                +

                                Status code: 500

                                + +
                                + + + + + + + + + + + + + +
                                Table 7 Response body parameters

                                Parameter

                                +

                                Type

                                +

                                Description

                                +

                                error_code

                                +

                                String

                                +

                                Error code.

                                +

                                error_msg

                                +

                                String

                                +

                                Error message.

                                +
                                +
                                +
                                +

                                Example Request

                                GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/quotas
                                +
                                +

                                Example Response

                                Status code: 200

                                +

                                Success.

                                +
                                {
                                +  "quota_list" : [ {
                                +    "enterprise_project_id" : "0",
                                +    "enterprise_project_name" : "default",
                                +    "instance_quota" : 20,
                                +    "vcpus_quota" : 20,
                                +    "ram_quota" : 40,
                                +    "availability_instance_quota" : 1,
                                +    "availability_vcpus_quota" : 4,
                                +    "availability_ram_quota" : 8
                                +  } ]
                                 }
                                -
                              • Status Code

                                For details, see Status Codes.

                                @@ -163,7 +278,7 @@
                                diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0012.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0012.html index d96b7d408..4746b8dad 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0012.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0012.html @@ -1,167 +1,241 @@

                                Configuring Resource Quotas

                                -

                                Function

                                This API is used to set resource quotas for a specified enterprise project.

                                - +

                                Function

                                This API is used to configure resource quotas for a specified enterprise project. Before using this API:

                                +
                                -

                                URI

                                • URI format

                                  POST https://{Endpoint}/mysql/v3/{project_id}/quotas

                                  -
                                • Example

                                  POST https://{Endpoint}/mysql/v3/0483b6b16e954cb88930a360d2c4e663/quotas

                                  -
                                -
                                • Parameter description -
                                  Table 1 Parameter description

                                  Name

                                  +

                                  URI

                                  POST /v3/{project_id}/quotas

                                  + +
                                  - - + - - - - - - -
                                  Table 1 URI parameters

                                  Parameter

                                  Mandatory

                                  +

                                  Mandatory

                                  Description

                                  +

                                  Type

                                  +

                                  Description

                                  project_id

                                  +

                                  project_id

                                  Yes

                                  +

                                  Yes

                                  Project ID of a tenant in a region.

                                  -

                                  To obtain this value, see Obtaining a Project ID.

                                  +

                                  String

                                  quota_list

                                  -

                                  Yes

                                  -

                                  Quota details. A maximum of 10 quota records can be configured at a time.

                                  -

                                  For details, see Table 2.

                                  +

                                  Project ID of a tenant in a region.

                                  +

                                  To obtain this value, see Obtaining a Project ID.

                                  -
                                  -

                                  Request

                                  • Parameter description -
                                    Table 2 quota_list field data structure description

                                    Name

                                    +

                                    Request Parameters

                                    +
                                    - - + - - - + - - - - - - - - - - - - - -
                                    Table 2 Request header parameters

                                    Parameter

                                    Type

                                    +

                                    Mandatory

                                    Description

                                    +

                                    Type

                                    +

                                    Description

                                    enterprise_project_id

                                    +

                                    X-Auth-Token

                                    String

                                    +

                                    Yes

                                    Enterprise project ID.

                                    +

                                    String

                                    +

                                    User token.

                                    instance_quota

                                    +

                                    X-Language

                                    Integer

                                    +

                                    No

                                    DB instance quantity quota. The value ranges from 0 to 1000. (If there are already DB instances created, this parameter value must be greater than the number of existing DB instances.)

                                    +

                                    String

                                    vcpus_quota

                                    -

                                    Integer

                                    -

                                    vCPUs quota. The value ranges from 0 to 3600000. (If there are already DB instances created, this parameter value must be greater than the number of used vCPUs.)

                                    -

                                    ram_quota

                                    -

                                    Integer

                                    -

                                    Memory quota in GB. The value ranges from 0 to 19200000. (If there are already DB instances created, this parameter value must be greater than the used memory size.)

                                    -
                                    -
                                    - -
                                    • Request example
                                      {
                                      -  "quota_list": [
                                      -    {
                                      -      "enterprise_project_id": "0",
                                      -      "instance_quota": 1,
                                      -      "vcpus_quota": 4,
                                      -      "ram_quota": 8
                                      -    }
                                      -  ]
                                      -}
                                      -
                                    -
                                    -

                                    Response

                                    • Parameter description -
                                      - - - - - - -
                                      Table 3 Parameter description

                                      Name

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      quota_list

                                      -

                                      Array of objects

                                      -

                                      Configured quota information.

                                      -

                                      For details, see Table 4.

                                      +

                                      Language.

                                      -
                                      Table 4 quota_list data structure description

                                      Name

                                      +
                                      - - + - - - - - - - - - - - - - - -
                                      Table 3 Request body parameters

                                      Parameter

                                      Type

                                      +

                                      Mandatory

                                      Description

                                      +

                                      Type

                                      +

                                      Description

                                      enterprise_project_id

                                      +

                                      quota_list

                                      String

                                      +

                                      Yes

                                      Enterprise project ID.

                                      +

                                      Array of setQuota objects

                                      instance_quota

                                      -

                                      Integer

                                      -

                                      Quota of the DB instance quantity.

                                      -

                                      vcpus_quota

                                      -

                                      Integer

                                      -

                                      Quota of vCPUs.

                                      -

                                      ram_quota

                                      -

                                      Integer

                                      -

                                      Memory quota in GB.

                                      +

                                      Quota details. Up to 10 quota records can be configured at a time.

                                      - -
                                      • Example response
                                        {
                                        -  "quota_list": [
                                        -    {
                                        -      "enterprise_project_id": "0",
                                        -      "instance_quota": 1,
                                        -      "vcpus_quota": 4,
                                        -      "ram_quota": 8
                                        -    }
                                        -  ]
                                        +
                                        +
                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                        Table 4 setQuota

                                        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: 201

                                        + +
                                        + + + + + + + + + +
                                        Table 5 Response body parameters

                                        Parameter

                                        +

                                        Type

                                        +

                                        Description

                                        +

                                        quota_list

                                        +

                                        Array of setQuota objects

                                        +

                                        Configured quota information.

                                        +
                                        +
                                        + +
                                        + + + + + + + + + + + + + + + + + + + + + + + + + +
                                        Table 6 setQuota

                                        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

                                        +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
                                        +  } ]
                                        +}
                                        +
                                        +

                                        Example Response

                                        Status code: 201

                                        +

                                        Success.

                                        +
                                        {
                                        +  "quota_list" : [ {
                                        +    "enterprise_project_id" : "0",
                                        +    "enterprise_project_name" : "default",
                                        +    "instance_quota" : 20,
                                        +    "vcpus_quota" : 20,
                                        +    "ram_quota" : 40
                                        +  } ]
                                         }
                                        -

                                      Status Code

                                      For details, see Status Codes.

                                      @@ -170,7 +244,7 @@
                                      diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0013.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0013.html index 312c49907..2ba6c1182 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0013.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0013.html @@ -2,167 +2,294 @@

                                      Modifying Resource Quotas

                                      Function

                                      This API is used to modify the resource quota of a specified enterprise project.

                                      - +
                                      -

                                      URI

                                      • URI format

                                        PUT https://{Endpoint}/mysql/v3/{project_id}/quotas

                                        -
                                      • Example

                                        PUT https://{Endpoint}/mysql/v3/0483b6b16e954cb88930a360d2c4e663/quotas

                                        -
                                      -
                                      • Parameter description -
                                        Table 1 Parameter description

                                        Name

                                        +

                                        URI

                                        PUT /v3/{project_id}/quotas

                                        + +
                                        - - + - - - - - - -
                                        Table 1 URI parameters

                                        Parameter

                                        Mandatory

                                        +

                                        Mandatory

                                        Description

                                        +

                                        Type

                                        +

                                        Description

                                        project_id

                                        +

                                        project_id

                                        Yes

                                        +

                                        Yes

                                        Project ID of a tenant in a region.

                                        -

                                        To obtain this value, see Obtaining a Project ID.

                                        +

                                        String

                                        quota_list

                                        -

                                        Yes

                                        -

                                        Enterprise project resource quotas to be updated. A maximum of 10 quotas can be updated at a time.

                                        -

                                        For details, see Table 2.

                                        +

                                        Project ID of a tenant in a region.

                                        +

                                        To obtain this value, see Obtaining a Project ID.

                                        -
                                        -

                                        Request

                                        • Parameter description -
                                          Table 2 quota_list field data structure description

                                          Name

                                          +

                                          Request Parameters

                                          +
                                          - - + - - - + - - - - - - - - - - - - - -
                                          Table 2 Request header parameters

                                          Parameter

                                          Type

                                          +

                                          Mandatory

                                          Description

                                          +

                                          Type

                                          +

                                          Description

                                          enterprise_project_id

                                          +

                                          X-Auth-Token

                                          String

                                          +

                                          Yes

                                          Enterprise project ID.

                                          +

                                          String

                                          +

                                          User token.

                                          instance_quota

                                          +

                                          X-Language

                                          Integer

                                          +

                                          No

                                          Quota of the DB instance quantity. The value ranges from 0 to 1000. (If there are already DB instances created, this parameter value must be greater than or equal to the number of existing DB instances.)

                                          +

                                          String

                                          vcpus_quota

                                          -

                                          Integer

                                          -

                                          Quota of vCPUs. The value ranges from 0 to 3600000. (If there are already DB instances created, this parameter value must be greater than or equal to the number of used vCPUs.)

                                          -

                                          ram_quota

                                          -

                                          Integer

                                          -

                                          Memory quota in GB.

                                          -

                                          Memory quota in GB. The value ranges from 0 to 19200000. (If there are already DB instances created, this parameter value must be greater than or equal to the used memory size.)

                                          -
                                          -
                                          - -
                                          • Request example
                                            {
                                            -  "quota_list": [
                                            -    {
                                            -      "enterprise_project_id": "0",
                                            -      "instance_quota": 1,
                                            -      "vcpus_quota": 4,
                                            -      "ram_quota": 8
                                            -    }
                                            -  ]
                                            -}
                                            -
                                          -
                                          -

                                          Response

                                          • Parameter description -
                                            - - - - - - -
                                            Table 3 Parameter description

                                            Name

                                            -

                                            Type

                                            -

                                            Description

                                            -

                                            quota_list

                                            -

                                            Array of objects

                                            -

                                            Configured quota information.

                                            -

                                            For details, see Table 4.

                                            +

                                            Language.

                                            -
                                            Table 4 quota_list field data structure description

                                            Name

                                            +
                                            - - + - - - - - - - - - - - - - - -
                                            Table 3 Request body parameters

                                            Parameter

                                            Type

                                            +

                                            Mandatory

                                            Description

                                            +

                                            Type

                                            +

                                            Description

                                            enterprise_project_id

                                            +

                                            quota_list

                                            String

                                            +

                                            Yes

                                            Enterprise project ID.

                                            +

                                            Array of setQuota objects

                                            instance_quota

                                            -

                                            Integer

                                            -

                                            Quota of the DB instance quantity.

                                            -

                                            vcpus_quota

                                            -

                                            Integer

                                            -

                                            Quota of vCPUs.

                                            -

                                            ram_quota

                                            -

                                            Integer

                                            -

                                            Memory quota in GB.

                                            +

                                            Enterprise project resource quotas to be updated. A maximum of 10 quotas can be updated at a time.

                                            - -
                                            • Example response
                                              {
                                              -  "quota_list": [
                                              -    {
                                              -      "enterprise_project_id": "0",
                                              -      "instance_quota": 1,
                                              -      "vcpus_quota": 4,
                                              -      "ram_quota": 8
                                              -    }
                                              -  ]
                                              +
                                              +
                                              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                              Table 4 setQuota

                                              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 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.)

                                              +
                                              +
                                              + +

                                              Response Parameters

                                              Status code: 200

                                              + +
                                              + + + + + + + + + +
                                              Table 5 Response body parameters

                                              Parameter

                                              +

                                              Type

                                              +

                                              Description

                                              +

                                              quota_list

                                              +

                                              Array of setQuota objects

                                              +

                                              Configured quota information.

                                              +
                                              +
                                              + +
                                              + + + + + + + + + + + + + + + + + + + + + + + + + +
                                              Table 6 setQuota

                                              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.

                                              +
                                              +
                                              +

                                              Status code: 400

                                              + +
                                              + + + + + + + + + + + + + +
                                              Table 7 Response body parameters

                                              Parameter

                                              +

                                              Type

                                              +

                                              Description

                                              +

                                              error_code

                                              +

                                              String

                                              +

                                              Error code.

                                              +

                                              error_msg

                                              +

                                              String

                                              +

                                              Error message.

                                              +
                                              +
                                              +

                                              Status code: 500

                                              + +
                                              + + + + + + + + + + + + + +
                                              Table 8 Response body parameters

                                              Parameter

                                              +

                                              Type

                                              +

                                              Description

                                              +

                                              error_code

                                              +

                                              String

                                              +

                                              Error code.

                                              +

                                              error_msg

                                              +

                                              String

                                              +

                                              Error message.

                                              +
                                              +
                                              +
                                              +

                                              Example Request

                                              +PUT 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
                                              +  } ]
                                              +}
                                              +
                                              +

                                              Example Response

                                              Status code: 200

                                              +

                                              Success.

                                              +
                                              {
                                              +  "quota_list" : [ {
                                              +    "enterprise_project_id" : "0",
                                              +    "enterprise_project_name" : "default",
                                              +    "instance_quota" : 20,
                                              +    "vcpus_quota" : 20,
                                              +    "ram_quota" : 40
                                              +  } ]
                                               }
                                              -

                                            Status Code

                                            For details, see Status Codes.

                                            @@ -171,7 +298,7 @@
                                            diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0014.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0014.html index 363e9f502..4266c27f0 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_04_0014.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0014.html @@ -1,296 +1,15 @@ -

                                            Obtaining Task Information

                                            -

                                            Function

                                            This API is used to obtain task information from the task center.

                                            - -
                                            -

                                            URI

                                            • URI format

                                              GET https://{Endpoint}/mysql/v3/{project_id}/jobs?id={id}

                                              -
                                            • Example

                                              GET https://{Endpoint}/mysql/v3/0483b6b16e954cb88930a360d2c4e663/jobs?id=a9767ede-fe0f-4888-9003-e843a4c90514

                                              -
                                            -
                                            • Parameter description -
                                              - - - - - - - - - - - - - -
                                              Table 1 Parameter description

                                              Name

                                              -

                                              Mandatory

                                              -

                                              Description

                                              -

                                              project_id

                                              -

                                              Yes

                                              -

                                              Project ID of a tenant in a region.

                                              -

                                              To obtain this value, see Obtaining a Project ID.

                                              -

                                              id

                                              -

                                              Yes

                                              -

                                              Task ID.

                                              -
                                              -
                                              -
                                            -
                                            -

                                            Request

                                            None.

                                            -
                                            -

                                            Response

                                            • Normal response -
                                              - - - - - - - - - -
                                              Table 2 Parameter description

                                              Name

                                              -

                                              Type

                                              -

                                              Description

                                              -

                                              job

                                              -

                                              Object

                                              -

                                              Task information. For details, see Table 3.

                                              -
                                              -
                                              - -
                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                              Table 3 job field data structure description

                                              Name

                                              -

                                              Type

                                              -

                                              Description

                                              -

                                              id

                                              -

                                              String

                                              -

                                              Task ID.

                                              -

                                              name

                                              -

                                              String

                                              -

                                              Task name.

                                              -

                                              status

                                              -

                                              String

                                              -

                                              Task execution status.

                                              -
                                              Valid value:
                                              • Running: The task is being executed.
                                              • Completed: The task is successfully executed.
                                              • Failed: The task fails to be executed.
                                              -
                                              -

                                              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.

                                              -

                                              process

                                              -

                                              String

                                              -

                                              Task execution progress.

                                              -

                                              instance

                                              -

                                              Object

                                              -

                                              DB instance on which the task is executed.

                                              -

                                              For details, see Table 4.

                                              -

                                              entities

                                              -

                                              Object

                                              -

                                              Displayed information varies depending on tasks.

                                              -

                                              For details, see Table 5.

                                              -

                                              fail_reason

                                              -

                                              String

                                              -

                                              Task failure information.

                                              -
                                              -
                                              - -
                                              - - - - - - - - - - - - - -
                                              Table 4 instances field data structure description

                                              Name

                                              -

                                              Type

                                              -

                                              Description

                                              -

                                              id

                                              -

                                              String

                                              -

                                              DB instance ID.

                                              -

                                              name

                                              -

                                              String

                                              -

                                              DB instance name.

                                              -
                                              -
                                              - -
                                              - - - - - - - - - - - - - -
                                              Table 5 entities field data structure description

                                              Name

                                              -

                                              Type

                                              -

                                              Description

                                              -

                                              instance

                                              -

                                              Object

                                              -

                                              DB instance queried in the task.

                                              -

                                              For details, see Table 6.

                                              -

                                              resource_ids

                                              -

                                              List<String>

                                              -

                                              Resource ID involved in a task.

                                              -
                                              -
                                              - -
                                              - - - - - - - - - - - - - - - - - -
                                              Table 6 entities.instance field data structure description

                                              Name

                                              -

                                              Type

                                              -

                                              Description

                                              -

                                              endpoint

                                              -

                                              String

                                              -

                                              DB instance connection address.

                                              -

                                              type

                                              -

                                              String

                                              -

                                              DB instance type.

                                              -

                                              datastore

                                              -

                                              Object

                                              -

                                              DB information. For details, see Table 7.

                                              -
                                              -
                                              - -
                                              - - - - - - - - - - - - - -
                                              Table 7 datastore field data structure description

                                              Name

                                              -

                                              Type

                                              -

                                              Description

                                              -

                                              type

                                              -

                                              String

                                              -

                                              DB engine.

                                              -

                                              version

                                              -

                                              String

                                              -

                                              DB version.

                                              -
                                              -
                                              - -
                                              - - - - - - - - - -
                                              Table 8 entities field data structure description (binding or unbinding an EIP)

                                              Name

                                              -

                                              Type

                                              -

                                              Description

                                              -

                                              public_ip

                                              -

                                              String

                                              -

                                              EIP used in the task.

                                              -
                                              -
                                              -

                                              In the response example, some tasks in the task center are used as examples.

                                              -
                                              -
                                            -
                                            • Example normal response
                                              {
                                              -  "job": {
                                              -    "id": "31b8ae23-c687-4d80-b7b4-42a66c9bb886",
                                              -    "name": " RestartGaussDBInstance",
                                              -    "status": "Completed",
                                              -    "created": "2018-08-06T10:41:14+0000",
                                              -    "ended": "2018-08-06T16:41:14+0000",
                                              -    "process": "",
                                              -    "instance": {
                                              -      "id": "a48e43ff268f4c0e879652d65e63d0fbin01",
                                              -      "name": "DO-NOT-TOUCH-mgr2-gaussdb"
                                              -    },
                                              -    "entities": {}
                                              -    }
                                              -  }
                                              -}
                                              -
                                            -
                                            -

                                            Status Code

                                            For details, see Status Codes.

                                            -
                                            -

                                            Error Code

                                            For details, see Error Codes.

                                            -

                                            -
                                            -
                                            +

                                            Task Center

                                            +
                                            diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0015.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0015.html new file mode 100644 index 000000000..ca686ac4e --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0015.html @@ -0,0 +1,213 @@ + + +

                                            Creating a Read Replica

                                            +

                                            Function

                                            This API is used to create a read replica. Before using this API:

                                            + +
                                            +

                                            URI

                                            POST /v3/{project_id}/instances/{instance_id}/nodes/enlarge

                                            + +
                                            + + + + + + + + + + + + + + + + +
                                            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 Obtaining a Project ID.

                                            +

                                            instance_id

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance ID, which is compliant with the UUID format.

                                            +
                                            +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            priorities

                                            +

                                            Yes

                                            +

                                            Array of integers

                                            +

                                            Failover priority of a read replica. Failover priority ranges from 1 for the first priority to 16 for the last priority. This priority determines the order in which read replicas are promoted when recovering from a primary node failure. Read replicas with the same priority have a same probability of being promoted to the new primary node.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 201

                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            instance_id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            node_names

                                            +

                                            Array of strings

                                            +

                                            Node name list

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            Read replica creation task ID.

                                            +

                                            This parameter is returned only when a pay-per-use read replica is created.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Creating a read replica

                                            +
                                            +POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/nodes/enlarge
                                            +{
                                            +  "priorities" : [ 1, 2 ]
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 201

                                            +

                                            Success.

                                            +
                                            {
                                            +  "instance_id" : "ba62a0b83a1b42bfab275829d86ac0fdin07",
                                            +  "node_names" : [ "gauss-ccf5_node03" ],
                                            +  "job_id" : "dff1d289-4d03-4942-8b9f-463ea07c000d"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0016.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0016.html new file mode 100644 index 000000000..13d07748e --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0016.html @@ -0,0 +1,177 @@ + + +

                                            Deleting a Read Replica

                                            +

                                            Function

                                            This API is used to delete a read replica. For multi-AZ deployment, the primary node and remaining read replicas must be located in different AZs after read replicas are deleted. Before calling this API:

                                            + +
                                            +

                                            URI

                                            DELETE /v3/{project_id}/instances/{instance_id}/nodes/{node_id}

                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            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 Obtaining a Project ID.

                                            +

                                            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.

                                            +
                                            +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            Table 2 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 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            Task ID.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            DELETE https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/3d39c18788b54a919bab633874c159dfin01/nodes/096c0fc43e804757b59946b80dc27f8bin07
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0018.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0018.html new file mode 100644 index 000000000..713697c31 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0018.html @@ -0,0 +1,197 @@ + + +

                                            Changing a DB Instance Name

                                            +

                                            Function

                                            This API is used to change a DB instance name. Before using this API:

                                            + +
                                            +

                                            URI

                                            PUT /v3/{project_id}/instances/{instance_id}/name

                                            + +
                                            + + + + + + + + + + + + + + + + +
                                            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 Obtaining a Project ID.

                                            +

                                            instance_id

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance ID, which is compliant with the UUID format.

                                            +
                                            +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            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

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            Task ID for changing a DB instance name.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Changing a DB Instance Name

                                            +
                                            +PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/name
                                            +{
                                            +  "name" : "gaussdb-name"
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "job_id" : "0f6b6a9e-bd39-4e95-9374-e4d134e5a3d1"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +

                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0019.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0019.html new file mode 100644 index 000000000..7d73b419c --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0019.html @@ -0,0 +1,174 @@ + + +

                                            Resetting a Database Password

                                            +

                                            Function

                                            This API is used to reset a database password. Before using this API:

                                            + +
                                            +

                                            URI

                                            POST /v3/{project_id}/instances/{instance_id}/password

                                            + +
                                            + + + + + + + + + + + + + + + + +
                                            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 Obtaining a Project ID.

                                            +

                                            instance_id

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance ID, which is compliant with the UUID format.

                                            +
                                            +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            password

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Database password. The password consists of 8 to 32 characters and contains at least three types of the following: uppercase letters, lowercase letters, digits, and special characters (~!@#$%^*-_=+?,()&). You are advised to enter a strong password to improve security and prevent security risks such as brute force cracking. If you enter a weak password, the system automatically determines that the password is invalid.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Resetting a database password

                                            +
                                            +POST https://gaussdb-mysql.eu-de.otc.t-systems.com/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/password
                                            +{
                                            +  "password" : "Test_345612"
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +

                                            None

                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_04_0020.html b/docs/gaussdb_mysql/api-ref/gaussdb_04_0020.html new file mode 100644 index 000000000..45b390607 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_04_0020.html @@ -0,0 +1,221 @@ + + +

                                            Changing DB Instance Specifications

                                            +

                                            Function

                                            This API is used to change DB instance specifications. Before using this API:

                                            + +
                                            +

                                            URI

                                            POST /v3/{project_id}/instances/{instance_id}/action

                                            + +
                                            + + + + + + + + + + + + + + + + +
                                            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 Obtaining a Project ID.

                                            +

                                            instance_id

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance ID, which is compliant with the UUID format.

                                            +
                                            +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            resize_flavor

                                            +

                                            Yes

                                            +

                                            MysqlResizeFlavor object

                                            +

                                            Specification change information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 4 MysqlResizeFlavor

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            spec_code

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Specification code.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            Job ID for changing DB instance specifications.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Changing instance specifications

                                            +
                                            +POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/action
                                            +{
                                            +  "resize_flavor" : {
                                            +    "spec_code" : "gaussdb.mysql.xlarge.arm.8"
                                            +  }
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "job_id" : "dff1d289-4d03-4942-8b9f-463ea07c000d"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_06_0002.html b/docs/gaussdb_mysql/api-ref/gaussdb_06_0002.html new file mode 100644 index 000000000..bff4b686a --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_06_0002.html @@ -0,0 +1,21 @@ + + +

                                            Backup Management

                                            +
                                            + + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_06_0003.html b/docs/gaussdb_mysql/api-ref/gaussdb_06_0003.html new file mode 100644 index 000000000..773d4633c --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_06_0003.html @@ -0,0 +1,290 @@ + + +

                                            Creating a Manual Backup

                                            +

                                            Function

                                            This API is used to create a manual backup. Before using this API:

                                            + +
                                            +

                                            URI

                                            POST /v3/{project_id}/backups/create

                                            + +
                                            + + + + + + + + + + + +
                                            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 Obtaining a Project ID.

                                            +
                                            +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            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 (_).

                                            +

                                            description

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Backup description. It contains a maximum of 256 characters and cannot contain the special characters (>!<"&'=)

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 201

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            backup

                                            +

                                            backup object

                                            +

                                            Backup information.

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            Task ID.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 5 backup

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            Backup ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            Backup name.

                                            +

                                            description

                                            +

                                            String

                                            +

                                            Backup description.

                                            +

                                            begin_time

                                            +

                                            String

                                            +

                                            Backup start time in the "yyyy-mm-ddThh:mm:ssZ" format, where "T" indicates the start time of the time field, and "Z" indicates the time zone offset.

                                            +

                                            status

                                            +

                                            String

                                            +

                                            Backup status. Value:

                                            +
                                            • BUILDING: Backup in progress
                                            • COMPLETED: Backup completed
                                            • FAILED: Backup failed
                                            • AVAILABLE: Backup available
                                            +

                                            Valid value:

                                            +
                                            • BUILDING
                                            • COMPLETED
                                            • FAILED
                                            • AVAILABLE
                                            +

                                            type

                                            +

                                            String

                                            +

                                            Backup type. Value:

                                            +

                                            manual: manual full backup

                                            +

                                            Valid value:

                                            +

                                            manual

                                            +

                                            instance_id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Creating a Manual Backup

                                            +
                                            +POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/backups/create
                                            +{
                                            +  "instance_id" : "07033b125fd94a8a96896f8bcfee6ddain07",
                                            +  "name" : "backup-1",
                                            +  "description": "Manual backup"
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 201

                                            +

                                            Success.

                                            +
                                            {
                                            +  "backup" : {
                                            +    "id" : "2f4ddb93-b901-4b08-93d8-1d2e472f30fe",
                                            +    "name" : "backup-1",
                                            +    "description": "Manual backup"
                                            +    "begin_time" : "2020-07-07T01:17:05+0800",
                                            +    "status" : "BUILDING",
                                            +    "type" : "manual",
                                            +    "instance_id" : "07033b125fd94a8a96896f8bcfee6ddain07"
                                            +  },
                                            +  "job_id" : "e0fbbfc8-1ac4-4721-b9e9-7dd685c5bdd7"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_06_0004.html b/docs/gaussdb_mysql/api-ref/gaussdb_06_0004.html new file mode 100644 index 000000000..fb59dad0a --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_06_0004.html @@ -0,0 +1,383 @@ + + +

                                            Querying Backups

                                            +

                                            Function

                                            This API is used to query backups according to search criteria. Before using this API:

                                            + +
                                            +

                                            URI

                                            GET /v3/{project_id}/backups

                                            + +
                                            + + + + + + + + + + + +
                                            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 Obtaining a Project ID.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Query parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            instance_id

                                            +

                                            No

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            backup_id

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Backup ID.

                                            +

                                            backup_type

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Backup type. Value:

                                            +

                                            auto: automated full backup

                                            +

                                            manual: manual full backup

                                            +

                                            offset

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

                                            +

                                            limit

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

                                            +

                                            begin_time

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Query start time. The format is "yyyy-mm-ddThh:mm:ssZ". T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.

                                            +

                                            end_time

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Query end time. The format is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time. T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.

                                            +
                                            +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            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 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            backups

                                            +

                                            Array of backups objects

                                            +

                                            Backup information.

                                            +

                                            total_count

                                            +

                                            Long

                                            +

                                            Total number of backup files.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 5 backups

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            Backup ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            Backup name.

                                            +

                                            begin_time

                                            +

                                            String

                                            +

                                            Backup start 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.

                                            +

                                            end_time

                                            +

                                            String

                                            +

                                            Backup 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.

                                            +

                                            status

                                            +

                                            String

                                            +

                                            Backup status. Value:

                                            +
                                            • BUILDING: Backup in progress
                                            • COMPLETED: Backup completed
                                            • FAILED: Backup failed
                                            • AVAILABLE: Backup available
                                            +

                                            Valid value:

                                            +
                                            • BUILDING
                                            • COMPLETED
                                            • FAILED
                                            • AVAILABLE
                                            +

                                            take_up_time

                                            +

                                            Integer

                                            +

                                            Backup duration in minutes.

                                            +

                                            type

                                            +

                                            String

                                            +

                                            Backup type. Value:

                                            +
                                            • auto: automated full backup
                                            • manual: manual full backup
                                            +

                                            Valid value:

                                            +
                                            • auto
                                            • manual
                                            +

                                            size

                                            +

                                            Long

                                            +

                                            Backup size in MB.

                                            +

                                            datastore

                                            +

                                            MysqlDatastore object

                                            +

                                            Database information.

                                            +

                                            instance_id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            description

                                            +

                                            String

                                            +

                                            Description of the backup file.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 MysqlDatastore

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            type

                                            +

                                            String

                                            +

                                            DB engine. Currently, only gaussdb-mysql is supported.

                                            +

                                            version

                                            +

                                            String

                                            +

                                            DB version.

                                            +

                                            To obtain details about supported DB engine versions, call the API for querying the DB engine versions.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 8 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/97b026aa9cc4417888c14c84a1ad9860/backups?instance_id=43e4feaab48f11e89039fa163ebaa7e4br01&backup_id=c0c9f155c7b7423a9d30f0175998b63bbr01&backup_type=auto&offset=0&limit=10&begin_time=2020-07-06T10:41:14+0800&end_time=2020-07-16T10:41:14+0800
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "backups" : [ {
                                            +    "id" : "c0c9f155c7b7423a9d30f0175998b63bbr01",
                                            +    "name" : "GaussDBforMySQL-gauss-e747-20200705185048266",
                                            +    "begin_time" : "2020-07-06T10:41:14+0800",
                                            +    "end_time" : "2020-07-16T10:41:14+0800",
                                            +    "take_up_time" : 2,
                                            +    "status" : "COMPLETED",
                                            +    "type" : "auto",
                                            +    "size" : 2803,
                                            +    "datastore" : {
                                            +      "type" : "gaussdb-mysql",
                                            +      "version" : "8.0"
                                            +    },
                                            +    "instance_id" : "c0c9f155c7b7423a9d30f0175998b63bbr01"
                                            +    
                                            +  } ],
                                            +  "total_count" : 1
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_06_0005.html b/docs/gaussdb_mysql/api-ref/gaussdb_06_0005.html new file mode 100644 index 000000000..e7804fcb1 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_06_0005.html @@ -0,0 +1,209 @@ + + +

                                            Querying an Automated Backup Policy

                                            +

                                            Function

                                            This API is used to query an automated backup policy. Before using this API:

                                            + +
                                            +

                                            URI

                                            GET /v3/{project_id}/instances/{instance_id}/backups/policy

                                            + +
                                            + + + + + + + + + + + + + + + + +
                                            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 Obtaining a Project ID.

                                            +

                                            instance_id

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance ID, which is compliant with the UUID format.

                                            +
                                            +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            Table 2 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 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            backup_policy

                                            +

                                            BackupPolicy object

                                            +

                                            Backup policy information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 4 BackupPolicy

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            keep_days

                                            +

                                            Integer

                                            +

                                            Backup retention days. Value: 1 to 732

                                            +

                                            Minimum value: 1

                                            +

                                            Maximum value: 732

                                            +

                                            start_time

                                            +

                                            String

                                            +

                                            Backup time window. Automated backups will be triggered during the backup time window.

                                            +

                                            The value must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

                                            +

                                            period

                                            +

                                            String

                                            +

                                            Backup cycle configuration. Data will be automatically backed up on the selected days every week.

                                            +

                                            Value range: The value is a number separated by commas (,), indicating the days of the week.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/61a4ea66210545909d74a05c27a7179ein07/backups/policy
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "backup_policy" : {
                                            +    "keep_days" : "7,",
                                            +    "start_time" : "19:00-20:00",
                                            +    "period" : "1,2"
                                            +   }
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_06_0006.html b/docs/gaussdb_mysql/api-ref/gaussdb_06_0006.html new file mode 100644 index 000000000..32e47187c --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_06_0006.html @@ -0,0 +1,315 @@ + + +

                                            Modifying an Automated Backup Policy

                                            +

                                            Function

                                            This API is used to modify an automated backup policy. Before using this API:

                                            + +
                                            +

                                            URI

                                            PUT /v3/{project_id}/instances/{instance_id}/backups/policy/update

                                            + +
                                            + + + + + + + + + + + + + + + + +
                                            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 Obtaining a Project ID.

                                            +

                                            instance_id

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance ID, which is compliant with the UUID format.

                                            +
                                            +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            backup_policy

                                            +

                                            Yes

                                            +

                                            MysqlBackupPolicy object

                                            +

                                            Database information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 MysqlBackupPolicy

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            start_time

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Backup time window. Automated backups will be triggered during the backup time window.

                                            +

                                            The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

                                            +
                                            • The HH value must be 1 greater than the hh value.
                                            • The values of mm and MM must be the same and must be set to 00.
                                            +

                                            Example value:

                                            +

                                            21:00-22:00

                                            +

                                            keep_days

                                            +

                                            Yes

                                            +

                                            Integer

                                            +

                                            Backup retention days.

                                            +

                                            Value: 1 to 732

                                            +

                                            period

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Backup cycle configuration. Data will be automatically backed up on the selected days every week.

                                            +

                                            Value range: The value is a number separated by commas (,), indicating the days of the week.

                                            +

                                            For example, the value 1,2,3,4 indicates that the backup period is Monday, Tuesday, Wednesday, and Thursday.

                                            +

                                            retention_num_backup_level-1

                                            +

                                            No

                                            +

                                            Integer

                                            +

                                            Number of retained level-1 backups. The default value is 0. This parameter is mandatory when the level-1 backup function is enabled. This parameter is unavailable when the level-1 backup function is disabled. Value:

                                            +
                                            • 0
                                            • 1
                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            status

                                            +

                                            String

                                            +

                                            Status information.

                                            +

                                            instance_id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            instance_name

                                            +

                                            String

                                            +

                                            DB instance name.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Modifying a backup policy

                                            +
                                            +PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/backups/policy/update
                                            +{
                                            +  "backup_policy" : {
                                            +    "keep_days" : 7,
                                            +    "start_time" : "19:00-20:00",
                                            +    "period" : "1,2,3,4,5"
                                            +  }
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "status" : "COMPLETED",
                                            +  "instance_id" : "ef25188419f941309882d2986b2210b9in07",
                                            +  "instance_name" : "gauss-mysql"
                                            +}
                                            +
                                            +

                                            Response

                                            • Normal response +
                                              + + + + + + + + + + + + + + + + + +
                                              Table 8 Parameter description

                                              Name

                                              +

                                              Type

                                              +

                                              Description

                                              +

                                              status

                                              +

                                              String

                                              +

                                              Backup status. Value:

                                              +
                                              • BUILDING: Modification in progress
                                              • COMPLETED: Modification completed
                                              • FAILED: Modification failed
                                              +

                                              instance_id

                                              +

                                              String

                                              +

                                              DB instance ID.

                                              +

                                              instance_name

                                              +

                                              String

                                              +

                                              DB instance name.

                                              +
                                              +
                                              +
                                            • Example normal response
                                              {
                                              +"status": "COMPLETED",
                                              +"instance_id": "ef25188419f941309882d2986b2210b9in07",
                                              +"instance_name": "gauss-fhc"
                                              +}
                                              +
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_10_0002.html b/docs/gaussdb_mysql/api-ref/gaussdb_10_0002.html index 5b240f353..c276b4204 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_10_0002.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_10_0002.html @@ -1,9 +1,9 @@

                                            Status Codes

                                            -

                                            Status code list:

                                            +

                                            The following table describes status codes.

                                            -
                                            Table 1 Status Code

                                            Status Code

                                            +
                                            diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_10_0003.html b/docs/gaussdb_mysql/api-ref/gaussdb_10_0003.html index 68c865f3e..6c4f71071 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_10_0003.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_10_0003.html @@ -3,278 +3,1644 @@

                                            Error Codes

                                            The following table describes error codes.

                                            -
                                            Table 1 Status codes

                                            Status Code

                                            Message

                                            Table 1 Error codes

                                            Error Code

                                            +
                                            - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_10_0004.html b/docs/gaussdb_mysql/api-ref/gaussdb_10_0004.html index 254181bfa..8008b0972 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_10_0004.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_10_0004.html @@ -31,7 +31,7 @@ }

                                            Obtain a Project ID from the Console

                                            1. Register yourself on the management console and log in to it.
                                            2. Move your pointer over the username and select My Credentials in the displayed drop-down list.

                                              On the My Credentials page, view project IDs in the project list.

                                              -
                                              Figure 1 Viewing project IDs
                                              +
                                              Figure 1 Viewing project IDs

                                            diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_10_0006.html b/docs/gaussdb_mysql/api-ref/gaussdb_10_0006.html index 95288bd9a..9fc6c446e 100644 --- a/docs/gaussdb_mysql/api-ref/gaussdb_10_0006.html +++ b/docs/gaussdb_mysql/api-ref/gaussdb_10_0006.html @@ -6,472 +6,722 @@

                                            Namespace

                                            SYS.GAUSSDB

                                            Monitoring Metrics

                                            -
                                            Table 1 Error codes

                                            Status Code

                                            Response Code

                                            +

                                            Error Code

                                            Description

                                            +

                                            Error Message

                                            +

                                            Description

                                            +

                                            Troubleshooting

                                            DBS.200040

                                            +

                                            400

                                            400

                                            +

                                            DBS.200001

                                            The DB engine type must be specified.

                                            +

                                            Parameter error.

                                            +

                                            Parameter error.

                                            +

                                            Check whether the transferred parameters or URLs are correct.

                                            DBS.200041

                                            +

                                            400

                                            400

                                            +

                                            DBS.200004

                                            Invalid DB engine type.

                                            +

                                            Parameter error.

                                            +

                                            Parameter error.

                                            +

                                            Check whether the transferred parameters or URLs are correct.

                                            DBS.200051

                                            +

                                            400

                                            500

                                            +

                                            DBS.200006

                                            Invalid deployment mode.

                                            +

                                            The request is null. Enter a request parameter.

                                            +

                                            The request is null. Enter a request parameter.

                                            +

                                            Check whether any mandatory request parameter is empty.

                                            DBS.200910

                                            +

                                            400

                                            400

                                            +

                                            DBS.200021

                                            The maximum number of read replicas has been reached.

                                            +

                                            Invalid DB instance name.

                                            +

                                            Invalid DB instance name.

                                            +

                                            Check whether the instance name is correct.

                                            DBS.280203

                                            +

                                            400

                                            400

                                            +

                                            DBS.200023

                                            This is a weak password. Please enter a strong password.

                                            +

                                            Storage space is out of range.

                                            +

                                            The storage space is out of range.

                                            +

                                            Check whether the storage space exceeds the allowed range.

                                            DBS.280216

                                            +

                                            400

                                            400

                                            +

                                            DBS.200024

                                            Invalid backup start time.

                                            +

                                            Invalid region.

                                            +

                                            Invalid region.

                                            +

                                            Check whether the region is correct and whether the region is available.

                                            DBS.280227

                                            +

                                            400

                                            400

                                            +

                                            DBS.200025

                                            The new storage space must be greater than the current storage and must be a multiple of 10 GB.

                                            +

                                            Invalid AZ.

                                            +

                                            Invalid AZ.

                                            +

                                            Check whether the AZ name is correct and whether the AZ is available.

                                            DBS.280234

                                            +

                                            400

                                            400

                                            +

                                            DBS.200026

                                            Invalid DB instance name.

                                            +

                                            Invalid storage type.

                                            +

                                            Invalid storage type.

                                            +

                                            Check whether the storage type is correct.

                                            DBS.280235

                                            +

                                            400

                                            400

                                            +

                                            DBS.200027

                                            Invalid database type.

                                            +

                                            Storage space must be a multiple of 10.

                                            +

                                            Storage space must be a multiple of 10.

                                            +

                                            Check whether the storage space is a multiple of 10.

                                            DBS.280236

                                            +

                                            400

                                            400

                                            +

                                            DBS.200040

                                            Invalid database version.

                                            +

                                            The DB engine or version is not supported.

                                            +

                                            The DB engine or version is not supported.

                                            +

                                            Check whether the DB engine and version match and meet the requirements.

                                            DBS.280237

                                            +

                                            400

                                            400

                                            +

                                            DBS.200041

                                            DB engine information must be specified.

                                            +

                                            Invalid database version.

                                            +

                                            Invalid database version.

                                            +

                                            Check whether the database version is supported.

                                            DBS.280238

                                            +

                                            400

                                            400

                                            +

                                            DBS.200042

                                            The DB engine or version is not supported.

                                            +

                                            The DB engine does not exist.

                                            +

                                            The DB engine does not exist.

                                            +

                                            Check whether the DB engine is supported by GaussDB.

                                            DBS.280242

                                            +

                                            400

                                            400

                                            +

                                            DBS.200043

                                            Storage space is out of range.

                                            +

                                            Invalid synchronize model.

                                            +

                                            Invalid synchronize model.

                                            +

                                            Check whether the HA synchronization model meets the requirements.

                                            DBS.280243

                                            +

                                            400

                                            400

                                            +

                                            DBS.200048

                                            Invalid region.

                                            +

                                            Invalid VPC ID.

                                            +

                                            Invalid VPC ID.

                                            +

                                            Check whether the VPC ID and name are correct and meet the requirements.

                                            DBS.280247

                                            +

                                            400

                                            400

                                            +

                                            DBS.200049

                                            Invalid VPC ID.

                                            +

                                            Invalid subnet ID.

                                            +

                                            Invalid subnet ID.

                                            +

                                            Check whether the subnet ID and name are correct and meet the requirements.

                                            DBS.280248

                                            +

                                            400

                                            400

                                            +

                                            DBS.200051

                                            Invalid subnet ID.

                                            +

                                            Invalid HA mode.

                                            +

                                            Invalid HA mode.

                                            +

                                            Check whether the HA mode meets the requirements.

                                            DBS.280260

                                            +

                                            400

                                            400

                                            +

                                            DBS.200052

                                            Invalid AZ.

                                            +

                                            Invalid database root password.

                                            +

                                            Invalid database root password.

                                            +

                                            Check whether the username and password match and whether the password meets the requirements.

                                            DBS.280266

                                            +

                                            400

                                            400

                                            +

                                            DBS.200053

                                            Storage space must be a multiple of 10.

                                            +

                                            The selected specifications do not exist.

                                            +

                                            The selected specifications do not exist.

                                            +

                                            Check whether the specifications are correct and available in the current AZ.

                                            DBS.280288

                                            +

                                            400

                                            400

                                            +

                                            DBS.200054

                                            Invalid specification code.

                                            +

                                            Invalid specifications.

                                            +

                                            Invalid specifications.

                                            +

                                            Check whether the specifications are correct and available in the current AZ.

                                            DBS.280305

                                            +

                                            400

                                            400

                                            +

                                            DBS.200056

                                            Invalid security group.

                                            +

                                            The maximum number of nodes has been reached.

                                            +

                                            The maximum number of nodes has been reached.

                                            +

                                            Check whether the number of instance nodes reaches the upper limit.

                                            DBS.280311

                                            +

                                            400

                                            400

                                            +

                                            DBS.200063

                                            Storage space must be specified.

                                            +

                                            Invalid cluster mode.

                                            +

                                            Invalid cluster mode.

                                            +

                                            Check whether the cluster mode is valid.

                                            DBS.280342

                                            +

                                            400

                                            400

                                            +

                                            DBS.200086

                                            Invalid cluster mode.

                                            +

                                            This operation is not allowed by the DB instance status.

                                            +

                                            This operation is not allowed by the DB instance status.

                                            +

                                            Check whether the instance status or the ongoing operation on the instance conflicts with the request.

                                            DBS.280365

                                            +

                                            400

                                            400

                                            +

                                            DBS.200087

                                            Invalid billing mode.

                                            +

                                            The number of tags added for the DB instance has reached the quota.

                                            +

                                            The number of tags added for the DB instance has reached the quota.

                                            +

                                            Check whether the number of tags for the DB instance exceeds the upper limit.

                                            DBS.280431

                                            +

                                            400

                                            400

                                            +

                                            DBS.200098

                                            Invalid billing period.

                                            +

                                            The tag already exists.

                                            +

                                            The tag already exists.

                                            +

                                            Check whether the tag exists.

                                            DBS.280433

                                            +

                                            400

                                            400

                                            +

                                            DBS.200302

                                            Invalid enterprise project ID.

                                            +

                                            Storage space must be a multiple of 10.

                                            +

                                            Storage space must be a multiple of 10.

                                            +

                                            Check whether the storage space is a multiple of 10.

                                            DBS.280434

                                            +

                                            400

                                            400

                                            +

                                            DBS.200306

                                            Invalid specification code

                                            +

                                            The new storage space must be greater than or equal to the original storage space.

                                            +

                                            The new storage space must be at least the original storage space.

                                            +

                                            Check whether the storage space exceeds the upper limit.

                                            DBS.280447

                                            +

                                            400

                                            400

                                            +

                                            DBS.200461

                                            Invalid time zone.

                                            +

                                            The parameter value is out of range.

                                            +

                                            The parameter value is out of range.

                                            +

                                            Check whether the port is valid.

                                            DBS.280448

                                            +

                                            400

                                            400

                                            +

                                            DBS.200504

                                            The storage type is sold out.

                                            +

                                            Invalid database version.

                                            +

                                            Invalid database version.

                                            +

                                            Check whether the database version is valid.

                                            DBS.280450

                                            +

                                            400

                                            400

                                            +

                                            DBS.200543

                                            The DB instance specifications are sold out.

                                            +

                                            The job does not exist.

                                            +

                                            The task does not exist.

                                            +

                                            Check whether the task ID is valid.

                                            DBS.280462

                                            +

                                            400

                                            400

                                            +

                                            DBS.200823

                                            Invalid auto renewal parameter.

                                            +

                                            The database does not exist.

                                            +

                                            The database does not exist.

                                            +

                                            Check whether the input database does not exist.

                                            DBS.280463

                                            +

                                            400

                                            400

                                            +

                                            DBS.200824

                                            Invalid auto payment parameter.

                                            +

                                            The database account does not exist.

                                            +

                                            The database account does not exist.

                                            +

                                            Check whether the database account exists.

                                            DBS.280464

                                            +

                                            400

                                            400

                                            +

                                            DBS.201014

                                            Primary AZ cannot be defined in a single AZ.

                                            +

                                            This operation is not allowed by the DB instance status.

                                            +

                                            This operation is not allowed by the DB instance status.

                                            +

                                            Check whether the instance status or the ongoing operation on the instance conflicts with the request.

                                            DBS.280465

                                            +

                                            400

                                            400

                                            +

                                            DBS.201101

                                            Invalid password.

                                            +

                                            Invalid backup cycle.

                                            +

                                            Invalid backup cycle.

                                            +

                                            Check whether the backup cycle meets the requirements.

                                            DBS.280466

                                            +

                                            400

                                            400

                                            +

                                            DBS.201103

                                            Invalid read replica quantity.

                                            +

                                            Invalid backup start time.

                                            +

                                            Invalid backup start time.

                                            +

                                            Check whether the start time meets the requirement.

                                            DBS.280467

                                            +

                                            400

                                            400

                                            +

                                            DBS.201106

                                            Invalid read replica failover priority.

                                            +

                                            Invalid retention days.

                                            +

                                            Invalid retention days.

                                            +

                                            Check whether the backup retention period meets the requirements.

                                            DBS.280468

                                            +

                                            400

                                            400

                                            +

                                            DBS.201203

                                            Invalid DB instance type.

                                            +

                                            The backup file does not exist.

                                            +

                                            The backup file does not exist.

                                            +

                                            Check whether the backup exists and matches the instance.

                                            DBS.280470

                                            +

                                            400

                                            400

                                            +

                                            DBS.201207

                                            The primary node and read replicas must be located in different AZs.

                                            +

                                            The DB engine or version is not supported.

                                            +

                                            The DB engine or version is not supported.

                                            +

                                            Check whether the DB engine is supported by GaussDB.

                                            DBS.280471

                                            +

                                            400

                                            500

                                            +

                                            DBS.201208

                                            CBC error.

                                            +

                                            The operation is not allowed by the backup status.

                                            +

                                            The operation is not allowed by the backup status.

                                            +

                                            Check whether the status of the backup is Completed.

                                            +

                                            400

                                            +

                                            DBS.212002

                                            +

                                            Incorrect parameter group quota.

                                            +

                                            Incorrect parameter template quota.

                                            +

                                            The parameter template quota exceeds the upper limit. Delete unnecessary parameter templates and create a new one.

                                            +

                                            400

                                            +

                                            DBS.212003

                                            +

                                            Operation not allowed.

                                            +

                                            The operation is not allowed.

                                            +

                                            Default parameter templates cannot be reset or deleted.

                                            +

                                            400

                                            +

                                            DBS.212004

                                            +

                                            Parameter group update error.

                                            +

                                            The parameter template fails to be updated.

                                            +

                                            Check whether the parameter values to be changed are valid.

                                            +

                                            400

                                            +

                                            DBS.212005

                                            +

                                            The node does not belong to the group.

                                            +

                                            The node does not belong to the group.

                                            +

                                            Check whether the instance ID or node ID is correct.

                                            +

                                            400

                                            +

                                            DBS.212007

                                            +

                                            The DB engine does not exist.

                                            +

                                            The DB engine does not exist.

                                            +

                                            Check whether the DB engine exists.

                                            +

                                            400

                                            +

                                            DBS.212008

                                            +

                                            The DB engine is not supported.

                                            +

                                            The DB engine is not supported.

                                            +

                                            Check whether the DB engine is supported by GaussDB.

                                            +

                                            400

                                            +

                                            DBS.212009

                                            +

                                            Task processing failed.

                                            +

                                            The task fails to be processed.

                                            +

                                            Contact customer service.

                                            +

                                            400

                                            +

                                            DBS.212010

                                            +

                                            The parameter group is being applied.

                                            +

                                            The parameter template is being applied.

                                            +

                                            Perform the operation after the application is complete.

                                            +

                                            400

                                            +

                                            DBS.212011

                                            +

                                            Application failed.

                                            +

                                            Failed to apply the parameter template.

                                            +

                                            Contact customer service.

                                            +

                                            400

                                            +

                                            DBS.212012

                                            +

                                            The parameter does not exist.

                                            +

                                            The parameter does not exist.

                                            +

                                            Check whether the parameter to be modified is correct.

                                            +

                                            400

                                            +

                                            DBS.212014

                                            +

                                            The node does not have a default parameter group.

                                            +

                                            The node does not have a default parameter template.

                                            +

                                            Check whether the node ID or parameter template ID is correct.

                                            +

                                            400

                                            +

                                            DBS.212015

                                            +

                                            Partial success.

                                            +

                                            Partial success.

                                            +

                                            Check whether the parameters to be modified are correct.

                                            +

                                            400

                                            +

                                            DBS.212016

                                            +

                                            Parameter update failed.

                                            +

                                            Parameter update failed.

                                            +

                                            Contact customer service.

                                            +

                                            400

                                            +

                                            DBS.212017

                                            +

                                            Invalid parameter.

                                            +

                                            Parameter error.

                                            +

                                            Check whether the parameter name is valid.

                                            +

                                            400

                                            +

                                            DBS.212025

                                            +

                                            Update failed.

                                            +

                                            Update failed.

                                            +

                                            Contact customer service.

                                            +

                                            400

                                            +

                                            DBS.212030

                                            +

                                            Parameter error.

                                            +

                                            Parameter error.

                                            +

                                            The parameter template name already exists.

                                            +

                                            400

                                            +

                                            DBS.212032

                                            +

                                            The parameter template has been applied.

                                            +

                                            The parameter template has been applied.

                                            +

                                            The parameter template has been applied and cannot be deleted.

                                            +

                                            400

                                            +

                                            DBS.212037

                                            +

                                            Parameters are incorrectly set.

                                            +

                                            Parameters are incorrectly configured.

                                            +

                                            Check whether the parameter values are valid or within the valid range.

                                            +

                                            400

                                            +

                                            DBS.270024

                                            +

                                            Proxy instance does not exist.

                                            +

                                            Proxy instance does not exist.

                                            +

                                            Check whether the tenant has the proxy instance, whether the input proxy instance ID is correct, and whether the proxy instance exists.

                                            +

                                            400

                                            +

                                            DBS.270025

                                            +

                                            Invalid weight.

                                            +

                                            Invalid weight.

                                            +

                                            Check whether the weight format and range are correct.

                                            +

                                            400

                                            +

                                            DBS.270026

                                            +

                                            Invalid proxy mode.

                                            +

                                            The database proxy type is invalid.

                                            +

                                            Check whether the database proxy type is correct.

                                            +

                                            400

                                            +

                                            DBS.270027

                                            +

                                            Select a proxy instance.

                                            +

                                            No database proxy instance is specified.

                                            +

                                            Check whether the database proxy instance ID is null.

                                            +

                                            400

                                            +

                                            DBS.280001

                                            +

                                            Parameter error.

                                            +

                                            Parameter error.

                                            +

                                            Check whether the transferred parameters or URLs are correct and meet the requirements.

                                            +

                                            400

                                            +

                                            DBS.280127

                                            +

                                            Invalid backup description.

                                            +

                                            Invalid backup description.

                                            +

                                            Check whether the backup description is correct and meets the requirements.

                                            +

                                            400

                                            +

                                            DBS.280128

                                            +

                                            The database name does not exist.

                                            +

                                            The database name does not exist.

                                            +

                                            Check whether the tenant has the DB instance, whether the DB instance name or ID is correct, and whether the DB instance exists.

                                            +

                                            400

                                            +

                                            DBS.280203

                                            +

                                            This is a weak password. Please enter a strong password.

                                            +

                                            This is a weak password. Enter a strong password.

                                            +

                                            Password is too easy to guess. Change it to a strong password.

                                            +

                                            400

                                            +

                                            DBS.280204

                                            +

                                            Invalid parameter.

                                            +

                                            Invalid parameter.

                                            +

                                            Check whether the parameter values are valid or within the valid range.

                                            +

                                            400

                                            +

                                            DBS.280214

                                            +

                                            The backup does not exist.

                                            +

                                            The backup does not exist.

                                            +

                                            Check whether the backup retention period is correct.

                                            +

                                            400

                                            +

                                            DBS.280216

                                            +

                                            Invalid backup start time.

                                            +

                                            Invalid backup start time.

                                            +

                                            Check whether the backup start time meets the requirements and whether the requirements between the backup start time and end time are correct.

                                            +

                                            400

                                            +

                                            DBS.280235

                                            +

                                            Invalid database type.

                                            +

                                            Invalid database type.

                                            +

                                            Check whether the DB engine is correct.

                                            +

                                            400

                                            +

                                            DBS.280237

                                            +

                                            Datastore not specified.

                                            +

                                            Datastore is not specified.

                                            +

                                            Check whether the DB engine is supported by GaussDB.

                                            +

                                            400

                                            +

                                            DBS.280238

                                            +

                                            The DB engine or version is not supported.

                                            +

                                            The DB engine or version is not supported.

                                            +

                                            Check whether the DB engine and version match and meet the requirements.

                                            +

                                            400

                                            +

                                            DBS.280239

                                            +

                                            Invalid specifications.

                                            +

                                            Invalid specifications.

                                            +

                                            Check whether the specification code is correct, whether the specifications exist in the current AZ, and whether the specifications are supported.

                                            +

                                            400

                                            +

                                            DBS.280241

                                            +

                                            Invalid storage type.

                                            +

                                            Invalid storage type.

                                            +

                                            Check whether the storage type is correct and meets the requirements.

                                            +

                                            400

                                            +

                                            DBS.280242

                                            +

                                            Storage space is out of range.

                                            +

                                            The storage space is out of range.

                                            +

                                            Check whether the specified storage space is correct.

                                            +

                                            400

                                            +

                                            DBS.280246

                                            +

                                            Invalid database root password.

                                            +

                                            Invalid database root password.

                                            +

                                            Check whether the username and password match and whether the password meets the requirements.

                                            +

                                            400

                                            +

                                            DBS.280250

                                            +

                                            Invalid backup retention days.

                                            +

                                            Invalid backup retention days.

                                            +

                                            Check whether the backup data retention period is valid or within the valid range.

                                            +

                                            400

                                            +

                                            DBS.280251

                                            +

                                            Invalid backup cycle.

                                            +

                                            Invalid backup cycle.

                                            +

                                            Check whether the backup cycle is valid or within the valid range.

                                            +

                                            400

                                            +

                                            DBS.280253

                                            +

                                            Invalid backup start time.

                                            +

                                            Invalid backup start time.

                                            +

                                            Check whether the backup start time meets the requirements and whether the requirements between the backup start time and end time are correct.

                                            +

                                            400

                                            +

                                            DBS.280260

                                            +

                                            Invalid AZ mode.

                                            +

                                            Invalid AZ mode.

                                            +

                                            Check whether the AZ mode is valid.

                                            +

                                            400

                                            +

                                            DBS.280270

                                            +

                                            The parameter does not exist.

                                            +

                                            The parameter does not exist.

                                            +

                                            Check whether the parameters to be modified are correct.

                                            +

                                            400

                                            +

                                            DBS.280271

                                            +

                                            The parameter value is out of range.

                                            +

                                            The parameter value is out of range.

                                            +

                                            Check whether the parameter value is within the valid range.

                                            +

                                            400

                                            +

                                            DBS.280272

                                            +

                                            The tag key must be unique.

                                            +

                                            The tag key must be unique.

                                            +

                                            Check whether the new tag exists.

                                            +

                                            400

                                            +

                                            DBS.280277

                                            +

                                            Invalid object name.

                                            +

                                            Invalid backup name.

                                            +

                                            Check whether the backup name is correct and meets the requirements.

                                            +

                                            400

                                            +

                                            DBS.280285

                                            +

                                            Invalid AZ.

                                            +

                                            Invalid AZ.

                                            +

                                            Check whether the AZ name is correct and whether the AZ is available.

                                            +

                                            400

                                            +

                                            DBS.280288

                                            +

                                            Invalid FlavorRef.

                                            +

                                            Invalid flavor.

                                            +

                                            Check whether the flavor ID is null or a null string.

                                            +

                                            400

                                            +

                                            DBS.280311

                                            +

                                            Invalid storage space size.

                                            +

                                            Invalid storage space.

                                            +

                                            Check whether the specified storage space is correct and meets the requirements.

                                            +

                                            400

                                            +

                                            DBS.280325

                                            +

                                            Invalid storage information.

                                            +

                                            Invalid storage information.

                                            +

                                            Check whether the storage space or type is valid.

                                            +

                                            400

                                            +

                                            DBS.280342

                                            +

                                            Invalid cluster mode.

                                            +

                                            Invalid cluster mode.

                                            +

                                            Check whether the instance mode is correct and whether the instance mode matches the instance ID.

                                            +

                                            400

                                            +

                                            DBS.280364

                                            +

                                            Invalid database port.

                                            +

                                            Invalid database port.

                                            +

                                            Check whether the database port is available.

                                            +

                                            400

                                            +

                                            DBS.280402

                                            +

                                            Invalid HA mode.

                                            +

                                            Invalid HA mode.

                                            +

                                            Check whether the HA mode meets the requirements.

                                            +

                                            400

                                            +

                                            DBS.280404

                                            +

                                            Invalid DB instance ID or node ID format.

                                            +

                                            Invalid DB instance ID.

                                            +

                                            Check whether the instance ID is valid.

                                            +

                                            400

                                            +

                                            DBS.280434

                                            +

                                            Invalid specification code.

                                            +

                                            Invalid specification code.

                                            +

                                            Check whether the specification code complies with the rules, whether the specification exists, and whether the specification is available.

                                            +

                                            400

                                            +

                                            DBS.280439

                                            +

                                            Invalid records. Enter a positive integer less than 100.

                                            +

                                            Invalid value. Enter a positive integer of no more than 100.

                                            +

                                            Check whether the number of queried records is within the valid range.

                                            +

                                            400

                                            +

                                            DBS.280448

                                            +

                                            The storage type is sold out.

                                            +

                                            The storage type is sold out.

                                            +

                                            Check whether the current storage type is available.

                                            +

                                            400

                                            +

                                            DBS.280449

                                            +

                                            Operation not allowed on frozen objects.

                                            +

                                            Operation not allowed on frozen objects.

                                            +

                                            Check whether the instance is frozen and whether the current operation can be performed when the instance is frozen.

                                            +

                                            400

                                            +

                                            DBS.280450

                                            +

                                            The DB instance specifications are sold out.

                                            +

                                            The DB instance specifications are sold out.

                                            +

                                            Change the AZ or contact customer service.

                                            +

                                            400

                                            +

                                            DBS.290000

                                            +

                                            Parameter error.

                                            +

                                            Parameter error.

                                            +

                                            Check whether the transferred parameters or URLs are correct and meet the requirements.

                                            +

                                            400

                                            +

                                            DBS.290001

                                            +

                                            Invalid parameter letter case.

                                            +

                                            Invalid parameter letter case.

                                            +

                                            Check whether the parameter letter case is correct and meets the requirements.

                                            +

                                            403

                                            +

                                            DBS.200010

                                            +

                                            The DB instance ID or user ID may be null, or the operation is not authorized.

                                            +

                                            The DB instance ID or user ID may be null, or the operation is not authorized.

                                            +

                                            Check whether the input parameters are correct, whether the instance exists, and whether the tenant has unauthorized operations.

                                            +

                                            403

                                            +

                                            DBS.200044

                                            +

                                            Resource not found or permission denied.

                                            +

                                            Resource not found or permission denied.

                                            +

                                            Check whether the parameters are correctly configured, whether the access resources exist, and whether the tenant has the access permission.

                                            +

                                            403

                                            +

                                            DBS.200604

                                            +

                                            The DB instance ID or user ID may be null, or the operation is not authorized.

                                            +

                                            The DB instance ID or user ID may be null, or the operation is not authorized.

                                            +

                                            Check whether the input parameters are correct, whether the instance exists, and whether the tenant has unauthorized operations.

                                            +

                                            403

                                            +

                                            DBS.200810

                                            +

                                            You are not allowed to create databases on read replicas.

                                            +

                                            You are not allowed to create databases on read replicas.

                                            +

                                            Create databases on the primary node.

                                            +

                                            403

                                            +

                                            DBS.200819

                                            +

                                            You are not allowed to delete database users on read replicas.

                                            +

                                            You are not allowed to delete database users on read replicas.

                                            +

                                            Database users cannot be deleted from read replicas.

                                            +

                                            403

                                            +

                                            DBS.201003

                                            +

                                            Resource not found or permission denied.

                                            +

                                            Resource not found or permission denied.

                                            +

                                            Check whether the parameters are correctly configured, whether the access resources exist, and whether the tenant has the access permission.

                                            +

                                            403

                                            +

                                            DBS.280015

                                            +

                                            Resource not found or permission denied.

                                            +

                                            Resource not found or permission denied.

                                            +

                                            Check whether the parameters are correctly configured, whether the access resources exist, and whether the tenant has the access permission.

                                            +

                                            403

                                            +

                                            DBS.280056

                                            +

                                            Invalid token.

                                            +

                                            Invalid token.

                                            +

                                            Check whether the instance belongs to the tenant and whether the token has been obtained again.

                                            +

                                            404

                                            +

                                            DBS.200002

                                            +

                                            The DB instance does not exist.

                                            +

                                            The DB instance does not exist.

                                            +

                                            Check whether the instance and its ID are correct and whether the instance exists.

                                            +

                                            404

                                            +

                                            DBS.200008

                                            +

                                            The ECS information of the DB instance cannot be found.

                                            +

                                            The ECS information of the DB instance cannot be found.

                                            +

                                            Check whether the parameters are correctly configured and whether the instance status is normal.

                                            +

                                            404

                                            +

                                            DBS.200013

                                            +

                                            The original DB instance does not exist.

                                            +

                                            The original DB instance does not exist.

                                            +

                                            Check whether the instance and its ID are correct and whether the instance exists.

                                            +

                                            404

                                            +

                                            DBS.200045

                                            +

                                            The DB instance does not exist.

                                            +

                                            The DB instance does not exist.

                                            +

                                            Check whether the instance and its ID are correct and whether the instance exists.

                                            +

                                            404

                                            +

                                            DBS.200050

                                            +

                                            The security group does not exist or does not belong to the VPC.

                                            +

                                            The security group does not exist or does not belong to the VPC.

                                            +

                                            Check whether the security group ID is valid, whether the security group exists, and whether the private IP address for read of the node belongs to the security group.

                                            +

                                            404

                                            +

                                            DBS.200408

                                            +

                                            The DB instance does not exist.

                                            +

                                            The instance does not exist or has been deleted.

                                            +

                                            Check whether the instance and its ID are correct and whether the instance exists.

                                            +

                                            404

                                            +

                                            DBS.200470

                                            +

                                            The region or AZ does not exist.

                                            +

                                            The region or AZ does not exist.

                                            +

                                            Check whether the AZ is correct.

                                            +

                                            404

                                            +

                                            DBS.200501

                                            +

                                            The subnet does not exist or does not belong to the VPC.

                                            +

                                            The subnet does not exist or does not belong to the VPC.

                                            +

                                            Check whether the subnet ID and name exist and whether the subnet belongs to the VPC.

                                            +

                                            404

                                            +

                                            DBS.200503

                                            +

                                            The VPC does not exist or does not belong to the user.

                                            +

                                            The VPC does not exist or does not belong to the user.

                                            +

                                            Check whether the tenant has the VPC.

                                            +

                                            404

                                            +

                                            DBS.200602

                                            +

                                            The DB instance does not exist.

                                            +

                                            The DB instance does not exist.

                                            +

                                            Check whether the instance and its ID are correct and whether the instance exists.

                                            +

                                            404

                                            +

                                            DBS.201010

                                            +

                                            The backup information does not exist.

                                            +

                                            The backup information does not exist.

                                            +

                                            Check whether the backup exists and matches the instance.

                                            +

                                            404

                                            +

                                            DBS.201028

                                            +

                                            The DB instance does not exist.

                                            +

                                            The instance does not exist or has been deleted.

                                            +

                                            Check whether the instance and its ID are correct and whether the instance exists.

                                            +

                                            404

                                            +

                                            DBS.212001

                                            +

                                            The parameter group does not exist.

                                            +

                                            The parameter template does not exist.

                                            +

                                            Check whether the parameter template exists.

                                            +

                                            404

                                            +

                                            DBS.290002

                                            +

                                            The selected specifications do not exist.

                                            +

                                            The selected specifications do not exist.

                                            +

                                            Check whether the specifications are correct and available in the current AZ.

                                            +

                                            404

                                            +

                                            DBS.290005

                                            +

                                            The DB instance does not exist.

                                            +

                                            The DB instance does not exist.

                                            +

                                            Check whether the instance and its ID are correct and whether the instance exists.

                                            +

                                            404

                                            +

                                            DBS.290011

                                            +

                                            The DB instance does not exist.

                                            +

                                            The DB instance does not exist.

                                            +

                                            Check whether the instance and its ID are correct and whether the instance exists.

                                            +

                                            404

                                            +

                                            DBS.290013

                                            +

                                            Resource not found.

                                            +

                                            Resource not found.

                                            +

                                            Check whether the transferred parameters are correct and whether the DB instance exists.

                                            +

                                            409

                                            +

                                            DBS.200011

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Check whether the instance status or the ongoing operation on the instance conflicts with the request.

                                            +

                                            409

                                            +

                                            DBS.200019

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Check whether the instance status or the ongoing operation on the instance conflicts with the request.

                                            +

                                            409

                                            +

                                            DBS.200022

                                            +

                                            The DB instance name already exists.

                                            +

                                            The DB instance name already exists.

                                            +

                                            Check whether the instance name exists.

                                            +

                                            409

                                            +

                                            DBS.200047

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Check whether the instance status or the ongoing operation on the instance conflicts with the request.

                                            +

                                            409

                                            +

                                            DBS.200316

                                            +

                                            This operation cannot be performed because the DB instance status is Storage full.

                                            +

                                            This operation cannot be performed because the DB instance status is Storage full.

                                            +

                                            Adjust the storage space.

                                            +

                                            409

                                            +

                                            DBS.200826

                                            +

                                            The database name already exists.

                                            +

                                            The database name already exists.

                                            +

                                            Check whether the database name is valid.

                                            +

                                            409

                                            +

                                            DBS.200827

                                            +

                                            The database user already exists.

                                            +

                                            The database user already exists.

                                            +

                                            Check whether the database user is valid.

                                            +

                                            409

                                            +

                                            DBS.200828

                                            +

                                            You are not allowed to create a database built-in account.

                                            +

                                            You are not allowed to create a database built-in account.

                                            +

                                            Check whether the database user is valid.

                                            +

                                            409

                                            +

                                            DBS.201202

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Check whether the instance status or the ongoing operation on the instance conflicts with the request.

                                            +

                                            409

                                            +

                                            DBS.201205

                                            +

                                            Backup is in progress, please wait.

                                            +

                                            Backup is in progress.

                                            +

                                            Try again after the backup is complete.

                                            +

                                            409

                                            +

                                            DBS.212006

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Another operation is being performed on the DB instance or the DB instance is faulty.

                                            +

                                            Check whether the instance status or the ongoing operation on the instance conflicts with the request.

                                            +

                                            409

                                            +

                                            DBS.280406

                                            +

                                            Operation not allowed by the DB instance type or status.

                                            +

                                            Operation not allowed by the DB instance type or status.

                                            +

                                            Check whether the instance type and instance status meet requirements.

                                            +

                                            413

                                            +

                                            DBS.200046

                                            +

                                            The number of DB instances has reached the quota.

                                            +

                                            The number of DB instances has reached the quota.

                                            +

                                            Contact the database administrator to adjust the quota.

                                            +

                                            413

                                            +

                                            DBS.290003

                                            +

                                            The number of DB instances has reached the quota.

                                            +

                                            The number of DB instances has reached the quota.

                                            +

                                            Contact the database administrator to adjust the quota.

                                            +

                                            422

                                            +

                                            DBS.212019

                                            +

                                            The parameter cannot be processed.

                                            +

                                            The parameter cannot be processed.

                                            +

                                            Check whether the parameter is valid.

                                            +

                                            500

                                            +

                                            DBS.108000

                                            +

                                            Server failure.

                                            +

                                            Server failure.

                                            +

                                            Contact customer service.

                                            +

                                            500

                                            +

                                            DBS.108002

                                            +

                                            Server failure.

                                            +

                                            Server failure.

                                            +

                                            Contact customer service.

                                            +

                                            500

                                            +

                                            DBS.108005

                                            +

                                            Server failure.

                                            +

                                            Server failure.

                                            +

                                            Contact customer service.

                                            +

                                            500

                                            +

                                            DBS.200005

                                            +

                                            Server failure.

                                            +

                                            Server failure.

                                            +

                                            Contact customer service.

                                            +

                                            500

                                            +

                                            DBS.200208

                                            +

                                            Server failure.

                                            +

                                            Server failure.

                                            +

                                            Contact customer service.

                                            +

                                            500

                                            +

                                            DBS.200811

                                            +

                                            Failed to create the database.

                                            +

                                            Failed to create the database.

                                            +

                                            Check whether resources are insufficient and then contact customer service.

                                            +

                                            500

                                            +

                                            DBS.200821

                                            +

                                            Failed to modify database user permissions.

                                            +

                                            Failed to modify database user permissions.

                                            +

                                            This operation is not allowed in the current instance status. Try again later.

                                            +

                                            500

                                            +

                                            DBS.213002

                                            +

                                            Failed to process the request.

                                            +

                                            Failed to process the request.

                                            +

                                            Internal service error. Contact customer service.

                                            +

                                            500

                                            +

                                            DBS.213004

                                            +

                                            Failed to process the request.

                                            +

                                            Failed to process the request.

                                            +

                                            Internal service error. Contact customer service.

                                            +

                                            500

                                            +

                                            DBS.290006

                                            +

                                            Failed to process the request.

                                            +

                                            Failed to process the request.

                                            +

                                            Internal service error. Contact customer service.

                                            +

                                            500

                                            +

                                            DBS.290015

                                            +

                                            Failed to process the request.

                                            +

                                            Failed to process the request.

                                            +

                                            Internal service error. Contact customer service.

                                            Table 1 Monitoring metrics

                                            Metric

                                            +
                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -479,20 +729,20 @@

                                            Dimension

                                            -
                                            Table 1 Monitoring metrics

                                            Metric

                                            Name

                                            +

                                            Name

                                            Description

                                            +

                                            Description

                                            Value Range

                                            +

                                            Value Range

                                            Remarks

                                            +

                                            Remarks

                                            gaussdb_mysql001_cpu_util

                                            +

                                            gaussdb_mysql001_cpu_util

                                            CPU Usage

                                            +

                                            CPU Usage

                                            CPU usage of the monitored object

                                            +

                                            CPU usage of the monitored object

                                            0–100%

                                            +

                                            0–100%

                                            Monitored object: ECS

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql002_mem_util

                                            +

                                            gaussdb_mysql002_mem_util

                                            Memory Usage

                                            +

                                            Memory Usage

                                            Memory usage of the monitored object

                                            +

                                            Memory usage of the monitored object

                                            0–100%

                                            +

                                            0–100%

                                            Monitored object: ECS

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql004_bytes_in

                                            +

                                            gaussdb_mysql004_bytes_in

                                            Network Input Throughput

                                            +

                                            Network Input Throughput

                                            Incoming traffic in bytes per second

                                            +

                                            Incoming traffic in bytes per second

                                            ≥0 Bytes/s

                                            +

                                            ≥0 bytes/s

                                            Monitored object: ECS

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql005_bytes_out

                                            +

                                            gaussdb_mysql005_bytes_out

                                            Network Output Throughput

                                            +

                                            Network Output Throughput

                                            Outgoing traffic in bytes per second

                                            +

                                            Outgoing traffic in bytes per second

                                            ≥0 Bytes/s

                                            +

                                            ≥0 bytes/s

                                            Monitored object: ECS

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql006_conn_count

                                            +

                                            gaussdb_mysql006_conn_count

                                            Total Connections

                                            +

                                            Total Connections

                                            Total number of connections that attempt to connect to the MySQL server

                                            +

                                            Total number of connections that connect to the MySQL server

                                            ≥0 Counts

                                            +

                                            ≥0 counts

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql007_conn_active_count

                                            +

                                            gaussdb_mysql007_conn_active_count

                                            Current Active Connections

                                            +

                                            Current Active Connections

                                            Number of current active connections

                                            +

                                            Number of active connections

                                            ≥0 Counts

                                            +

                                            ≥0 counts

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql008_qps

                                            +

                                            gaussdb_mysql008_qps

                                            QPS

                                            +

                                            QPS

                                            Query times of SQL statements (including storage procedures) per second

                                            +

                                            Query times of SQL statements (including DDL, DML, SHOW, SET statements and storage procedures) per second

                                            ≥0 Executions/s

                                            +

                                            ≥0 times/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql009_tps

                                            +

                                            gaussdb_mysql009_tps

                                            TPS

                                            +

                                            TPS

                                            Execution times of submitted and rollback transactions per second

                                            +

                                            Execution times of submitted and rollback transactions per second

                                            ≥0 Transactions/s

                                            +

                                            ≥0 times/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql010_innodb_buf_usage

                                            +

                                            gaussdb_mysql010_innodb_buf_usage

                                            Buffer Pool Usage

                                            +

                                            Buffer Pool Usage

                                            Ratio of dirty data to all data in the InnoDB buffer

                                            +

                                            Ratio of used pages to total pages in the InnoDB buffer

                                            0–1

                                            +

                                            0-1

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql011_innodb_buf_hit

                                            +

                                            gaussdb_mysql011_innodb_buf_hit

                                            Buffer Pool Hit Ratio

                                            +

                                            Buffer Pool Hit Ratio

                                            Ratio of read hits to read requests in the InnoDB buffer

                                            +

                                            Ratio of read hits to read requests in the InnoDB buffer

                                            0–100%

                                            +

                                            0-1

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql012_innodb_buf_dirty

                                            +

                                            gaussdb_mysql012_innodb_buf_dirty

                                            Buffer Pool Dirty Block Ratio

                                            +

                                            Buffer Pool Dirty Block Ratio

                                            Ratio of used pages to total pages in the InnoDB buffer

                                            +

                                            Ratio of dirty data to all data in the InnoDB buffer

                                            0–1

                                            +

                                            0-1

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql013_innodb_reads

                                            +

                                            gaussdb_mysql013_innodb_reads

                                            InnoDB Read Throughput

                                            +

                                            InnoDB Read Throughput

                                            Number of read bytes per second in the InnoDB buffer

                                            +

                                            Number of read bytes per second in the InnoDB buffer

                                            ≥0 Bytes/s

                                            +

                                            ≥0 bytes/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql014_innodb_writes

                                            +

                                            gaussdb_mysql014_innodb_writes

                                            InnoDB Write Throughput

                                            +

                                            InnoDB Write Throughput

                                            Number of write bytes per second in the InnoDB buffer

                                            +

                                            Number of write bytes per second in the InnoDB buffer

                                            ≥0 Counts/s

                                            +

                                            ≥0 bytes/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql017_innodb_log_write_req_count

                                            +

                                            gaussdb_mysql017_innodb_log_write_req_count

                                            InnoDB Log Write Requests per Second

                                            +

                                            InnoDB Log Write Requests per Second

                                            Number of InnoDB log write requests per second

                                            +

                                            Number of InnoDB log write requests per second

                                            ≥0 Counts/s

                                            +

                                            ≥0 times/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql020_temp_tbl_count

                                            +

                                            gaussdb_mysql020_temp_tbl_count

                                            Temporary Tables

                                            +

                                            Temporary Tables

                                            Number of temporary tables automatically created on hard disks when MySQL statements are executed

                                            +

                                            Number of temporary tables automatically created on hard disks when MySQL statements are executed

                                            ≥0 Counts

                                            +

                                            ≥ 0 counts

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql028_comdml_del_count

                                            +

                                            gaussdb_mysql028_comdml_del_count

                                            DELETE Statements per Second

                                            +

                                            DELETE Statements per Second

                                            Number of DELETE statements executed per second

                                            +

                                            Number of DELETE statements executed per second

                                            ≥0 Executions/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql029_comdml_ins_count

                                            +

                                            gaussdb_mysql029_comdml_ins_count

                                            INSERT Statements per Second

                                            +

                                            INSERT Statements per Second

                                            Number of INSERT statements executed per second

                                            +

                                            Number of INSERT statements executed per second

                                            ≥0 Executions/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql030_comdml_ins_sel_count

                                            +

                                            gaussdb_mysql030_comdml_ins_sel_count

                                            INSERT_SELECT Statements per Second

                                            +

                                            INSERT_SELECT Statements per Second

                                            Number of INSERT_SELECT statements executed per second

                                            +

                                            Number of INSERT_SELECT statements executed per second

                                            ≥0 Executions/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql031_comdml_rep_count

                                            +

                                            gaussdb_mysql031_comdml_rep_count

                                            REPLACE Statements per Second

                                            +

                                            REPLACE Statements per Second

                                            Number of REPLACE statements executed per second

                                            +

                                            Number of REPLACE statements executed per second

                                            ≥0 Executions/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql032_comdml_rep_sel_count

                                            +

                                            gaussdb_mysql032_comdml_rep_sel_count

                                            REPLACE_SELECTION Statements per Second

                                            +

                                            REPLACE_SELECTION Statements per Second

                                            Number of REPLACE_SELECTION statements executed per second

                                            +

                                            Number of REPLACE_SELECTION statements executed per second

                                            ≥0 Executions/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql033_comdml_sel_count

                                            +

                                            gaussdb_mysql033_comdml_sel_count

                                            SELECT Statements per Second

                                            +

                                            SELECT Statements per Second

                                            Number of SELECT statements executed per second

                                            +

                                            Number of SELECT statements executed per second

                                            ≥0 Executions/s

                                            +

                                            ≥0 Counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql034_comdml_upd_count

                                            +

                                            gaussdb_mysql034_comdml_upd_count

                                            UPDATE Statements per Second

                                            +

                                            UPDATE Statements per Second

                                            Number of UPDATE statements executed per second

                                            +

                                            Number of UPDATE statements executed per second

                                            ≥0 Executions/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql035_innodb_del_row_count

                                            +

                                            gaussdb_mysql035_innodb_del_row_count

                                            Row Delete Frequency

                                            +

                                            Row Delete Frequency

                                            Number of rows deleted from the InnoDB table per second

                                            +

                                            Number of rows deleted from the InnoDB table per second

                                            ≥0 Rows/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql036_innodb_ins_row_count

                                            +

                                            gaussdb_mysql036_innodb_ins_row_count

                                            Row Insert Frequency

                                            +

                                            Row Insert Frequency

                                            Number of rows inserted into the InnoDB table per second

                                            +

                                            Number of rows inserted into the InnoDB table per second

                                            ≥0 Rows/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql037_innodb_read_row_count

                                            +

                                            gaussdb_mysql037_innodb_read_row_count

                                            Row Read Frequency

                                            +

                                            Row Read Frequency

                                            Number of rows read from the InnoDB table per second

                                            +

                                            Number of rows read from the InnoDB table per second

                                            ≥0 Rows/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql038_innodb_upd_row_count

                                            +

                                            gaussdb_mysql038_innodb_upd_row_count

                                            Row Update Frequency

                                            +

                                            Row Update Frequency

                                            Number of rows updated into the InnoDB table per second

                                            +

                                            Number of rows updated into the InnoDB table per second

                                            ≥0 Rows/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql048_disk_used_size

                                            +

                                            gaussdb_mysql048_disk_used_size

                                            Used Storage Space

                                            +

                                            Used Storage Space

                                            Used storage space of the monitored object

                                            +

                                            Used storage space of the monitored object

                                            0–4000 GB

                                            +

                                            0 GB-128 TB

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql072_conn_usage

                                            +

                                            gaussdb_mysql072_conn_usage

                                            Connection Usage

                                            +

                                            Connection Usage

                                            Percent of used MySQL connections to the total number of connections

                                            +

                                            Percent of used MySQL connections to the total number of connections

                                            0~100%

                                            +

                                            0-100%

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql074_slow_queries

                                            +

                                            gaussdb_mysql074_slow_queries

                                            Slow Query Logs

                                            +

                                            Slow Query Logs

                                            Number of MySQL slow query logs generated per minute

                                            +

                                            Number of MySQL slow query logs generated per minute

                                            ≥0 Counts/Minute

                                            +

                                            ≥ 0 counts/min

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql077_replication_delay

                                            +

                                            gaussdb_mysql077_replication_delay

                                            Replication Delay

                                            +

                                            Replication Delay

                                            Data replication delay between the primary node and read replicas

                                            +

                                            Data replication delay between the primary node and read replicas

                                            ≥0 s

                                            +

                                            ≥0 ms

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql104_dfv_write_delay

                                            +

                                            gaussdb_mysql104_dfv_write_delay

                                            Storage Write Latency

                                            +

                                            Storage Write Latency

                                            Average latency of writing data to the storage layer in a specified period

                                            +

                                            Average latency of writing data to the storage layer in a specified period

                                            ≥0 ms

                                            +

                                            ≥0 ms

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql105_dfv_read_delay

                                            +

                                            gaussdb_mysql105_dfv_read_delay

                                            Storage Read Latency

                                            +

                                            Storage Read Latency

                                            Average latency of reading data from the storage layer in a specified period

                                            +

                                            Average latency of reading data from the storage layer in a specified period

                                            ≥0 ms

                                            +

                                            ≥0 ms

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql106_innodb_row_lock_current_waits

                                            +

                                            gaussdb_mysql106_innodb_row_lock_current_waits

                                            InnoDB Row Locks

                                            +

                                            InnoDB Row Locks

                                            Number of row locks being waited by operations on the InnoDB table

                                            +

                                            Number of row locks being waited by operations on the InnoDB table

                                            ≥0 Counts

                                            +

                                            ≥ 0 counts

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql107_comdml_ins_and_ins_sel_count

                                            +

                                            gaussdb_mysql107_comdml_ins_and_ins_sel_count

                                            INSERT and INSERT_SELECT Statements per Second

                                            +

                                            INSERT and INSERT_SELECT Statements per Second

                                            Number of INSERT and INSERT_SELECT statements executed per second

                                            +

                                            Number of INSERT and INSERT_SELECT statements executed per second

                                            ≥0 Counts/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: ECS

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql108_com_commit_count

                                            +

                                            gaussdb_mysql108_com_commit_count

                                            COMMIT Statements per Second

                                            +

                                            COMMIT Statements per Second

                                            Number of COMMIT statements executed per second

                                            +

                                            Number of COMMIT statements executed per second

                                            ≥0 Counts/s

                                            +

                                            ≥0 Counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql109_com_rollback_count

                                            +

                                            gaussdb_mysql109_com_rollback_count

                                            ROLLBACK Statements per Second

                                            +

                                            ROLLBACK Statements per Second

                                            Number of ROLLBACK statements executed per second

                                            +

                                            Number of ROLLBACK statements executed per second

                                            ≥0 Counts/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql110_innodb_bufpool_reads

                                            +

                                            gaussdb_mysql110_innodb_bufpool_reads

                                            InnoDB Storage Layer Read Requests per Second

                                            +

                                            InnoDB Storage Layer Read Requests per Second

                                            Number of times that InnoDB reads data from the storage layer per second

                                            +

                                            Number of times that InnoDB reads data from the storage layer per second

                                            ≥0 Counts/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            gaussdb_mysql111_innodb_bufpool_read_requests

                                            +

                                            gaussdb_mysql111_innodb_bufpool_read_requests

                                            InnoDB Read Requests per Second

                                            +

                                            InnoDB Read Requests per Second

                                            Number of InnoDB read requests per second

                                            +

                                            Number of InnoDB read requests per second

                                            ≥0 Counts/s

                                            +

                                            ≥ 0 counts/s

                                            Monitored object: database

                                            -

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql114_innodb_bufpool_read_ahead

                                            +

                                            InnoDB Bufpool Read Ahead

                                            +

                                            Number of pages read into the InnoDB buffer pool by the read-ahead background thread

                                            +

                                            ≥0 counts

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql115_innodb_bufpool_read_ahead_evicted

                                            +

                                            InnoDB Bufpool Read Ahead Evicted

                                            +

                                            Number of pages read into the InnoDB buffer pool by the read-ahead background thread that were subsequently evicted without having been accessed by queries

                                            +

                                            ≥0 counts

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql116_innodb_bufpool_read_ahead_rnd

                                            +

                                            InnoDB Bufpool Read Ahead Rnd

                                            +

                                            Number of random read-aheads initiated by InnoDB

                                            +

                                            ≥0 counts

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql117_innodb_pages_read

                                            +

                                            InnoDB Pages Read

                                            +

                                            Number of pages read from the InnoDB buffer pool by operations on InnoDB tables

                                            +

                                            ≥0 counts

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql118_innodb_pages_written

                                            +

                                            InnoDB Pages Written

                                            +

                                            Number of pages written by operations on InnoDB tables

                                            +

                                            ≥0 counts

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql019_innodb_log_writess

                                            +

                                            InnoDB Log Writes

                                            +

                                            Number of physical writes to the InnoDB redo log file

                                            +

                                            ≥0 counts

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql342_iostat_iops_write

                                            +

                                            I/O Write IOPS

                                            +

                                            Number of disk writes per second

                                            +

                                            ≥0 counts/s

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql344_iostat_iops_read

                                            +

                                            I/O Read IOPS

                                            +

                                            Number of disk reads per second

                                            +

                                            ≥0 counts/s

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql346_iostat_throughput_write

                                            +

                                            I/O Write Bandwidth

                                            +

                                            Disk write bandwidth per second

                                            +

                                            ≥0 bytes/s

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql348_iostat_throughput_read

                                            +

                                            I/O Read Bandwidth

                                            +

                                            Disk read bandwidth per second

                                            +

                                            ≥0 bytes/s

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            gaussdb_mysql119_disk_used_ratio

                                            +

                                            Disk Usage

                                            +

                                            Disk usage of the monitored object

                                            +

                                            0-100%

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            1 minute

                                            +

                                            gaussdb_mysql120_innodb_buffer_pool_bytes_data

                                            +

                                            Total Bytes of Buffer Pool

                                            +

                                            Total number of bytes in the InnoDB buffer pool containing data

                                            +

                                            ≥0 bytes

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            1 minute

                                            +

                                            gaussdb_mysql121_innodb_row_lock_time

                                            +

                                            Row Lock Time

                                            +

                                            Total time spent in acquiring row locks for InnoDB tables

                                            +

                                            ≥0 ms

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            1 minute

                                            +

                                            gaussdb_mysql122_innodb_row_lock_waits

                                            +

                                            Row Lock Waits

                                            +

                                            Number of times operations on InnoDB tables had to wait for a row lock

                                            +

                                            ≥ 0 counts/min

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            1 minute

                                            +

                                            gaussdb_mysql123_sort_range

                                            +

                                            Sorts Using Ranges

                                            +

                                            Number of sorts that were done using ranges

                                            +

                                            ≥ 0 counts/min

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            1 minute

                                            +

                                            gaussdb_mysql124_sort_rows

                                            +

                                            Sorted Rows

                                            +

                                            Number of sorted rows

                                            +

                                            ≥ 0 counts/min

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            1 minute

                                            +

                                            gaussdb_mysql125_sort_scan

                                            +

                                            Sorts by Scanning Tables

                                            +

                                            Number of sorts that were done by scanning tables.

                                            +

                                            ≥0 Counts/min

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            1 minute

                                            +

                                            gaussdb_mysql126_table_open_cache_hits

                                            +

                                            Hits for Open Tables Cache Lookups

                                            +

                                            Number of hits for open tables cache lookups

                                            +

                                            ≥ 0 counts/min

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            1 minute

                                            +

                                            gaussdb_mysql127_table_open_cache_misses

                                            +

                                            Misses for Open Tables Cache Lookups

                                            +

                                            Number of misses for open tables cache lookups

                                            +

                                            ≥ 0 counts/min

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            1 minute

                                            +

                                            gaussdb_mysql128_long_trx_count

                                            +

                                            Long-Running Transactions

                                            +

                                            Number of long transactions that are not closed

                                            +

                                            ≥0 counts

                                            +

                                            Monitored object: database

                                            +

                                            Monitored instance type: GaussDB(for MySQL) instance

                                            +

                                            150 s

                                            Key

                                            +
                                            - - - - - diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0000.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0000.html new file mode 100644 index 000000000..d503727bc --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0000.html @@ -0,0 +1,23 @@ + + +

                                            APIs (Unavailable Soon)

                                            +
                                            + + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0001.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0001.html new file mode 100644 index 000000000..a93261e8f --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0001.html @@ -0,0 +1,202 @@ + + +

                                            Querying Version Information About a DB Engine

                                            +

                                            Function

                                            This API is used to query the version information of a specified DB engine. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              GET https://{endpoint}/mysql/v3/{project_id}/datastores/{database_name}

                                              +
                                            • Example

                                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/619d3e78f61b4be68bc5aa0b59edcf7b/datastores/gaussdb-mysql

                                              +
                                            • Parameter description +

                                            Key

                                            Value

                                            +

                                            Value

                                            gaussdb_mysql_instance_id

                                            +

                                            gaussdb_mysql_instance_id

                                            GaussDB (for MySQL) instance ID.

                                            +

                                            GaussDB(for MySQL) instance ID.

                                            gaussdb_mysql_node_id

                                            +

                                            gaussdb_mysql_node_id

                                            Node ID of the GaussDB (for MySQL) instance.

                                            +

                                            Node ID of the GaussDB(for MySQL) instance.

                                            + + + + + + + + + + + + + +
                                            Table 1 Parameter description

                                            Name

                                            +

                                            Mandatory

                                            +

                                            Description

                                            +

                                            project_id

                                            +

                                            Yes

                                            +

                                            Project ID of a tenant in a region.

                                            +

                                            To obtain this value, see Obtaining a Project ID.

                                            +

                                            database_name

                                            +

                                            Yes

                                            +

                                            DB engine. The following DB engine is supported (case-insensitive): gaussdb-mysql

                                            +
                                            +
                                            + + +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 3 Response body parameter

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            datastores

                                            +

                                            Array of MysqlEngineVersionInfo objects

                                            +

                                            DB versions.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 4 MysqlEngineVersionInfo

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            DB version ID. Its value is unique.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            DB version number. Only the major version number with two digits is returned.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/619d3e78f61b4be68bc5aa0b59edcf7b/datastores/gaussdb-mysql
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "datastores" : [ {
                                            +    "id" : "87620726-6802-46c0-9028-a8785e1f1921",
                                            +    "name" : "8.0"
                                            +  } ]
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            + +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0002.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0002.html new file mode 100644 index 000000000..9160596e4 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0002.html @@ -0,0 +1,291 @@ + + +

                                            Querying Database Specifications

                                            +

                                            Function

                                            This API is used to query the database specifications of a specified DB engine version. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              GET https://{endpoint}/mysql/v3/{project_id}/flavors/{database_name}?version_name={version_name}&spec_code={spec_code}&availability_zone_mode={availability_zone_mode}

                                              +
                                            • Example

                                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/flavors/gaussdb-mysql

                                              +
                                            +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Type

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              String

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              database_name

                                              +

                                              Yes

                                              +

                                              String

                                              +

                                              DB engine. Its value is case-insensitive and can be:

                                              +

                                              gaussdb-mysql

                                              +

                                              version_name

                                              +

                                              No

                                              +

                                              String

                                              +

                                              DB version number. To obtain this value, see Querying Version Information About a DB Engine.

                                              +

                                              Currently, only MySQL 8.0 is supported.

                                              +

                                              availability_zone_mode

                                              +

                                              Yes

                                              +

                                              String

                                              +

                                              AZ mode. Its value can be single or multi and is case-insensitive.

                                              +

                                              spec_code

                                              +

                                              No

                                              +

                                              String

                                              +

                                              Specification code.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 202

                                            + +
                                            + + + + + + + + + +
                                            Table 3 Response body parameter

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            flavors

                                            +

                                            Array of MysqlFlavorsInfo objects

                                            +

                                            Instance specifications.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 MysqlFlavorsInfo

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            vcpus

                                            +

                                            String

                                            +

                                            Number of vCPUs. For example, the value 1 indicates 1 vCPU.

                                            +

                                            ram

                                            +

                                            String

                                            +

                                            Memory size in GB.

                                            +

                                            type

                                            +

                                            String

                                            +

                                            Specification type. The value can be arm.

                                            +

                                            id

                                            +

                                            String

                                            +

                                            Specification ID. The value must be unique.

                                            +

                                            spec_code

                                            +

                                            String

                                            +

                                            Resource specification code. Its value is same as the value of flavor_ref.

                                            +

                                            For example, gaussdb.mysql.4xlarge.arm.8

                                            +

                                            version_name

                                            +

                                            String

                                            +

                                            DB version number.

                                            +

                                            instance_mode

                                            +

                                            String

                                            +

                                            DB instance type. Its value is Cluster.

                                            +

                                            az_status

                                            +

                                            Map<String,String>

                                            +

                                            Status of the AZ where the specification belongs. Its value can be any of the following:

                                            +
                                            • normal: on sale
                                            • unsupported: not supported
                                            • sellout: sold out
                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/flavors/gaussdb-mysql
                                            +

                                            +
                                            +

                                            Example Response

                                            Status code: 202

                                            +

                                            Success.

                                            +
                                            {
                                            +  "flavors" : [ {
                                            +    "vcpus" : "16",
                                            +    "ram" : "128",
                                            +    "type" : "arm",
                                            +    "id" : "3169caaf-6c2f-41d5-aadd-c8fc3d83597e",
                                            +    "spec_code" : "gaussdb.mysql.4xlarge.arm.8",
                                            +    "instance_mode" : "Cluster",
                                            +    "version_name" : "8.0",
                                            +    "az_status" : {
                                            +      "az1" : "normal"
                                            +    }
                                            +  } ]
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0003.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0003.html new file mode 100644 index 000000000..aee9a70e0 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0003.html @@ -0,0 +1,31 @@ + + +

                                            Instance Management

                                            +
                                            + + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0004.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0004.html new file mode 100644 index 000000000..74bd6d878 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0004.html @@ -0,0 +1,820 @@ + + +

                                            Creating a DB Instance

                                            +

                                            Function

                                            This API is used to create a GaussDB(for MySQL) instance. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              POST https://{endpoint}/mysql/v3/{project_id}/instances

                                              +
                                            • Example

                                              POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances

                                              +
                                            • Parameter description +
                                              + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            charge_info

                                            +

                                            No

                                            +

                                            MysqlChargeInfo object

                                            +

                                            Billing mode, which is pay-per-use (default setting).

                                            +

                                            region

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Region ID.

                                            +

                                            The value cannot be empty. To obtain this value, see Regions and Endpoints.

                                            +

                                            name

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance name.

                                            +

                                            Instances of the same type can have same names under the same tenant.

                                            +

                                            The value consists of 4 to 64 characters and starts with a letter. It is case-sensitive and contains only letters, digits, hyphens (-), and underscores (_).

                                            +

                                            datastore

                                            +

                                            Yes

                                            +

                                            MysqlDatastore object

                                            +

                                            Database information.

                                            +

                                            mode

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance type, which is case-insensitive. Currently, only the cluster type is supported.

                                            +

                                            flavor_ref

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Specification code. For details, see Querying Database Specifications.

                                            +

                                            vpc_id

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            VPC ID. To obtain this value, use either of the following methods:

                                            +
                                            • Method 1: Log in to the VPC console and view the VPC ID on the VPC details page.
                                            • Method 2: See "Querying VPCs" in the Virtual Private Cloud API Reference.
                                            +

                                            subnet_id

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Network ID. To obtain this value, use either of the following methods:

                                            +
                                            • Method 1: Log in to the VPC console and click the target subnet on the Subnets page. You can view the network ID on the displayed page.
                                            • Method 2: See "Querying Subnets" in the Virtual Private Cloud API Reference.
                                            +

                                            security_group_id

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Security group ID.

                                            +

                                            If the network ACL is enabled for the subnet used by the created instance, this parameter is optional. If the network ACL is not enabled, this parameter is mandatory.

                                            +
                                            • Method 1: Log in to VPC console. Choose Access Control > Security Groups in the navigation pane on the left. On the displayed page, click the target security group. You can view the security group ID on the displayed page.
                                            • Method 2: See "Querying Security Groups" in the Virtual Private Cloud API Reference.
                                            +

                                            configuration_id

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Parameter template ID.

                                            +

                                            password

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Database password.

                                            +

                                            Valid value:

                                            +

                                            The password consists of 8 to 32 characters and contains at least three types of the following: uppercase letters, lowercase letters, digits, and special characters (~!@#%^*-_=+?).

                                            +

                                            You are advised to enter a strong password to improve security and prevent security risks such as brute force cracking. If you enter a weak password, the system automatically determines that the password is invalid.

                                            +

                                            backup_strategy

                                            +

                                            No

                                            +

                                            MysqlBackupStrategy object

                                            +

                                            Automated backup policy.

                                            +

                                            time_zone

                                            +

                                            No

                                            +

                                            String

                                            +

                                            UTC time zone.

                                            +
                                            • If this parameter is not specified, UTC is used by default.
                                            • If this parameter is specified, the value ranges from UTC-12:00 to UTC+12:00 at the full hour. For example, the parameter can be UTC+08:00 rather than UTC+08:30.
                                            +

                                            availability_zone_mode

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            AZ type. The value can be Single or multi.

                                            +

                                            master_availability_zone

                                            +

                                            If availability_zone_mode is set to multi, this parameter is mandatory.

                                            +

                                            If availability_zone_mode is set to single, this parameter cannot be specified.

                                            +

                                            String

                                            +

                                            Primary AZ.

                                            +

                                            slave_count

                                            +

                                            Yes

                                            +

                                            Integer

                                            +

                                            Number of created read replicas. Value: 1 to 9. An instance contains up to 15 read replicas.

                                            +

                                            tags

                                            +

                                            No

                                            +

                                            Array of MysqlTags objects

                                            +

                                            Tag list. Instances are created based on tag keys and values.

                                            +
                                            • {key} indicates the tag key. It must be unique and cannot be empty.
                                            • {value} indicates the tag value, which can be empty.
                                            +

                                            To create instances with multiple tag keys and values, separate key-value pairs with commas (,). Up to 10 key-value pairs can be added.

                                            +

                                            enterprise_project_id

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Enterprise project ID. This parameter is mandatory when the enterprise project is enabled.

                                            +

                                            dedicated_resource_id

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Dedicated resource pool ID. This parameter is displayed only when the dedicated resource pool is enabled.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 MysqlChargeInfo

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            charge_mode

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Billing mode.

                                            +

                                            Value: postPaid

                                            +

                                            period_type

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Subscription period.

                                            +

                                            Valid value:

                                            +
                                            • month: The service is subscribed by month.
                                            • year: The service is subscribed by year.
                                              NOTE:

                                              This parameter is valid and mandatory if charge_mode is set to prePaid.

                                              +
                                              +
                                            +

                                            period_num

                                            +

                                            No

                                            +

                                            Integer

                                            +

                                            Subscription duration. This parameter is valid and mandatory if charge_mode is set to prePaid.

                                            +

                                            Valid value:

                                            +
                                            • When period_type is set to month, the parameter value ranges from 1 to 9.
                                            • When period_type is set to year, the parameter value ranges from 1 to 3.
                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + +
                                            Table 5 MysqlDatastore

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB engine. Currently, only gaussdb-mysql is supported.

                                            +

                                            version

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB version.

                                            +

                                            For details about supported DB versions, see Querying Version Information About a DB Engine.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + +
                                            Table 6 MysqlBackupStrategy

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            start_time

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Automated backup start time. The automated backup will be triggered within one hour after the time specified by this parameter.

                                            +

                                            The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

                                            +
                                            • The HH value must be 1 greater than the hh value.
                                            • The values of mm and MM must be the same and must be set to 00.
                                            +

                                            Example value:

                                            +

                                            21:00-22:00

                                            +

                                            keep_days

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Automated backup retention days. Value: 1-732.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 7 MysqlVolume

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            size

                                            +

                                            Yes

                                            +

                                            Integer

                                            +

                                            Disk size. The default value is 40 GB.

                                            +

                                            Value: 40 to 128000. The value must be a multiple of 10.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + +
                                            Table 8 MysqlTags

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            key

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Tag key. It contains a maximum of 36 Unicode characters. The value cannot be an empty string, a space, or left blank. Only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_) are allowed.

                                            +

                                            value

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Tag value. It contains a maximum of 43 Unicode characters. It can be an empty string. Only uppercase letters, lowercase letters, digits, periods (.), hyphens (-), and underscores (_) are allowed.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 201

                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 9 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            instance

                                            +

                                            MysqlInstanceResponse object

                                            +

                                            Instance information.

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            DB instance creation task ID.

                                            +

                                            This parameter is returned only when pay-per-use DB instances are created.

                                            +

                                            order_id

                                            +

                                            String

                                            +

                                            Order ID. This parameter is returned only when yearly/monthly instances are created.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 10 MysqlInstanceResponse

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            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.

                                            +

                                            datastore

                                            +

                                            MysqlDatastore object

                                            +

                                            Database information.

                                            +

                                            mode

                                            +

                                            String

                                            +

                                            DB instance type. Currently, only the cluster type is supported.

                                            +

                                            configuration_id

                                            +

                                            String

                                            +

                                            Parameter template ID.

                                            +

                                            port

                                            +

                                            String

                                            +

                                            Database port, which is the same as the request parameter.

                                            +

                                            backup_strategy

                                            +

                                            MysqlBackupStrategy object

                                            +

                                            Automated backup policy.

                                            +

                                            enterprise_project_id

                                            +

                                            String

                                            +

                                            Enterprise project ID.

                                            +

                                            region

                                            +

                                            String

                                            +

                                            Region ID, which is the same as the request parameter.

                                            +

                                            availability_zone_mode

                                            +

                                            String

                                            +

                                            AZ mode, which is the same as the request parameter.

                                            +

                                            master_availability_zone

                                            +

                                            String

                                            +

                                            Primary AZ ID.

                                            +

                                            vpc_id

                                            +

                                            String

                                            +

                                            VPC ID, which is the same as the request parameter.

                                            +

                                            security_group_id

                                            +

                                            String

                                            +

                                            Security group ID, which is the same as the request parameter.

                                            +

                                            subnet_id

                                            +

                                            String

                                            +

                                            Subnet ID, which is the same as the request parameter.

                                            +

                                            flavor_ref

                                            +

                                            String

                                            +

                                            Specification code, which is the same as the request parameter.

                                            +

                                            charge_info

                                            +

                                            MysqlChargeInfo object

                                            +

                                            Billing mode, which is yearly/monthly or pay-per-use (default setting).

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 11 MysqlDatastore

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            type

                                            +

                                            String

                                            +

                                            DB engine.

                                            +

                                            version

                                            +

                                            String

                                            +

                                            DB version.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 12 MysqlBackupStrategy

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            start_time

                                            +

                                            String

                                            +

                                            Automated backup start time. The automated backup will be triggered within one hour after the time specified by this parameter.

                                            +

                                            keep_days

                                            +

                                            String

                                            +

                                            Backup retention days.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 13 MysqlChargeInfo

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            charge_mode

                                            +

                                            String

                                            +

                                            Billing mode.

                                            +

                                            period_type

                                            +

                                            String

                                            +

                                            Subscription period.

                                            +

                                            Valid value:

                                            +
                                            • month: The service is subscribed by month.
                                            • year: The service is subscribed by year.
                                            +

                                            This parameter is valid and mandatory only when charge_mode is set to prePaid.

                                            +

                                            period_num

                                            +

                                            Integer

                                            +

                                            Subscription duration, which is calculated by month.

                                            +

                                            This parameter is valid when charge_mode is set to prePaid (this parameter is valid only for yearly/monthly instances).

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 14 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 15 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            The value of region in the following is used as an example.

                                            +
                                            +

                                            Creating a DB instance

                                            +
                                            +POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances
                                            +
                                            +{
                                            +  "name" : "gaussdb-mysql-instance1",
                                            +  "region" : "xxxx",
                                            +  "charge_info" : {
                                            +    "charge_mode" : "postPaid"
                                            +  },
                                            +  "datastore" : {
                                            +    "type" : "gaussdb-mysql",
                                            +    "version" : "8.0"
                                            +  },
                                            +  "mode" : "Cluster",
                                            +  "flavor_ref" : "gaussdb.mysql.xlarge.arm.8",
                                            +  "vpc_id" : "3cedfc54-b105-4652-a4e0-847b11576b58",
                                            +  "subnet_id" : "c1cfa53c-65d3-431e-8552-326bf310c7ad",
                                            +  "security_group_id" : "fc577a1a-f202-424a-977f-24faec3fdd55",
                                            +  "configuration_id" : "43570e0de32e40c5a15f831aa5ce4176pr07",
                                            +  "password" : "xxxxx",
                                            +  "backup_strategy" : {
                                            +    "start_time" : "08:00-09:00"
                                            +  },
                                            +  "availability_zone_mode" : "single",
                                            +  "slave_count" : 1,
                                            +  "enterprise_project_id" : 0
                                            +}
                                            +
                                            +

                                            Example Response

                                            The values of region and master_availability_zone are used as examples.

                                            +
                                            +

                                            Status code: 201

                                            +

                                            Success.

                                            +
                                            {
                                            +  "instance" : {
                                            +    "id" : "5eebbb4c0f9f4a99b42ed1b6334569aain07",
                                            +    "name" : "gaussdb-mysql-instance1",
                                            +    "region" : "xxxx",
                                            +    "charge_info" : {
                                            +      "charge_mode" : "postPaid"
                                            +    },
                                            +    "datastore" : {
                                            +      "type" : "gaussdb-mysql",
                                            +      "version" : "8.0"
                                            +    },
                                            +    "mode" : "Cluster",
                                            +    "flavor_ref" : "gaussdb.mysql.xlarge.arm.8",
                                            +    "vpc_id" : "3cedfc54-b105-4652-a4e0-847b11576b58",
                                            +    "subnet_id" : "c1cfa53c-65d3-431e-8552-326bf310c7ad",
                                            +    "security_group_id" : "fc577a1a-f202-424a-977f-24faec3fdd55",
                                            +    "configuration_id" : "43570e0de32e40c5a15f831aa5ce4176pr07",
                                            +    "backup_strategy" : {
                                            +      "start_time" : "08:00-09:00",
                                            +      "keep_days" : 7
                                            +    },
                                            +    "availability_zone_mode" : "single",
                                            +    "slave_count" : 1
                                            +  },
                                            +  "job_id" : "dff1d289-4d03-4942-8b9f-463ea07c000d"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0005.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0005.html new file mode 100644 index 000000000..2b9624d12 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0005.html @@ -0,0 +1,635 @@ + + +

                                            Querying DB Instances

                                            +

                                            Function

                                            This API is used to query instances according to search criteria. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              GET https://{endpoint}/mysql/v3/{project_id}/instances?id={id}&name={name}&type={type}&datastore_type={datastore_type}&vpc_id={vpc_id}&subnet_id={subnet_id}&offset={offset}&limit={limit}

                                              +
                                            • Example

                                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances?id=ed7cc6166ec24360a5ed5c5c9c2ed726in01&name=hy&type=Cluster&datastore_type=gaussdb-mysql&vpc_id=19e5d45d-70fd-4a91-87e9-b27e71c9891f&subnet_id=bd51fb45-2dcb-4296-8783-8623bfe89bb7&offset=0&limit=10

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Type

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              id

                                              +

                                              String

                                              +

                                              No

                                              +

                                              DB instance ID.

                                              +

                                              The asterisk (*) is reserved for the system. If the instance ID starts with an asterisk (*), the value following asterisk (*) is used for fuzzy matching. Otherwise, the instance ID is used for exact matching.

                                              +

                                              name

                                              +

                                              String

                                              +

                                              No

                                              +

                                              DB instance name.

                                              +

                                              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. Its value is Cluster.

                                              +

                                              datastore_type

                                              +

                                              String

                                              +

                                              No

                                              +

                                              DB type. Currently, only gaussdb-mysql is supported.

                                              +

                                              vpc_id

                                              +

                                              String

                                              +

                                              No

                                              +

                                              VPC ID.

                                              +
                                              • Method 1: Log in to the VPC console and view the VPC ID on the VPC details page.
                                              • Method 2: See "Querying VPCs" in the Virtual Private Cloud API Reference.
                                              +

                                              subnet_id

                                              +

                                              String

                                              +

                                              No

                                              +

                                              Network ID of the subnet.

                                              +
                                              • Method 1: Log in to the VPC console and click the target subnet on the Subnets page. You can view the network ID on the displayed page.
                                              • Method 2: See section "Querying Subnets" under "APIs" or section "Querying Networks" under "OpenStack Neutron APIs" in the Virtual Private Cloud API Reference.
                                              +

                                              offset

                                              +

                                              Integer

                                              +

                                              No

                                              +

                                              Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

                                              +

                                              limit

                                              +

                                              Integer

                                              +

                                              No

                                              +

                                              Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            instances

                                            +

                                            Array of MysqlInstanceListInfo objects

                                            +

                                            Instance list information.

                                            +

                                            total_count

                                            +

                                            Integer

                                            +

                                            Total number of records.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 MysqlInstanceListInfo

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            DB instance name.

                                            +

                                            status

                                            +

                                            String

                                            +

                                            DB instance status.

                                            +

                                            private_ips

                                            +

                                            Array of strings

                                            +

                                            Private IP address for write. It is a blank string until an ECS is created.

                                            +

                                            public_ips

                                            +

                                            Array of strings

                                            +

                                            Public IP addresses.

                                            +

                                            port

                                            +

                                            String

                                            +

                                            Database port.

                                            +

                                            type

                                            +

                                            String

                                            +

                                            DB instance type. The value is Cluster.

                                            +

                                            region

                                            +

                                            String

                                            +

                                            Region where the DB instance is deployed.

                                            +

                                            datastore

                                            +

                                            MysqlDatastore object

                                            +

                                            Database information.

                                            +

                                            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.

                                            +

                                            updated

                                            +

                                            String

                                            +

                                            Update time. The format is the same as that of the created field.

                                            +

                                            The value is empty unless the instance creation is complete.

                                            +

                                            db_user_name

                                            +

                                            String

                                            +

                                            Default username.

                                            +

                                            vpc_id

                                            +

                                            String

                                            +

                                            VPC ID.

                                            +

                                            subnet_id

                                            +

                                            String

                                            +

                                            Network ID of the subnet.

                                            +

                                            security_group_id

                                            +

                                            String

                                            +

                                            Security group ID.

                                            +

                                            flavor_ref

                                            +

                                            String

                                            +

                                            Specification code.

                                            +

                                            flavor_info

                                            +

                                            MysqlFlavorInfo object

                                            +

                                            Specification description.

                                            +

                                            volume

                                            +

                                            MysqlVolumeInfo object

                                            +

                                            Storage disk information.

                                            +

                                            backup_strategy

                                            +

                                            MysqlBackupStrategy object

                                            +

                                            Backup policy.

                                            +

                                            enterprise_project_id

                                            +

                                            String

                                            +

                                            Enterprise project ID.

                                            +

                                            time_zone

                                            +

                                            String

                                            +

                                            Time zone.

                                            +

                                            charge_info

                                            +

                                            MysqlChargeInfo object

                                            +

                                            Billing mode, which is yearly/monthly or pay-per-use (default setting).

                                            +

                                            dedicated_resource_id

                                            +

                                            String

                                            +

                                            Dedicated resource pool ID. This parameter is returned only when the instance belongs to a dedicated resource pool.

                                            +

                                            tags

                                            +

                                            Array of InstanceTagItem objects

                                            +

                                            Tag list.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 5 MysqlDatastore

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            type

                                            +

                                            String

                                            +

                                            DB engine. Currently, only gaussdb-mysql is supported.

                                            +

                                            version

                                            +

                                            String

                                            +

                                            DB version.

                                            +

                                            To obtain details about supported DB engine versions, call the API for querying the DB engine versions.

                                            +

                                            kernel_version

                                            +

                                            String

                                            +

                                            Database kernel version.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 MysqlFlavorInfo

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            vcpus

                                            +

                                            String

                                            +

                                            Number of vCPUs.

                                            +

                                            ram

                                            +

                                            String

                                            +

                                            Memory size in GB.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 MysqlVolumeInfo

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            type

                                            +

                                            String

                                            +

                                            Disk type.

                                            +

                                            size

                                            +

                                            String

                                            +

                                            Used disk size in GB.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 8 MysqlBackupStrategy

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            start_time

                                            +

                                            String

                                            +

                                            Automated backup start time. The automated backup will be triggered within one hour after the time specified by this parameter.

                                            +

                                            keep_days

                                            +

                                            String

                                            +

                                            Backup retention days.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + +
                                            Table 9 MysqlChargeInfo

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            charge_mode

                                            +

                                            String

                                            +

                                            Billing mode.

                                            +

                                            Value: postPaid

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 10 InstanceTagItem

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            key

                                            +

                                            String

                                            +

                                            Tag key.

                                            +

                                            value

                                            +

                                            String

                                            +

                                            Tag value.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 11 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 12 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Querying DB Instances

                                            +
                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances?id=ed7cc6166ec24360a5ed5c5c9c2ed726in01&name=hy&type=Cluster&datastore_type=gaussdb-mysql&vpc_id=19e5d45d-70fd-4a91-87e9-b27e71c9891f&subnet_id=bd51fb45-2dcb-4296-8783-8623bfe89bb7&offset=0&limit=10
                                            +
                                            +

                                            Example Response

                                            The value of region is used as an example in the following response.

                                            +
                                            +

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "total_count" : 1,
                                            +  "instances" : [ {
                                            +    "id" : "ed7cc6166ec24360a5ed5c5c9c2ed726in01",
                                            +    "name" : "gaussdb-mysql-instance01",
                                            +    "status" : "ACTIVE",
                                            +    "port" : 3306,
                                            +    "type" : "Cluster",
                                            +    "private_ips" : [ "192.168.0.142" ],
                                            +    "db_user_name" : "root",
                                            +    "region" : "br-iaas-odin1",
                                            +    "datastore" : {
                                            +      "type" : "gaussdb-mysql",
                                            +      "version" : "8.0"
                                            +    },
                                            +    "created" : "2018-08-20T02:33:49_0800",
                                            +    "updated" : "2018-08-20T02:33:49_0800",
                                            +    "volume" : {
                                            +      "type" : "POOL",
                                            +      "used_size" : 100
                                            +    },
                                            +    "vpc_id" : "3cedfc54-b105-4652-a4e0-847b11576b58",
                                            +    "subnet_id" : "c1cfa53c-65d3-431e-8552-326bf310c7ad",
                                            +    "security_group_id" : "fc577a1a-f202-424a-977f-24faec3fdd55",
                                            +    "flavor_ref" : "gaussdb.mysql.c3.small.4",
                                            +    "flavor_info" : {
                                            +      "vcpus" : 8,
                                            +      "ram" : 16
                                            +    },
                                            +    "backup_strategy" : {
                                            +      "start_time" : "19:00-20:00",
                                            +      "keep_days" : 7
                                            +    },
                                            +    "charge_info" : {
                                            +      "charge_mode" : "postPaid"
                                            +    },
                                            +    "enterprise_project_id" : 0,
                                            +    "time_zone" : "UTC",
                                            +    "tags" : [ ]
                                            +  } ]
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0006.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0006.html new file mode 100644 index 000000000..af81ee0fb --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0006.html @@ -0,0 +1,722 @@ + + +

                                            Querying Details of a DB Instance

                                            +

                                            Function

                                            This API is used to query the details of a specified DB instance. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              GET https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}

                                              +
                                            • Example

                                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/436aaafb689c4250a9a5bb33cb271e8cin07

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Type

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              instance_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              DB instance ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 201

                                            + +
                                            + + + + + + + + + +
                                            Table 3 Response body parameter

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            instance

                                            +

                                            MysqlInstanceInfoDetail object

                                            +

                                            Instance information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 MysqlInstanceInfoDetail

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            DB instance name.

                                            +

                                            project_id

                                            +

                                            String

                                            +

                                            Project ID of a tenant in a region.

                                            +

                                            status

                                            +

                                            String

                                            +

                                            DB instance status. Valid value:

                                            +

                                            If the value is BUILD, the DB instance is being created.

                                            +

                                            If the value is ACTIVE, the DB instance is normal.

                                            +

                                            If the value is FAILED, the DB instance is abnormal.

                                            +

                                            If the value is FROZEN, the DB instance is frozen.

                                            +

                                            If the value is MODIFYING, the DB instance is being scaled up.

                                            +

                                            If the value is REBOOTING, the DB instance is being rebooted.

                                            +

                                            If the value is RESTORING, the DB instance is being restored.

                                            +

                                            If the value is MODIFYING INSTANCE TYPE, the DB instance is changing from primary to standby.

                                            +

                                            If the value is SWITCHOVER, the primary/standby switchover is being performed.

                                            +

                                            If the value is MIGRATING, the DB instance is being migrated.

                                            +

                                            If the value is BACKING UP, the DB instance is being backed up.

                                            +

                                            If the value is MODIFYING DATABASE PORT, the database port is being changed.

                                            +

                                            If the value is STORAGE FULL, the instance storage space is full.

                                            +

                                            port

                                            +

                                            String

                                            +

                                            Database port.

                                            +

                                            type

                                            +

                                            String

                                            +

                                            Instance type. The value is Cluster.

                                            +

                                            node_count

                                            +

                                            Integer

                                            +

                                            Number of nodes.

                                            +

                                            datastore

                                            +

                                            MysqlDatastore object

                                            +

                                            Database information.

                                            +

                                            backup_used_space

                                            +

                                            Double

                                            +

                                            Used backup space in GB.

                                            +

                                            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.

                                            +

                                            updated

                                            +

                                            String

                                            +

                                            Update time. The format is the same as that of the created field. The value is empty unless the instance creation is complete.

                                            +

                                            private_write_ips

                                            +

                                            Array of strings

                                            +

                                            Private IP address for write.

                                            +

                                            public_ips

                                            +

                                            String

                                            +

                                            Public IP address of the instance.

                                            +

                                            db_user_name

                                            +

                                            String

                                            +

                                            Default username.

                                            +

                                            vpc_id

                                            +

                                            String

                                            +

                                            VPC ID.

                                            +

                                            subnet_id

                                            +

                                            String

                                            +

                                            Network ID of the subnet.

                                            +

                                            security_group_id

                                            +

                                            String

                                            +

                                            Security group ID.

                                            +

                                            configuration_id

                                            +

                                            String

                                            +

                                            ID of the parameter template used for creating an instance or ID of the latest parameter template that is applied to an instance.

                                            +

                                            backup_strategy

                                            +

                                            MysqlBackupStrategy object

                                            +

                                            Backup policy.

                                            +

                                            nodes

                                            +

                                            Array of MysqlInstanceNodeInfo objects

                                            +

                                            Node information.

                                            +

                                            enterprise_project_id

                                            +

                                            String

                                            +

                                            Enterprise project ID.

                                            +

                                            time_zone

                                            +

                                            String

                                            +

                                            Time zone.

                                            +

                                            az_mode

                                            +

                                            String

                                            +

                                            AZ type. It can be single or multi.

                                            +

                                            master_az_code

                                            +

                                            String

                                            +

                                            Primary AZ.

                                            +

                                            maintenance_window

                                            +

                                            String

                                            +

                                            Maintenance window in the UTC format.

                                            +

                                            tags

                                            +

                                            Array of MysqlTags objects

                                            +

                                            Tags for managing instances.

                                            +

                                            dedicated_resource_id

                                            +

                                            String

                                            +

                                            Dedicated resource pool ID. This parameter is returned only when the instance belongs to a dedicated resource pool.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 5 MysqlDatastore

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            type

                                            +

                                            String

                                            +

                                            DB engine. Currently, only gaussdb-mysql is supported.

                                            +

                                            version

                                            +

                                            String

                                            +

                                            DB version.

                                            +

                                            kernel_version

                                            +

                                            String

                                            +

                                            Database kernel version.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 MysqlInatanceNodeVolumeInfo

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            type

                                            +

                                            String

                                            +

                                            Disk type.

                                            +

                                            used

                                            +

                                            String

                                            +

                                            Used disk size in GB.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 MysqlBackupStrategy

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            start_time

                                            +

                                            String

                                            +

                                            Automated backup start time. The automated backup will be triggered within one hour after the time specified by this parameter.

                                            +

                                            keep_days

                                            +

                                            String

                                            +

                                            Backup retention days.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 8 MysqlInstanceNodeInfo

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            Node name.

                                            +

                                            type

                                            +

                                            String

                                            +

                                            Node type, which can be master or slave.

                                            +

                                            status

                                            +

                                            String

                                            +

                                            Node status.

                                            +

                                            port

                                            +

                                            Integer

                                            +

                                            Database port.

                                            +

                                            private_read_ips

                                            +

                                            Array of strings

                                            +

                                            Private IP address for read of the node.

                                            +

                                            volume

                                            +

                                            Table 6 object

                                            +

                                            Storage disk information.

                                            +

                                            az_code

                                            +

                                            String

                                            +

                                            AZ.

                                            +

                                            region_code

                                            +

                                            String

                                            +

                                            Region where the instance is located.

                                            +

                                            created

                                            +

                                            String

                                            +

                                            DB instance creation time.

                                            +

                                            updated

                                            +

                                            String

                                            +

                                            Update time.

                                            +

                                            flavor_ref

                                            +

                                            String

                                            +

                                            Specification code.

                                            +

                                            max_connections

                                            +

                                            String

                                            +

                                            Maximum number of connections.

                                            +

                                            vcpus

                                            +

                                            String

                                            +

                                            Number of vCPUs.

                                            +

                                            ram

                                            +

                                            String

                                            +

                                            Memory size in GB.

                                            +

                                            need_restart

                                            +

                                            Boolean

                                            +

                                            Whether to reboot the instance for the parameter modifications to take effect.

                                            +

                                            priotiry

                                            +

                                            Integer

                                            +

                                            Failover priority.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 9 MysqlTags

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            key

                                            +

                                            String

                                            +

                                            Tag key. The value can contain a maximum of 36 Unicode characters. The value cannot be an empty string, a space, or left blank. Only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_) are allowed.

                                            +

                                            value

                                            +

                                            String

                                            +

                                            Tag value. It contains a maximum of 43 Unicode characters. The value can be an empty string. Only uppercase letters, lowercase letters, digits, periods (.), hyphens (-), and underscores (_) are allowed.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 10 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 11 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Querying details of a DB instance

                                            +
                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/d2cda7b97a39488e8b30e3cea4066204in07
                                            +
                                            +

                                            Example Response

                                            The values of region_code and az_code are used as examples.

                                            +
                                            +

                                            Status code: 201

                                            +

                                            Success.

                                            +
                                            {
                                            +  "instance": {
                                            +    "id": "d2cda7b97a39488e8b30e3cea4066204in07",
                                            +    "name": "gauss-d616-lb07",
                                            +    "status": "FAILED",
                                            +    "project_id": "053f533ead80d5102f0cc012e8d468a4",
                                            +    "enterprise_project_id": "0",
                                            +    "type": "Cluster",
                                            +    "charge_info": {
                                            +      "charge_mode": "postPaid",
                                            +      "order_id": ""
                                            +    },
                                            +    "node_count": 2,
                                            +    "datastore": {
                                            +      "type": "GaussDB(for MySQL)",
                                            +      "version": "8.0"
                                            +    },
                                            +    "created": "2020-07-21T09:13:56+0200",
                                            +    "updated": "2020-07-21T09:27:54+0200",
                                            +    "public_ips": "",
                                            +    "private_write_ips": [
                                            +      "192.168.0.235"
                                            +    ],
                                            +    "db_user_name": "root",
                                            +    "port": "3306",
                                            +    "vpc_id": "f7ee62e2-9705-4523-ba49-a85ea1a1fa87",
                                            +    "subnet_id": "140af7bf-a9da-4dcf-8837-34199fd6d186",
                                            +    "security_group_id": "c7f69884-fe2b-4630-8114-70a11499d902",
                                            +    "backup_strategy": {
                                            +      "start_time": "00:00-00:00",
                                            +      "keep_days": "0"
                                            +    },
                                            +    "nodes": [
                                            +      {
                                            +        "id": "799a0f2fa49a4151bf9f7063c1fbba36no07",
                                            +        "name": "gauss-d616-lb07_node01",
                                            +        "type": "master",
                                            +        "status": "FAILED",
                                            +        "port": 3306,
                                            +        "private_read_ips": [
                                            +          "192.168.0.163"
                                            +        ],
                                            +        "volume": {
                                            +          "type": "POOL",
                                            +          "used": "0.0"
                                            +        },
                                            +        "az_code": "cn-cmcc1a-01",
                                            +        "region_code": "cn-cmcc1",
                                            +        "flavor_id": "3169caaf-6c2f-41d5-aadd-c8fc3d83597e",
                                            +        "flavor_ref": "gaussdb.mysql.4xlarge.arm.8",
                                            +        "max_connections": null,
                                            +        "vcpus": "16",
                                            +        "ram": "128",
                                            +        "need_restart": false,
                                            +        "priority": 1
                                            +      },
                                            +      {
                                            +        "id": "816459d771c444db9fa4c1d5c173cb1cno07",
                                            +        "name": "gauss-d616-lb07_node02",
                                            +        "type": "slave",
                                            +        "status": "FAILED",
                                            +        "port": 3306,
                                            +        "private_read_ips": [
                                            +          "192.168.0.160"
                                            +        ],
                                            +        "volume": {
                                            +          "type": "POOL",
                                            +          "used": "0.0"
                                            +        },
                                            +        "az_code": "cn-cmcc1a-01",
                                            +        "region_code": "cn-cmcc1",
                                            +        "flavor_id": "3169caaf-6c2f-41d5-aadd-c8fc3d83597e",
                                            +        "flavor_ref": "gaussdb.mysql.4xlarge.arm.8",
                                            +        "max_connections": null,
                                            +        "vcpus": "16",
                                            +        "ram": "128",
                                            +        "need_restart": false,
                                            +        "priority": 1
                                            +      }
                                            +    ],
                                            +    "time_zone": "UTC+08:00",
                                            +    "backup_used_space": 0,
                                            +    "az_mode": "single",
                                            +    "master_az_code": "cn-cmcc1a-01",
                                            +    "maintenance_window": "18:00-22:00"
                                            +  }
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0007.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0007.html new file mode 100644 index 000000000..042a724c2 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0007.html @@ -0,0 +1,173 @@ + + +

                                            Deleting a DB Instance

                                            +

                                            Function

                                            This API is used to delete a DB instance. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              DELETE https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}

                                              +
                                            • Example

                                              DELETE https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              instance_id

                                              +

                                              Yes

                                              +

                                              DB instance ID, which is compliant with the UUID format.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            ID of the task for deleting a DB instance.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            DELETE https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances/3d39c18788b54a919bab633874c159dfin01
                                            +
                                            +

                                            Example Response

                                            Status code: 500

                                            +

                                            Server error.

                                            +
                                            {
                                            +  "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0015.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0015.html new file mode 100644 index 000000000..88eeadc5d --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0015.html @@ -0,0 +1,224 @@ + + +

                                            Creating a Read Replica

                                            +

                                            Function

                                            This API is used to create a read replica. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              POST https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}/nodes/enlarge

                                              +
                                            • Example

                                              POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/nodes/enlarge

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              instance_id

                                              +

                                              Yes

                                              +

                                              DB instance ID, which is compliant with the UUID format.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            priorities

                                            +

                                            Yes

                                            +

                                            Array of integers

                                            +

                                            Read replica failover priority ranging from 1 to 16. The total number of the primary node and read replicas is up to 16.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 201

                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            instance_id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            node_names

                                            +

                                            Array of strings

                                            +

                                            Node name list

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            ID of the task for creating a DB instance.

                                            +

                                            This parameter is returned only when pay-per-use DB instances are created.

                                            +

                                            order_id

                                            +

                                            String

                                            +

                                            Order ID. This parameter is returned only when yearly/monthly instances are created.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Creating a read replica

                                            +
                                            POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/nodes/enlarge
                                            +{
                                            +  "priorities" : [ 1, 2 ]
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 201

                                            +

                                            Success.

                                            +
                                            {
                                            +  "instance_id" : "f381d0b539e644df8f5b0d3a62129515in07",
                                            +  "node_names" : [ "gauss-ccf5_node03" ],
                                            +  "job_id" : "dff1d289-4d03-4942-8b9f-463ea07c000d"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0016.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0016.html new file mode 100644 index 000000000..4b6306088 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0016.html @@ -0,0 +1,180 @@ + + +

                                            Deleting a Read Replica

                                            +

                                            Function

                                            This API is used to delete a read replica. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              DELETE https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}/nodes/{node_id}

                                              +
                                            • Example

                                              DELETE https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/nodes/d11ae66fsfdsaer3w3ino9

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              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.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            No

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            ID of the task for deleting a read replica.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            DELETE https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances/3d39c18788b54a919bab633874c159dfin01/nodes/ss62c18799854a919bab633874c159dfin55
                                            +
                                            +

                                            Example Response

                                            Status code: 500

                                            +

                                            Server error.

                                            +
                                            {
                                            +  "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0018.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0018.html new file mode 100644 index 000000000..ca4472e18 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0018.html @@ -0,0 +1,209 @@ + + +

                                            Changing a DB Instance Name

                                            +

                                            Function

                                            This API is used to change a DB instance name. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              PUT https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}/name

                                              +
                                            • Example

                                              PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/c3ec2c6148ad4d71b1a8411a62df0d3cin07/name

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Type

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              instance_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              DB instance ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            No

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            name

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance name.

                                            +

                                            Instances of the same type can have same names under the same tenant.

                                            +

                                            The value consists of 4 to 64 characters and starts with a letter. It is case-sensitive and contains only letters, digits, hyphens (-), and underscores (_).

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 4 Response body parameter

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            ID of the task for changing a DB instance name.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Changing a DB Instance Name

                                            +
                                            POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/name
                                            +{
                                            +  "name" : "gaussdb-name"
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "job_id" : "0f6b6a9e-bd39-4e95-9374-e4d134e5a3d1"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +

                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0019.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0019.html new file mode 100644 index 000000000..4d67667fb --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0019.html @@ -0,0 +1,185 @@ + + +

                                            Resetting a Database Password

                                            +

                                            Function

                                            This API is used to reset a database password. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              POST https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}/password

                                              +
                                            • Example

                                              POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/c3ec2c6148ad4d71b1a8411a62df0d3cin07/password

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Type

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              instance_id

                                              +

                                              String

                                              +

                                              No

                                              +

                                              DB instance ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            No

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameter

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            password

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Database password.

                                            +

                                            Valid value:

                                            +

                                            The password consists of 8 to 32 characters and contains at least three types of the following: uppercase letters, lowercase letters, digits, and special characters (~!@#$%^*-_=+?,()&).

                                            +

                                            You are advised to enter a strong password to improve security and prevent security risks such as brute force cracking. If you enter a weak password, the system automatically determines that the password is invalid.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 4 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Resetting a database password

                                            +
                                            POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/password
                                            +{
                                            +  "password" : "Test_345612"
                                            +}
                                            +
                                            +

                                            Example Response

                                            {}

                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0020.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0020.html new file mode 100644 index 000000000..375dfd801 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0020.html @@ -0,0 +1,234 @@ + + +

                                            Changing DB Instance Specifications

                                            +

                                            Function

                                            This API is used to change DB instance specifications. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              POST https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}/action

                                              +
                                            • Example

                                              POST https://gaussdb-mysql.eu-de.otc.t-systems.commysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/c3ec2c6148ad4d71b1a8411a62df0d3cin07/action

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Type

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              instance_id

                                              +

                                              String

                                              +

                                              No

                                              +

                                              DB instance ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            No

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            resize_flavor

                                            +

                                            Yes

                                            +

                                            MysqlResizeFlavor object

                                            +

                                            Specification change information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 4 MysqlResizeFlavor

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            spec_code

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Specification code.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            job_id

                                            +

                                            String

                                            +

                                            Job ID for changing DB instance specifications. This parameter is returned only when you change the specifications of a pay-per-use DB instance.

                                            +

                                            order_id

                                            +

                                            String

                                            +

                                            Order ID for changing DB instance specifications. This parameter is returned only when you change the specification of a yearly/monthly DB instance.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Changing instance specifications

                                            +
                                            POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/action
                                            +{
                                            +  "resize_flavor" : {
                                            +    "spec_code" : "taurus.large.4"
                                            +  }
                                            +}
                                            +
                                            +

                                            Example Response

                                            None

                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0021.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0021.html new file mode 100644 index 000000000..5cbc595a6 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0021.html @@ -0,0 +1,25 @@ + + + +

                                            Backup Management

                                            + +

                                            +
                                            + + + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0022.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0022.html new file mode 100644 index 000000000..df8e46299 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0022.html @@ -0,0 +1,288 @@ + + +

                                            Creating a Manual Backup

                                            +

                                            Function

                                            This API is used to create a manual backup. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              POST https://{endpoint}/mysql/v3/{project_id}/backups/create

                                              +
                                            • Example

                                              POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/backups/create

                                              +
                                            • Parameter description +
                                              + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            No

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            instance_id

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            DB instance ID, which is compliant with the UUID format.

                                            +

                                            name

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Backup name.

                                            +

                                            The value consists of 4 to 64 characters and starts with a letter. It is case-sensitive and contains only letters, digits, hyphens (-), and underscores (_).

                                            +

                                            description

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Backup description. It contains a maximum of 256 characters and cannot contain the special characters (>!<"&'=)

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 4 Response body parameter

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            backup

                                            +

                                            backup object

                                            +

                                            Backup information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 5 backup

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            Backup ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            Backup name.

                                            +

                                            descriprion

                                            +

                                            String

                                            +

                                            Backup description.

                                            +

                                            begin_time

                                            +

                                            String

                                            +

                                            Backup start time in the "yyyy-mm-ddThh:mm:ssZ" format, where "T" indicates the start time of the time field, and "Z" indicates the time zone offset.

                                            +

                                            status

                                            +

                                            String

                                            +

                                            Backup status

                                            +

                                            Valid value:

                                            +
                                            • BUILDING: Backup in progress
                                            • COMPLETED: Backup completed
                                            • FAILED: Backup failed
                                            • AVAILABLE: Backup available
                                            +

                                            type

                                            +

                                            String

                                            +

                                            Backup type. Value:

                                            +

                                            Valid value:

                                            +

                                            manual: manual full backup

                                            +

                                            instance_id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Creating a Manual Backup

                                            +
                                            POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/backups/create
                                            +{
                                            +   "instance_id": "d8e6ca5a624745bcb546a227aa3ae1cfin01",
                                            +   "name": "backup-1",
                                            +   "description": "manual backup"
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "backup" : {
                                            +    "id" : "2f4ddb93-b901-4b08-93d8-1d2e472f30fe",
                                            +    "name" : "backup-1",
                                            +    "description": "Manual backup"
                                            +    "begin_time" : "2020-07-07T01:17:05+0200",
                                            +    "status" : "BUILDING",
                                            +    "type" : "manual",
                                            +    "instance_id" : "ef25188419f941309882d2986b2210b9in07"
                                            +  }
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +

                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0023.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0023.html new file mode 100644 index 000000000..4b0195e68 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0023.html @@ -0,0 +1,379 @@ + + +

                                            Querying Backups

                                            +

                                            Function

                                            This API is used to query backups according to search criteria. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              GET https://{endpoint}/mysql/v3/{project_id}/backups?instance_id={instance_id}&backup_id={backup_id}&backup_type={backup_type}&offset={offset}&limit={limit}&begin_time={begin _time}&end_time={end_time}

                                              +
                                            • Example

                                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/backups?instance_id=c3ec2c6148ad4d71b1a8411a62df0d3cin07&backup_id=43e4feaab48f11e89039fa163ebaa7e4br01&backup_type=auto&offset=0&limit=10&begin_time=2020-07-06T10:41:14+0800&end_time=2020-07-16T10:41:14+0800

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Type

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              instance_id

                                              +

                                              String

                                              +

                                              No

                                              +

                                              DB instance ID.

                                              +

                                              backup_id

                                              +

                                              String

                                              +

                                              No

                                              +

                                              Backup ID.

                                              +

                                              backup_type

                                              +

                                              String

                                              +

                                              No

                                              +

                                              Backup type. Value:

                                              +
                                              • auto: automated full backup
                                              • manual: manual full backup
                                              +

                                              offset

                                              +

                                              String

                                              +

                                              No

                                              +

                                              Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

                                              +

                                              limit

                                              +

                                              String

                                              +

                                              No

                                              +

                                              Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

                                              +

                                              begin_time

                                              +

                                              String

                                              +

                                              No

                                              +

                                              Query start time. The format is "yyyy-mm-ddThh:mm:ssZ".

                                              +

                                              T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.

                                              +

                                              end_time

                                              +

                                              String

                                              +

                                              No

                                              +

                                              Query end time. The format is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.

                                              +

                                              T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            No

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            backups

                                            +

                                            Array of backups objects

                                            +

                                            Backup information.

                                            +

                                            total_count

                                            +

                                            Long

                                            +

                                            Total number of backup files.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 backups

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            Backup ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            Backup name.

                                            +

                                            begin_time

                                            +

                                            String

                                            +

                                            Backup start 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.

                                            +

                                            end_time

                                            +

                                            String

                                            +

                                            Backup 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.

                                            +

                                            status

                                            +

                                            String

                                            +

                                            Backup status. Value:

                                            +
                                            • BUILDING: Backup in progress
                                            • COMPLETED: Backup completed
                                            • FAILED: Backup failed
                                            • AVAILABLE: Backup available
                                            +

                                            take_up_time

                                            +

                                            Integer

                                            +

                                            Backup duration in minutes.

                                            +

                                            type

                                            +

                                            String

                                            +

                                            Backup type. Value:

                                            +
                                            • auto: automated full backup
                                            • manual: manual full backup
                                            +

                                            size

                                            +

                                            Double

                                            +

                                            Backup size in MB.

                                            +

                                            datastore

                                            +

                                            MysqlDatastore object

                                            +

                                            Database information.

                                            +

                                            instance_id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            description

                                            +

                                            String

                                            +

                                            Description of the backup file.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 MysqlDatastore

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            type

                                            +

                                            String

                                            +

                                            DB engine. Currently, only gaussdb-mysql is supported.

                                            +

                                            version

                                            +

                                            String

                                            +

                                            DB version.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/backups?instance_id=ba62a0b83a1b42bfab275829d86ac0fdin07&backup_id=c0c9f155c7b7423a9d30f0175998b63bbr01&backup_type=auto&offset=0&limit=10&begin_time=2020-07-06T10:41:14+0200&end_time=2020-07-16T10:41:14+0200
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "backups" : [ {
                                            +    "id" : "1fe4feaab48f11e6654hfa163eba87e4b66u",
                                            +    "name" : "GaussDBforMySQL-gauss-e747-20200705185048266",
                                            +    "begin_time" : "2018-08-06T12:41:14+0200",
                                            +    "end_time" : "2018-08-06T12:45:14+0200",
                                            +    "take_up_time" : 2,
                                            +    "status" : "COMPLETED",
                                            +    "type" : "auto",
                                            +    "size" : 2803,
                                            +    "datastore" : {
                                            +      "type" : "gaussdb-mysql",
                                            +      "version" : "8.0"
                                            +    },
                                            +    "instance_id" : "43e4feaab48f11e89039fa163ebaa7e4br01"
                                            +    
                                            +  } ],
                                            +  "total_count" : 1
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +

                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0024.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0024.html new file mode 100644 index 000000000..712feec4c --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0024.html @@ -0,0 +1,217 @@ + + +

                                            Querying an Automated Backup Policy

                                            +

                                            Function

                                            This API is used to query an automated backup policy. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              GET https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}/backups/policy

                                              +
                                            • Example

                                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/c3ec2c6148ad4d71b1a8411a62df0d3cin07/backups/policy

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Type

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              instance_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              DB instance ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            backup_policy

                                            +

                                            BackupPolicy object

                                            +

                                            Backup policy information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 4 BackupPolicy

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            keep_days

                                            +

                                            Integer

                                            +

                                            Backup retention days.

                                            +

                                            start_time

                                            +

                                            String

                                            +

                                            Backup time window. Automated backups will be triggered during the backup time window.

                                            +

                                            period

                                            +

                                            String

                                            +

                                            Backup cycle configuration. Data will be automatically backed up on the selected days every week.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            get https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/backups/policy
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "backup_policy" : {
                                            +    "keep_days" : "7,",
                                            +    "start_time" : "19:00-20:00",
                                            +    "period" : "1,2"
                                            +   
                                            +  }
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0025.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0025.html new file mode 100644 index 000000000..897ed2313 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0025.html @@ -0,0 +1,284 @@ + + +

                                            Modifying the Backup Policy

                                            +

                                            Function

                                            This API is used to modify the backup policy. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              PUT https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}/backups/policy/update

                                              +
                                            • Example

                                              PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/c3ec2c6148ad4d71b1a8411a62df0d3cin07/backups/policy/update

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Type

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              String

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              instance_id

                                              +

                                              String

                                              +

                                              No

                                              +

                                              DB instance ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            No

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            backup_policy

                                            +

                                            Yes

                                            +

                                            MysqlBackupPolicy object

                                            +

                                            Database information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 MysqlBackupPolicy

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            start_time

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Backup time window. Automated backups will be triggered during the backup time window.

                                            +

                                            The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

                                            +
                                            • The HH value must be 1 greater than the hh value.
                                            • The values of mm and MM must be the same and must be set to 00.
                                            +

                                            Example value:

                                            +

                                            21:00-22:00

                                            +

                                            keep_days

                                            +

                                            Yes

                                            +

                                            Integer

                                            +

                                            Backup retention days.

                                            +

                                            period

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            Backup cycle configuration. Data will be automatically backed up on the selected days every week.

                                            +

                                            Value range: The value is a number separated by commas (,), indicating the days of the week.

                                            +

                                            For example, the value 1,2,3,4 indicates that the backup period is Monday, Tuesday, Wednesday, and Thursday.

                                            +

                                            retention_num_backup_level1

                                            +

                                            No

                                            +

                                            Integer

                                            +

                                            Number of retained level-1 backups. The default value is 0. This parameter is valid when the level-1 backup function is enabled. Valid value:

                                            +
                                            • 0
                                            • 1
                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            status

                                            +

                                            String

                                            +

                                            Backup status. Value:

                                            +
                                            • BUILDING: Modification in progress
                                            • COMPLETED: Modification completed
                                            • FAILED: Modification failed
                                            +

                                            instance_id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            instance_name

                                            +

                                            String

                                            +

                                            DB instance name.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            Modifying the backup policy

                                            +
                                            POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/054e292c9880d4992f02c0196d3ea468/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/backups/policy/update
                                            +{
                                            +  "backup_policy" : {
                                            +    "keep_days" : 7,
                                            +    "start_time" : "19:00-20:00",
                                            +    "period" : "1,2,3,4,5"
                                            +  }
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "status" : "COMPLETED",
                                            +  "instance_id" : "ef25188419f941309882d2986b2210b9in07",
                                            +  "instance_name" : "gauss-mysql"
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0026.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0026.html new file mode 100644 index 000000000..120a13695 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0026.html @@ -0,0 +1,16 @@ + + +

                                            Parameter Template Management

                                            +

                                            +
                                            + + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0027.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0027.html new file mode 100644 index 000000000..ff1ca00ff --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0027.html @@ -0,0 +1,287 @@ + + +

                                            Querying Parameter Templates

                                            +

                                            Function

                                            This API is used to obtain parameter templates, including all databases' default and custom parameter templates. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              GET https://{endpoint}/mysql/v3/{project_id}/configurations?offset={offset}&limit={limit}

                                              +
                                            • Example

                                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/configurations?offset=0&limit=100

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Type

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              String

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              offset

                                              +

                                              No

                                              +

                                              Integer

                                              +

                                              +

                                              Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

                                              +

                                              limit

                                              +

                                              No

                                              +

                                              Integer

                                              +

                                              +

                                              Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            configurations

                                            +

                                            Array of ConfigurationSummary objects

                                            +

                                            Parameter template information.

                                            +

                                            total_count

                                            +

                                            Integer

                                            +

                                            Total number of parameter templates.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 ConfigurationSummary

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            Parameter template ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            Parameter template name.

                                            +

                                            description

                                            +

                                            String

                                            +

                                            Parameter template description.

                                            +

                                            datastore_version_name

                                            +

                                            String

                                            +

                                            DB version name.

                                            +

                                            datastore_name

                                            +

                                            String

                                            +

                                            DB name.

                                            +

                                            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.

                                            +

                                            updated

                                            +

                                            String

                                            +

                                            Update 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.

                                            +

                                            user_defined

                                            +

                                            Boolean

                                            +

                                            Whether the parameter template is a custom template.

                                            +
                                            • false: The parameter template is a default template.
                                            • true: The parameter template is a custom template.
                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/configurations
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "total_count" : 1,
                                            +  "configurations" : [ {
                                            +    "id" : "887ea0d1bb0843c49e8d8e5a09a95652pr07",
                                            +    "name" : "configuration_test",
                                            +    "description" : "configuration_test",
                                            +    "datastore_version_name" : "8.0",
                                            +    "datastore_name" : "GaussDB(for MySQL)",
                                            +    "created" : "2019-05-15T11:53:34+0000",
                                            +    "updated" : "2019-05-15T11:53:34+0000",
                                            +    "user_defined" : true
                                            +  }, {
                                            +    "id" : "3bc1e9cc0d34404b9225ed7a58fb284epr07",
                                            +    "name" : "Default-GaussDBforMySQL",
                                            +    "description" : "Default parameter template for GaussDBforMySQL",
                                            +    "datastore_version_name" : "8.0",
                                            +    "datastore_name" : "GaussDB(for MySQL)",
                                            +    "created" : "2019-05-27T03:38:51+0000",
                                            +    "updated" : "2019-05-27T03:38:51+0000",
                                            +    "user_defined" : false
                                            +  } ]
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0028.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0028.html new file mode 100644 index 000000000..315c76b45 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0028.html @@ -0,0 +1,23 @@ + + + +

                                            Quota Management

                                            + +

                                            +
                                            + + + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0029.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0029.html new file mode 100644 index 000000000..6cbb7a439 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0029.html @@ -0,0 +1,271 @@ + + +

                                            Querying Enterprise Project Resource Quotas of a Tenant

                                            +

                                            Function

                                            This API is used to obtain the resource quotas of a specified enterprise project. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              GET https://{endpoint}/mysql/v3/{project_id}/quotas

                                              +
                                            • Example

                                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/619d3e78f61b4be68bc5aa0b59edcf7b/quotas

                                              +
                                            • Parameter description +
                                              + + + + + + + + + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              offset

                                              +

                                              No

                                              +

                                              Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.

                                              +

                                              limit

                                              +

                                              No

                                              +

                                              Number of records to be queried. The default value is 10. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

                                              +

                                              enterprise_project_name

                                              +

                                              No

                                              +

                                              Enterprise project name.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            quota_list

                                            +

                                            Array of quota objects

                                            +

                                            Quota information list.

                                            +

                                            total_count

                                            +

                                            Integer

                                            +

                                            Number of quota records.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 quota

                                            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.

                                            +

                                            availability_instance_quota

                                            +

                                            Integer

                                            +

                                            Remaining quota of DB instances.

                                            +

                                            availability_vcpus_quota

                                            +

                                            Integer

                                            +

                                            Remaining quota of vCPUs.

                                            +

                                            availability_ram_quota

                                            +

                                            Integer

                                            +

                                            Remaining memory quota.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/619d3e78f61b4be68bc5aa0b59edcf7b/quotas
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "quota_list" : [ {
                                            +    "enterprise_project_id" : "0",
                                            +    "enterprise_project_name" : "default",
                                            +    "instance_quota" : 20,
                                            +    "vcpus_quota" : 20,
                                            +    "ram_quota" : 40,
                                            +    "availability_instance_quota" : 1,
                                            +    "availability_vcpus_quota" : 4,
                                            +    "availability_ram_quota" : 8
                                            +  } ]
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0030.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0030.html new file mode 100644 index 000000000..141792d26 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0030.html @@ -0,0 +1,231 @@ + + +

                                            Configuring Enterprise Project Resource Quotas of a Tenant

                                            +

                                            Function

                                            This API is used to configure resource quotas for a specified enterprise project. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              POST https://{endpoint}/mysql/v3/{project_id}/quotas

                                              +
                                            • Example

                                              POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/quotas

                                              +
                                            +
                                            • Parameter description +
                                              + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameter

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            quota_list

                                            +

                                            Yes

                                            +

                                            Array of setQuota objects

                                            +

                                            Quota details. Up to 10 quota records can be configured at a time.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            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. The value ranges from 0 to 1000. (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 3600000. (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 19200000. (If there are already instances created, this parameter value must be greater than the used memory size.)

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 5 Response body parameter

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            quota_list

                                            +

                                            Array of setQuota objects

                                            +

                                            Resource list objects.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            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.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            None

                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "quota_list" : [ {
                                            +    "enterprise_project_id" : "0",
                                            +    "instance_quota" : 20,
                                            +    "vcpus_quota" : 20,
                                            +    "ram_quota" : 40
                                            +  } ]
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0031.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0031.html new file mode 100644 index 000000000..e84f43596 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0031.html @@ -0,0 +1,293 @@ + + +

                                            Modifying Enterprise Project Resource Quotas of a Tenant

                                            +

                                            Function

                                            This API is used to modify the resource quotas of a specified enterprise project. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              PUT https://{endpoint}/mysql/v3/{project_id}/quotas

                                              +
                                            • Example

                                              PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/quotas

                                              +
                                            +
                                            • Parameter description +
                                              + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + +
                                            Table 3 Request body parameter

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            quota_list

                                            +

                                            Yes

                                            +

                                            Array of setQuota objects

                                            +

                                            Enterprise project resource quotas to be updated. A maximum of 10 quotas can be updated at a time.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            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 1000. (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 3600000. (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 19200000. (If there are already instances created, this parameter value must be greater than the used memory size.)

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 5 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            quota_list

                                            +

                                            Array of setQuota objects

                                            +

                                            Configured quota information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            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.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 7 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 8 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/quotas
                                            +{
                                            +  "quota_list" : [ {
                                            +    "enterprise_project_id" : "0",
                                            +    "instance_quota" : 20,
                                            +    "vcpus_quota" : 20,
                                            +    "ram_quota" : 40
                                            +  } ]
                                            +}
                                            +
                                            +

                                            Example Response

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "quota_list" : [ {
                                            +    "enterprise_project_id" : "0",
                                            +    "instance_quota" : 20,
                                            +    "vcpus_quota" : 20,
                                            +    "ram_quota" : 40
                                            +  } ]
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/gaussdb_11_0032.html b/docs/gaussdb_mysql/api-ref/gaussdb_11_0032.html new file mode 100644 index 000000000..c77cc6375 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/gaussdb_11_0032.html @@ -0,0 +1,401 @@ + + +

                                            Obtaining Information About a Task with a Specified ID

                                            +

                                            Function

                                            This API is used to obtain task information from the task center. Before calling this API:

                                            + +
                                            +

                                            URI

                                            • URI format

                                              GET https://{endpoint}/mysql/v3/{project_id}/jobs?id={id}

                                              +
                                            • Example

                                              GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/jobs?id=a9767ede-fe0f-4888-9003-e843a4c90514

                                              +
                                            +
                                            • Parameter description +
                                              + + + + + + + + + + + + + +
                                              Table 1 Parameter description

                                              Name

                                              +

                                              Mandatory

                                              +

                                              Description

                                              +

                                              project_id

                                              +

                                              Yes

                                              +

                                              Project ID of a tenant in a region.

                                              +

                                              To obtain this value, see Obtaining a Project ID.

                                              +

                                              id

                                              +

                                              Yes

                                              +

                                              Task ID.

                                              +
                                              +
                                              +
                                            +
                                            +

                                            Request Parameters

                                            +
                                            + + + + + + + + + + + + + + + + + + + + + +
                                            Table 2 Request header parameters

                                            Parameter

                                            +

                                            Mandatory

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            X-Auth-Token

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            User token.

                                            +

                                            X-Language

                                            +

                                            No

                                            +

                                            String

                                            +

                                            Language.

                                            +

                                            Content-Type

                                            +

                                            Yes

                                            +

                                            String

                                            +

                                            MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

                                            +
                                            +
                                            +
                                            +

                                            Response Parameters

                                            Status code: 200

                                            + +
                                            + + + + + + + + + +
                                            Table 3 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            job

                                            +

                                            GetJobInfoDetail object

                                            +

                                            Task information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                            Table 4 GetJobInfoDetail

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            Task ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            Task name.

                                            +

                                            status

                                            +

                                            String

                                            +

                                            Task execution status.

                                            +
                                            Valid value:
                                            • Running: The task is being executed.
                                            • Completed: The task is successfully executed.
                                            • Failed: The task fails to be executed.
                                            +
                                            +

                                            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.

                                            +

                                            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 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

                                            +

                                            GetJobInstanceInfoDetail object

                                            +

                                            Instance information of the task with the specified ID.

                                            +

                                            entities

                                            +

                                            Table 6 object

                                            +

                                            Displayed information varies depending on tasks.

                                            +

                                            fail_reason

                                            +

                                            String

                                            +

                                            Task failure information.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 5 GetJobInstanceInfoDetail

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            id

                                            +

                                            String

                                            +

                                            DB instance ID.

                                            +

                                            name

                                            +

                                            String

                                            +

                                            DB instance name.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 6 entities field data structure description

                                            Name

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            instance

                                            +

                                            Object

                                            +

                                            DB instance queried in the task.

                                            +

                                            For details, see Table 7.

                                            +

                                            resource_ids

                                            +

                                            List<String>

                                            +

                                            Resource ID involved in a task.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + + + + + +
                                            Table 7 entities.instance field data structure description

                                            Name

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            endpoint

                                            +

                                            String

                                            +

                                            DB instance connection address.

                                            +

                                            type

                                            +

                                            String

                                            +

                                            DB instance type.

                                            +

                                            datastore

                                            +

                                            Object

                                            +

                                            DB information. For details, see Table 8.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 8 datastore field data structure description

                                            Name

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            type

                                            +

                                            String

                                            +

                                            DB engine.

                                            +

                                            version

                                            +

                                            String

                                            +

                                            DB version.

                                            +
                                            +
                                            + +
                                            + + + + + + + + + +
                                            Table 9 entities field data structure description (binding or unbinding an EIP)

                                            Name

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            public_ip

                                            +

                                            String

                                            +

                                            EIP bound to the instance.

                                            +
                                            +
                                            +

                                            Status code: 400

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 10 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +

                                            Status code: 500

                                            + +
                                            + + + + + + + + + + + + + +
                                            Table 11 Response body parameters

                                            Parameter

                                            +

                                            Type

                                            +

                                            Description

                                            +

                                            error_code

                                            +

                                            String

                                            +

                                            Error code.

                                            +

                                            error_msg

                                            +

                                            String

                                            +

                                            Error message.

                                            +
                                            +
                                            +
                                            +

                                            Example Request

                                            GET https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/0483b6b16e954cb88930a360d2c4e663/jobs?id=a9767ede-fe0f-4888-9003-e843a4c90514
                                            +
                                            +

                                            Example Response

                                            In the response example, some tasks in the task center are used as examples.

                                            +
                                            +

                                            Status code: 200

                                            +

                                            Success.

                                            +
                                            {
                                            +  "job": {
                                            +    "id": "31b8ae23-c687-4d80-b7b4-42a66c9bb886",
                                            +    "name": " RestartGaussDBInstance",
                                            +    "status": "Completed",
                                            +    "created": "2018-08-06T10:41:14+0000",
                                            +    "ended": "2018-08-06T16:41:14+0000",
                                            +    "process": "",
                                            +    "instance": {
                                            +      "id": "a48e43ff268f4c0e879652d65e63d0fbin01",
                                            +      "name": "DO-NOT-TOUCH-mgr2-gaussdb"
                                            +    },
                                            +    "entities": {}
                                            +    }
                                            +}
                                            +
                                            +

                                            Status Code

                                            For details, see Status Codes.

                                            +
                                            +

                                            Error Code

                                            For details, see Error Codes.

                                            +
                                            +

                                            +
                                            +
                                            + +
                                            + diff --git a/docs/gaussdb_mysql/api-ref/topic_300000006.html b/docs/gaussdb_mysql/api-ref/topic_300000006.html new file mode 100644 index 000000000..696edb997 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/topic_300000006.html @@ -0,0 +1,31 @@ + + + +

                                            Database Proxy

                                            + +

                                            +
                                            + + + diff --git a/docs/gaussdb_mysql/api-ref/topic_300000007.html b/docs/gaussdb_mysql/api-ref/topic_300000007.html new file mode 100644 index 000000000..4f34e3b39 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/topic_300000007.html @@ -0,0 +1,17 @@ + + +

                                            Log Management

                                            +
                                            + + diff --git a/docs/gaussdb_mysql/api-ref/topic_300000009.html b/docs/gaussdb_mysql/api-ref/topic_300000009.html new file mode 100644 index 000000000..a06499d51 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/topic_300000009.html @@ -0,0 +1,20 @@ + + +

                                            Tag Management

                                            +

                                            +
                                            + + diff --git a/docs/gaussdb_mysql/api-ref/topic_300000012.html b/docs/gaussdb_mysql/api-ref/topic_300000012.html new file mode 100644 index 000000000..94b97b904 --- /dev/null +++ b/docs/gaussdb_mysql/api-ref/topic_300000012.html @@ -0,0 +1,20 @@ + + +

                                            SQL Statement Concurrency Control

                                            +

                                            +
                                            + +