List workspaces associated with the user. Optional filters include clusterId, fqn, and workspace name. Pagination is available based on query parameters.
from truefoundry import TrueFoundryclient = TrueFoundry( api_key="YOUR_API_KEY", base_url="https://yourhost.com/path/to/api",)client.list( limit=10, offset=10, cluster_id="cluster_id_value", name="value", fqn="value",)# Iterate through resultsfor item in response: print(item.name)# Or paginate page by pagefor page in response.iter_pages(): for item in page: print(item.name)
create_or_update
Creates a new workspace or updates an existing one based on the provided manifest.