1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AiVision
  5. getStreamSource
Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi

oci.AiVision.getStreamSource

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi

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

    Get a streamSource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testStreamSource = oci.AiVision.getStreamSource({
        streamSourceId: testStreamSourceOciAiVisionStreamSource.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_stream_source = oci.AiVision.get_stream_source(stream_source_id=test_stream_source_oci_ai_vision_stream_source["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/aivision"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aivision.GetStreamSource(ctx, &aivision.GetStreamSourceArgs{
    			StreamSourceId: testStreamSourceOciAiVisionStreamSource.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 testStreamSource = Oci.AiVision.GetStreamSource.Invoke(new()
        {
            StreamSourceId = testStreamSourceOciAiVisionStreamSource.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.AiVision.AiVisionFunctions;
    import com.pulumi.oci.AiVision.inputs.GetStreamSourceArgs;
    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 testStreamSource = AiVisionFunctions.getStreamSource(GetStreamSourceArgs.builder()
                .streamSourceId(testStreamSourceOciAiVisionStreamSource.id())
                .build());
    
        }
    }
    
    variables:
      testStreamSource:
        fn::invoke:
          function: oci:AiVision:getStreamSource
          arguments:
            streamSourceId: ${testStreamSourceOciAiVisionStreamSource.id}
    

    Using getStreamSource

    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 getStreamSource(args: GetStreamSourceArgs, opts?: InvokeOptions): Promise<GetStreamSourceResult>
    function getStreamSourceOutput(args: GetStreamSourceOutputArgs, opts?: InvokeOptions): Output<GetStreamSourceResult>
    def get_stream_source(stream_source_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetStreamSourceResult
    def get_stream_source_output(stream_source_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetStreamSourceResult]
    func LookupStreamSource(ctx *Context, args *LookupStreamSourceArgs, opts ...InvokeOption) (*LookupStreamSourceResult, error)
    func LookupStreamSourceOutput(ctx *Context, args *LookupStreamSourceOutputArgs, opts ...InvokeOption) LookupStreamSourceResultOutput

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

    public static class GetStreamSource 
    {
        public static Task<GetStreamSourceResult> InvokeAsync(GetStreamSourceArgs args, InvokeOptions? opts = null)
        public static Output<GetStreamSourceResult> Invoke(GetStreamSourceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStreamSourceResult> getStreamSource(GetStreamSourceArgs args, InvokeOptions options)
    public static Output<GetStreamSourceResult> getStreamSource(GetStreamSourceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:AiVision/getStreamSource:getStreamSource
      arguments:
        # arguments dictionary

    The following arguments are supported:

    StreamSourceId string
    StreamSource Id.
    StreamSourceId string
    StreamSource Id.
    streamSourceId String
    StreamSource Id.
    streamSourceId string
    StreamSource Id.
    stream_source_id str
    StreamSource Id.
    streamSourceId String
    StreamSource Id.

    getStreamSource Result

    The following output properties are available:

    CompartmentId string
    OCID of the compartm.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: {"foo-namespace": {"bar-key": "value"}}
    DisplayName string
    display name.
    FreeformTags Dictionary<string, string>
    A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: {"bar-key": "value"}
    Id string
    OCID of the streamSource.
    State string
    The current state of the streamSource.
    StreamSourceDetails List<GetStreamSourceStreamSourceDetail>
    Details about a stream source
    StreamSourceId string
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. For example: {"orcl-cloud": {"free-tier-retained": "true"}}
    TimeCreated string
    When the streamSource was created, as an RFC3339 datetime string.
    TimeUpdated string
    When the streamSource was updated, as an RFC3339 datetime string.
    CompartmentId string
    OCID of the compartm.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: {"foo-namespace": {"bar-key": "value"}}
    DisplayName string
    display name.
    FreeformTags map[string]string
    A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: {"bar-key": "value"}
    Id string
    OCID of the streamSource.
    State string
    The current state of the streamSource.
    StreamSourceDetails []GetStreamSourceStreamSourceDetail
    Details about a stream source
    StreamSourceId string
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. For example: {"orcl-cloud": {"free-tier-retained": "true"}}
    TimeCreated string
    When the streamSource was created, as an RFC3339 datetime string.
    TimeUpdated string
    When the streamSource was updated, as an RFC3339 datetime string.
    compartmentId String
    OCID of the compartm.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: {"foo-namespace": {"bar-key": "value"}}
    displayName String
    display name.
    freeformTags Map<String,String>
    A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: {"bar-key": "value"}
    id String
    OCID of the streamSource.
    state String
    The current state of the streamSource.
    streamSourceDetails List<GetStreamSourceStreamSourceDetail>
    Details about a stream source
    streamSourceId String
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. For example: {"orcl-cloud": {"free-tier-retained": "true"}}
    timeCreated String
    When the streamSource was created, as an RFC3339 datetime string.
    timeUpdated String
    When the streamSource was updated, as an RFC3339 datetime string.
    compartmentId string
    OCID of the compartm.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: {"foo-namespace": {"bar-key": "value"}}
    displayName string
    display name.
    freeformTags {[key: string]: string}
    A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: {"bar-key": "value"}
    id string
    OCID of the streamSource.
    state string
    The current state of the streamSource.
    streamSourceDetails GetStreamSourceStreamSourceDetail[]
    Details about a stream source
    streamSourceId string
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. For example: {"orcl-cloud": {"free-tier-retained": "true"}}
    timeCreated string
    When the streamSource was created, as an RFC3339 datetime string.
    timeUpdated string
    When the streamSource was updated, as an RFC3339 datetime string.
    compartment_id str
    OCID of the compartm.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: {"foo-namespace": {"bar-key": "value"}}
    display_name str
    display name.
    freeform_tags Mapping[str, str]
    A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: {"bar-key": "value"}
    id str
    OCID of the streamSource.
    state str
    The current state of the streamSource.
    stream_source_details Sequence[GetStreamSourceStreamSourceDetail]
    Details about a stream source
    stream_source_id str
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. For example: {"orcl-cloud": {"free-tier-retained": "true"}}
    time_created str
    When the streamSource was created, as an RFC3339 datetime string.
    time_updated str
    When the streamSource was updated, as an RFC3339 datetime string.
    compartmentId String
    OCID of the compartm.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: {"foo-namespace": {"bar-key": "value"}}
    displayName String
    display name.
    freeformTags Map<String>
    A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: {"bar-key": "value"}
    id String
    OCID of the streamSource.
    state String
    The current state of the streamSource.
    streamSourceDetails List<Property Map>
    Details about a stream source
    streamSourceId String
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. For example: {"orcl-cloud": {"free-tier-retained": "true"}}
    timeCreated String
    When the streamSource was created, as an RFC3339 datetime string.
    timeUpdated String
    When the streamSource was updated, as an RFC3339 datetime string.

    Supporting Types

    GetStreamSourceStreamSourceDetail

    CameraUrl string
    url of camera
    SecretId string
    OCID of secret where credentials are stored in username:password format.
    SourceType string
    Type of source Allowed values are:

    • RTSP
    StreamNetworkAccessDetails List<GetStreamSourceStreamSourceDetailStreamNetworkAccessDetail>
    Details about a stream Connection type
    CameraUrl string
    url of camera
    SecretId string
    OCID of secret where credentials are stored in username:password format.
    SourceType string
    Type of source Allowed values are:

    • RTSP
    StreamNetworkAccessDetails []GetStreamSourceStreamSourceDetailStreamNetworkAccessDetail
    Details about a stream Connection type
    cameraUrl String
    url of camera
    secretId String
    OCID of secret where credentials are stored in username:password format.
    sourceType String
    Type of source Allowed values are:

    • RTSP
    streamNetworkAccessDetails List<GetStreamSourceStreamSourceDetailStreamNetworkAccessDetail>
    Details about a stream Connection type
    cameraUrl string
    url of camera
    secretId string
    OCID of secret where credentials are stored in username:password format.
    sourceType string
    Type of source Allowed values are:

    • RTSP
    streamNetworkAccessDetails GetStreamSourceStreamSourceDetailStreamNetworkAccessDetail[]
    Details about a stream Connection type
    camera_url str
    url of camera
    secret_id str
    OCID of secret where credentials are stored in username:password format.
    source_type str
    Type of source Allowed values are:

    • RTSP
    stream_network_access_details Sequence[GetStreamSourceStreamSourceDetailStreamNetworkAccessDetail]
    Details about a stream Connection type
    cameraUrl String
    url of camera
    secretId String
    OCID of secret where credentials are stored in username:password format.
    sourceType String
    Type of source Allowed values are:

    • RTSP
    streamNetworkAccessDetails List<Property Map>
    Details about a stream Connection type

    GetStreamSourceStreamSourceDetailStreamNetworkAccessDetail

    PrivateEndpointId string
    OCID of the private Endpoint
    StreamAccessType string
    Type of access Allowed values are:

    • PRIVATE
    PrivateEndpointId string
    OCID of the private Endpoint
    StreamAccessType string
    Type of access Allowed values are:

    • PRIVATE
    privateEndpointId String
    OCID of the private Endpoint
    streamAccessType String
    Type of access Allowed values are:

    • PRIVATE
    privateEndpointId string
    OCID of the private Endpoint
    streamAccessType string
    Type of access Allowed values are:

    • PRIVATE
    private_endpoint_id str
    OCID of the private Endpoint
    stream_access_type str
    Type of access Allowed values are:

    • PRIVATE
    privateEndpointId String
    OCID of the private Endpoint
    streamAccessType String
    Type of access Allowed values are:

    • PRIVATE

    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 v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi