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/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[_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:
- Managed
Instance stringId - OCID for the managed instance
- Compartment
Id 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<Get
Managed Instance Module Streams Filter> - Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- Stream
Status 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 stringId - OCID for the managed instance
- Compartment
Id string - The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
- Filters
[]Get
Managed Instance Module Streams Filter - Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- Stream
Status 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 StringId - OCID for the managed instance
- compartment
Id 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<Get
Managed Instance Module Streams Filter> - module
Name String - The name of a module. This parameter is required if a streamName is specified.
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- stream
Status 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 stringId - OCID for the managed instance
- compartment
Id string - The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
- filters
Get
Managed Instance Module Streams Filter[] - module
Name string - The name of a module. This parameter is required if a streamName is specified.
- stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- stream
Status 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[osmanagement.
Get Managed 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.
- managed
Instance StringId - OCID for the managed instance
- compartment
Id 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>
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- stream
Status 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.
- Managed
Instance stringId - Module
Stream List<GetOn Managed Instances Managed Instance Module Streams Module Stream On Managed Instance> - The list of module_stream_on_managed_instances.
- Compartment
Id string - Filters
List<Get
Managed Instance Module Streams Filter> - Module
Name string - The name of the module that contains the stream profile
- Stream
Name string - The name of the stream.
- Stream
Status string
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance stringId - Module
Stream []GetOn Managed Instances Managed Instance Module Streams Module Stream On Managed Instance - The list of module_stream_on_managed_instances.
- Compartment
Id string - Filters
[]Get
Managed Instance Module Streams Filter - Module
Name string - The name of the module that contains the stream profile
- Stream
Name string - The name of the stream.
- Stream
Status string
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance StringId - module
Stream List<GetOn Managed Instances Managed Instance Module Streams Module Stream On Managed Instance> - The list of module_stream_on_managed_instances.
- compartment
Id String - filters
List<Get
Managed Instance Module Streams Filter> - module
Name String - The name of the module that contains the stream profile
- stream
Name String - The name of the stream.
- stream
Status String
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Instance stringId - module
Stream GetOn Managed Instances Managed Instance Module Streams Module Stream On Managed Instance[] - The list of module_stream_on_managed_instances.
- compartment
Id string - filters
Get
Managed Instance Module Streams Filter[] - module
Name string - The name of the module that contains the stream profile
- stream
Name string - The name of the stream.
- stream
Status string
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
instance_ strid - module_
stream_ Sequence[osmanagement.on_ managed_ instances Get Managed Instance Module Streams Module Stream On Managed Instance] - The list of module_stream_on_managed_instances.
- compartment_
id str - filters
Sequence[osmanagement.
Get Managed 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.
- managed
Instance StringId - module
Stream List<Property Map>On Managed Instances - The list of module_stream_on_managed_instances.
- compartment
Id String - filters List<Property Map>
- module
Name String - The name of the module that contains the stream profile
- stream
Name String - The name of the stream.
- stream
Status String
Supporting Types
GetManagedInstanceModuleStreamsFilter
GetManagedInstanceModuleStreamsModuleStreamOnManagedInstance
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Profiles
List<Get
Managed Instance Module Streams Module Stream On Managed Instance Profile> - The set of profiles that the module stream contains.
- Software
Source stringId - The OCID of the software source that provides this module stream.
- Status string
- The status of the stream
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- Time
Modified string - The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Profiles
[]Get
Managed Instance Module Streams Module Stream On Managed Instance Profile - The set of profiles that the module stream contains.
- Software
Source stringId - The OCID of the software source that provides this module stream.
- Status string
- The status of the stream
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- Time
Modified string - The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- profiles
List<Get
Managed Instance Module Streams Module Stream On Managed Instance Profile> - The set of profiles that the module stream contains.
- software
Source StringId - The OCID of the software source that provides this module stream.
- status String
- The status of the stream
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- time
Modified String - The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- module
Name string - The name of a module. This parameter is required if a streamName is specified.
- profiles
Get
Managed Instance Module Streams Module Stream On Managed Instance Profile[] - The set of profiles that the module stream contains.
- software
Source stringId - The OCID of the software source that provides this module stream.
- status string
- The status of the stream
- stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- time
Modified 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[osmanagement.
Get Managed 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.
- module
Name 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.
- software
Source StringId - The OCID of the software source that provides this module stream.
- status String
- The status of the stream
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- time
Modified String - The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
GetManagedInstanceModuleStreamsModuleStreamOnManagedInstanceProfile
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Profile
Name string - The name of the profile
- Status string
- The status of the stream
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- Time
Modified string - The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Profile
Name string - The name of the profile
- Status string
- The status of the stream
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- Time
Modified string - The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- profile
Name String - The name of the profile
- status String
- The status of the stream
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- time
Modified String - The date and time of the last status change for this profile, as described in RFC 3339, section 14.29.
- module
Name string - The name of a module. This parameter is required if a streamName is specified.
- profile
Name string - The name of the profile
- status string
- The status of the stream
- stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- time
Modified 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.
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- profile
Name String - The name of the profile
- status String
- The status of the stream
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- time
Modified 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.