1. Packages
  2. MongoDB Atlas
  3. API Docs
  4. getStreamInstances
MongoDB Atlas v3.16.2 published on Friday, Jun 21, 2024 by Pulumi

mongodbatlas.getStreamInstances

Explore with Pulumi AI

mongodbatlas logo
MongoDB Atlas v3.16.2 published on Friday, Jun 21, 2024 by Pulumi

    mongodbatlas.getStreamInstances describes the stream instances defined in a project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    const test = mongodbatlas.getStreamInstances({
        projectId: "<PROJECT_ID>",
    });
    
    import pulumi
    import pulumi_mongodbatlas as mongodbatlas
    
    test = mongodbatlas.get_stream_instances(project_id="<PROJECT_ID>")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mongodbatlas.LookupStreamInstances(ctx, &mongodbatlas.LookupStreamInstancesArgs{
    			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.GetStreamInstances.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.GetStreamInstancesArgs;
    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.getStreamInstances(GetStreamInstancesArgs.builder()
                .projectId("<PROJECT_ID>")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: mongodbatlas:getStreamInstances
          Arguments:
            projectId: <PROJECT_ID>
    

    Using getStreamInstances

    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 getStreamInstances(args: GetStreamInstancesArgs, opts?: InvokeOptions): Promise<GetStreamInstancesResult>
    function getStreamInstancesOutput(args: GetStreamInstancesOutputArgs, opts?: InvokeOptions): Output<GetStreamInstancesResult>
    def get_stream_instances(items_per_page: Optional[int] = None,
                             page_num: Optional[int] = None,
                             project_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetStreamInstancesResult
    def get_stream_instances_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[GetStreamInstancesResult]
    func LookupStreamInstances(ctx *Context, args *LookupStreamInstancesArgs, opts ...InvokeOption) (*LookupStreamInstancesResult, error)
    func LookupStreamInstancesOutput(ctx *Context, args *LookupStreamInstancesOutputArgs, opts ...InvokeOption) LookupStreamInstancesResultOutput

    > Note: This function is named LookupStreamInstances in the Go SDK.

    public static class GetStreamInstances 
    {
        public static Task<GetStreamInstancesResult> InvokeAsync(GetStreamInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetStreamInstancesResult> Invoke(GetStreamInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStreamInstancesResult> getStreamInstances(GetStreamInstancesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: mongodbatlas:index/getStreamInstances:getStreamInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    ItemsPerPage int
    Number of items that the response returns per page, up to a maximum of 500. Defaults to 100.
    PageNum int
    Number of the page that displays the current set of the total objects that the response returns. Defaults to 1.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    ItemsPerPage int
    Number of items that the response returns per page, up to a maximum of 500. Defaults to 100.
    PageNum int
    Number of the page that displays the current set of the total objects that the response returns. Defaults to 1.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    itemsPerPage Integer
    Number of items that the response returns per page, up to a maximum of 500. Defaults to 100.
    pageNum Integer
    Number of the page that displays the current set of the total objects that the response returns. Defaults to 1.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project.
    itemsPerPage number
    Number of items that the response returns per page, up to a maximum of 500. Defaults to 100.
    pageNum 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_page int
    Number of items that the response returns per page, up to a maximum of 500. Defaults to 100.
    page_num int
    Number of the page that displays the current set of the total objects that the response returns. Defaults to 1.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    itemsPerPage Number
    Number of items that the response returns per page, up to a maximum of 500. Defaults to 100.
    pageNum Number
    Number of the page that displays the current set of the total objects that the response returns. Defaults to 1.

    getStreamInstances Result

    The following output properties are available:

    Id string
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    Results List<GetStreamInstancesResult>
    A list where each element contains a Stream Instance.
    TotalCount 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.
    ItemsPerPage int
    PageNum int
    Id string
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    Results []GetStreamInstancesResult
    A list where each element contains a Stream Instance.
    TotalCount 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.
    ItemsPerPage int
    PageNum int
    id String
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    results List<GetStreamInstancesResult>
    A list where each element contains a Stream Instance.
    totalCount 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.
    itemsPerPage Integer
    pageNum Integer
    id string
    projectId string
    Unique 24-hexadecimal digit string that identifies your project.
    results GetStreamInstancesResult[]
    A list where each element contains a Stream Instance.
    totalCount 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.
    itemsPerPage number
    pageNum number
    id str
    project_id str
    Unique 24-hexadecimal digit string that identifies your project.
    results Sequence[GetStreamInstancesResult]
    A list where each element contains a Stream Instance.
    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_page int
    page_num int
    id String
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    results List<Property Map>
    A list where each element contains a Stream Instance.
    totalCount 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.
    itemsPerPage Number
    pageNum Number

    Supporting Types

    GetStreamInstancesResult

    DataProcessRegion GetStreamInstancesResultDataProcessRegion
    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 instance.
    Id string
    InstanceName string
    Human-readable label that identifies the stream instance.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    StreamConfig GetStreamInstancesResultStreamConfig
    Defines the configuration options for an Atlas Stream Processing Instance. See stream config
    DataProcessRegion GetStreamInstancesResultDataProcessRegion
    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 instance.
    Id string
    InstanceName string
    Human-readable label that identifies the stream instance.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    StreamConfig GetStreamInstancesResultStreamConfig
    Defines the configuration options for an Atlas Stream Processing Instance. See stream config
    dataProcessRegion GetStreamInstancesResultDataProcessRegion
    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 instance.
    id String
    instanceName String
    Human-readable label that identifies the stream instance.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    streamConfig GetStreamInstancesResultStreamConfig
    Defines the configuration options for an Atlas Stream Processing Instance. See stream config
    dataProcessRegion GetStreamInstancesResultDataProcessRegion
    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 instance.
    id string
    instanceName string
    Human-readable label that identifies the stream instance.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project.
    streamConfig GetStreamInstancesResultStreamConfig
    Defines the configuration options for an Atlas Stream Processing Instance. See stream config
    data_process_region GetStreamInstancesResultDataProcessRegion
    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 instance.
    id str
    instance_name str
    Human-readable label that identifies the stream instance.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project.
    stream_config GetStreamInstancesResultStreamConfig
    Defines the configuration options for an Atlas Stream Processing Instance. See stream config
    dataProcessRegion Property Map
    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 instance.
    id String
    instanceName String
    Human-readable label that identifies the stream instance.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    streamConfig Property Map
    Defines the configuration options for an Atlas Stream Processing Instance. See stream config

    GetStreamInstancesResultDataProcessRegion

    CloudProvider 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.
    CloudProvider 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.
    cloudProvider 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.
    cloudProvider 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.
    cloudProvider 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.

    GetStreamInstancesResultStreamConfig

    Tier string
    Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
    Tier string
    Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
    tier String
    Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
    tier string
    Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
    tier str
    Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
    tier String
    Selected tier for the Stream Instance. 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 mongodbatlas Terraform Provider.
    mongodbatlas logo
    MongoDB Atlas v3.16.2 published on Friday, Jun 21, 2024 by Pulumi