1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagement
  5. getManagedInstanceModuleStreams
Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi

oci.OsManagement.getManagedInstanceModuleStreams

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi

    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 “”. If this attribute is defined, only streams that belong to the specified module are included in the result set. If it is not defined, the request is not subject to this filter.

    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

    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 = @var.Managed_instance_id,
            CompartmentId = @var.Compartment_id,
            ModuleName = @var.Managed_instance_module_name,
            StreamName = @var.Managed_instance_module_stream_name,
            StreamStatus = @var.Managed_instance_module_stream_status,
        });
    
    });
    
    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.GetManagedInstanceModuleStreams(ctx, &osmanagement.GetManagedInstanceModuleStreamsArgs{
    			ManagedInstanceId: _var.Managed_instance_id,
    			CompartmentId:     pulumi.StringRef(_var.Compartment_id),
    			ModuleName:        pulumi.StringRef(_var.Managed_instance_module_name),
    			StreamName:        pulumi.StringRef(_var.Managed_instance_module_stream_name),
    			StreamStatus:      pulumi.StringRef(_var.Managed_instance_module_stream_status),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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(var_.managed_instance_id())
                .compartmentId(var_.compartment_id())
                .moduleName(var_.managed_instance_module_name())
                .streamName(var_.managed_instance_module_stream_name())
                .streamStatus(var_.managed_instance_module_stream_status())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_module_streams = oci.OsManagement.get_managed_instance_module_streams(managed_instance_id=var["managed_instance_id"],
        compartment_id=var["compartment_id"],
        module_name=var["managed_instance_module_name"],
        stream_name=var["managed_instance_module_stream_name"],
        stream_status=var["managed_instance_module_stream_status"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceModuleStreams = oci.OsManagement.getManagedInstanceModuleStreams({
        managedInstanceId: _var.managed_instance_id,
        compartmentId: _var.compartment_id,
        moduleName: _var.managed_instance_module_name,
        streamName: _var.managed_instance_module_stream_name,
        streamStatus: _var.managed_instance_module_stream_status,
    });
    
    variables:
      testManagedInstanceModuleStreams:
        fn::invoke:
          Function: oci:OsManagement:getManagedInstanceModuleStreams
          Arguments:
            managedInstanceId: ${var.managed_instance_id}
            compartmentId: ${var.compartment_id}
            moduleName: ${var.managed_instance_module_name}
            streamName: ${var.managed_instance_module_stream_name}
            streamStatus: ${var.managed_instance_module_stream_status}
    

    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[_osmanagement.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[_osmanagement.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagement/getManagedInstanceModuleStreams:getManagedInstanceModuleStreams
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagedInstanceId string

    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<GetManagedInstanceModuleStreamsFilter>
    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.

    ManagedInstanceId string

    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 []GetManagedInstanceModuleStreamsFilter
    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.

    managedInstanceId String

    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<GetManagedInstanceModuleStreamsFilter>
    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.

    managedInstanceId string

    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 GetManagedInstanceModuleStreamsFilter[]
    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_id str

    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 GetManagedInstanceModuleStreamsFilter]
    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.

    managedInstanceId String

    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.

    ManagedInstanceId string
    ModuleStreamOnManagedInstances List<GetManagedInstanceModuleStreamsModuleStreamOnManagedInstance>

    The list of module_stream_on_managed_instances.

    CompartmentId string
    Filters List<GetManagedInstanceModuleStreamsFilter>
    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.

    ManagedInstanceId string
    ModuleStreamOnManagedInstances []GetManagedInstanceModuleStreamsModuleStreamOnManagedInstance

    The list of module_stream_on_managed_instances.

    CompartmentId string
    Filters []GetManagedInstanceModuleStreamsFilter
    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.

    managedInstanceId String
    moduleStreamOnManagedInstances List<GetManagedInstanceModuleStreamsModuleStreamOnManagedInstance>

    The list of module_stream_on_managed_instances.

    compartmentId String
    filters List<GetManagedInstanceModuleStreamsFilter>
    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.

    managedInstanceId string
    moduleStreamOnManagedInstances GetManagedInstanceModuleStreamsModuleStreamOnManagedInstance[]

    The list of module_stream_on_managed_instances.

    compartmentId string
    filters GetManagedInstanceModuleStreamsFilter[]
    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_id str
    module_stream_on_managed_instances GetManagedInstanceModuleStreamsModuleStreamOnManagedInstance]

    The list of module_stream_on_managed_instances.

    compartment_id str
    filters GetManagedInstanceModuleStreamsFilter]
    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.

    managedInstanceId String
    moduleStreamOnManagedInstances List<Property Map>

    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

    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

    GetManagedInstanceModuleStreamsModuleStreamOnManagedInstance

    ModuleName string

    The name of a module. This parameter is required if a streamName is specified.

    Profiles List<GetManagedInstanceModuleStreamsModuleStreamOnManagedInstanceProfile>

    The set of profiles that the module stream contains.

    SoftwareSourceId string

    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 []GetManagedInstanceModuleStreamsModuleStreamOnManagedInstanceProfile

    The set of profiles that the module stream contains.

    SoftwareSourceId string

    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<GetManagedInstanceModuleStreamsModuleStreamOnManagedInstanceProfile>

    The set of profiles that the module stream contains.

    softwareSourceId String

    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 GetManagedInstanceModuleStreamsModuleStreamOnManagedInstanceProfile[]

    The set of profiles that the module stream contains.

    softwareSourceId string

    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 GetManagedInstanceModuleStreamsModuleStreamOnManagedInstanceProfile]

    The set of profiles that the module stream contains.

    software_source_id str

    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.

    softwareSourceId String

    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 oci Terraform Provider.

    oci logo
    Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi