Docs Menu
Docs Home
/ /

sp.listWorkspaceDefaults() (mongosh method)

sp.listWorkspaceDefaults()

Returns a document containing the default and maximum tier configuration for the current Stream Processing Workspace. This information describes the tier sizing capabilities of your workspace.

This method is supported in Atlas Stream Processing Workspaces.

The sp.listWorkspaceDefaults() method has the following syntax:

sp.listWorkspaceDefaults()

sp.listWorkspaceDefaults() returns a document containing the following fields:

Field
Type
Description

defaultTierSize

string

The default tier size assigned to stream processors in this workspace. Stream processors inherit this tier unless you explicitly specify a different tier when creating or starting them.

maxTierSize

string

The maximum tier size available for stream processors in this workspace. This represents the largest tier you can assign to any stream processor.

sp.listWorkspaceDefaults() returns a single document describing the default and maximum tier configuration for the current stream processing workspace to STDOUT.

Running sp.listWorkspaceDefaults() requires the atlasAdmin role.

The following example shows an expected response from sp.listWorkspaceDefaults():

sp.listWorkspaceDefaults()
1{
2 defaultTierSize: "T2",
3 maxTierSize: "T8"
4}

Back

sp.listStreamProcessors

On this page