mongodbatlas.getStreamWorkspaces describes the stream workspaces defined in a project.
NOTE: Use this data source for new configurations instead of
mongodbatlas.getStreamInstances.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = mongodbatlas.getStreamWorkspaces({
projectId: "<PROJECT_ID>",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.get_stream_workspaces(project_id="<PROJECT_ID>")
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.LookupStreamWorkspaces(ctx, &mongodbatlas.LookupStreamWorkspacesArgs{
ProjectId: "<PROJECT_ID>",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var test = Mongodbatlas.GetStreamWorkspaces.Invoke(new()
{
ProjectId = "<PROJECT_ID>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetStreamWorkspacesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = MongodbatlasFunctions.getStreamWorkspaces(GetStreamWorkspacesArgs.builder()
.projectId("<PROJECT_ID>")
.build());
}
}
variables:
test:
fn::invoke:
function: mongodbatlas:getStreamWorkspaces
arguments:
projectId: <PROJECT_ID>
Migration from<span pulumi-lang-nodejs=" streamInstances
" pulumi-lang-dotnet=" StreamInstances
" pulumi-lang-go=" streamInstances
" pulumi-lang-python=" stream_instances
" pulumi-lang-yaml=" streamInstances
" pulumi-lang-java=" streamInstances
“> stream_instances
If you’re migrating from the deprecated mongodbatlas.getStreamInstances data source, see the Migration Guide: Stream Instance to Stream Workspace for step-by-step instructions and examples.
Using getStreamWorkspaces
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getStreamWorkspaces(args: GetStreamWorkspacesArgs, opts?: InvokeOptions): Promise<GetStreamWorkspacesResult>
function getStreamWorkspacesOutput(args: GetStreamWorkspacesOutputArgs, opts?: InvokeOptions): Output<GetStreamWorkspacesResult>def get_stream_workspaces(items_per_page: Optional[int] = None,
page_num: Optional[int] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStreamWorkspacesResult
def get_stream_workspaces_output(items_per_page: Optional[pulumi.Input[int]] = None,
page_num: Optional[pulumi.Input[int]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStreamWorkspacesResult]func LookupStreamWorkspaces(ctx *Context, args *LookupStreamWorkspacesArgs, opts ...InvokeOption) (*LookupStreamWorkspacesResult, error)
func LookupStreamWorkspacesOutput(ctx *Context, args *LookupStreamWorkspacesOutputArgs, opts ...InvokeOption) LookupStreamWorkspacesResultOutput> Note: This function is named LookupStreamWorkspaces in the Go SDK.
public static class GetStreamWorkspaces
{
public static Task<GetStreamWorkspacesResult> InvokeAsync(GetStreamWorkspacesArgs args, InvokeOptions? opts = null)
public static Output<GetStreamWorkspacesResult> Invoke(GetStreamWorkspacesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStreamWorkspacesResult> getStreamWorkspaces(GetStreamWorkspacesArgs args, InvokeOptions options)
public static Output<GetStreamWorkspacesResult> getStreamWorkspaces(GetStreamWorkspacesArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getStreamWorkspaces:getStreamWorkspaces
arguments:
# arguments dictionaryThe following arguments are supported:
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Items
Per intPage - Number of items that the response returns per page, up to a maximum of
500. Defaults to100. - Page
Num int - Number of the page that displays the current set of the total objects that the response returns. Defaults to
1.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Items
Per intPage - Number of items that the response returns per page, up to a maximum of
500. Defaults to100. - Page
Num int - Number of the page that displays the current set of the total objects that the response returns. Defaults to
1.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- items
Per IntegerPage - Number of items that the response returns per page, up to a maximum of
500. Defaults to100. - page
Num Integer - Number of the page that displays the current set of the total objects that the response returns. Defaults to
1.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- items
Per numberPage - Number of items that the response returns per page, up to a maximum of
500. Defaults to100. - page
Num number - Number of the page that displays the current set of the total objects that the response returns. Defaults to
1.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- items_
per_ intpage - Number of items that the response returns per page, up to a maximum of
500. Defaults to100. - page_
num int - Number of the page that displays the current set of the total objects that the response returns. Defaults to
1.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- items
Per NumberPage - Number of items that the response returns per page, up to a maximum of
500. Defaults to100. - page
Num Number - Number of the page that displays the current set of the total objects that the response returns. Defaults to
1.
getStreamWorkspaces Result
The following output properties are available:
- Id string
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Results
List<Get
Stream Workspaces Result> - A list where each element contains a Stream Workspace.
- Total
Count int - Count of the total number of items in the result set. The count might be greater than the number of objects in the results array if the entire result set is paginated.
- Items
Per intPage - Page
Num int
- Id string
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Results
[]Get
Stream Workspaces Result - A list where each element contains a Stream Workspace.
- Total
Count int - Count of the total number of items in the result set. The count might be greater than the number of objects in the results array if the entire result set is paginated.
- Items
Per intPage - Page
Num int
- id String
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- results
List<Get
Stream Workspaces Result> - A list where each element contains a Stream Workspace.
- total
Count Integer - Count of the total number of items in the result set. The count might be greater than the number of objects in the results array if the entire result set is paginated.
- items
Per IntegerPage - page
Num Integer
- id string
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- results
Get
Stream Workspaces Result[] - A list where each element contains a Stream Workspace.
- total
Count number - Count of the total number of items in the result set. The count might be greater than the number of objects in the results array if the entire result set is paginated.
- items
Per numberPage - page
Num number
- id str
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- results
Sequence[Get
Stream Workspaces Result] - A list where each element contains a Stream Workspace.
- total_
count int - Count of the total number of items in the result set. The count might be greater than the number of objects in the results array if the entire result set is paginated.
- items_
per_ intpage - page_
num int
- id String
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- results List<Property Map>
- A list where each element contains a Stream Workspace.
- total
Count Number - Count of the total number of items in the result set. The count might be greater than the number of objects in the results array if the entire result set is paginated.
- items
Per NumberPage - page
Num Number
Supporting Types
GetStreamWorkspacesResult
- Data
Process GetRegion Stream Workspaces Result Data Process Region - Defines the cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- Hostnames List<string>
- List that contains the hostnames assigned to the stream workspace.
- Id string
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Stream
Config GetStream Workspaces Result Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- Workspace
Name string - Label that identifies the stream workspace.
- Data
Process GetRegion Stream Workspaces Result Data Process Region - Defines the cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- Hostnames []string
- List that contains the hostnames assigned to the stream workspace.
- Id string
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Stream
Config GetStream Workspaces Result Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- Workspace
Name string - Label that identifies the stream workspace.
- data
Process GetRegion Stream Workspaces Result Data Process Region - Defines the cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- hostnames List<String>
- List that contains the hostnames assigned to the stream workspace.
- id String
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config GetStream Workspaces Result Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- workspace
Name String - Label that identifies the stream workspace.
- data
Process GetRegion Stream Workspaces Result Data Process Region - Defines the cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- hostnames string[]
- List that contains the hostnames assigned to the stream workspace.
- id string
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config GetStream Workspaces Result Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- workspace
Name string - Label that identifies the stream workspace.
- data_
process_ Getregion Stream Workspaces Result Data Process Region - Defines the cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- hostnames Sequence[str]
- List that contains the hostnames assigned to the stream workspace.
- id str
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- stream_
config GetStream Workspaces Result Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- workspace_
name str - Label that identifies the stream workspace.
- data
Process Property MapRegion - Defines the cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- hostnames List<String>
- List that contains the hostnames assigned to the stream workspace.
- id String
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config Property Map - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- workspace
Name String - Label that identifies the stream workspace.
GetStreamWorkspacesResultDataProcessRegion
- Cloud
Provider string - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- Region string
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- Cloud
Provider string - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- Region string
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- cloud
Provider String - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- region String
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- cloud
Provider string - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- region string
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- cloud_
provider str - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- region str
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- cloud
Provider String - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- region String
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
GetStreamWorkspacesResultStreamConfig
- Max
Tier stringSize - Tier string
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- Max
Tier stringSize - Tier string
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- max
Tier StringSize - tier String
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- max
Tier stringSize - tier string
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- max_
tier_ strsize - tier str
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- max
Tier StringSize - tier String
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
