1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Streaming
  5. getStream
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Streaming.getStream

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This data source provides details about a specific Stream resource in Oracle Cloud Infrastructure Streaming service.

    Gets detailed information about a stream, including the number of partitions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testStream = oci.Streaming.getStream({
        streamId: oci_streaming_stream.test_stream.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_stream = oci.Streaming.get_stream(stream_id=oci_streaming_stream["test_stream"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Streaming"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Streaming.GetStream(ctx, &streaming.GetStreamArgs{
    			StreamId: oci_streaming_stream.Test_stream.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testStream = Oci.Streaming.GetStream.Invoke(new()
        {
            StreamId = oci_streaming_stream.Test_stream.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Streaming.StreamingFunctions;
    import com.pulumi.oci.Streaming.inputs.GetStreamArgs;
    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 testStream = StreamingFunctions.getStream(GetStreamArgs.builder()
                .streamId(oci_streaming_stream.test_stream().id())
                .build());
    
        }
    }
    
    variables:
      testStream:
        fn::invoke:
          Function: oci:Streaming:getStream
          Arguments:
            streamId: ${oci_streaming_stream.test_stream.id}
    

    Using getStream

    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 getStream(args: GetStreamArgs, opts?: InvokeOptions): Promise<GetStreamResult>
    function getStreamOutput(args: GetStreamOutputArgs, opts?: InvokeOptions): Output<GetStreamResult>
    def get_stream(stream_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetStreamResult
    def get_stream_output(stream_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetStreamResult]
    func GetStream(ctx *Context, args *GetStreamArgs, opts ...InvokeOption) (*GetStreamResult, error)
    func GetStreamOutput(ctx *Context, args *GetStreamOutputArgs, opts ...InvokeOption) GetStreamResultOutput

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

    public static class GetStream 
    {
        public static Task<GetStreamResult> InvokeAsync(GetStreamArgs args, InvokeOptions? opts = null)
        public static Output<GetStreamResult> Invoke(GetStreamInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStreamResult> getStream(GetStreamArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Streaming/getStream:getStream
      arguments:
        # arguments dictionary

    The following arguments are supported:

    StreamId string
    The OCID of the stream.
    StreamId string
    The OCID of the stream.
    streamId String
    The OCID of the stream.
    streamId string
    The OCID of the stream.
    stream_id str
    The OCID of the stream.
    streamId String
    The OCID of the stream.

    getStream Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains the stream.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the stream.
    LifecycleStateDetails string
    Any additional details about the current state of the stream.
    MessagesEndpoint string
    The endpoint to use when creating the StreamClient to consume or publish messages in the stream. If the associated stream pool is private, the endpoint is also private and can only be accessed from inside the stream pool's associated subnet.
    Name string
    The name of the stream. Avoid entering confidential information. Example: TelemetryEvents
    Partitions int
    The number of partitions in the stream.
    RetentionInHours int
    The retention period of the stream, in hours. This property is read-only.
    State string
    The current state of the stream.
    StreamId string
    StreamPoolId string
    The OCID of the stream pool that contains the stream.
    TimeCreated string
    The date and time the stream was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    CompartmentId string
    The OCID of the compartment that contains the stream.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the stream.
    LifecycleStateDetails string
    Any additional details about the current state of the stream.
    MessagesEndpoint string
    The endpoint to use when creating the StreamClient to consume or publish messages in the stream. If the associated stream pool is private, the endpoint is also private and can only be accessed from inside the stream pool's associated subnet.
    Name string
    The name of the stream. Avoid entering confidential information. Example: TelemetryEvents
    Partitions int
    The number of partitions in the stream.
    RetentionInHours int
    The retention period of the stream, in hours. This property is read-only.
    State string
    The current state of the stream.
    StreamId string
    StreamPoolId string
    The OCID of the stream pool that contains the stream.
    TimeCreated string
    The date and time the stream was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    compartmentId String
    The OCID of the compartment that contains the stream.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the stream.
    lifecycleStateDetails String
    Any additional details about the current state of the stream.
    messagesEndpoint String
    The endpoint to use when creating the StreamClient to consume or publish messages in the stream. If the associated stream pool is private, the endpoint is also private and can only be accessed from inside the stream pool's associated subnet.
    name String
    The name of the stream. Avoid entering confidential information. Example: TelemetryEvents
    partitions Integer
    The number of partitions in the stream.
    retentionInHours Integer
    The retention period of the stream, in hours. This property is read-only.
    state String
    The current state of the stream.
    streamId String
    streamPoolId String
    The OCID of the stream pool that contains the stream.
    timeCreated String
    The date and time the stream was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    compartmentId string
    The OCID of the compartment that contains the stream.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the stream.
    lifecycleStateDetails string
    Any additional details about the current state of the stream.
    messagesEndpoint string
    The endpoint to use when creating the StreamClient to consume or publish messages in the stream. If the associated stream pool is private, the endpoint is also private and can only be accessed from inside the stream pool's associated subnet.
    name string
    The name of the stream. Avoid entering confidential information. Example: TelemetryEvents
    partitions number
    The number of partitions in the stream.
    retentionInHours number
    The retention period of the stream, in hours. This property is read-only.
    state string
    The current state of the stream.
    streamId string
    streamPoolId string
    The OCID of the stream pool that contains the stream.
    timeCreated string
    The date and time the stream was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    compartment_id str
    The OCID of the compartment that contains the stream.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the stream.
    lifecycle_state_details str
    Any additional details about the current state of the stream.
    messages_endpoint str
    The endpoint to use when creating the StreamClient to consume or publish messages in the stream. If the associated stream pool is private, the endpoint is also private and can only be accessed from inside the stream pool's associated subnet.
    name str
    The name of the stream. Avoid entering confidential information. Example: TelemetryEvents
    partitions int
    The number of partitions in the stream.
    retention_in_hours int
    The retention period of the stream, in hours. This property is read-only.
    state str
    The current state of the stream.
    stream_id str
    stream_pool_id str
    The OCID of the stream pool that contains the stream.
    time_created str
    The date and time the stream was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    compartmentId String
    The OCID of the compartment that contains the stream.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the stream.
    lifecycleStateDetails String
    Any additional details about the current state of the stream.
    messagesEndpoint String
    The endpoint to use when creating the StreamClient to consume or publish messages in the stream. If the associated stream pool is private, the endpoint is also private and can only be accessed from inside the stream pool's associated subnet.
    name String
    The name of the stream. Avoid entering confidential information. Example: TelemetryEvents
    partitions Number
    The number of partitions in the stream.
    retentionInHours Number
    The retention period of the stream, in hours. This property is read-only.
    state String
    The current state of the stream.
    streamId String
    streamPoolId String
    The OCID of the stream pool that contains the stream.
    timeCreated String
    The date and time the stream was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi