How Do I Query Snapshot Information of a Cluster in CSS?
Prerequisites
The snapshot function has been enabled for the cluster and snapshot information has been configured.
Querying a Snapshot
- Log in to the CSS management console, and click Clusters in the navigation pane. On the displayed Clusters page, locate the target cluster and click Access Kibana in the Operation column.
- In the left navigation pane of the Kibana page, click Dev Tools. Click Get to work to switch to the Console page.
Enter the code as required in the left pane, click to execute the command, and view the result in the right pane.
- Run the GET _snapshot/_all command to query information about all repositories.
Figure 1 Querying information about all repositories
- bucket: OBS bucket name
- base_path: Path. It consists of a fixed prefix and a cluster name.
- endpoint: OBS domain name
- region: your region
- Query snapshot information.
- Run the GET _snapshot/repo_auto/_all command to query the list of all the snapshots in the current repository.
Figure 2 Snapshot information
- snapshot: snapshot name
- state: snapshot status
- start_time, start_time_in_millis, end_time, and end_time_in_millis: snapshot time
- shards: the number of shards. total indicates the total number of shards. failed indicates the number of failures. successful indicates the number of successes.
- Run the GET _snapshot/repo_auto/$snapshot-xxx command to query information about a specified snapshot.
- Replace $snapshot-xxx with the actual snapshot name.
- repo_auto is followed by a snapshot name or wildcard characters.
- Run the GET _snapshot/repo_auto/_all command to query the list of all the snapshots in the current repository.
- (Optional) Delete information about a specified snapshot.
To delete a specific snapshot, run the DELETE _snapshot/ repo_auto/$snapshot-xxx command.
Replace $snapshot-xxx with the actual snapshot name.
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