oci.OsManagementHub.getSoftwareSourceModuleStreamProfiles
Explore with Pulumi AI
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/v2/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:
- Software
Source stringId - The OCID of the software source.
- Filters
List<Get
Software Source Module Stream Profiles Filter> - Module
Name 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.
- Stream
Name string - The name of the module stream. This parameter is required if a profile name is specified.
- Software
Source stringId - The OCID of the software source.
- Filters
[]Get
Software Source Module Stream Profiles Filter - Module
Name 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.
- Stream
Name string - The name of the module stream. This parameter is required if a profile name is specified.
- software
Source StringId - The OCID of the software source.
- filters
List<Get
Software Source Module Stream Profiles Filter> - module
Name 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.
- stream
Name String - The name of the module stream. This parameter is required if a profile name is specified.
- software
Source stringId - The OCID of the software source.
- filters
Get
Software Source Module Stream Profiles Filter[] - module
Name 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.
- stream
Name string - The name of the module stream. This parameter is required if a profile name is specified.
- software_
source_ strid - The OCID of the software source.
- filters
Sequence[osmanagementhub.
Get Software Source Module Stream Profiles Filter] - 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.
- software
Source StringId - The OCID of the software source.
- filters List<Property Map>
- module
Name 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.
- stream
Name 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.
- Module
Stream List<GetProfile Collections Software Source Module Stream Profiles Module Stream Profile Collection> - The list of module_stream_profile_collection.
- Software
Source stringId - Filters
List<Get
Software Source Module Stream Profiles Filter> - Module
Name string - The name of the module that contains the stream profile.
- Name string
- The name of the profile.
- Stream
Name string - The name of the stream that contains the profile.
- Id string
- The provider-assigned unique ID for this managed resource.
- Module
Stream []GetProfile Collections Software Source Module Stream Profiles Module Stream Profile Collection - The list of module_stream_profile_collection.
- Software
Source stringId - Filters
[]Get
Software Source Module Stream Profiles Filter - Module
Name string - The name of the module that contains the stream profile.
- Name string
- The name of the profile.
- Stream
Name string - The name of the stream that contains the profile.
- id String
- The provider-assigned unique ID for this managed resource.
- module
Stream List<GetProfile Collections Software Source Module Stream Profiles Module Stream Profile Collection> - The list of module_stream_profile_collection.
- software
Source StringId - filters
List<Get
Software Source Module Stream Profiles Filter> - module
Name String - The name of the module that contains the stream profile.
- name String
- The name of the profile.
- stream
Name String - The name of the stream that contains the profile.
- id string
- The provider-assigned unique ID for this managed resource.
- module
Stream GetProfile Collections Software Source Module Stream Profiles Module Stream Profile Collection[] - The list of module_stream_profile_collection.
- software
Source stringId - filters
Get
Software Source Module Stream Profiles Filter[] - module
Name string - The name of the module that contains the stream profile.
- name string
- The name of the profile.
- stream
Name string - The name of the stream that contains the profile.
- id str
- The provider-assigned unique ID for this managed resource.
- module_
stream_ Sequence[osmanagementhub.profile_ collections Get Software Source Module Stream Profiles Module Stream Profile Collection] - The list of module_stream_profile_collection.
- software_
source_ strid - filters
Sequence[osmanagementhub.
Get Software Source Module Stream Profiles Filter] - 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.
- module
Stream List<Property Map>Profile Collections - The list of module_stream_profile_collection.
- software
Source StringId - filters List<Property Map>
- module
Name String - The name of the module that contains the stream profile.
- name String
- The name of the profile.
- stream
Name String - The name of the stream that contains the profile.
Supporting Types
GetSoftwareSourceModuleStreamProfilesFilter
GetSoftwareSourceModuleStreamProfilesModuleStreamProfileCollection
GetSoftwareSourceModuleStreamProfilesModuleStreamProfileCollectionItem
- Description string
- 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 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.
- Stream
Name 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.
- Is
Default bool - Indicates if this profile is the default for its module stream.
- Module
Name 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.
- Stream
Name 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.
- is
Default Boolean - Indicates if this profile is the default for its module stream.
- module
Name 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.
- stream
Name 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.
- is
Default boolean - Indicates if this profile is the default for its module stream.
- module
Name 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.
- stream
Name 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.
- is
Default Boolean - Indicates if this profile is the default for its module stream.
- module
Name 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.
- stream
Name 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.