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 @@ + + +
This API is used to add tags to or delete tags from a specified DB instance in batches. Before calling this API:
+POST /v3/{project_id}/instances/{instance_id}/tags/action
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
action + |
+Yes + |
+String + |
+Action. Value: +
|
+
tags + |
+Yes + |
+Array of TagItem objects + |
+Tag list. + |
+
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. +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
+POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/tags/action
+{
+ "action" : "create",
+ "tags" : [ {
+ "key" : "key1",
+ "value" : "value1"
+ }, {
+ "key" : "key2",
+ "value" : "value2"
+ } ]
+}
+
+POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/tags/action
+{
+ "action" : "delete",
+ "tags" : [ {
+ "key" : "key1"
+ }, {
+ "key" : "key2",
+ "value" : "value2"
+ } ]
+}
+Status code: 200
+Success.
+None
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to change specifications of a database proxy instance. Before calling this API:
+PUT /v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/flavor
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
flavor_ref + |
+Yes + |
+String + |
+ID of the new flavor. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
job_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
+PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/61a4ea66210545909d74a05c27a7179ein07/proxy/e87088f0b6a345e79db19d57c41fde15po01/flavor
+{
+ "flavor_ref" :"gaussdb.proxy.xlarge.x86.2"
+}
+Status code: 200
+Success.
+{
+ "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to enable database proxy in ELB mode. Before using this API:
+POST /v3/{project_id}/instances/{instance_id}/proxy
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
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: +
|
+
nodes_read_weight + |
+No + |
+Array of NodesWeight objects + |
+Read weight of the node. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
job_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
+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
+ } ]
+}
+Status code: 201
+Success.
+{
+ "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to disable database proxy. Before using this API:
+DELETE /v3/{project_id}/instances/{instance_id}/proxy
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
job_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
DELETE https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/proxy
+{
+ "proxy_ids" : [ "151c14381ac14ecfb9703a745b992677po01" ]
+}
+Status code: 200
+Success.
+{
+ "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to delete concurrency control rules of SQL statements. Before calling this API:
+DELETE /v3/{project_id}/instances/{instance_id}/sql-filter/rules
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
sql_filter_rules + |
+Yes + |
+Array of DeleteNodeSqlFilterRuleInfo objects + |
+Concurrency control rules of SQL statements for nodes. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
node_id + |
+Yes + |
+String + |
+Node ID. + |
+
rules + |
+Yes + |
+Array of DeleteNodeSqlFilterRule objects + |
+Concurrency control rules of SQL statements. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
job_id + |
+String + |
+ID of the task for deleting concurrency control rules of SQL statements. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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" ]
+ } ]
+ } ]
+}
+Status code: 200
+Success.
+{
+ "job_id" : "aef6a470-fb63-4d5b-b644-12ead7e019b3"
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to add database proxy nodes.
+POST /v3/{project_id}/instances/{instance_id}/proxy/enlarge
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
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. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
job_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
+POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/61a4ea66210545909d74a05c27a7179ein07/proxy/enlarge
+{
+ "node_num" : 2,
+ "proxy_id" : "151c14381ac14ecfb9703a745b992677po01"
+}
+Status code: 201
+Success.
+{
+ "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to query database error logs. Before using this API:
+GET /v3/{project_id}/instances/{instance_id}/errorlog?start_date={start_date}&end_date={end_date}&node_id={node_id}
+ +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. + |
+
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: +
|
+
node_id + |
+Yes + |
+String + |
+Node ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_log_list + |
+Array of MysqlErrorLogList objects + |
+Error log details. + |
+
total_record + |
+Integer + |
+Total number of records. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
node_id + |
+String + |
+Node ID. + |
+
time + |
+String + |
+Time in the UTC format. + |
+
level + |
+String + |
+Log level. +
|
+
content + |
+String + |
+Error log content. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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+
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
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to query database slow logs. Before using this API:
+GET /v3/{project_id}/instances/{instance_id}/slowlog?start_date={start_date}&end_date={end_date}&node_id={node_id}
+ +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. + |
+
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: +
|
+
node_id + |
+Yes + |
+String + |
+Node ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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+
Status code: 200
+{
+ "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
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to query tags of a specified instance. Before calling this API:
+GET /v3/{project_id}/instances/{instance_id}/tags
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
total_count + |
+Integer + |
+Total number of records. + |
+
tags + |
+Array of ResourceTagItem objects + |
+Tag list. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
value + |
+String + |
+Tag value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Querying resource tags
+GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/tags?offset=0&limit=2+
Status code: 200
+Success.
+{
+ "total_count" : 2,
+ "tags" : [ {
+ "key" : "key1",
+ "value" : "value1"
+ }, {
+ "key" : "key2",
+ "value" : "value2"
+ } ]
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to query all tags of instances in a specified project. Before using this API:
+GET /v3/{project_id}/tags
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
total_count + |
+Integer + |
+Total number of records. + |
+
tags + |
+Array of ProjectTagItem objects + |
+Tag list. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
values + |
+Array of strings + |
+Tag value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Querying tags in a specified project
+GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/tags?offset=0&limit=2+
Status code: 200
+Success.
+{
+ "total_count" : 2,
+ "tags" : [ {
+ "key" : "key1",
+ "values" : [ "value1", "value2" ]
+ }, {
+ "key" : "key2",
+ "values" : [ "value3", "value4" ]
+ } ]
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to assign read weights for nodes. Being using this API:
+PUT /v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/weight
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
job_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
+PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/e73893ef73754465a8bd2e0857bbf13ein07/proxy/e87088f0b6a345e79db19d57c41fde15po01/weight
+{
+ "master_weight" : 100
+}
+Status code: 200
+Success.
+{
+ "job_id" : "04efe8e2-9255-44ae-a98b-d87c11411890"
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to configure concurrency control rules of SQL statements. Before calling this API:
+PUT /v3/{project_id}/instances/{instance_id}/sql-filter/rules
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
sql_filter_rules + |
+Yes + |
+Array of NodeSqlFilterRuleInfo objects + |
+Concurrency control rules of SQL statements for nodes. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
sql_type + |
+Yes + |
+String + |
+SQL statement type. +Valid value: +
|
+
patterns + |
+Yes + |
+Array of NodeSqlFilterRulePattern objects + |
+Concurrency control rules of SQL statements. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
job_id + |
+String + |
+ID of the task for configuring concurrency control rules of SQL statements. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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
+ } ]
+ } ]
+ } ]
+}
+Status code: 200
+Success.
+{
+ "job_id" : "aef6a470-fb63-4d5b-b644-12ead7e019b3"
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to obtain task information from the task center. Before calling this API:
+GET /v3/{project_id}/jobs?id={id}
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
id + |
+Yes + |
+String + |
+Task ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
job + |
+GetJobInfoDetail object + |
+Task information. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Task ID. + |
+
name + |
+String + |
+Task name. + |
+
status + |
+String + |
+Task execution status. +Value: +
Valid value: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+DB instance ID. + |
+
name + |
+String + |
+DB instance name. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/jobs?id=a9767ede-fe0f-4888-9003-e843a4c90514+
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" ]
+ }
+ }
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to obtain the resource quotas of a specified tenant. Before using this API:
+GET /v3/{project_id}/project-quotas
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
type + |
+No + |
+String + |
+Resource type used to filter quotas. Its value can be instance. +Valid value: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
quotas + |
+project-quotas object + |
+Tenant instance quota information. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
resources + |
+Array of resource objects + |
+Resource list objects. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
type + |
+String + |
+Quota of a specified type. +
Valid value: +
|
+
used + |
+Integer + |
+Number of created resources. + |
+
quota + |
+Integer + |
+Maximum resource quota. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/project-quotas?type=instance+
Status code: 200
+Success.
+{
+ "quotas" : {
+ "resources" : [ {
+ "type" : "instance,",
+ "used" : "4,",
+ "quota" : 50
+ } ]
+ }
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to query database proxy specifications. Before using this API:
+GET /v3/{project_id}/instances/{instance_id}/proxy/flavors
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
proxy_flavor_groups + |
+Array of MysqlProxyFlavorGroups objects + |
+Specification group information. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
group_type + |
+String + |
+Specification group type. It can be x86. + |
+
proxy_flavors + |
+Array of MysqlProxyComputeFlavor objects + |
+Proxy specifications. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/proxy/flavors+
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"
+ }
+ }
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to query database proxy instances. Before calling this API:
+GET /v3/{project_id}/instances/{instance_id}/proxies
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
proxy_list + |
+Array of MysqlShowProxyResponseV3 objects + |
+Proxy instances. + |
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
pool_id + |
+String + |
+Proxy instance ID. + |
+
status + |
+String + |
+Operating status of the proxy instance. It can be either of the following: +
|
+
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. + |
+
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). + |
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+AZ code. + |
+
description + |
+String + |
+AZ description. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/proxies?offset=0&limit=10+
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"
+ }]
+ }
+ } ]
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to query the collection period of Monitoring by Seconds. Before calling this API:
+GET /v3/{project_id}/instances/{instance_id}/monitor-policy
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +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. +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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+
Status code: 200
+Success.
+{
+ "monitor_switch" : true,
+ "period" : "1"
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to query concurrency control rules of SQL statements. Before calling this API:
+GET /v3/{project_id}/instances/{instance_id}/sql-filter/rules?node_id={node_id}
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
node_id + |
+String + |
+Node ID. + |
+
sql_filter_rules + |
+Array of SqlFilterRule objects + |
+Concurrency control rules of SQL statements. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
sql_type + |
+String + |
+SQL statement type. +Valid value: +
|
+
patterns + |
+Array of SqlFilterRulePattern objects + |
+Concurrency control rules of SQL statements. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
pattern + |
+String + |
+A concurrency control rule of SQL statements. + |
+
max_concurrency + |
+Integer + |
+Maximum number of concurrent SQL statements. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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+
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
+ } ]
+ } ]
+}
+For details, see Status Codes.
+For details, see Error Codes.
+This API is used to enable and disable Monitoring by Seconds, and change its collection period. Before calling this API, you can:
+PUT /v3/{project_id}/instances/{instance_id}/monitor-policy
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token. + |
+
X-Language + |
+No + |
+String + |
+Language. + |
+
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: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
job_id + |
+String + |
+Taskflow ID for modifying Monitoring by Seconds + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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
+}
+Status code: 200
+Success.
+{
+ "job_id" : "6b7dd5d4-4590-4f14-b164-a8737ce071d5"
+}
+For details, see Status Codes.
+For details, see Error Codes.
+Released On +
-
Parent topic: Calling APIs
+Parent topic: API Usage Guidelines
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 URIA 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 BodyThis 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
-
Parent topic: Calling APIs
+Parent topic: API Usage Guidelines
Response HeaderSimilar 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. - +(Optional) Response BodyThis 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 @@
-
Parent topic: Calling APIs
+Parent topic: API Usage Guidelines
API+APIs (Recommended)Querying Version Information About a DB Engine-FunctionThis API is used to query the DB version information of a specified DB engine. -
FunctionThis API is used to query the version information of a specified DB engine. Before calling this API: +
URI
|
|---|