1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagement
  5. getManagedInstanceStreamProfile
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.OsManagement.getManagedInstanceStreamProfile

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    This data source provides the list of Managed Instance Stream Profiles in Oracle Cloud Infrastructure OS Management service.

    Retrieve a list of module stream profiles, along with a summary of their of their status, from a managed instance. Filters may be applied to select a subset of profiles based on the filter criteria.

    The “moduleName”, “streamName”, and “profileName” attributes combine to form a set of filters on the list of module stream profiles. If a “modulName” is provided, only profiles that belong to that module are returned. If both a “moduleName” and “streamName” are given, only profiles belonging to that module stream are returned. Finally, if all three are given then only the particular profile indicated by the triple is returned. It is not valid to supply a “streamName” without a “moduleName”. It is also not valid to supply a “profileName” without a “streamName”.

    The “status” attribute filters against the state of a module stream profile. Valid values are “INSTALLED” and “AVAILABLE”. If the attribute is set to “INSTALLED”, only module stream profiles that are installed are included in the result set. If the attribute is set to “AVAILABLE”, only module stream profiles that are not installed are included in the result set. If the attribute is not defined, the request is not subject to this filter.

    When sorting by display name, the result set is sorted first by module name, then by stream name, and finally by profile name.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testManagedInstanceStreamProfiles = Oci.OsManagement.GetManagedInstanceStreamProfile.Invoke(new()
        {
            ManagedInstanceId = @var.Managed_instance_id,
            CompartmentId = @var.Compartment_id,
            ModuleName = @var.Managed_instance_module_name,
            ProfileName = @var.Managed_instance_module_stream_profile_name,
            ProfileStatus = @var.Managed_instance_profile_status,
            StreamName = @var.Managed_instance_module_stream_name,
        });
    
    });
    
    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.GetManagedInstanceStreamProfile(ctx, &osmanagement.GetManagedInstanceStreamProfileArgs{
    			ManagedInstanceId: _var.Managed_instance_id,
    			CompartmentId:     pulumi.StringRef(_var.Compartment_id),
    			ModuleName:        pulumi.StringRef(_var.Managed_instance_module_name),
    			ProfileName:       pulumi.StringRef(_var.Managed_instance_module_stream_profile_name),
    			ProfileStatus:     pulumi.StringRef(_var.Managed_instance_profile_status),
    			StreamName:        pulumi.StringRef(_var.Managed_instance_module_stream_name),
    		}, 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.GetManagedInstanceStreamProfileArgs;
    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 testManagedInstanceStreamProfiles = OsManagementFunctions.getManagedInstanceStreamProfile(GetManagedInstanceStreamProfileArgs.builder()
                .managedInstanceId(var_.managed_instance_id())
                .compartmentId(var_.compartment_id())
                .moduleName(var_.managed_instance_module_name())
                .profileName(var_.managed_instance_module_stream_profile_name())
                .profileStatus(var_.managed_instance_profile_status())
                .streamName(var_.managed_instance_module_stream_name())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_stream_profiles = oci.OsManagement.get_managed_instance_stream_profile(managed_instance_id=var["managed_instance_id"],
        compartment_id=var["compartment_id"],
        module_name=var["managed_instance_module_name"],
        profile_name=var["managed_instance_module_stream_profile_name"],
        profile_status=var["managed_instance_profile_status"],
        stream_name=var["managed_instance_module_stream_name"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceStreamProfiles = oci.OsManagement.getManagedInstanceStreamProfile({
        managedInstanceId: _var.managed_instance_id,
        compartmentId: _var.compartment_id,
        moduleName: _var.managed_instance_module_name,
        profileName: _var.managed_instance_module_stream_profile_name,
        profileStatus: _var.managed_instance_profile_status,
        streamName: _var.managed_instance_module_stream_name,
    });
    
    variables:
      testManagedInstanceStreamProfiles:
        fn::invoke:
          Function: oci:OsManagement:getManagedInstanceStreamProfile
          Arguments:
            managedInstanceId: ${var.managed_instance_id}
            compartmentId: ${var.compartment_id}
            moduleName: ${var.managed_instance_module_name}
            profileName: ${var.managed_instance_module_stream_profile_name}
            profileStatus: ${var.managed_instance_profile_status}
            streamName: ${var.managed_instance_module_stream_name}
    

    Using getManagedInstanceStreamProfile

    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 getManagedInstanceStreamProfile(args: GetManagedInstanceStreamProfileArgs, opts?: InvokeOptions): Promise<GetManagedInstanceStreamProfileResult>
    function getManagedInstanceStreamProfileOutput(args: GetManagedInstanceStreamProfileOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceStreamProfileResult>
    def get_managed_instance_stream_profile(compartment_id: Optional[str] = None,
                                            filters: Optional[Sequence[_osmanagement.GetManagedInstanceStreamProfileFilter]] = None,
                                            managed_instance_id: Optional[str] = None,
                                            module_name: Optional[str] = None,
                                            profile_name: Optional[str] = None,
                                            profile_status: Optional[str] = None,
                                            stream_name: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetManagedInstanceStreamProfileResult
    def get_managed_instance_stream_profile_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagement.GetManagedInstanceStreamProfileFilterArgs]]]] = None,
                                            managed_instance_id: Optional[pulumi.Input[str]] = None,
                                            module_name: Optional[pulumi.Input[str]] = None,
                                            profile_name: Optional[pulumi.Input[str]] = None,
                                            profile_status: Optional[pulumi.Input[str]] = None,
                                            stream_name: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceStreamProfileResult]
    func GetManagedInstanceStreamProfile(ctx *Context, args *GetManagedInstanceStreamProfileArgs, opts ...InvokeOption) (*GetManagedInstanceStreamProfileResult, error)
    func GetManagedInstanceStreamProfileOutput(ctx *Context, args *GetManagedInstanceStreamProfileOutputArgs, opts ...InvokeOption) GetManagedInstanceStreamProfileResultOutput

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

    public static class GetManagedInstanceStreamProfile 
    {
        public static Task<GetManagedInstanceStreamProfileResult> InvokeAsync(GetManagedInstanceStreamProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceStreamProfileResult> Invoke(GetManagedInstanceStreamProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceStreamProfileResult> getManagedInstanceStreamProfile(GetManagedInstanceStreamProfileArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagement/getManagedInstanceStreamProfile:getManagedInstanceStreamProfile
      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<GetManagedInstanceStreamProfileFilter>
    ModuleName string
    The name of a module. This parameter is required if a streamName is specified.
    ProfileName string
    The name of the profile of the containing module stream
    ProfileStatus string

    The status of the profile.

    A profile with the "INSTALLED" status indicates that the profile has been installed.

    A profile with the "AVAILABLE" status indicates that the profile is not installed, but can be.

    StreamName string
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    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 []GetManagedInstanceStreamProfileFilter
    ModuleName string
    The name of a module. This parameter is required if a streamName is specified.
    ProfileName string
    The name of the profile of the containing module stream
    ProfileStatus string

    The status of the profile.

    A profile with the "INSTALLED" status indicates that the profile has been installed.

    A profile with the "AVAILABLE" status indicates that the profile is not installed, but can be.

    StreamName string
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    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<GetManagedInstanceStreamProfileFilter>
    moduleName String
    The name of a module. This parameter is required if a streamName is specified.
    profileName String
    The name of the profile of the containing module stream
    profileStatus String

    The status of the profile.

    A profile with the "INSTALLED" status indicates that the profile has been installed.

    A profile with the "AVAILABLE" status indicates that the profile is not installed, but can be.

    streamName String
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    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 GetManagedInstanceStreamProfileFilter[]
    moduleName string
    The name of a module. This parameter is required if a streamName is specified.
    profileName string
    The name of the profile of the containing module stream
    profileStatus string

    The status of the profile.

    A profile with the "INSTALLED" status indicates that the profile has been installed.

    A profile with the "AVAILABLE" status indicates that the profile is not installed, but can be.

    streamName string
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    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 GetManagedInstanceStreamProfileFilter]
    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 of the containing module stream
    profile_status str

    The status of the profile.

    A profile with the "INSTALLED" status indicates that the profile has been installed.

    A profile with the "AVAILABLE" status indicates that the profile is not installed, but can be.

    stream_name str
    The name of the stream of the containing module. This parameter is required if a profileName is specified.
    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.
    profileName String
    The name of the profile of the containing module stream
    profileStatus String

    The status of the profile.

    A profile with the "INSTALLED" status indicates that the profile has been installed.

    A profile with the "AVAILABLE" status indicates that the profile is not installed, but can be.

    streamName String
    The name of the stream of the containing module. This parameter is required if a profileName is specified.

    getManagedInstanceStreamProfile Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceId string
    ModuleStreamProfileOnManagedInstances List<GetManagedInstanceStreamProfileModuleStreamProfileOnManagedInstance>
    The list of module_stream_profile_on_managed_instances.
    CompartmentId string
    Filters List<GetManagedInstanceStreamProfileFilter>
    ModuleName string
    The name of the module that contains the stream profile
    ProfileName string
    The name of the profile
    ProfileStatus string
    StreamName string
    The name of the stream that contains the profile
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceId string
    ModuleStreamProfileOnManagedInstances []GetManagedInstanceStreamProfileModuleStreamProfileOnManagedInstance
    The list of module_stream_profile_on_managed_instances.
    CompartmentId string
    Filters []GetManagedInstanceStreamProfileFilter
    ModuleName string
    The name of the module that contains the stream profile
    ProfileName string
    The name of the profile
    ProfileStatus string
    StreamName string
    The name of the stream that contains the profile
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceId String
    moduleStreamProfileOnManagedInstances List<GetManagedInstanceStreamProfileModuleStreamProfileOnManagedInstance>
    The list of module_stream_profile_on_managed_instances.
    compartmentId String
    filters List<GetManagedInstanceStreamProfileFilter>
    moduleName String
    The name of the module that contains the stream profile
    profileName String
    The name of the profile
    profileStatus String
    streamName String
    The name of the stream that contains the profile
    id string
    The provider-assigned unique ID for this managed resource.
    managedInstanceId string
    moduleStreamProfileOnManagedInstances GetManagedInstanceStreamProfileModuleStreamProfileOnManagedInstance[]
    The list of module_stream_profile_on_managed_instances.
    compartmentId string
    filters GetManagedInstanceStreamProfileFilter[]
    moduleName string
    The name of the module that contains the stream profile
    profileName string
    The name of the profile
    profileStatus string
    streamName string
    The name of the stream that contains the profile
    id str
    The provider-assigned unique ID for this managed resource.
    managed_instance_id str
    module_stream_profile_on_managed_instances GetManagedInstanceStreamProfileModuleStreamProfileOnManagedInstance]
    The list of module_stream_profile_on_managed_instances.
    compartment_id str
    filters GetManagedInstanceStreamProfileFilter]
    module_name str
    The name of the module that contains the stream profile
    profile_name str
    The name of the profile
    profile_status str
    stream_name str
    The name of the stream that contains the profile
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceId String
    moduleStreamProfileOnManagedInstances List<Property Map>
    The list of module_stream_profile_on_managed_instances.
    compartmentId String
    filters List<Property Map>
    moduleName String
    The name of the module that contains the stream profile
    profileName String
    The name of the profile
    profileStatus String
    streamName String
    The name of the stream that contains the profile

    Supporting Types

    GetManagedInstanceStreamProfileFilter

    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

    GetManagedInstanceStreamProfileModuleStreamProfileOnManagedInstance

    ModuleName string
    The name of a module. This parameter is required if a streamName is specified.
    ProfileName string
    The name of the profile of the containing module stream
    Status string
    The status of the profile.
    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 of the containing module stream
    Status string
    The status of the profile.
    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 of the containing module stream
    status String
    The status of the profile.
    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 of the containing module stream
    status string
    The status of the profile.
    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 of the containing module stream
    status str
    The status of the profile.
    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 of the containing module stream
    status String
    The status of the profile.
    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.24.0 published on Thursday, Feb 22, 2024 by Pulumi