1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getSoftwareSourceModuleStreamProfiles
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.OsManagementHub.getSoftwareSourceModuleStreamProfiles

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

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

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSoftwareSourceModuleStreamProfiles = oci.OsManagementHub.getSoftwareSourceModuleStreamProfiles({
        softwareSourceId: testSoftwareSource.id,
        moduleName: softwareSourceModuleStreamProfileModuleName,
        name: softwareSourceModuleStreamProfileName,
        streamName: testStream.name,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_software_source_module_stream_profiles = oci.OsManagementHub.get_software_source_module_stream_profiles(software_source_id=test_software_source["id"],
        module_name=software_source_module_stream_profile_module_name,
        name=software_source_module_stream_profile_name,
        stream_name=test_stream["name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsManagementHub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OsManagementHub.GetSoftwareSourceModuleStreamProfiles(ctx, &osmanagementhub.GetSoftwareSourceModuleStreamProfilesArgs{
    			SoftwareSourceId: testSoftwareSource.Id,
    			ModuleName:       pulumi.StringRef(softwareSourceModuleStreamProfileModuleName),
    			Name:             pulumi.StringRef(softwareSourceModuleStreamProfileName),
    			StreamName:       pulumi.StringRef(testStream.Name),
    		}, 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 testSoftwareSourceModuleStreamProfiles = Oci.OsManagementHub.GetSoftwareSourceModuleStreamProfiles.Invoke(new()
        {
            SoftwareSourceId = testSoftwareSource.Id,
            ModuleName = softwareSourceModuleStreamProfileModuleName,
            Name = softwareSourceModuleStreamProfileName,
            StreamName = testStream.Name,
        });
    
    });
    
    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.GetSoftwareSourceModuleStreamProfilesArgs;
    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 testSoftwareSourceModuleStreamProfiles = OsManagementHubFunctions.getSoftwareSourceModuleStreamProfiles(GetSoftwareSourceModuleStreamProfilesArgs.builder()
                .softwareSourceId(testSoftwareSource.id())
                .moduleName(softwareSourceModuleStreamProfileModuleName)
                .name(softwareSourceModuleStreamProfileName)
                .streamName(testStream.name())
                .build());
    
        }
    }
    
    variables:
      testSoftwareSourceModuleStreamProfiles:
        fn::invoke:
          Function: oci:OsManagementHub:getSoftwareSourceModuleStreamProfiles
          Arguments:
            softwareSourceId: ${testSoftwareSource.id}
            moduleName: ${softwareSourceModuleStreamProfileModuleName}
            name: ${softwareSourceModuleStreamProfileName}
            streamName: ${testStream.name}
    

    Using getSoftwareSourceModuleStreamProfiles

    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 getSoftwareSourceModuleStreamProfiles(args: GetSoftwareSourceModuleStreamProfilesArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceModuleStreamProfilesResult>
    function getSoftwareSourceModuleStreamProfilesOutput(args: GetSoftwareSourceModuleStreamProfilesOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceModuleStreamProfilesResult>
    def get_software_source_module_stream_profiles(filters: Optional[Sequence[_osmanagementhub.GetSoftwareSourceModuleStreamProfilesFilter]] = None,
                                                   module_name: Optional[str] = None,
                                                   name: Optional[str] = None,
                                                   software_source_id: Optional[str] = None,
                                                   stream_name: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetSoftwareSourceModuleStreamProfilesResult
    def get_software_source_module_stream_profiles_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetSoftwareSourceModuleStreamProfilesFilterArgs]]]] = None,
                                                   module_name: Optional[pulumi.Input[str]] = None,
                                                   name: Optional[pulumi.Input[str]] = None,
                                                   software_source_id: Optional[pulumi.Input[str]] = None,
                                                   stream_name: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourceModuleStreamProfilesResult]
    func GetSoftwareSourceModuleStreamProfiles(ctx *Context, args *GetSoftwareSourceModuleStreamProfilesArgs, opts ...InvokeOption) (*GetSoftwareSourceModuleStreamProfilesResult, error)
    func GetSoftwareSourceModuleStreamProfilesOutput(ctx *Context, args *GetSoftwareSourceModuleStreamProfilesOutputArgs, opts ...InvokeOption) GetSoftwareSourceModuleStreamProfilesResultOutput

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

    public static class GetSoftwareSourceModuleStreamProfiles 
    {
        public static Task<GetSoftwareSourceModuleStreamProfilesResult> InvokeAsync(GetSoftwareSourceModuleStreamProfilesArgs args, InvokeOptions? opts = null)
        public static Output<GetSoftwareSourceModuleStreamProfilesResult> Invoke(GetSoftwareSourceModuleStreamProfilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSoftwareSourceModuleStreamProfilesResult> getSoftwareSourceModuleStreamProfiles(GetSoftwareSourceModuleStreamProfilesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getSoftwareSourceModuleStreamProfiles:getSoftwareSourceModuleStreamProfiles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SoftwareSourceId string
    The OCID of the software source.
    Filters List<GetSoftwareSourceModuleStreamProfilesFilter>
    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.
    StreamName string
    The name of the module stream. This parameter is required if a profile name is specified.
    SoftwareSourceId string
    The OCID of the software source.
    Filters []GetSoftwareSourceModuleStreamProfilesFilter
    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.
    StreamName string
    The name of the module stream. This parameter is required if a profile name is specified.
    softwareSourceId String
    The OCID of the software source.
    filters List<GetSoftwareSourceModuleStreamProfilesFilter>
    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.
    streamName String
    The name of the module stream. This parameter is required if a profile name is specified.
    softwareSourceId string
    The OCID of the software source.
    filters GetSoftwareSourceModuleStreamProfilesFilter[]
    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.
    streamName string
    The name of the module stream. This parameter is required if a profile name is specified.
    software_source_id str
    The OCID of the software source.
    filters Sequence[osmanagementhub.GetSoftwareSourceModuleStreamProfilesFilter]
    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.
    stream_name str
    The name of the module stream. This parameter is required if a profile name is specified.
    softwareSourceId String
    The OCID of the software source.
    filters List<Property Map>
    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.
    streamName String
    The name of the module stream. This parameter is required if a profile name is specified.

    getSoftwareSourceModuleStreamProfiles Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ModuleStreamProfileCollections List<GetSoftwareSourceModuleStreamProfilesModuleStreamProfileCollection>
    The list of module_stream_profile_collection.
    SoftwareSourceId string
    Filters List<GetSoftwareSourceModuleStreamProfilesFilter>
    ModuleName string
    The name of the module that contains the stream profile.
    Name string
    The name of the profile.
    StreamName string
    The name of the stream that contains the profile.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModuleStreamProfileCollections []GetSoftwareSourceModuleStreamProfilesModuleStreamProfileCollection
    The list of module_stream_profile_collection.
    SoftwareSourceId string
    Filters []GetSoftwareSourceModuleStreamProfilesFilter
    ModuleName string
    The name of the module that contains the stream profile.
    Name string
    The name of the profile.
    StreamName string
    The name of the stream that contains the profile.
    id String
    The provider-assigned unique ID for this managed resource.
    moduleStreamProfileCollections List<GetSoftwareSourceModuleStreamProfilesModuleStreamProfileCollection>
    The list of module_stream_profile_collection.
    softwareSourceId String
    filters List<GetSoftwareSourceModuleStreamProfilesFilter>
    moduleName String
    The name of the module that contains the stream profile.
    name String
    The name of the profile.
    streamName String
    The name of the stream that contains the profile.
    id string
    The provider-assigned unique ID for this managed resource.
    moduleStreamProfileCollections GetSoftwareSourceModuleStreamProfilesModuleStreamProfileCollection[]
    The list of module_stream_profile_collection.
    softwareSourceId string
    filters GetSoftwareSourceModuleStreamProfilesFilter[]
    moduleName string
    The name of the module that contains the stream profile.
    name string
    The name of the profile.
    streamName string
    The name of the stream that contains the profile.
    id str
    The provider-assigned unique ID for this managed resource.
    module_stream_profile_collections Sequence[osmanagementhub.GetSoftwareSourceModuleStreamProfilesModuleStreamProfileCollection]
    The list of module_stream_profile_collection.
    software_source_id str
    filters Sequence[osmanagementhub.GetSoftwareSourceModuleStreamProfilesFilter]
    module_name str
    The name of the module that contains the stream profile.
    name str
    The name of the profile.
    stream_name str
    The name of the stream that contains the profile.
    id String
    The provider-assigned unique ID for this managed resource.
    moduleStreamProfileCollections List<Property Map>
    The list of module_stream_profile_collection.
    softwareSourceId String
    filters List<Property Map>
    moduleName String
    The name of the module that contains the stream profile.
    name String
    The name of the profile.
    streamName String
    The name of the stream that contains the profile.

    Supporting Types

    GetSoftwareSourceModuleStreamProfilesFilter

    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

    GetSoftwareSourceModuleStreamProfilesModuleStreamProfileCollection

    GetSoftwareSourceModuleStreamProfilesModuleStreamProfileCollectionItem

    Description string
    A description of the contents of the module stream profile.
    IsDefault bool
    Indicates if this profile is the default for its module stream.
    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 constitute the profile. 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.
    StreamName string
    The name of the module stream. This parameter is required if a profile name is specified.
    Description string
    A description of the contents of the module stream profile.
    IsDefault bool
    Indicates if this profile is the default for its module stream.
    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 constitute the profile. 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.
    StreamName string
    The name of the module stream. This parameter is required if a profile name is specified.
    description String
    A description of the contents of the module stream profile.
    isDefault Boolean
    Indicates if this profile is the default for its module stream.
    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 constitute the profile. 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.
    streamName String
    The name of the module stream. This parameter is required if a profile name is specified.
    description string
    A description of the contents of the module stream profile.
    isDefault boolean
    Indicates if this profile is the default for its module stream.
    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 constitute the profile. 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.
    streamName string
    The name of the module stream. This parameter is required if a profile name is specified.
    description str
    A description of the contents of the module stream profile.
    is_default bool
    Indicates if this profile is the default for its module stream.
    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 constitute the profile. 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.
    stream_name str
    The name of the module stream. This parameter is required if a profile name is specified.
    description String
    A description of the contents of the module stream profile.
    isDefault Boolean
    Indicates if this profile is the default for its module stream.
    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 constitute the profile. 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.
    streamName String
    The name of the module stream. This parameter is required if a profile name is specified.

    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.41.0 published on Wednesday, Jun 19, 2024 by Pulumi