Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
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,
});
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)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/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
})
}
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,
});
});
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());
}
}
variables:
testManagedInstanceAvailableSoftwareSources:
fn::invoke:
function: oci:OsManagementHub:getManagedInstanceAvailableSoftwareSources
arguments:
managedInstanceId: ${testManagedInstance.id}
compartmentId: ${compartmentId}
displayNames: ${managedInstanceAvailableSoftwareSourceDisplayName}
displayNameContains: ${managedInstanceAvailableSoftwareSourceDisplayNameContains}
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>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[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[GetManagedInstanceAvailableSoftwareSourcesFilterArgs]]]] = None,
managed_instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceAvailableSoftwareSourcesResult]func GetManagedInstanceAvailableSoftwareSources(ctx *Context, args *GetManagedInstanceAvailableSoftwareSourcesArgs, opts ...InvokeOption) (*GetManagedInstanceAvailableSoftwareSourcesResult, error)
func GetManagedInstanceAvailableSoftwareSourcesOutput(ctx *Context, args *GetManagedInstanceAvailableSoftwareSourcesOutputArgs, opts ...InvokeOption) GetManagedInstanceAvailableSoftwareSourcesResultOutput> 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)
}public static CompletableFuture<GetManagedInstanceAvailableSoftwareSourcesResult> getManagedInstanceAvailableSoftwareSources(GetManagedInstanceAvailableSoftwareSourcesArgs args, InvokeOptions options)
public static Output<GetManagedInstanceAvailableSoftwareSourcesResult> getManagedInstanceAvailableSoftwareSources(GetManagedInstanceAvailableSoftwareSourcesArgs args, InvokeOptions options)
fn::invoke:
function: oci:OsManagementHub/getManagedInstanceAvailableSoftwareSources:getManagedInstanceAvailableSoftwareSources
arguments:
# arguments dictionaryThe following arguments are supported:
- Managed
Instance stringId - The OCID of the managed instance.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Display
Names List<string> - A filter to return resources that match the given display names.
- Filters
List<Get
Managed Instance Available Software Sources Filter>
- Managed
Instance stringId - The OCID of the managed instance.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Display
Names []string - A filter to return resources that match the given display names.
- Filters
[]Get
Managed Instance Available Software Sources Filter
- managed
Instance StringId - The OCID of the managed instance.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- display
Names List<String> - A filter to return resources that match the given display names.
- filters
List<Get
Managed Instance Available Software Sources Filter>
- managed
Instance stringId - The OCID of the managed instance.
- compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name stringContains - A filter to return resources that may partially match the given display name.
- display
Names string[] - A filter to return resources that match the given display names.
- filters
Get
Managed Instance Available Software Sources 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[Get
Managed Instance Available Software Sources Filter]
- managed
Instance StringId - The OCID of the managed instance.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- display
Names List<String> - A filter to return resources that match the given display names.
- filters List<Property Map>
getManagedInstanceAvailableSoftwareSources Result
The following output properties are available:
- Available
Software List<GetSource Collections Managed Instance Available Software Sources Available Software Source Collection> - The list of available_software_source_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance stringId - Compartment
Id string - The OCID of the compartment that contains the software source.
- Display
Name stringContains - Display
Names List<string> - User-friendly name for the software source.
- Filters
List<Get
Managed Instance Available Software Sources Filter>
- Available
Software []GetSource Collections Managed Instance Available Software Sources Available Software Source Collection - The list of available_software_source_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance stringId - Compartment
Id string - The OCID of the compartment that contains the software source.
- Display
Name stringContains - Display
Names []string - User-friendly name for the software source.
- Filters
[]Get
Managed Instance Available Software Sources Filter
- available
Software List<GetSource Collections Managed Instance Available Software Sources Available Software Source Collection> - The list of available_software_source_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance StringId - compartment
Id String - The OCID of the compartment that contains the software source.
- display
Name StringContains - display
Names List<String> - User-friendly name for the software source.
- filters
List<Get
Managed Instance Available Software Sources Filter>
- available
Software GetSource Collections Managed Instance Available Software Sources Available Software Source Collection[] - The list of available_software_source_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Instance stringId - compartment
Id string - The OCID of the compartment that contains the software source.
- display
Name stringContains - display
Names string[] - User-friendly name for the software source.
- filters
Get
Managed Instance Available Software Sources Filter[]
- available_
software_ Sequence[Getsource_ collections Managed Instance Available Software Sources Available Software Source Collection] - The list of available_software_source_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
instance_ strid - compartment_
id str - The OCID of the compartment that contains the software source.
- display_
name_ strcontains - display_
names Sequence[str] - User-friendly name for the software source.
- filters
Sequence[Get
Managed Instance Available Software Sources Filter]
- available
Software List<Property Map>Source Collections - The list of available_software_source_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance StringId - compartment
Id String - The OCID of the compartment that contains the software source.
- display
Name StringContains - display
Names List<String> - User-friendly name for the software source.
- filters List<Property Map>
Supporting Types
GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollection
- Items
List<Get
Managed Instance Available Software Sources Available Software Source Collection Item> - List of available software sources.
- Items
[]Get
Managed Instance Available Software Sources Available Software Source Collection Item - List of available software sources.
- items
List<Get
Managed Instance Available Software Sources Available Software Source Collection Item> - List of available software sources.
- items
Get
Managed Instance Available Software Sources Available Software Source Collection Item[] - List of available software sources.
- items
Sequence[Get
Managed Instance Available Software Sources Available Software Source Collection Item] - List of available software sources.
- items List<Property Map>
- List of available software sources.
GetManagedInstanceAvailableSoftwareSourcesAvailableSoftwareSourceCollectionItem
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name string - A filter to return resources that match the given display names.
- Id string
- The OCID of the software source.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name string - A filter to return resources that match the given display names.
- Id string
- The OCID of the software source.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name String - A filter to return resources that match the given display names.
- id String
- The OCID of the software source.
- compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name string - A filter to return resources that match the given display names.
- id string
- The OCID of the software source.
- 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 str - A filter to return resources that match the given display names.
- id str
- The OCID of the software source.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name String - A filter to return resources that match the given display names.
- id String
- The OCID of the software source.
GetManagedInstanceAvailableSoftwareSourcesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
