Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi
oci.AiVision.getStreamSources
Explore with Pulumi AI
This data source provides the list of Stream Sources in Oracle Cloud Infrastructure Ai Vision service.
Gets a list of the streamSources in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testStreamSources = oci.AiVision.getStreamSources({
compartmentId: compartmentId,
displayName: streamSourceDisplayName,
id: streamSourceId,
state: streamSourceState,
});
import pulumi
import pulumi_oci as oci
test_stream_sources = oci.AiVision.get_stream_sources(compartment_id=compartment_id,
display_name=stream_source_display_name,
id=stream_source_id,
state=stream_source_state)
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.GetStreamSources(ctx, &aivision.GetStreamSourcesArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(streamSourceDisplayName),
Id: pulumi.StringRef(streamSourceId),
State: pulumi.StringRef(streamSourceState),
}, 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 testStreamSources = Oci.AiVision.GetStreamSources.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = streamSourceDisplayName,
Id = streamSourceId,
State = streamSourceState,
});
});
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.GetStreamSourcesArgs;
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 testStreamSources = AiVisionFunctions.getStreamSources(GetStreamSourcesArgs.builder()
.compartmentId(compartmentId)
.displayName(streamSourceDisplayName)
.id(streamSourceId)
.state(streamSourceState)
.build());
}
}
variables:
testStreamSources:
fn::invoke:
function: oci:AiVision:getStreamSources
arguments:
compartmentId: ${compartmentId}
displayName: ${streamSourceDisplayName}
id: ${streamSourceId}
state: ${streamSourceState}
Using getStreamSources
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 getStreamSources(args: GetStreamSourcesArgs, opts?: InvokeOptions): Promise<GetStreamSourcesResult>
function getStreamSourcesOutput(args: GetStreamSourcesOutputArgs, opts?: InvokeOptions): Output<GetStreamSourcesResult>
def get_stream_sources(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetStreamSourcesFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStreamSourcesResult
def get_stream_sources_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetStreamSourcesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStreamSourcesResult]
func GetStreamSources(ctx *Context, args *GetStreamSourcesArgs, opts ...InvokeOption) (*GetStreamSourcesResult, error)
func GetStreamSourcesOutput(ctx *Context, args *GetStreamSourcesOutputArgs, opts ...InvokeOption) GetStreamSourcesResultOutput
> Note: This function is named GetStreamSources
in the Go SDK.
public static class GetStreamSources
{
public static Task<GetStreamSourcesResult> InvokeAsync(GetStreamSourcesArgs args, InvokeOptions? opts = null)
public static Output<GetStreamSourcesResult> Invoke(GetStreamSourcesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStreamSourcesResult> getStreamSources(GetStreamSourcesArgs args, InvokeOptions options)
public static Output<GetStreamSourcesResult> getStreamSources(GetStreamSourcesArgs args, InvokeOptions options)
fn::invoke:
function: oci:AiVision/getStreamSources:getStreamSources
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Stream Sources Filter> - Id string
- The filter to find the device with the given identifier.
- State string
- The filter to match projects with the given lifecycleState.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Stream Sources Filter - Id string
- The filter to find the device with the given identifier.
- State string
- The filter to match projects with the given lifecycleState.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Stream Sources Filter> - id String
- The filter to find the device with the given identifier.
- state String
- The filter to match projects with the given lifecycleState.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Stream Sources Filter[] - id string
- The filter to find the device with the given identifier.
- state string
- The filter to match projects with the given lifecycleState.
- compartment_
id str - The ID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Stream Sources Filter] - id str
- The filter to find the device with the given identifier.
- state str
- The filter to match projects with the given lifecycleState.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- id String
- The filter to find the device with the given identifier.
- state String
- The filter to match projects with the given lifecycleState.
getStreamSources Result
The following output properties are available:
- Stream
Source List<GetCollections Stream Sources Stream Source Collection> - The list of stream_source_collection.
- Compartment
Id string - OCID of the compartm.
- Display
Name string - display name.
- Filters
List<Get
Stream Sources Filter> - Id string
- OCID of the streamSource.
- State string
- The current state of the streamSource.
- Stream
Source []GetCollections Stream Sources Stream Source Collection - The list of stream_source_collection.
- Compartment
Id string - OCID of the compartm.
- Display
Name string - display name.
- Filters
[]Get
Stream Sources Filter - Id string
- OCID of the streamSource.
- State string
- The current state of the streamSource.
- stream
Source List<GetCollections Stream Sources Stream Source Collection> - The list of stream_source_collection.
- compartment
Id String - OCID of the compartm.
- display
Name String - display name.
- filters
List<Get
Stream Sources Filter> - id String
- OCID of the streamSource.
- state String
- The current state of the streamSource.
- stream
Source GetCollections Stream Sources Stream Source Collection[] - The list of stream_source_collection.
- compartment
Id string - OCID of the compartm.
- display
Name string - display name.
- filters
Get
Stream Sources Filter[] - id string
- OCID of the streamSource.
- state string
- The current state of the streamSource.
- stream_
source_ Sequence[Getcollections Stream Sources Stream Source Collection] - The list of stream_source_collection.
- compartment_
id str - OCID of the compartm.
- display_
name str - display name.
- filters
Sequence[Get
Stream Sources Filter] - id str
- OCID of the streamSource.
- state str
- The current state of the streamSource.
- stream
Source List<Property Map>Collections - The list of stream_source_collection.
- compartment
Id String - OCID of the compartm.
- display
Name String - display name.
- filters List<Property Map>
- id String
- OCID of the streamSource.
- state String
- The current state of the streamSource.
Supporting Types
GetStreamSourcesFilter
GetStreamSourcesStreamSourceCollection
GetStreamSourcesStreamSourceCollectionItem
- Compartment
Id string - The ID of the compartment in which to list resources.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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
- The filter to find the device with the given identifier.
- State string
- The filter to match projects with the given lifecycleState.
- Stream
Source List<GetDetails Stream Sources Stream Source Collection Item Stream Source Detail> - Details about a stream source
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- Time
Created string - When the streamSource was created, as an RFC3339 datetime string.
- Time
Updated string - When the streamSource was updated, as an RFC3339 datetime string.
- Compartment
Id string - The ID of the compartment in which to list resources.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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
- The filter to find the device with the given identifier.
- State string
- The filter to match projects with the given lifecycleState.
- Stream
Source []GetDetails Stream Sources Stream Source Collection Item Stream Source Detail - Details about a stream source
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- Time
Created string - When the streamSource was created, as an RFC3339 datetime string.
- Time
Updated string - When the streamSource was updated, as an RFC3339 datetime string.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- display
Name String - A filter to return only resources that match the entire display name given.
- 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
- The filter to find the device with the given identifier.
- state String
- The filter to match projects with the given lifecycleState.
- stream
Source List<GetDetails Stream Sources Stream Source Collection Item Stream Source Detail> - Details about a stream source
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- time
Created String - When the streamSource was created, as an RFC3339 datetime string.
- time
Updated String - When the streamSource was updated, as an RFC3339 datetime string.
- compartment
Id string - The ID of the compartment in which to list resources.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- display
Name string - A filter to return only resources that match the entire display name given.
- {[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
- The filter to find the device with the given identifier.
- state string
- The filter to match projects with the given lifecycleState.
- stream
Source GetDetails Stream Sources Stream Source Collection Item Stream Source Detail[] - Details about a stream source
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- time
Created string - When the streamSource was created, as an RFC3339 datetime string.
- time
Updated string - When the streamSource was updated, as an RFC3339 datetime string.
- compartment_
id str - The ID of the compartment in which to list resources.
- 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 - A filter to return only resources that match the entire display name given.
- 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
- The filter to find the device with the given identifier.
- state str
- The filter to match projects with the given lifecycleState.
- stream_
source_ Sequence[Getdetails Stream Sources Stream Source Collection Item Stream Source Detail] - Details about a stream source
- 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.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- display
Name String - A filter to return only resources that match the entire display name given.
- 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
- The filter to find the device with the given identifier.
- state String
- The filter to match projects with the given lifecycleState.
- stream
Source List<Property Map>Details - Details about a stream source
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- time
Created String - When the streamSource was created, as an RFC3339 datetime string.
- time
Updated String - When the streamSource was updated, as an RFC3339 datetime string.
GetStreamSourcesStreamSourceCollectionItemStreamSourceDetail
- Camera
Url string - url of camera
- Secret
Id string - OCID of secret where credentials are stored in username:password format.
- Source
Type string - Type of source Allowed values are:
- RTSP
- Stream
Network List<GetAccess Details Stream Sources Stream Source Collection Item Stream Source Detail Stream Network Access Detail> - Details about a stream Connection type
- Camera
Url string - url of camera
- Secret
Id string - OCID of secret where credentials are stored in username:password format.
- Source
Type string - Type of source Allowed values are:
- RTSP
- Stream
Network []GetAccess Details Stream Sources Stream Source Collection Item Stream Source Detail Stream Network Access Detail - Details about a stream Connection type
- camera
Url String - url of camera
- secret
Id String - OCID of secret where credentials are stored in username:password format.
- source
Type String - Type of source Allowed values are:
- RTSP
- stream
Network List<GetAccess Details Stream Sources Stream Source Collection Item Stream Source Detail Stream Network Access Detail> - Details about a stream Connection type
- camera
Url string - url of camera
- secret
Id string - OCID of secret where credentials are stored in username:password format.
- source
Type string - Type of source Allowed values are:
- RTSP
- stream
Network GetAccess Details Stream Sources Stream Source Collection Item Stream Source Detail Stream Network Access Detail[] - 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_ Sequence[Getaccess_ details Stream Sources Stream Source Collection Item Stream Source Detail Stream Network Access Detail] - Details about a stream Connection type
- camera
Url String - url of camera
- secret
Id String - OCID of secret where credentials are stored in username:password format.
- source
Type String - Type of source Allowed values are:
- RTSP
- stream
Network List<Property Map>Access Details - Details about a stream Connection type
GetStreamSourcesStreamSourceCollectionItemStreamSourceDetailStreamNetworkAccessDetail
- Private
Endpoint stringId - OCID of the private Endpoint
- Stream
Access stringType - Type of access Allowed values are:
- PRIVATE
- Private
Endpoint stringId - OCID of the private Endpoint
- Stream
Access stringType - Type of access Allowed values are:
- PRIVATE
- private
Endpoint StringId - OCID of the private Endpoint
- stream
Access StringType - Type of access Allowed values are:
- PRIVATE
- private
Endpoint stringId - OCID of the private Endpoint
- stream
Access stringType - Type of access Allowed values are:
- PRIVATE
- private_
endpoint_ strid - OCID of the private Endpoint
- stream_
access_ strtype - Type of access Allowed values are:
- PRIVATE
- private
Endpoint StringId - OCID of the private Endpoint
- stream
Access StringType - 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.