singlestoredb.management.workspace.WorkspaceGroup¶
- class singlestoredb.management.workspace.WorkspaceGroup(name: str, id: str, created_at: str | datetime, region: Region | None, firewall_ranges: List[str], terminated_at: str | datetime | None, allow_all_traffic: bool | None)¶
SingleStoreDB workspace group definition.
This object is not instantiated directly. It is used in the results of API calls on the
WorkspaceManager. Workspace groups are created usingWorkspaceManager.create_workspace_group(), or existing workspace groups are accessed by eitherWorkspaceManager.workspace_groupsor by callingWorkspaceManager.get_workspace_group().See also
WorkspaceManager.create_workspace_group(),WorkspaceManager.get_workspace_group(),WorkspaceManager.workspace_groups- __init__(name: str, id: str, created_at: str | datetime, region: Region | None, firewall_ranges: List[str], terminated_at: str | datetime | None, allow_all_traffic: bool | None)¶
Methods
__init__(name, id, created_at, region, ...)create_workspace(name[, size, auto_suspend, ...])Create a new workspace.
from_dict(obj, manager)Construct a WorkspaceGroup from a dictionary of values.
refresh()Update the object to the current state.
terminate([force, wait_on_terminated, ...])Terminate the workspace group.
update([name, firewall_ranges, ...])Update the workspace group definition.
Attributes
organizationStage manager.
stagesStage manager.
Return a list of available workspaces.
nameName of the workspace group
idUnique ID of the workspace group
created_atTimestamp of when the workspace group was created
regionRegion of the workspace group (see
Region)firewall_rangesList of allowed incoming IP addresses / ranges
terminated_atTimestamp of when the workspace group was terminated
allow_all_trafficShould all traffic be allowed?