1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getSoftwareSourceModuleStreams
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.OsManagementHub.getSoftwareSourceModuleStreams

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides the list of Software Source Module Streams in Oracle Cloud Infrastructure Os Management Hub service.

Lists module streams from the specified software source OCID. Filter the list against a variety of criteria including but not limited to its module name and (stream) name.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSoftwareSourceModuleStreams = oci.OsManagementHub.getSoftwareSourceModuleStreams({
    softwareSourceId: testSoftwareSource.id,
    isLatest: softwareSourceModuleStreamIsLatest,
    moduleName: softwareSourceModuleStreamModuleName,
    moduleNameContains: softwareSourceModuleStreamModuleNameContains,
    name: softwareSourceModuleStreamName,
});
Copy
import pulumi
import pulumi_oci as oci

test_software_source_module_streams = oci.OsManagementHub.get_software_source_module_streams(software_source_id=test_software_source["id"],
    is_latest=software_source_module_stream_is_latest,
    module_name=software_source_module_stream_module_name,
    module_name_contains=software_source_module_stream_module_name_contains,
    name=software_source_module_stream_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/osmanagementhub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := osmanagementhub.GetSoftwareSourceModuleStreams(ctx, &osmanagementhub.GetSoftwareSourceModuleStreamsArgs{
			SoftwareSourceId:   testSoftwareSource.Id,
			IsLatest:           pulumi.BoolRef(softwareSourceModuleStreamIsLatest),
			ModuleName:         pulumi.StringRef(softwareSourceModuleStreamModuleName),
			ModuleNameContains: pulumi.StringRef(softwareSourceModuleStreamModuleNameContains),
			Name:               pulumi.StringRef(softwareSourceModuleStreamName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testSoftwareSourceModuleStreams = Oci.OsManagementHub.GetSoftwareSourceModuleStreams.Invoke(new()
    {
        SoftwareSourceId = testSoftwareSource.Id,
        IsLatest = softwareSourceModuleStreamIsLatest,
        ModuleName = softwareSourceModuleStreamModuleName,
        ModuleNameContains = softwareSourceModuleStreamModuleNameContains,
        Name = softwareSourceModuleStreamName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
import com.pulumi.oci.OsManagementHub.inputs.GetSoftwareSourceModuleStreamsArgs;
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 testSoftwareSourceModuleStreams = OsManagementHubFunctions.getSoftwareSourceModuleStreams(GetSoftwareSourceModuleStreamsArgs.builder()
            .softwareSourceId(testSoftwareSource.id())
            .isLatest(softwareSourceModuleStreamIsLatest)
            .moduleName(softwareSourceModuleStreamModuleName)
            .moduleNameContains(softwareSourceModuleStreamModuleNameContains)
            .name(softwareSourceModuleStreamName)
            .build());

    }
}
Copy
variables:
  testSoftwareSourceModuleStreams:
    fn::invoke:
      function: oci:OsManagementHub:getSoftwareSourceModuleStreams
      arguments:
        softwareSourceId: ${testSoftwareSource.id}
        isLatest: ${softwareSourceModuleStreamIsLatest}
        moduleName: ${softwareSourceModuleStreamModuleName}
        moduleNameContains: ${softwareSourceModuleStreamModuleNameContains}
        name: ${softwareSourceModuleStreamName}
Copy

Using getSoftwareSourceModuleStreams

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 getSoftwareSourceModuleStreams(args: GetSoftwareSourceModuleStreamsArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceModuleStreamsResult>
function getSoftwareSourceModuleStreamsOutput(args: GetSoftwareSourceModuleStreamsOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceModuleStreamsResult>
Copy
def get_software_source_module_streams(filters: Optional[Sequence[_osmanagementhub.GetSoftwareSourceModuleStreamsFilter]] = None,
                                       is_latest: Optional[bool] = None,
                                       module_name: Optional[str] = None,
                                       module_name_contains: Optional[str] = None,
                                       name: Optional[str] = None,
                                       software_source_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetSoftwareSourceModuleStreamsResult
def get_software_source_module_streams_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetSoftwareSourceModuleStreamsFilterArgs]]]] = None,
                                       is_latest: Optional[pulumi.Input[bool]] = None,
                                       module_name: Optional[pulumi.Input[str]] = None,
                                       module_name_contains: Optional[pulumi.Input[str]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       software_source_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourceModuleStreamsResult]
Copy
func GetSoftwareSourceModuleStreams(ctx *Context, args *GetSoftwareSourceModuleStreamsArgs, opts ...InvokeOption) (*GetSoftwareSourceModuleStreamsResult, error)
func GetSoftwareSourceModuleStreamsOutput(ctx *Context, args *GetSoftwareSourceModuleStreamsOutputArgs, opts ...InvokeOption) GetSoftwareSourceModuleStreamsResultOutput
Copy

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

public static class GetSoftwareSourceModuleStreams 
{
    public static Task<GetSoftwareSourceModuleStreamsResult> InvokeAsync(GetSoftwareSourceModuleStreamsArgs args, InvokeOptions? opts = null)
    public static Output<GetSoftwareSourceModuleStreamsResult> Invoke(GetSoftwareSourceModuleStreamsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSoftwareSourceModuleStreamsResult> getSoftwareSourceModuleStreams(GetSoftwareSourceModuleStreamsArgs args, InvokeOptions options)
public static Output<GetSoftwareSourceModuleStreamsResult> getSoftwareSourceModuleStreams(GetSoftwareSourceModuleStreamsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OsManagementHub/getSoftwareSourceModuleStreams:getSoftwareSourceModuleStreams
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SoftwareSourceId This property is required. string
The OCID of the software source.
Filters Changes to this property will trigger replacement. List<GetSoftwareSourceModuleStreamsFilter>
IsLatest bool
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
ModuleName string
The name of a module. This parameter is required if a streamName is specified.
ModuleNameContains string
A filter to return resources that may partially match the module name given.
Name string
The name of the entity to be queried.
SoftwareSourceId This property is required. string
The OCID of the software source.
Filters Changes to this property will trigger replacement. []GetSoftwareSourceModuleStreamsFilter
IsLatest bool
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
ModuleName string
The name of a module. This parameter is required if a streamName is specified.
ModuleNameContains string
A filter to return resources that may partially match the module name given.
Name string
The name of the entity to be queried.
softwareSourceId This property is required. String
The OCID of the software source.
filters Changes to this property will trigger replacement. List<GetSoftwareSourceModuleStreamsFilter>
isLatest Boolean
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
moduleName String
The name of a module. This parameter is required if a streamName is specified.
moduleNameContains String
A filter to return resources that may partially match the module name given.
name String
The name of the entity to be queried.
softwareSourceId This property is required. string
The OCID of the software source.
filters Changes to this property will trigger replacement. GetSoftwareSourceModuleStreamsFilter[]
isLatest boolean
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
moduleName string
The name of a module. This parameter is required if a streamName is specified.
moduleNameContains string
A filter to return resources that may partially match the module name given.
name string
The name of the entity to be queried.
software_source_id This property is required. str
The OCID of the software source.
filters Changes to this property will trigger replacement. Sequence[osmanagementhub.GetSoftwareSourceModuleStreamsFilter]
is_latest bool
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
module_name str
The name of a module. This parameter is required if a streamName is specified.
module_name_contains str
A filter to return resources that may partially match the module name given.
name str
The name of the entity to be queried.
softwareSourceId This property is required. String
The OCID of the software source.
filters Changes to this property will trigger replacement. List<Property Map>
isLatest Boolean
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
moduleName String
The name of a module. This parameter is required if a streamName is specified.
moduleNameContains String
A filter to return resources that may partially match the module name given.
name String
The name of the entity to be queried.

getSoftwareSourceModuleStreams Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
ModuleStreamCollections List<GetSoftwareSourceModuleStreamsModuleStreamCollection>
The list of module_stream_collection.
SoftwareSourceId string
The OCID of the software source that provides this module stream.
Filters List<GetSoftwareSourceModuleStreamsFilter>
IsLatest bool
Indicates whether this module stream is the latest.
ModuleName string
The name of the module that contains the stream.
ModuleNameContains string
Name string
The name of the stream.
Id string
The provider-assigned unique ID for this managed resource.
ModuleStreamCollections []GetSoftwareSourceModuleStreamsModuleStreamCollection
The list of module_stream_collection.
SoftwareSourceId string
The OCID of the software source that provides this module stream.
Filters []GetSoftwareSourceModuleStreamsFilter
IsLatest bool
Indicates whether this module stream is the latest.
ModuleName string
The name of the module that contains the stream.
ModuleNameContains string
Name string
The name of the stream.
id String
The provider-assigned unique ID for this managed resource.
moduleStreamCollections List<GetSoftwareSourceModuleStreamsModuleStreamCollection>
The list of module_stream_collection.
softwareSourceId String
The OCID of the software source that provides this module stream.
filters List<GetSoftwareSourceModuleStreamsFilter>
isLatest Boolean
Indicates whether this module stream is the latest.
moduleName String
The name of the module that contains the stream.
moduleNameContains String
name String
The name of the stream.
id string
The provider-assigned unique ID for this managed resource.
moduleStreamCollections GetSoftwareSourceModuleStreamsModuleStreamCollection[]
The list of module_stream_collection.
softwareSourceId string
The OCID of the software source that provides this module stream.
filters GetSoftwareSourceModuleStreamsFilter[]
isLatest boolean
Indicates whether this module stream is the latest.
moduleName string
The name of the module that contains the stream.
moduleNameContains string
name string
The name of the stream.
id str
The provider-assigned unique ID for this managed resource.
module_stream_collections Sequence[osmanagementhub.GetSoftwareSourceModuleStreamsModuleStreamCollection]
The list of module_stream_collection.
software_source_id str
The OCID of the software source that provides this module stream.
filters Sequence[osmanagementhub.GetSoftwareSourceModuleStreamsFilter]
is_latest bool
Indicates whether this module stream is the latest.
module_name str
The name of the module that contains the stream.
module_name_contains str
name str
The name of the stream.
id String
The provider-assigned unique ID for this managed resource.
moduleStreamCollections List<Property Map>
The list of module_stream_collection.
softwareSourceId String
The OCID of the software source that provides this module stream.
filters List<Property Map>
isLatest Boolean
Indicates whether this module stream is the latest.
moduleName String
The name of the module that contains the stream.
moduleNameContains String
name String
The name of the stream.

Supporting Types

GetSoftwareSourceModuleStreamsFilter

Name This property is required. string
The name of the entity to be queried.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of the entity to be queried.
Values This property is required. []string
Regex bool
name This property is required. String
The name of the entity to be queried.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of the entity to be queried.
values This property is required. string[]
regex boolean
name This property is required. str
The name of the entity to be queried.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of the entity to be queried.
values This property is required. List<String>
regex Boolean

GetSoftwareSourceModuleStreamsModuleStreamCollection

items This property is required. List<Property Map>

GetSoftwareSourceModuleStreamsModuleStreamCollectionItem

ArchType This property is required. string
The architecture for which the packages in this module stream were built.
Description This property is required. string
A description of the contents of the module stream.
IsDefault This property is required. bool
Indicates if this stream is the default for its module.
IsLatest This property is required. bool
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
ModuleName This property is required. string
The name of a module. This parameter is required if a streamName is specified.
Name This property is required. string
The name of the entity to be queried.
Packages This property is required. List<string>
A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
Profiles This property is required. List<string>
A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
SoftwareSourceId This property is required. string
The OCID of the software source.
ArchType This property is required. string
The architecture for which the packages in this module stream were built.
Description This property is required. string
A description of the contents of the module stream.
IsDefault This property is required. bool
Indicates if this stream is the default for its module.
IsLatest This property is required. bool
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
ModuleName This property is required. string
The name of a module. This parameter is required if a streamName is specified.
Name This property is required. string
The name of the entity to be queried.
Packages This property is required. []string
A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
Profiles This property is required. []string
A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
SoftwareSourceId This property is required. string
The OCID of the software source.
archType This property is required. String
The architecture for which the packages in this module stream were built.
description This property is required. String
A description of the contents of the module stream.
isDefault This property is required. Boolean
Indicates if this stream is the default for its module.
isLatest This property is required. Boolean
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
moduleName This property is required. String
The name of a module. This parameter is required if a streamName is specified.
name This property is required. String
The name of the entity to be queried.
packages This property is required. List<String>
A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
profiles This property is required. List<String>
A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
softwareSourceId This property is required. String
The OCID of the software source.
archType This property is required. string
The architecture for which the packages in this module stream were built.
description This property is required. string
A description of the contents of the module stream.
isDefault This property is required. boolean
Indicates if this stream is the default for its module.
isLatest This property is required. boolean
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
moduleName This property is required. string
The name of a module. This parameter is required if a streamName is specified.
name This property is required. string
The name of the entity to be queried.
packages This property is required. string[]
A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
profiles This property is required. string[]
A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
softwareSourceId This property is required. string
The OCID of the software source.
arch_type This property is required. str
The architecture for which the packages in this module stream were built.
description This property is required. str
A description of the contents of the module stream.
is_default This property is required. bool
Indicates if this stream is the default for its module.
is_latest This property is required. bool
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
module_name This property is required. str
The name of a module. This parameter is required if a streamName is specified.
name This property is required. str
The name of the entity to be queried.
packages This property is required. Sequence[str]
A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
profiles This property is required. Sequence[str]
A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
software_source_id This property is required. str
The OCID of the software source.
archType This property is required. String
The architecture for which the packages in this module stream were built.
description This property is required. String
A description of the contents of the module stream.
isDefault This property is required. Boolean
Indicates if this stream is the default for its module.
isLatest This property is required. Boolean
Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
moduleName This property is required. String
The name of a module. This parameter is required if a streamName is specified.
name This property is required. String
The name of the entity to be queried.
packages This property is required. List<String>
A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
profiles This property is required. List<String>
A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
softwareSourceId This property is required. String
The OCID of the software source.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi