oci.OsManagement.getManagedInstanceModuleStreams
Explore with Pulumi AI
This data source provides the list of Managed Instance Module Streams in Oracle Cloud Infrastructure OS Management service.
Retrieve a list of module streams, along with a summary of their status, from a managed instance. Filters may be applied to select a subset of module streams based on the filter criteria.
The ‘moduleName’ attribute filters against the name of a module.
It accepts strings of the format “
The “status” attribute filters against the state of a module stream. Valid values are “ENABLED”, “DISABLED”, and “ACTIVE”. If the attribute is set to “ENABLED”, only module streams that are enabled are included in the result set. If the attribute is set to “DISABLED”, only module streams that are not enabled are included in the result set. If the attribute is set to “ACTIVE”, only module streams that are active are included in the result set. If the attribute is not defined, the request is not subject to this filter.
When sorting by the display name, the result set is sorted first by the module name and then by the stream name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceModuleStreams = oci.OsManagement.getManagedInstanceModuleStreams({
    managedInstanceId: managedInstanceId,
    compartmentId: compartmentId,
    moduleName: managedInstanceModuleName,
    streamName: managedInstanceModuleStreamName,
    streamStatus: managedInstanceModuleStreamStatus,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_module_streams = oci.OsManagement.get_managed_instance_module_streams(managed_instance_id=managed_instance_id,
    compartment_id=compartment_id,
    module_name=managed_instance_module_name,
    stream_name=managed_instance_module_stream_name,
    stream_status=managed_instance_module_stream_status)
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.GetManagedInstanceModuleStreams(ctx, &osmanagement.GetManagedInstanceModuleStreamsArgs{
			ManagedInstanceId: managedInstanceId,
			CompartmentId:     pulumi.StringRef(compartmentId),
			ModuleName:        pulumi.StringRef(managedInstanceModuleName),
			StreamName:        pulumi.StringRef(managedInstanceModuleStreamName),
			StreamStatus:      pulumi.StringRef(managedInstanceModuleStreamStatus),
		}, 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 testManagedInstanceModuleStreams = Oci.OsManagement.GetManagedInstanceModuleStreams.Invoke(new()
    {
        ManagedInstanceId = managedInstanceId,
        CompartmentId = compartmentId,
        ModuleName = managedInstanceModuleName,
        StreamName = managedInstanceModuleStreamName,
        StreamStatus = managedInstanceModuleStreamStatus,
    });
});
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.GetManagedInstanceModuleStreamsArgs;
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 testManagedInstanceModuleStreams = OsManagementFunctions.getManagedInstanceModuleStreams(GetManagedInstanceModuleStreamsArgs.builder()
            .managedInstanceId(managedInstanceId)
            .compartmentId(compartmentId)
            .moduleName(managedInstanceModuleName)
            .streamName(managedInstanceModuleStreamName)
            .streamStatus(managedInstanceModuleStreamStatus)
            .build());
    }
}
variables:
  testManagedInstanceModuleStreams:
    fn::invoke:
      function: oci:OsManagement:getManagedInstanceModuleStreams
      arguments:
        managedInstanceId: ${managedInstanceId}
        compartmentId: ${compartmentId}
        moduleName: ${managedInstanceModuleName}
        streamName: ${managedInstanceModuleStreamName}
        streamStatus: ${managedInstanceModuleStreamStatus}
Using getManagedInstanceModuleStreams
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 getManagedInstanceModuleStreams(args: GetManagedInstanceModuleStreamsArgs, opts?: InvokeOptions): Promise<GetManagedInstanceModuleStreamsResult>
function getManagedInstanceModuleStreamsOutput(args: GetManagedInstanceModuleStreamsOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceModuleStreamsResult>def get_managed_instance_module_streams(compartment_id: Optional[str] = None,
                                        filters: Optional[Sequence[GetManagedInstanceModuleStreamsFilter]] = None,
                                        managed_instance_id: Optional[str] = None,
                                        module_name: Optional[str] = None,
                                        stream_name: Optional[str] = None,
                                        stream_status: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetManagedInstanceModuleStreamsResult
def get_managed_instance_module_streams_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                        filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetManagedInstanceModuleStreamsFilterArgs]]]] = None,
                                        managed_instance_id: Optional[pulumi.Input[str]] = None,
                                        module_name: Optional[pulumi.Input[str]] = None,
                                        stream_name: Optional[pulumi.Input[str]] = None,
                                        stream_status: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceModuleStreamsResult]func GetManagedInstanceModuleStreams(ctx *Context, args *GetManagedInstanceModuleStreamsArgs, opts ...InvokeOption) (*GetManagedInstanceModuleStreamsResult, error)
