1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagedInstanceAvailableSoftwareSources
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.OsManagementHub.getManagedInstanceAvailableSoftwareSources

Explore with Pulumi AI

This data source provides the list of Managed Instance Available Software Sources in Oracle Cloud Infrastructure Os Management Hub service.

Returns a list of software sources that can be attached to the specified managed instance. Any software sources already attached to the instance are not included in the list.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testManagedInstanceAvailableSoftwareSources = oci.OsManagementHub.getManagedInstanceAvailableSoftwareSources({
    managedInstanceId: testManagedInstance.id,
    compartmentId: compartmentId,
    displayNames: managedInstanceAvailableSoftwareSourceDisplayName,
    displayNameContains: managedInstanceAvailableSoftwareSourceDisplayNameContains,
});
Copy
import pulumi
import pulumi_oci as oci

test_managed_instance_available_software_sources = oci.OsManagementHub.get_managed_instance_available_software_sources(managed_instance_id=test_managed_instance["id"],
    compartment_id=compartment_id,
    display_names=managed_instance_available_software_source_display_name,
    display_name_contains=managed_instance_available_software_source_display_name_contains)
Copy
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.GetManagedInstanceAvailableSoftwareSources(ctx, &osmanagementhub.GetManagedInstanceAvailableSoftwareSourcesArgs{
			ManagedInstanceId:   testManagedInstance.Id,
			CompartmentId:       pulumi.StringRef(compartmentId),
			DisplayNames:        managedInstanceAvailableSoftwareSourceDisplayName,
			DisplayNameContains: pulumi.StringRef(managedInstanceAvailableSoftwareSourceDisplayNameContains),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testManagedInstanceAvailableSoftwareSources = Oci.OsManagementHub.GetManagedInstanceAvailableSoftwareSources.Invoke(new()
    {
        ManagedInstanceId = testManagedInstance.Id,
        CompartmentId = compartmentId,
        DisplayNames = managedInstanceAvailableSoftwareSourceDisplayName,
        DisplayNameContains = managedInstanceAvailableSoftwareSourceDisplayNameContains,
    });

});
Copy
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.GetManagedInstanceAvailableSoftwareSourcesArgs;
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 testManagedInstanceAvailableSoftwareSources = OsManagementHubFunctions.getManagedInstanceAvailableSoftwareSources(GetManagedInstanceAvailableSoftwareSourcesArgs.builder()
            .managedInstanceId(testManagedInstance.id())
            .compartmentId(compartmentId)
            .displayNames(managedInstanceAvailableSoftwareSourceDisplayName)
            .displayNameContains(managedInstanceAvailableSoftwareSourceDisplayNameContains)
            .build());

    }
}
Copy
variables:
  testManagedInstanceAvailableSoftwareSources:
    fn::invoke:
      function: oci:OsManagementHub:getManagedInstanceAvailableSoftwareSources
      arguments:
        managedInstanceId: ${testManagedInstance.id}
        compartmentId: ${compartmentId}
        displayNames: ${managedInstanceAvailableSoftwareSourceDisplayName}
        displayNameContains: ${managedInstanceAvailableSoftwareSourceDisplayNameContains}
Copy

Using getManagedInstanceAvailableSoftwareSources

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 getManagedInstanceAvailableSoftwareSources(args: GetManagedInstanceAvailableSoftwareSourcesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceAvailableSoftwareSourcesResult>
function getManagedInstanceAvailableSoftwareSourcesOutput(args: GetManagedInstanceAvailableSoftwareSourcesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceAvailableSoftwareSourcesResult>
Copy
def get_managed_instance_available_software_sources(compartment_id: Optional[str] = None,
                                                    display_name_contains: Optional[str] = None,
                                                    display_names: Optional[Sequence[str]] = None,
                                                    filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceAvailableSoftwareSourcesFilter]] = None,
                                                    managed_instance_id: Optional[str] = None,
                                                    opts: Optional[InvokeOptions] = None) -> GetManagedInstanceAvailableSoftwareSourcesResult
def get_managed_instance_available_software_sources_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[_osmanagementhub.GetManagedInstanceAvailableSoftwareSourcesFilterArgs]]]] = None,
                                                    managed_instance_id: Optional[pulumi.Input[str]] = None,
                                                    opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceAvailableSoftwareSourcesResult]
Copy
func GetManagedInstanceAvailableSoftwareSources(ctx *Context, args *GetManagedInstanceAvailableSoftwareSourcesArgs, opts ...InvokeOption) (*GetManagedInstanceAvailableSoftwareSourcesResult, error)
func GetManagedInstanceAvailableSoftwareSourcesOutput(ctx *Context, args *GetManagedInstanceAvailableSoftwareSourcesOutputArgs, opts ...InvokeOption) GetManagedInstanceAvailableSoftwareSourcesResultOutput
Copy

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

