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

oci.OsManagementHub.getSoftwareSourceModuleStreamProfile

Explore with Pulumi AI

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

This data source provides details about a specific Software Source Module Stream Profile resource in Oracle Cloud Infrastructure Os Management Hub service.

Returns information about the specified module stream profile in a software source.

Example Usage

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

const testSoftwareSourceModuleStreamProfile = oci.OsManagementHub.getSoftwareSourceModuleStreamProfile({
    moduleName: softwareSourceModuleStreamProfileModuleName,
    profileName: testProfile.name,
    softwareSourceId: testSoftwareSource.id,
    streamName: testStream.name,
});
Copy
import pulumi
import pulumi_oci as oci

test_software_source_module_stream_profile = oci.OsManagementHub.get_software_source_module_stream_profile(module_name=software_source_module_stream_profile_module_name,
    profile_name=test_profile["name"],
    software_source_id=test_software_source["id"],
    stream_name=test_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.GetSoftwareSourceModuleStreamProfile(ctx, &osmanagementhub.GetSoftwareSourceModuleStreamProfileArgs{
			ModuleName:       softwareSourceModuleStreamProfileModuleName,
			ProfileName:      testProfile.Name,
			SoftwareSourceId: testSoftwareSource.Id,
			StreamName:       testStream.Name,
		}, 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 testSoftwareSourceModuleStreamProfile = Oci.OsManagementHub.GetSoftwareSourceModuleStreamProfile.Invoke(new()
    {
        ModuleName = softwareSourceModuleStreamProfileModuleName,
        ProfileName = testProfile.Name,
        SoftwareSourceId = testSoftwareSource.Id,
        StreamName = testStream.Name,
    });

});
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.GetSoftwareSourceModuleStreamProfileArgs;
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 testSoftwareSourceModuleStreamProfile = OsManagementHubFunctions.getSoftwareSourceModuleStreamProfile(GetSoftwareSourceModuleStreamProfileArgs.builder()
            .moduleName(softwareSourceModuleStreamProfileModuleName)
            .profileName(testProfile.name())
            .softwareSourceId(testSoftwareSource.id())
            .streamName(testStream.name())
            .build());

    }
}
Copy
variables:
  testSoftwareSourceModuleStreamProfile:
    fn::invoke:
      function: oci:OsManagementHub:getSoftwareSourceModuleStreamProfile
      arguments:
        moduleName: ${softwareSourceModuleStreamProfileModuleName}
        profileName: ${testProfile.name}
        softwareSourceId: ${testSoftwareSource.id}
        streamName: ${testStream.name}
Copy

