singlestoredb.management.workspace.WorkspaceGroup.create_workspace

WorkspaceGroup.create_workspace(name: str, size: str | None = None, auto_suspend: Dict[str, Any] | None = None, cache_config: float | None = None, enable_kai: bool | None = None, wait_on_active: bool = False, wait_interval: int = 10, wait_timeout: int = 600, auto_scale: Dict[str, Any] | None = None, scale_factor: float | None = None) → Workspace

Create a new workspace.

Parameters:
  • name (str) – Name of the workspace

  • size (str, optional) – Workspace size in workspace size notation (S-00, S-1, etc.)

  • auto_suspend (Dict[str, Any], optional) – Auto suspend settings for the workspace. If this field is not provided, no settings will be enabled.

  • cache_config (float, optional) – Specifies the multiplier for the persistent cache associated with the workspace. If specified, it enables the cache configuration multiplier. It can have one of the following values: 1, 2, or 4.

  • enable_kai (bool, optional) – Whether to create a SingleStore Kai-enabled workspace

  • wait_on_active (bool, optional) – Wait for the workspace to be active before returning

  • wait_timeout (int, optional) – Maximum number of seconds to wait before raising an exception if wait=True

  • wait_interval (int, optional) – Number of seconds between each polling interval

  • auto_scale (Dict[str, Any], optional) – Auto-scale settings for the workspace.

  • scale_factor (float, optional) – Scale factor for the workspace.

Return type:

Workspace