Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getManagedInstanceAvailablePackages
Explore with Pulumi AI
This data source provides the list of Managed Instance Available Packages in Oracle Cloud Infrastructure Os Management Hub service.
Returns a list of packages that are available for installation on a managed instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceAvailablePackages = oci.OsManagementHub.getManagedInstanceAvailablePackages({
    managedInstanceId: testManagedInstance.id,
    compartmentId: compartmentId,
    displayNames: managedInstanceAvailablePackageDisplayName,
    displayNameContains: managedInstanceAvailablePackageDisplayNameContains,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_available_packages = oci.OsManagementHub.get_managed_instance_available_packages(managed_instance_id=test_managed_instance["id"],
    compartment_id=compartment_id,
    display_names=managed_instance_available_package_display_name,
    display_name_contains=managed_instance_available_package_display_name_contains)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/osmanagementhub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := osmanagementhub.GetManagedInstanceAvailablePackages(ctx, &osmanagementhub.GetManagedInstanceAvailablePackagesArgs{
			ManagedInstanceId:   testManagedInstance.Id,
			CompartmentId:       pulumi.StringRef(compartmentId),
			DisplayNames:        managedInstanceAvailablePackageDisplayName,
			DisplayNameContains: pulumi.StringRef(managedInstanceAvailablePackageDisplayNameContains),
		}, 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 testManagedInstanceAvailablePackages = Oci.OsManagementHub.GetManagedInstanceAvailablePackages.Invoke(new()
    {
        ManagedInstanceId = testManagedInstance.Id,
        CompartmentId = compartmentId,
        DisplayNames = managedInstanceAvailablePackageDisplayName,
        DisplayNameContains = managedInstanceAvailablePackageDisplayNameContains,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
import com.pulumi.oci.OsManagementHub.inputs.GetManagedInstanceAvailablePackagesArgs;
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 testManagedInstanceAvailablePackages = OsManagementHubFunctions.getManagedInstanceAvailablePackages(GetManagedInstanceAvailablePackagesArgs.builder()
            .managedInstanceId(testManagedInstance.id())
            .compartmentId(compartmentId)
            .displayNames(managedInstanceAvailablePackageDisplayName)
            .displayNameContains(managedInstanceAvailablePackageDisplayNameContains)
            .build());
    }
}
variables:
  testManagedInstanceAvailablePackages:
    fn::invoke:
      function: oci:OsManagementHub:getManagedInstanceAvailablePackages
      arguments:
        managedInstanceId: ${testManagedInstance.id}
        compartmentId: ${compartmentId}
        displayNames: ${managedInstanceAvailablePackageDisplayName}
        displayNameContains: ${managedInstanceAvailablePackageDisplayNameContains}
Using getManagedInstanceAvailablePackages
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 getManagedInstanceAvailablePackages(args: GetManagedInstanceAvailablePackagesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceAvailablePackagesResult>
function getManagedInstanceAvailablePackagesOutput(args: GetManagedInstanceAvailablePackagesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceAvailablePackagesResult>def get_managed_instance_available_packages(compartment_id: Optional[str] = None,
                                            display_name_contains: Optional[str] = None,
                                            display_names: Optional[Sequence[str]] = None,
                                            filters: Optional[Sequence[GetManagedInstanceAvailablePackagesFilter]] = None,
                                            managed_instance_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetManagedInstanceAvailablePackagesResult
def get_managed_instance_available_packages_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                            display_name_contains: Optional[pulumi.Input[str]] = None,
                                            display_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetManagedInstanceAvailablePackagesFilterArgs]]]] = None,
                                            managed_instance_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceAvailablePackagesResult]func GetManagedInstanceAvailablePackages(ctx *Context, args *GetManagedInstanceAvailablePackagesArgs, opts ...InvokeOption) (*GetManagedInstanceAvailablePackagesResult, error)
func GetManagedInstanceAvailablePackagesOutput(ctx *Context, args *GetManagedInstanceAvailablePackagesOutputArgs, opts ...InvokeOption) GetManagedInstanceAvailablePackagesResultOutput> Note: This function is named GetManagedInstanceAvailablePackages in the Go SDK.
public static class GetManagedInstanceAvailablePackages 
{
    public static Task<GetManagedInstanceAvailablePackagesResult> InvokeAsync(GetManagedInstanceAvailablePackagesArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedInstanceAvailablePackagesResult> Invoke(GetManagedInstanceAvailablePackagesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedInstanceAvailablePackagesResult> getManagedInstanceAvailablePackages(GetManagedInstanceAvailablePackagesArgs args, InvokeOptions options)
public static Output<GetManagedInstanceAvailablePackagesResult> getManagedInstanceAvailablePackages(GetManagedInstanceAvailablePackagesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getManagedInstanceAvailablePackages:getManagedInstanceAvailablePackages
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedInstance stringId 
- The OCID of the managed instance.
- CompartmentId string
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- DisplayName stringContains 
- A filter to return resources that may partially match the given display name.
- DisplayNames List<string>
- A filter to return resources that match the given display names.
- Filters
List<GetManaged Instance Available Packages Filter> 
- ManagedInstance stringId 
- The OCID of the managed instance.
- CompartmentId string
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- DisplayName stringContains 
- A filter to return resources that may partially match the given display name.
- DisplayNames []string
- A filter to return resources that match the given display names.
- Filters
[]GetManaged Instance Available Packages Filter 
- managedInstance StringId 
- The OCID of the managed instance.
- compartmentId String
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- displayName StringContains 
- A filter to return resources that may partially match the given display name.
- displayNames List<String>
- A filter to return resources that match the given display names.
- filters
List<GetManaged Instance Available Packages Filter> 
- managedInstance stringId 
- The OCID of the managed instance.
- compartmentId string
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- displayName stringContains 
- A filter to return resources that may partially match the given display name.
- displayNames string[]
- A filter to return resources that match the given display names.
- filters
GetManaged Instance Available Packages Filter[] 
- managed_instance_ strid 
- The OCID of the managed instance.
- compartment_id str
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display_name_ strcontains 
- A filter to return resources that may partially match the given display name.
- display_names Sequence[str]
- A filter to return resources that match the given display names.
- filters
Sequence[GetManaged Instance Available Packages Filter] 
- managedInstance StringId 
- The OCID of the managed instance.
- compartmentId String
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- displayName StringContains 
- A filter to return resources that may partially match the given display name.
- displayNames List<String>
- A filter to return resources that match the given display names.
- filters List<Property Map>
getManagedInstanceAvailablePackages Result
The following output properties are available:
- AvailablePackage List<GetCollections Managed Instance Available Packages Available Package Collection> 
- The list of available_package_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance stringId 
- CompartmentId string
- DisplayName stringContains 
- DisplayNames List<string>
- Software source name.
- Filters
List<GetManaged Instance Available Packages Filter> 
- AvailablePackage []GetCollections Managed Instance Available Packages Available Package Collection 
- The list of available_package_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance stringId 
- CompartmentId string
- DisplayName stringContains 
- DisplayNames []string
- Software source name.
- Filters
[]GetManaged Instance Available Packages Filter 
- availablePackage List<GetCollections Managed Instance Available Packages Available Package Collection> 
- The list of available_package_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- compartmentId String
- displayName StringContains 
- displayNames List<String>
- Software source name.
- filters
List<GetManaged Instance Available Packages Filter> 
- availablePackage GetCollections Managed Instance Available Packages Available Package Collection[] 
- The list of available_package_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- managedInstance stringId 
- compartmentId string
- displayName stringContains 
- displayNames string[]
- Software source name.
- filters
GetManaged Instance Available Packages Filter[] 
- available_package_ Sequence[Getcollections Managed Instance Available Packages Available Package Collection] 
- The list of available_package_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_instance_ strid 
- compartment_id str
- display_name_ strcontains 
- display_names Sequence[str]
- Software source name.
- filters
Sequence[GetManaged Instance Available Packages Filter] 
- availablePackage List<Property Map>Collections 
- The list of available_package_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- compartmentId String
- displayName StringContains 
- displayNames List<String>
- Software source name.
- filters List<Property Map>
Supporting Types
GetManagedInstanceAvailablePackagesAvailablePackageCollection       
- Items
List<GetManaged Instance Available Packages Available Package Collection Item> 
- List of available packages.
- Items
[]GetManaged Instance Available Packages Available Package Collection Item 
- List of available packages.
- items
List<GetManaged Instance Available Packages Available Package Collection Item> 
- List of available packages.
- items
GetManaged Instance Available Packages Available Package Collection Item[] 
- List of available packages.
- items
Sequence[GetManaged Instance Available Packages Available Package Collection Item] 
- List of available packages.
- items List<Property Map>
- List of available packages.
GetManagedInstanceAvailablePackagesAvailablePackageCollectionItem        
- Architecture string
- The architecture for which this package was built.
- DisplayName string
- A filter to return resources that match the given display names.
- Name string
- Unique identifier for the package.
- PackageClassification string
- Status of the software package.
- SoftwareSources List<GetManaged Instance Available Packages Available Package Collection Item Software Source> 
- List of software sources that provide the software package.
- Type string
- Type of the package.
- Version string
- Version of the installed package.
- Architecture string
- The architecture for which this package was built.
- DisplayName string
- A filter to return resources that match the given display names.
- Name string
- Unique identifier for the package.
- PackageClassification string
- Status of the software package.
- SoftwareSources []GetManaged Instance Available Packages Available Package Collection Item Software Source 
- List of software sources that provide the software package.
- Type string
- Type of the package.
- Version string
- Version of the installed package.
- architecture String
- The architecture for which this package was built.
- displayName String
- A filter to return resources that match the given display names.
- name String
- Unique identifier for the package.
- packageClassification String
- Status of the software package.
- softwareSources List<GetManaged Instance Available Packages Available Package Collection Item Software Source> 
- List of software sources that provide the software package.
- type String
- Type of the package.
- version String
- Version of the installed package.
- architecture string
- The architecture for which this package was built.
- displayName string
- A filter to return resources that match the given display names.
- name string
- Unique identifier for the package.
- packageClassification string
- Status of the software package.
- softwareSources GetManaged Instance Available Packages Available Package Collection Item Software Source[] 
- List of software sources that provide the software package.
- type string
- Type of the package.
- version string
- Version of the installed package.
- architecture str
- The architecture for which this package was built.
- display_name str
- A filter to return resources that match the given display names.
- name str
- Unique identifier for the package.
- package_classification str
- Status of the software package.
- software_sources Sequence[GetManaged Instance Available Packages Available Package Collection Item Software Source] 
- List of software sources that provide the software package.
- type str
- Type of the package.
- version str
- Version of the installed package.
- architecture String
- The architecture for which this package was built.
- displayName String
- A filter to return resources that match the given display names.
- name String
- Unique identifier for the package.
- packageClassification String
- Status of the software package.
- softwareSources List<Property Map>
- List of software sources that provide the software package.
- type String
- Type of the package.
- version String
- Version of the installed package.
GetManagedInstanceAvailablePackagesAvailablePackageCollectionItemSoftwareSource          
- Description string
- Software source description.
- DisplayName string
- A filter to return resources that match the given display names.
- Id string
- The OCID of the software source.
- IsMandatory boolFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- SoftwareSource stringType 
- Type of the software source.
- Description string
- Software source description.
- DisplayName string
- A filter to return resources that match the given display names.
- Id string
- The OCID of the software source.
- IsMandatory boolFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- SoftwareSource stringType 
- Type of the software source.
- description String
- Software source description.
- displayName String
- A filter to return resources that match the given display names.
- id String
- The OCID of the software source.
- isMandatory BooleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource StringType 
- Type of the software source.
- description string
- Software source description.
- displayName string
- A filter to return resources that match the given display names.
- id string
- The OCID of the software source.
- isMandatory booleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource stringType 
- Type of the software source.
- description str
- Software source description.
- display_name str
- A filter to return resources that match the given display names.
- id str
- The OCID of the software source.
- is_mandatory_ boolfor_ autonomous_ linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software_source_ strtype 
- Type of the software source.
- description String
- Software source description.
- displayName String
- A filter to return resources that match the given display names.
- id String
- The OCID of the software source.
- isMandatory BooleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource StringType 
- Type of the software source.
GetManagedInstanceAvailablePackagesFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.