Using getSoftwareSourceModuleStreamProfile

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 getSoftwareSourceModuleStreamProfile(args: GetSoftwareSourceModuleStreamProfileArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceModuleStreamProfileResult>
function getSoftwareSourceModuleStreamProfileOutput(args: GetSoftwareSourceModuleStreamProfileOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceModuleStreamProfileResult>
Copy
def get_software_source_module_stream_profile(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) -> GetSoftwareSourceModuleStreamProfileResult
def get_software_source_module_stream_profile_output(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[GetSoftwareSourceModuleStreamProfileResult]
Copy
func GetSoftwareSourceModuleStreamProfile(ctx *Context, args *GetSoftwareSourceModuleStreamProfileArgs, opts ...InvokeOption) (*GetSoftwareSourceModuleStreamProfileResult, error)
func GetSoftwareSourceModuleStreamProfileOutput(ctx *Context, args *GetSoftwareSourceModuleStreamProfileOutputArgs, opts ...InvokeOption) GetSoftwareSourceModuleStreamProfileResultOutput
Copy

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

public static class GetSoftwareSourceModuleStreamProfile 
{
    public static Task<GetSoftwareSourceModuleStreamProfileResult> InvokeAsync(GetSoftwareSourceModuleStreamProfileArgs args, InvokeOptions? opts = null)
    public static Output<GetSoftwareSourceModuleStreamProfileResult> Invoke(GetSoftwareSourceModuleStreamProfileInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSoftwareSourceModuleStreamProfileResult> getSoftwareSourceModuleStreamProfile(GetSoftwareSourceModuleStreamProfileArgs args, InvokeOptions options)
public static Output<GetSoftwareSourceModuleStreamProfileResult> getSoftwareSourceModuleStreamProfile(GetSoftwareSourceModuleStreamProfileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OsManagementHub/getSoftwareSourceModuleStreamProfile:getSoftwareSourceModuleStreamProfile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ModuleName This property is required. string
The name of a module.
ProfileName This property is required. string
The name of the module stream profile.
SoftwareSourceId This property is required. string
The OCID of the software source.
StreamName This property is required. string
The name of the stream of the containing module.
ModuleName This property is required. string
The name of a module.
ProfileName This property is required. string
The name of the module stream profile.
SoftwareSourceId This property is required. string
The OCID of the software source.
StreamName This property is required. string
The name of the stream of the containing module.
moduleName This property is required. String
The name of a module.
profileName This property is required. String
The name of the module stream profile.
softwareSourceId This property is required. String
The OCID of the software source.
streamName This property is required. String
The name of the stream of the containing module.
moduleName This property is required. string
The name of a module.
profileName This property is required. string
The name of the module stream profile.
softwareSourceId This property is required. string
The OCID of the software source.
streamName This property is required. string
The name of the stream of the containing module.
module_name This property is required. str
The name of a module.
profile_name This property is required. str
The name of the module stream profile.
software_source_id This property is required. str
The OCID of the software source.
stream_name This property is required. str
The name of the stream of the containing module.
moduleName This property is required. String
The name of a module.
profileName This property is required. String
The name of the module stream profile.
softwareSourceId This property is required. String
The OCID of the software source.
streamName This property is required. String
The name of the stream of the containing module.

getSoftwareSourceModuleStreamProfile Result

The following output properties are available:

Description string
A description of the contents of the module stream profile.
Id string
The provider-assigned unique ID for this managed resource.
IsDefault bool
Indicates if this profile is the default for its module stream.
ModuleName string
The name of the module that contains the stream profile.
Name string
The name of the profile.
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.
ProfileName string
SoftwareSourceId string
StreamName string
The name of the stream that contains the profile.
Description string
A description of the contents of the module stream profile.
Id string
The provider-assigned unique ID for this managed resource.
IsDefault bool
Indicates if this profile is the default for its module stream.
ModuleName string
The name of the module that contains the stream profile.
Name string
The name of the profile.
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.
ProfileName string
SoftwareSourceId string
StreamName string
The name of the stream that contains the profile.
description String
A description of the contents of the module stream profile.
id String
The provider-assigned unique ID for this managed resource.
isDefault Boolean
Indicates if this profile is the default for its module stream.
moduleName String
The name of the module that contains the stream profile.
name String
The name of the profile.
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.
profileName String
softwareSourceId String
streamName String
The name of the stream that contains the profile.
description string
A description of the contents of the module stream profile.
id string
The provider-assigned unique ID for this managed resource.
isDefault boolean
Indicates if this profile is the default for its module stream.
moduleName string
The name of the module that contains the stream profile.
name string
The name of the profile.
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.
profileName string
softwareSourceId string
streamName string
The name of the stream that contains the profile.
description str
A description of the contents of the module stream profile.
id str
The provider-assigned unique ID for this managed resource.
is_default bool
Indicates if this profile is the default for its module stream.
module_name str
The name of the module that contains the stream profile.
name str
The name of the profile.
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.
profile_name str
software_source_id str
stream_name str
The name of the stream that contains the profile.
description String
A description of the contents of the module stream profile.
id String
The provider-assigned unique ID for this managed resource.
isDefault Boolean
Indicates if this profile is the default for its module stream.
moduleName String
The name of the module that contains the stream profile.
name String
The name of the profile.
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.
profileName String
softwareSourceId String
streamName String
The name of the stream that contains the profile.

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