1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagement
  5. getSoftwareSourceStreamProfile
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.OsManagement.getSoftwareSourceStreamProfile

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

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

    Retrieve a list of module stream profiles from a software source. Filters may be applied to select a subset of module stream profiles based on the filter criteria.

    The “moduleName”, “streamName”, and “profileName” attributes combine to form a set of filters on the list of module stream profiles. If a “moduleName” is provided, only profiles that belong to that module are returned. If both a “moduleName” and “streamName” are given, only profiles belonging to that module stream are returned. Finally, if all three are given then only the particular profile indicated by the triple is returned. It is not valid to supply a “streamName” without a “moduleName”. It is also not valid to supply a “profileName” without a “streamName”.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSoftwareSourceStreamProfiles = oci.OsManagement.getSoftwareSourceStreamProfile({
        softwareSourceId: softwareSource.id,
        compartmentId: compartmentId,
        moduleName: softwareSourceModuleName,
        profileName: softwareSourceModuleStreamProfileName,
        streamName: softwareSourceModuleStreamName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_software_source_stream_profiles = oci.OsManagement.get_software_source_stream_profile(software_source_id=software_source["id"],
        compartment_id=compartment_id,
        module_name=software_source_module_name,
        profile_name=software_source_module_stream_profile_name,
        stream_name=software_source_module_stream_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OsManagement.GetSoftwareSourceStreamProfile(ctx, &osmanagement.GetSoftwareSourceStreamProfileArgs{
    			SoftwareSourceId: softwareSource.Id,
    			CompartmentId:    pulumi.StringRef(compartmentId),
    			ModuleName:       pulumi.StringRef(softwareSourceModuleName),
    			ProfileName:      pulumi.StringRef(softwareSourceModuleStreamProfileName),
    			StreamName:       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 testSoftwareSourceStreamProfiles = Oci.OsManagement.GetSoftwareSourceStreamProfile.Invoke(new()
        {
            SoftwareSourceId = softwareSource.Id,
            CompartmentId = compartmentId,
            ModuleName = softwareSourceModuleName,
            ProfileName = softwareSourceModuleStreamProfileName,
            StreamName = softwareSourceModuleStreamName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagement.OsManagementFunctions;
    import com.pulumi.oci.OsManagement.inputs.GetSoftwareSourceStreamProfileArgs;
    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 testSoftwareSourceStreamProfiles = OsManagementFunctions.getSoftwareSourceStreamProfile(GetSoftwareSourceStreamProfileArgs.builder()
                .softwareSourceId(softwareSource.id())
                .compartmentId(compartmentId)
                .moduleName(softwareSourceModuleName)
                .profileName(softwareSourceModuleStreamProfileName)
                .streamName(softwareSourceModuleStreamName)
                .build());
    
        }
    }
    
    variables:
      testSoftwareSourceStreamProfiles:
        fn::invoke:
          Function: oci:OsManagement:getSoftwareSourceStreamProfile
          Arguments:
            softwareSourceId: ${softwareSource.id}
            compartmentId: ${compartmentId}
            moduleName: ${softwareSourceModuleName}
            profileName: ${softwareSourceModuleStreamProfileName}
            streamName: ${softwareSourceModuleStreamName}
    

    Using getSoftwareSourceStreamProfile

    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 getSoftwareSourceStreamProfile(args: GetSoftwareSourceStreamProfileArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceStreamProfileResult>
    function getSoftwareSourceStreamProfileOutput(args: GetSoftwareSourceStreamProfileOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceStreamProfileResult>
    def get_software_source_stream_profile(compartment_id: Optional[str] = None,
                                           filters: Optional[Sequence[_osmanagement.GetSoftwareSourceStreamProfileFilter]] = None,
                                           module_name: Optional[str] = None,
                                           profile_name: Optional[str] = None,
                                           software_source_id: Optional[str] = None,
                                           stream_name: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetSoftwareSourceStreamProfileResult
    def get_software_source_stream_profile_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagement.GetSoftwareSourceStreamProfileFilterArgs]]]] = None,
                                           module_name: Optional[pulumi.Input[str]] = None,
                                           profile_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[GetSoftwareSourceStreamProfileResult]
    func GetSoftwareSourceStreamProfile(ctx *Context, args *GetSoftwareSourceStreamProfileArgs, opts ...InvokeOption) (*GetSoftwareSourceStreamProfileResult, error)
    func GetSoftwareSourceStreamProfileOutput(ctx *Context, args *GetSoftwareSourceStreamProfileOutputArgs, opts ...InvokeOption) GetSoftwareSourceStreamProfileResultOutput

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

    public static class GetSoftwareSourceStreamProfile 
    {
        public static Task<GetSoftwareSourceStreamProfileResult> InvokeAsync(GetSoftwareSourceStreamProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetSoftwareSourceStreamProfileResult> Invoke(GetSoftwareSourceStreamProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSoftwareSourceStreamProfileResult> getSoftwareSourceStreamProfile(GetSoftwareSourceStreamProfileArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagement/getSoftwareSourceStreamProfile:getSoftwareSourceStreamProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SoftwareSourceId string
    The OCID of the software source.
    CompartmentId string
    The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
    Filters List<GetSoftwareSourceStreamProfileFilter>
    ModuleName string
    The name of a module. This parameter is required if a streamName is specified.
    ProfileName string
    The name of the profile of the containing module stream
    StreamName string
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    SoftwareSourceId string
    The OCID of the software source.
    CompartmentId string
    The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
    Filters []GetSoftwareSourceStreamProfileFilter
    ModuleName string
    The name of a module. This parameter is required if a streamName is specified.
    ProfileName string
    The name of the profile of the containing module stream
    StreamName string
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    softwareSourceId String
    The OCID of the software source.
    compartmentId String
    The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
    filters List<GetSoftwareSourceStreamProfileFilter>
    moduleName String
    The name of a module. This parameter is required if a streamName is specified.
    profileName String
    The name of the profile of the containing module stream
    streamName String
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    softwareSourceId string
    The OCID of the software source.
    compartmentId string
    The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
    filters GetSoftwareSourceStreamProfileFilter[]
    moduleName string
    The name of a module. This parameter is required if a streamName is specified.
    profileName string
    The name of the profile of the containing module stream
    streamName string
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    software_source_id str
    The OCID of the software source.
    compartment_id str
    The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
    filters Sequence[osmanagement.GetSoftwareSourceStreamProfileFilter]
    module_name str
    The name of a module. This parameter is required if a streamName is specified.
    profile_name str
    The name of the profile of the containing module stream
    stream_name str
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    softwareSourceId String
    The OCID of the software source.
    compartmentId String
    The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
    filters List<Property Map>
    moduleName String
    The name of a module. This parameter is required if a streamName is specified.
    profileName String
    The name of the profile of the containing module stream
    streamName String
    The name of the stream of the containing module. This parameter is required if a profileName is specified.

    getSoftwareSourceStreamProfile Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ModuleStreamProfiles List<GetSoftwareSourceStreamProfileModuleStreamProfile>
    The list of module_stream_profiles.
    SoftwareSourceId string
    CompartmentId string
    Filters List<GetSoftwareSourceStreamProfileFilter>
    ModuleName string
    The name of the module that contains the stream profile
    ProfileName 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.
    ModuleStreamProfiles []GetSoftwareSourceStreamProfileModuleStreamProfile
    The list of module_stream_profiles.
    SoftwareSourceId string
    CompartmentId string
    Filters []GetSoftwareSourceStreamProfileFilter
    ModuleName string
    The name of the module that contains the stream profile
    ProfileName 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.
    moduleStreamProfiles List<GetSoftwareSourceStreamProfileModuleStreamProfile>
    The list of module_stream_profiles.
    softwareSourceId String
    compartmentId String
    filters List<GetSoftwareSourceStreamProfileFilter>
    moduleName String
    The name of the module that contains the stream profile
    profileName 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.
    moduleStreamProfiles GetSoftwareSourceStreamProfileModuleStreamProfile[]
    The list of module_stream_profiles.
    softwareSourceId string
    compartmentId string
    filters GetSoftwareSourceStreamProfileFilter[]
    moduleName string
    The name of the module that contains the stream profile
    profileName 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_profiles Sequence[osmanagement.GetSoftwareSourceStreamProfileModuleStreamProfile]
    The list of module_stream_profiles.
    software_source_id str
    compartment_id str
    filters Sequence[osmanagement.GetSoftwareSourceStreamProfileFilter]
    module_name str
    The name of the module that contains the stream profile
    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.
    moduleStreamProfiles List<Property Map>
    The list of module_stream_profiles.
    softwareSourceId String
    compartmentId String
    filters List<Property Map>
    moduleName String
    The name of the module that contains the stream profile
    profileName String
    The name of the profile
    streamName String
    The name of the stream that contains the profile

    Supporting Types

    GetSoftwareSourceStreamProfileFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetSoftwareSourceStreamProfileModuleStreamProfile

    ModuleName string
    The name of a module. This parameter is required if a streamName is specified.
    ProfileName string
    The name of the profile of the containing module stream
    StreamName string
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    ModuleName string
    The name of a module. This parameter is required if a streamName is specified.
    ProfileName string
    The name of the profile of the containing module stream
    StreamName string
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    moduleName String
    The name of a module. This parameter is required if a streamName is specified.
    profileName String
    The name of the profile of the containing module stream
    streamName String
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    moduleName string
    The name of a module. This parameter is required if a streamName is specified.
    profileName string
    The name of the profile of the containing module stream
    streamName string
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    module_name str
    The name of a module. This parameter is required if a streamName is specified.
    profile_name str
    The name of the profile of the containing module stream
    stream_name str
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    moduleName String
    The name of a module. This parameter is required if a streamName is specified.
    profileName String
    The name of the profile of the containing module stream
    streamName String
    The name of the stream of the containing module. This parameter is required if a profileName 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.33.0 published on Thursday, Apr 25, 2024 by Pulumi