oci.OsManagement.getManagedInstanceStreamProfile
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceStreamProfiles = oci.OsManagement.getManagedInstanceStreamProfile({
managedInstanceId: managedInstanceId,
compartmentId: compartmentId,
moduleName: managedInstanceModuleName,
profileName: managedInstanceModuleStreamProfileName,
profileStatus: managedInstanceProfileStatus,
streamName: managedInstanceModuleStreamName,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_stream_profiles = oci.OsManagement.get_managed_instance_stream_profile(managed_instance_id=managed_instance_id,
compartment_id=compartment_id,
module_name=managed_instance_module_name,
profile_name=managed_instance_module_stream_profile_name,
profile_status=managed_instance_profile_status,
stream_name=managed_instance_module_stream_name)
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.GetManagedInstanceStreamProfile(ctx, &osmanagement.GetManagedInstanceStreamProfileArgs{
ManagedInstanceId: managedInstanceId,
CompartmentId: pulumi.StringRef(compartmentId),
ModuleName: pulumi.StringRef(managedInstanceModuleName),
ProfileName: pulumi.StringRef(managedInstanceModuleStreamProfileName),
ProfileStatus: pulumi.StringRef(managedInstanceProfileStatus),
StreamName: pulumi.StringRef(managedInstanceModuleStreamName),
}, 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 testManagedInstanceStreamProfiles = Oci.OsManagement.GetManagedInstanceStreamProfile.Invoke(new()
{
ManagedInstanceId = managedInstanceId,
CompartmentId = compartmentId,
ModuleName = managedInstanceModuleName,
ProfileName = managedInstanceModuleStreamProfileName,
ProfileStatus = managedInstanceProfileStatus,
StreamName = managedInstanceModuleStreamName,
});
});
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(managedInstanceId)
.compartmentId(compartmentId)
.moduleName(managedInstanceModuleName)
.profileName(managedInstanceModuleStreamProfileName)
.profileStatus(managedInstanceProfileStatus)
.streamName(managedInstanceModuleStreamName)
.build());
}
}
variables:
testManagedInstanceStreamProfiles:
fn::invoke:
Function: oci:OsManagement:getManagedInstanceStreamProfile
Arguments:
managedInstanceId: ${managedInstanceId}
compartmentId: ${compartmentId}
moduleName: ${managedInstanceModuleName}
profileName: ${managedInstanceModuleStreamProfileName}
profileStatus: ${managedInstanceProfileStatus}
streamName: ${managedInstanceModuleStreamName}
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:
- 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 Stream Profile Filter> - 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 of the containing module stream
- Profile
Status 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.
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- 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 Stream Profile Filter - 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 of the containing module stream
- Profile
Status 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.
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- 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 Stream Profile Filter> - 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 of the containing module stream
- profile
Status 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.
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- 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 Stream Profile Filter[] - 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 of the containing module stream
- profile
Status 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.
- stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- 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 Stream Profile Filter] - 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.
- 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.
- profile
Name String - The name of the profile of the containing module stream
- profile
Status 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.
- stream
Name 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.
- Managed
Instance stringId - Module
Stream List<GetProfile On Managed Instances Managed Instance Stream Profile Module Stream Profile On Managed Instance> - The list of module_stream_profile_on_managed_instances.
- Compartment
Id string - Filters
List<Get
Managed Instance Stream Profile Filter> - Module
Name string - The name of the module that contains the stream profile
- Profile
Name string - The name of the profile
- Profile
Status string - Stream
Name string - The name of the stream that contains the profile
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance stringId - Module
Stream []GetProfile On Managed Instances Managed Instance Stream Profile Module Stream Profile On Managed Instance - The list of module_stream_profile_on_managed_instances.
- Compartment
Id string - Filters
[]Get
Managed Instance Stream Profile Filter - Module
Name string - The name of the module that contains the stream profile
- Profile
Name string - The name of the profile
- Profile
Status string - Stream
Name string - The name of the stream that contains the profile
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance StringId - module
Stream List<GetProfile On Managed Instances Managed Instance Stream Profile Module Stream Profile On Managed Instance> - The list of module_stream_profile_on_managed_instances.
- compartment
Id String - filters
List<Get
Managed Instance Stream Profile Filter> - module
Name String - The name of the module that contains the stream profile
- profile
Name String - The name of the profile
- profile
Status String - stream
Name String - The name of the stream that contains the profile
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Instance stringId - module
Stream GetProfile On Managed Instances Managed Instance Stream Profile Module Stream Profile On Managed Instance[] - The list of module_stream_profile_on_managed_instances.
- compartment
Id string - filters
Get
Managed Instance Stream Profile Filter[] - module
Name string - The name of the module that contains the stream profile
- profile
Name string - The name of the profile
- profile
Status string - stream
Name string - The name of the stream that contains the profile
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
instance_ strid - module_
stream_ Sequence[osmanagement.profile_ on_ managed_ instances Get Managed Instance Stream Profile Module Stream Profile On Managed Instance] - The list of module_stream_profile_on_managed_instances.
- compartment_
id str - filters
Sequence[osmanagement.
Get Managed Instance Stream Profile Filter] - 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.
- managed
Instance StringId - module
Stream List<Property Map>Profile On Managed Instances - The list of module_stream_profile_on_managed_instances.
- compartment
Id String - filters List<Property Map>
- module
Name String - The name of the module that contains the stream profile
- profile
Name String - The name of the profile
- profile
Status String - stream
Name String - The name of the stream that contains the profile
Supporting Types
GetManagedInstanceStreamProfileFilter
GetManagedInstanceStreamProfileModuleStreamProfileOnManagedInstance
- 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 of the containing module stream
- Status string
- The status of the profile.
- 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 of the containing module stream
- Status string
- The status of the profile.
- 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 of the containing module stream
- status String
- The status of the profile.
- 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 of the containing module stream
- status string
- The status of the profile.
- 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 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.
- 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 of the containing module stream
- status String
- The status of the profile.
- 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.