This topic describes how to obtain information about all resource specifications by using obshell-sdk-python.
Note
We recommend that you first view Get started with obshell-sdk-python to learn how to use obshell-sdk-python.
Considerations
Make sure that obshell is running.
The node that corresponds 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 with the node address '10.10.10.1' and port 2886.
client = ClientSet("10.10.10.1", 2886, PassswordAuth("****"))
unit_configs = client.v1.get_all_resource_unit_configs()
References
For more information about the API for obtaining information about 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.