public static class GetManagedInstanceAvailableSoftwareSources 
{
    public static Task<GetManagedInstanceAvailableSoftwareSourcesResult> InvokeAsync(GetManagedInstanceAvailableSoftwareSourcesArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedInstanceAvailableSoftwareSourcesResult> Invoke(GetManagedInstanceAvailableSoftwareSourcesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagedInstanceAvailableSoftwareSourcesResult> getManagedInstanceAvailableSoftwareSources(GetManagedInstanceAvailableSoftwareSourcesArgs args, InvokeOptions options)
public static Output<GetManagedInstanceAvailableSoftwareSourcesResult> getManagedInstanceAvailableSoftwareSources(GetManagedInstanceAvailableSoftwareSourcesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OsManagementHub/getManagedInstanceAvailableSoftwareSources:getManagedInstanceAvailableSoftwareSources
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ManagedInstanceId This property is required. string
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.
DisplayNameContains string
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 Changes to this property will trigger replacement. List<GetManagedInstanceAvailableSoftwareSourcesFilter>
ManagedInstanceId This property is required. string
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.
DisplayNameContains string
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 Changes to this property will trigger replacement. []GetManagedInstanceAvailableSoftwareSourcesFilter
managedInstanceId This property is required. String
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.
displayNameContains String
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 Changes to this property will trigger replacement. List<GetManagedInstanceAvailableSoftwareSourcesFilter>
managedInstanceId This property is required. string
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.
displayNameContains string
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 Changes to this property will trigger replacement. GetManagedInstanceAvailableSoftwareSourcesFilter[]
managed_instance_id This property is required. str
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_contains str
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 Changes to this property will trigger replacement. Sequence[osmanagementhub.GetManagedInstanceAvailableSoftwareSourcesFilter]
managedInstanceId This property is required. String
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.
displayNameContains String
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 Changes to this property will trigger replacement. List<Property Map>

getManagedInstanceAvailableSoftwareSources Result

The following output properties are available:

AvailableSoftwareSourceCollections List<GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollection>
The list of available_software_source_collection.
Id string
The provider-assigned unique ID for this managed resource.
ManagedInstanceId string
CompartmentId string
The OCID of the compartment that contains the software source.
DisplayNameContains string
DisplayNames List<string>
User-friendly name for the software source.
Filters List<GetManagedInstanceAvailableSoftwareSourcesFilter>
AvailableSoftwareSourceCollections []GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollection
The list of available_software_source_collection.
Id string
The provider-assigned unique ID for this managed resource.
ManagedInstanceId string
CompartmentId string
The OCID of the compartment that contains the software source.
DisplayNameContains string
DisplayNames []string
User-friendly name for the software source.
Filters []GetManagedInstanceAvailableSoftwareSourcesFilter
availableSoftwareSourceCollections List<GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollection>
The list of available_software_source_collection.
id String
The provider-assigned unique ID for this managed resource.
managedInstanceId String
compartmentId String
The OCID of the compartment that contains the software source.
displayNameContains String
displayNames List<String>
User-friendly name for the software source.
filters List<GetManagedInstanceAvailableSoftwareSourcesFilter>
availableSoftwareSourceCollections GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollection[]
The list of available_software_source_collection.
id string
The provider-assigned unique ID for this managed resource.
managedInstanceId string
compartmentId string
The OCID of the compartment that contains the software source.
displayNameContains string
displayNames string[]
User-friendly name for the software source.
filters GetManagedInstanceAvailableSoftwareSourcesFilter[]
available_software_source_collections Sequence[osmanagementhub.GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollection]
The list of available_software_source_collection.
id str
The provider-assigned unique ID for this managed resource.
managed_instance_id str
compartment_id str
The OCID of the compartment that contains the software source.
display_name_contains str
display_names Sequence[str]
User-friendly name for the software source.
filters Sequence[osmanagementhub.GetManagedInstanceAvailableSoftwareSourcesFilter]
availableSoftwareSourceCollections List<Property Map>
The list of available_software_source_collection.
id String
The provider-assigned unique ID for this managed resource.
managedInstanceId String
compartmentId String
The OCID of the compartment that contains the software source.
displayNameContains String
displayNames List<String>
User-friendly name for the software source.
filters List<Property Map>

Supporting Types

GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollection

Items This property is required. List<GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollectionItem>
List of available software sources.
Items This property is required. []GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollectionItem
List of available software sources.
items This property is required. List<GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollectionItem>
List of available software sources.
items This property is required. GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollectionItem[]
List of available software sources.
items This property is required. List<Property Map>
List of available software sources.

GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollectionItem

CompartmentId This property is required. string
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
DisplayName This property is required. string
A filter to return resources that match the given display names.
Id This property is required. string
The OCID of the software source.
CompartmentId This property is required. string
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
DisplayName This property is required. string
A filter to return resources that match the given display names.
Id This property is required. string
The OCID of the software source.
compartmentId This property is required. String
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
displayName This property is required. String
A filter to return resources that match the given display names.
id This property is required. String
The OCID of the software source.
compartmentId This property is required. string
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
displayName This property is required. string
A filter to return resources that match the given display names.
id This property is required. string
The OCID of the software source.
compartment_id This property is required. str
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
display_name This property is required. str
A filter to return resources that match the given display names.
id This property is required. str
The OCID of the software source.
compartmentId This property is required. String
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
displayName This property is required. String
A filter to return resources that match the given display names.
id This property is required. String
The OCID of the software source.

GetManagedInstanceAvailableSoftwareSourcesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.