1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getSoftwareSourceModuleStreams
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.OsManagementHub.getSoftwareSourceModuleStreams

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      testSoftwareSourceModuleStreams:
        fn::invoke:
          Function: oci:OsManagementHub:getSoftwareSourceModuleStreams
          Arguments:
            softwareSourceId: ${testSoftwareSource.id}
            isLatest: ${softwareSourceModuleStreamIsLatest}
            moduleName: ${softwareSourceModuleStreamModuleName}
            moduleNameContains: ${softwareSourceModuleStreamModuleNameContains}
            name: ${softwareSourceModuleStreamName}
    

    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>
    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]
    func GetSoftwareSourceModuleStreams(ctx *Context, args *GetSoftwareSourceModuleStreamsArgs, opts ...InvokeOption) (*GetSoftwareSourceModuleStreamsResult, error)
    func GetSoftwareSourceModuleStreamsOutput(ctx *Context, args *GetSoftwareSourceModuleStreamsOutputArgs, opts ...InvokeOption) GetSoftwareSourceModuleStreamsResultOutput

    > 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)
    }
    public static CompletableFuture<GetSoftwareSourceModuleStreamsResult> getSoftwareSourceModuleStreams(GetSoftwareSourceModuleStreamsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getSoftwareSourceModuleStreams:getSoftwareSourceModuleStreams
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SoftwareSourceId string
    The OCID of the software source.
    Filters 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 string
    The OCID of the software source.
    Filters []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 String
    The OCID of the software source.
    filters 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 string
    The OCID of the software source.
    filters 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 str
    The OCID of the software source.
    filters 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 String
    The OCID of the software source.
    filters 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 string
    The name of the entity to be queried.
    Values List<string>
    Regex bool
    Name string
    The name of the entity to be queried.
    Values []string
    Regex bool
    name String
    The name of the entity to be queried.
    values List<String>
    regex Boolean
    name string
    The name of the entity to be queried.
    values string[]
    regex boolean
    name str
    The name of the entity to be queried.
    values Sequence[str]
    regex bool
    name String
    The name of the entity to be queried.
    values List<String>
    regex Boolean

    GetSoftwareSourceModuleStreamsModuleStreamCollection

    GetSoftwareSourceModuleStreamsModuleStreamCollectionItem

    ArchType string
    The architecture for which the packages in this module stream were built.
    Description string
    A description of the contents of the module stream.
    IsDefault bool
    Indicates if this stream is the default for its module.
    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.
    Name string
    The name of the entity to be queried.
    Packages 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 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 string
    The OCID of the software source.
    ArchType string
    The architecture for which the packages in this module stream were built.
    Description string
    A description of the contents of the module stream.
    IsDefault bool
    Indicates if this stream is the default for its module.
    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.
    Name string
    The name of the entity to be queried.
    Packages []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 []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 string
    The OCID of the software source.
    archType String
    The architecture for which the packages in this module stream were built.
    description String
    A description of the contents of the module stream.
    isDefault Boolean
    Indicates if this stream is the default for its module.
    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.
    name String
    The name of the entity to be queried.
    packages 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 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 String
    The OCID of the software source.
    archType string
    The architecture for which the packages in this module stream were built.
    description string
    A description of the contents of the module stream.
    isDefault boolean
    Indicates if this stream is the default for its module.
    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.
    name string
    The name of the entity to be queried.
    packages 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 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 string
    The OCID of the software source.
    arch_type str
    The architecture for which the packages in this module stream were built.
    description str
    A description of the contents of the module stream.
    is_default bool
    Indicates if this stream is the default for its module.
    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.
    name str
    The name of the entity to be queried.
    packages 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 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 str
    The OCID of the software source.
    archType String
    The architecture for which the packages in this module stream were built.
    description String
    A description of the contents of the module stream.
    isDefault Boolean
    Indicates if this stream is the default for its module.
    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.
    name String
    The name of the entity to be queried.
    packages 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 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 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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi