oci.OsManagement.getSoftwareSourceStreamProfile
Explore with Pulumi AI
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/v2/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)
public static Output<GetSoftwareSourceStreamProfileResult> getSoftwareSourceStreamProfile(GetSoftwareSourceStreamProfileArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagement/getSoftwareSourceStreamProfile:getSoftwareSourceStreamProfile
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SoftwareSource stringId 
- 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<GetSoftware Source Stream Profile Filter> 
- 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.
- SoftwareSource stringId 
- 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
[]GetSoftware Source Stream Profile Filter 
- 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.
- softwareSource StringId 
- 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<GetSoftware Source Stream Profile Filter> 
- 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.
- softwareSource stringId 
- 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
GetSoftware Source Stream Profile Filter[] 
- 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_ strid 
- 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.Get Software Source Stream Profile Filter] 
- 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.
- softwareSource StringId 
- 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.
- ModuleStream List<GetProfiles Software Source Stream Profile Module Stream Profile> 
- The list of module_stream_profiles.
- SoftwareSource stringId 
- CompartmentId string
- Filters
List<GetSoftware Source Stream Profile Filter> 
- 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.
- ModuleStream []GetProfiles Software Source Stream Profile Module Stream Profile 
- The list of module_stream_profiles.
- SoftwareSource stringId 
- CompartmentId string
- Filters
[]GetSoftware Source Stream Profile Filter 
- 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.
- moduleStream List<GetProfiles Software Source Stream Profile Module Stream Profile> 
- The list of module_stream_profiles.
- softwareSource StringId 
- compartmentId String
- filters
List<GetSoftware Source Stream Profile Filter> 
- 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.
- moduleStream GetProfiles Software Source Stream Profile Module Stream Profile[] 
- The list of module_stream_profiles.
- softwareSource stringId 
- compartmentId string
- filters
GetSoftware Source Stream Profile Filter[] 
- 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_ Sequence[osmanagement.profiles Get Software Source Stream Profile Module Stream Profile] 
- The list of module_stream_profiles.
- software_source_ strid 
- compartment_id str
- filters
Sequence[osmanagement.Get Software Source Stream Profile Filter] 
- 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.
- moduleStream List<Property Map>Profiles 
- The list of module_stream_profiles.
- softwareSource StringId 
- 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     
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 ociTerraform Provider.