Querying the Schema Information of the Table to Be Redistributed
Function
This API is used to query the schema information of the table to be redistributed.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/clusters/{cluster_id}/redistribution/schemas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition Project ID. To obtain the value, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
cluster_id |
Yes |
String |
Definition Cluster ID. For details about how to obtain the value, see Obtaining the Cluster ID. Constraints N/A Range N/A Default Value N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
db_name |
Yes |
String |
Definition Pagination offset. Constraints N/A Range ^[a-zA-Z0-9\u4e00-\u9fa5_.+= :@!#-]{0,255}$ Default Value null |
limit |
No |
Integer |
Definition Number of records on a page. Constraints N/A Range Greater than or equal to 1 Default Value 10 |
offset |
No |
Integer |
Definition Page offset, which starts from 0 (page number minus 1). Constraints N/A Range Greater than or equal to 0 Default Value 0 |
schema_name |
No |
String |
Definition Schema name. Constraints N/A Range ^[a-zA-Z0-9\u4e00-\u9fa5_.+= ,:@!#-]{0,2048}$ Default Value null |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Definition Error code. Range If the request is normal, the value is DWS.0000. |
error_msg |
String |
Definition Error message. Range N/A |
schemas |
Array of RedisSchema objects |
Definition List of schemas to be redistributed. Range N/A |
count |
Integer |
Definition Total number of records. Range N/A |
Example Requests
Query the schema of the table to be redistributed in the GaussDB database.
GET https://{Endpoint}/v2/0536cdee2200d5912f7cc00b877980f1/clusters/bcdfb00c-a5e3-4896-83c7-3c397ed99f28/redistribution/schemas?limit=10&offset=0&db_name=gaussdb
Example Responses
Status code: 200
Operation succeeded.
{ "error_code" : "DWS.0000", "error_msg" : "Request processed.", "schemas" : [ { "schema_name" : "scheduler", "redis_order" : 1024 } ], "count" : 1 }
Status Codes
Status Code |
Description |
---|---|
200 |
Operation succeeded. |
400 |
Request error. |
401 |
Authentication failed. |
403 |
You do not have required permissions. |
404 |
No resources found. |
500 |
Internal server error. |
503 |
Service unavailable. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot