This topic describes how to use obshell-sdk-python to modify the status of cluster-level backups.
Note
We recommend that you first go to obshell-sdk-python Quick Start to learn how to use obshell-sdk-python.
Considerations
Make sure that obshell is running.
The node corresponding to the client must be in an initialized cluster.
Sample code
The following example shows how to synchronize a task:
from obshell import ClientSet
from obshell.auth import PasswordAuth
# Create a client instance, specifying the node address as '10.10.10.1' and the port as 2886.
client = ClientSet("10.10.10.1", 2886, PassswordAuth("****"))
client.v1.patch_cluster_backup_status("canceled")
References
For more information about the API for modifying the status of cluster-level backups, see Modify the status of cluster-level backups.
For more information about how to use obshell-sdk-go to request API methods, see Modify the status of cluster-level backups.