Obtaining the Cluster ID
A cluster ID (cluster_id) is required for some URLs when an API is called. To obtain the cluster ID, perform the following steps:
Obtaining Cluster ID Using APIs
You can obtain the cluster ID by calling the API described in Querying the Cluster List.
The API used to obtain a cluster ID is GET https://{Endpoint}/v1.0/{project_id}/clusters. Endpoint indicates the IAM endpoint, which can be obtained from the Regions and Endpoints . For details about Project ID, see Obtaining Project ID. For details about interface authentication, see Authentication.
The following is an example response. The value of id under the specified clusters is the cluster ID.
{ "clusters" : [ { "id" : "7d85f602-a948-4a30-afd4-e84f47471c15", "name" : "dws-1", "status" : "AVAILABLE", "version" : "1.2.0", "updated" : "2016-02-10T14:28:14Z", "created" : "2016-02-10T14:26:14Z", "port" : 8000, "endpoints" : [ { "connect_info" : "dws-1.cn-north-4.myhuaweicloud.com", "jdbc_url" : "jdbc:postgresql://dws-1.cn-north-4.myhuaweicloud.com/<YOUR_DATABASE_name>" } ], "nodes" : [ { "id" : "acaf62a4-41b3-4106-bf6b-2f669d88291e", "status" : "200" }, { "id" : "d32de51e-4fcd-4e5a-a9dc-bb903abb494b", "status" : "200" }, { "id" : "d71a4a25-c9bc-4ffd-9f4a-e422aef327f9", "status" : "200" } ], "tags" : [ { "key" : "key1", "value" : "value1" }, { "key" : "key2", "value" : "value2" } ], "user_name" : "dbadmin", "number_of_node" : 3, "recent_event" : 6, "availability_zone" : "cn-north-4b", "enterprise_project_id" : "0", "node_type" : "dws.d1.xlarge.ultrahigh", "vpc_id" : "85b20d7e-9eb7-4b2a-98f3-3c8843ea3574", "subnet_id" : "374eca02-cfc4-4de7-8ab5-dbebf7d9a720", "public_ip" : { "public_bind_type" : "auto_assign", "eip_id" : "85b20d7e-9eb7-4b2a-98f3-3c8843ea3574" }, "public_endpoints" : [ { "public_connect_info" : "dws-1.cn-north-4.myhuaweicloud.com", "jdbc_url" : "jdbc:postgresql://dws-1.cn-north-4.myhuaweicloud.com/<YOUR_DATABASE_name>" } ], "action_progress" : { "SNAPSHOTTING" : "20%" }, "sub_status" : "READONLY", "task_status" : "SNAPSHOTTING", "security_group_id" : "dc3ec145-9029-4b39-b5a3-ace5a01f772b" } ] }
Obtaining Cluster ID from GaussDB(DWS) Console
- Log in to the GaussDB(DWS) console.
- In the navigation pane on the left, click Clusters.
- In the cluster list, find the target cluster and click the cluster name. The Cluster Information page is displayed.
- In the Basic Information area, view the cluster ID, as shown in the following figure.
Figure 1 Viewing the cluster ID
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