func GetManagedInstanceModuleStreamsOutput(ctx *Context, args *GetManagedInstanceModuleStreamsOutputArgs, opts ...InvokeOption) GetManagedInstanceModuleStreamsResultOutput> Note: This function is named GetManagedInstanceModuleStreams in the Go SDK.
public static class GetManagedInstanceModuleStreams 
{
    public static Task<GetManagedInstanceModuleStreamsResult> InvokeAsync(GetManagedInstanceModuleStreamsArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedInstanceModuleStreamsResult> Invoke(GetManagedInstanceModuleStreamsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedInstanceModuleStreamsResult> getManagedInstanceModuleStreams(GetManagedInstanceModuleStreamsArgs args, InvokeOptions options)
public static Output<GetManagedInstanceModuleStreamsResult> getManagedInstanceModuleStreams(GetManagedInstanceModuleStreamsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagement/getManagedInstanceModuleStreams:getManagedInstanceModuleStreams
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedInstance stringId 
- OCID for the managed instance
- 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<GetManaged Instance Module Streams Filter> 
- ModuleName string
- The name of a module. This parameter is required if a streamName is specified.
- StreamName string
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- StreamStatus string
- The status of the stream - A stream with the "ENABLED" status can be used as a source for installing profiles. Streams with this status are also "ACTIVE". - A stream with the "DISABLED" status cannot be the source for installing profiles. To install profiles and packages from this stream, it must be enabled. - A stream with the "ACTIVE" status can be used as a source for installing profiles. The packages that comprise the stream are also used when a matching package is installed directly. In general, a stream can have this status if it is the default stream for the module and no stream has been explicitly enabled. 
- ManagedInstance stringId 
- OCID for the managed instance
- 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
[]GetManaged Instance Module Streams Filter 
- ModuleName string
- The name of a module. This parameter is required if a streamName is specified.
- StreamName string
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- StreamStatus string
- The status of the stream - A stream with the "ENABLED" status can be used as a source for installing profiles. Streams with this status are also "ACTIVE". - A stream with the "DISABLED" status cannot be the source for installing profiles. To install profiles and packages from this stream, it must be enabled. - A stream with the "ACTIVE" status can be used as a source for installing profiles. The packages that comprise the stream are also used when a matching package is installed directly. In general, a stream can have this status if it is the default stream for the module and no stream has been explicitly enabled. 
- managedInstance StringId 
- OCID for the managed instance
- 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<GetManaged Instance Module Streams Filter> 
- moduleName String
- The name of a module. This parameter is required if a streamName is specified.
- streamName String
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- streamStatus String
- The status of the stream - A stream with the "ENABLED" status can be used as a source for installing profiles. Streams with this status are also "ACTIVE". - A stream with the "DISABLED" status cannot be the source for installing profiles. To install profiles and packages from this stream, it must be enabled. - A stream with the "ACTIVE" status can be used as a source for installing profiles. The packages that comprise the stream are also used when a matching package is installed directly. In general, a stream can have this status if it is the default stream for the module and no stream has been explicitly enabled. 
- managedInstance stringId 
- OCID for the managed instance
- 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
GetManaged Instance Module Streams Filter[] 
- moduleName string
- The name of a module. This parameter is required if a streamName is specified.
- streamName string
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- streamStatus string
- The status of the stream - A stream with the "ENABLED" status can be used as a source for installing profiles. Streams with this status are also "ACTIVE". - A stream with the "DISABLED" status cannot be the source for installing profiles. To install profiles and packages from this stream, it must be enabled. - A stream with the "ACTIVE" status can be used as a source for installing profiles. The packages that comprise the stream are also used when a matching package is installed directly. In general, a stream can have this status if it is the default stream for the module and no stream has been explicitly enabled. 
- managed_instance_ strid 
- OCID for the managed instance
- 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[GetManaged Instance Module Streams Filter] 
- module_name str
- The name of a module. This parameter is required if a streamName is specified.
- stream_name str
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- stream_status str
- The status of the stream - A stream with the "ENABLED" status can be used as a source for installing profiles. Streams with this status are also "ACTIVE". - A stream with the "DISABLED" status cannot be the source for installing profiles. To install profiles and packages from this stream, it must be enabled. - A stream with the "ACTIVE" status can be used as a source for installing profiles. The packages that comprise the stream are also used when a matching package is installed directly. In general, a stream can have this status if it is the default stream for the module and no stream has been explicitly enabled. 
- managedInstance StringId 
- OCID for the managed instance
- 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.
- streamName String
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- streamStatus String
- The status of the stream - A stream with the "ENABLED" status can be used as a source for installing profiles. Streams with this status are also "ACTIVE". - A stream with the "DISABLED" status cannot be the source for installing profiles. To install profiles and packages from this stream, it must be enabled. - A stream with the "ACTIVE" status can be used as a source for installing profiles. The packages that comprise the stream are also used when a matching package is installed directly. In general, a stream can have this status if it is the default stream for the module and no stream has been explicitly enabled. 
getManagedInstanceModuleStreams Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance stringId 
- ModuleStream List<GetOn Managed Instances Managed Instance Module Streams Module Stream On Managed Instance> 
- The list of module_stream_on_managed_instances.
- CompartmentId string
- Filters
List<GetManaged Instance Module Streams Filter> 
- ModuleName string
- The name of the module that contains the stream profile
- StreamName string
- The name of the stream.
- StreamStatus string
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance stringId 
- ModuleStream []GetOn Managed Instances Managed Instance Module Streams Module Stream On Managed Instance 
- The list of module_stream_on_managed_instances.
- CompartmentId string
- Filters
[]GetManaged Instance Module Streams Filter 
- ModuleName string
- The name of the module that contains the stream profile
- StreamName string
- The name of the stream.
- StreamStatus string
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- moduleStream List<GetOn Managed Instances Managed Instance Module Streams Module Stream On Managed Instance> 
- The list of module_stream_on_managed_instances.
- compartmentId String
- filters
List<GetManaged Instance Module Streams Filter> 
- moduleName String
- The name of the module that contains the stream profile
- streamName String
- The name of the stream.
- streamStatus String
- id string
- The provider-assigned unique ID for this managed resource.
- managedInstance stringId 
- moduleStream GetOn Managed Instances Managed Instance Module Streams Module Stream On Managed Instance[] 
- The list of module_stream_on_managed_instances.
- compartmentId string
- filters
GetManaged Instance Module Streams Filter[] 
- moduleName string
- The name of the module that contains the stream profile
- streamName string
- The name of the stream.
- streamStatus string
- id str
- The provider-assigned unique ID for this managed resource.
- managed_instance_ strid 
- module_stream_ Sequence[Geton_ managed_ instances Managed Instance Module Streams Module Stream On Managed Instance] 
- The list of module_stream_on_managed_instances.
- compartment_id str
- filters
Sequence[GetManaged Instance Module Streams Filter] 
- module_name str
- The name of the module that contains the stream profile
- stream_name str
- The name of the stream.
- stream_status str
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- moduleStream List<Property Map>On Managed Instances 
- The list of module_stream_on_managed_instances.
- compartmentId String
- filters List<Property Map>
- moduleName String
- The name of the module that contains the stream profile
- streamName String
- The name of the stream.
- streamStatus String
Supporting Types
GetManagedInstanceModuleStreamsFilter     
GetManagedInstanceModuleStreamsModuleStreamOnManagedInstance         
- ModuleName string
- The name of a module. This parameter is required if a streamName is specified.
- Profiles
List<GetManaged Instance Module Streams Module Stream On Managed Instance Profile> 
- The set of profiles that the module stream contains.
- SoftwareSource stringId 
- The OCID of the software source that provides this module stream.
- Status string
- The status of the stream
- StreamName string
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- TimeModified string
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- ModuleName string
- The name of a module. This parameter is required if a streamName is specified.
- Profiles
[]GetManaged Instance Module Streams Module Stream On Managed Instance Profile 
- The set of profiles that the module stream contains.
- SoftwareSource stringId 
- The OCID of the software source that provides this module stream.
- Status string
- The status of the stream
- StreamName string
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- TimeModified string
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- moduleName String
- The name of a module. This parameter is required if a streamName is specified.
- profiles
List<GetManaged Instance Module Streams Module Stream On Managed Instance Profile> 
- The set of profiles that the module stream contains.
- softwareSource StringId 
- The OCID of the software source that provides this module stream.
- status String
- The status of the stream
- streamName String
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- timeModified String
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- moduleName string
- The name of a module. This parameter is required if a streamName is specified.
- profiles
GetManaged Instance Module Streams Module Stream On Managed Instance Profile[] 
- The set of profiles that the module stream contains.
- softwareSource stringId 
- The OCID of the software source that provides this module stream.
- status string
- The status of the stream
- streamName string
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- timeModified string
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- module_name str
- The name of a module. This parameter is required if a streamName is specified.
- profiles
Sequence[GetManaged Instance Module Streams Module Stream On Managed Instance Profile] 
- The set of profiles that the module stream contains.
- software_source_ strid 
- The OCID of the software source that provides this module stream.
- status str
- The status of the stream
- stream_name str
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- time_modified str
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- moduleName String
- The name of a module. This parameter is required if a streamName is specified.
- profiles List<Property Map>
- The set of profiles that the module stream contains.
- softwareSource StringId 
- The OCID of the software source that provides this module stream.
- status String
- The status of the stream
- streamName String
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- timeModified String
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
GetManagedInstanceModuleStreamsModuleStreamOnManagedInstanceProfile          
- ModuleName string
- The name of a module. This parameter is required if a streamName is specified.
- ProfileName string
- The name of the profile
- Status string
- The status of the stream
- StreamName string
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- TimeModified string
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- ModuleName string
- The name of a module. This parameter is required if a streamName is specified.
- ProfileName string
- The name of the profile
- Status string
- The status of the stream
- StreamName string
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- TimeModified string
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- moduleName String
- The name of a module. This parameter is required if a streamName is specified.
- profileName String
- The name of the profile
- status String
- The status of the stream
- streamName String
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- timeModified String
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- moduleName string
- The name of a module. This parameter is required if a streamName is specified.
- profileName string
- The name of the profile
- status string
- The status of the stream
- streamName string
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- timeModified string
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- 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
- status str
- The status of the stream
- stream_name str
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- time_modified str
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- moduleName String
- The name of a module. This parameter is required if a streamName is specified.
- profileName String
- The name of the profile
- status String
- The status of the stream
- streamName String
- The name of the stream of the containing module. This parameter is required if a profileName is specified.
- timeModified String
- The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.