This topic describes how to view cluster-level tenant backup tasks by using obshell-sdk-python.
Note
We recommend that you first read Get started with obshell-sdk-python to learn how to use obshell-sdk-python.
Considerations
Make sure that obshell is running.
The node corresponding to the client in the request must be in an initialized cluster.
Sample code
The following sample code shows how to synchronize the task:
from obshell import ClientSet
from obshell.auth import PasswordAuth
# Create a client instance, where the IP address is '10.10.10.1' and the port is 2886.
client = ClientSet("10.10.10.1", 2886, PassswordAuth("****"))
client.v1.get_cluster_backup_overview()
References
For more information about the API for getting all resource specifications, see Get all resource specifications.
For more information about how to request API methods by using obshell-sdk-go, see Get all resource specifications.