oci.OsManagementHub.getProfileAvailableSoftwareSources
Explore with Pulumi AI
This data source provides the list of Profile Available Software Sources in Oracle Cloud Infrastructure Os Management Hub service.
Lists available software sources for a specified profile. Filter the list against a variety of criteria including but not limited to the software source name. The results list only software sources that have not already been added to the profile.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProfileAvailableSoftwareSources = oci.OsManagementHub.getProfileAvailableSoftwareSources({
    profileId: testProfile.id,
    compartmentId: compartmentId,
    displayNames: profileAvailableSoftwareSourceDisplayName,
    displayNameContains: profileAvailableSoftwareSourceDisplayNameContains,
});
import pulumi
import pulumi_oci as oci
test_profile_available_software_sources = oci.OsManagementHub.get_profile_available_software_sources(profile_id=test_profile["id"],
    compartment_id=compartment_id,
    display_names=profile_available_software_source_display_name,
    display_name_contains=profile_available_software_source_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.GetProfileAvailableSoftwareSources(ctx, &osmanagementhub.GetProfileAvailableSoftwareSourcesArgs{
			ProfileId:           testProfile.Id,
			CompartmentId:       pulumi.StringRef(compartmentId),
			DisplayNames:        profileAvailableSoftwareSourceDisplayName,
			DisplayNameContains: pulumi.StringRef(profileAvailableSoftwareSourceDisplayNameContains),
		}, 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 testProfileAvailableSoftwareSources = Oci.OsManagementHub.GetProfileAvailableSoftwareSources.Invoke(new()
    {
        ProfileId = testProfile.Id,
        CompartmentId = compartmentId,
        DisplayNames = profileAvailableSoftwareSourceDisplayName,
        DisplayNameContains = profileAvailableSoftwareSourceDisplayNameContains,
    });
});
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.GetProfileAvailableSoftwareSourcesArgs;
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 testProfileAvailableSoftwareSources = OsManagementHubFunctions.getProfileAvailableSoftwareSources(GetProfileAvailableSoftwareSourcesArgs.builder()
            .profileId(testProfile.id())
            .compartmentId(compartmentId)
            .displayNames(profileAvailableSoftwareSourceDisplayName)
            .displayNameContains(profileAvailableSoftwareSourceDisplayNameContains)
            .build());
    }
}
variables:
  testProfileAvailableSoftwareSources:
    fn::invoke:
      function: oci:OsManagementHub:getProfileAvailableSoftwareSources
      arguments:
        profileId: ${testProfile.id}
        compartmentId: ${compartmentId}
        displayNames: ${profileAvailableSoftwareSourceDisplayName}
        displayNameContains: ${profileAvailableSoftwareSourceDisplayNameContains}
Using getProfileAvailableSoftwareSources
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 getProfileAvailableSoftwareSources(args: GetProfileAvailableSoftwareSourcesArgs, opts?: InvokeOptions): Promise<GetProfileAvailableSoftwareSourcesResult>
function getProfileAvailableSoftwareSourcesOutput(args: GetProfileAvailableSoftwareSourcesOutputArgs, opts?: InvokeOptions): Output<GetProfileAvailableSoftwareSourcesResult>def get_profile_available_software_sources(compartment_id: Optional[str] = None,
                                           display_name_contains: Optional[str] = None,
                                           display_names: Optional[Sequence[str]] = None,
                                           filters: Optional[Sequence[GetProfileAvailableSoftwareSourcesFilter]] = None,
                                           profile_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetProfileAvailableSoftwareSourcesResult
def get_profile_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[GetProfileAvailableSoftwareSourcesFilterArgs]]]] = None,
                                           profile_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetProfileAvailableSoftwareSourcesResult]func GetProfileAvailableSoftwareSources(ctx *Context, args *GetProfileAvailableSoftwareSourcesArgs, opts ...InvokeOption) (*GetProfileAvailableSoftwareSourcesResult, error)
func GetProfileAvailableSoftwareSourcesOutput(ctx *Context, args *GetProfileAvailableSoftwareSourcesOutputArgs, opts ...InvokeOption) GetProfileAvailableSoftwareSourcesResultOutput> Note: This function is named GetProfileAvailableSoftwareSources in the Go SDK.
public static class GetProfileAvailableSoftwareSources 
{
    public static Task<GetProfileAvailableSoftwareSourcesResult> InvokeAsync(GetProfileAvailableSoftwareSourcesArgs args, InvokeOptions? opts = null)
    public static Output<GetProfileAvailableSoftwareSourcesResult> Invoke(GetProfileAvailableSoftwareSourcesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProfileAvailableSoftwareSourcesResult> getProfileAvailableSoftwareSources(GetProfileAvailableSoftwareSourcesArgs args, InvokeOptions options)
public static Output<GetProfileAvailableSoftwareSourcesResult> getProfileAvailableSoftwareSources(GetProfileAvailableSoftwareSourcesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getProfileAvailableSoftwareSources:getProfileAvailableSoftwareSources
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ProfileId string
- The OCID of the registration profile.
- 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<GetProfile Available Software Sources Filter> 
- ProfileId string
- The OCID of the registration profile.
- 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
[]GetProfile Available Software Sources Filter 
- profileId String
- The OCID of the registration profile.
- 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<GetProfile Available Software Sources Filter> 
- profileId string
- The OCID of the registration profile.
- 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
GetProfile Available Software Sources Filter[] 
- profile_id str
- The OCID of the registration profile.
- 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[GetProfile Available Software Sources Filter] 
- profileId String
- The OCID of the registration profile.
- 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>
getProfileAvailableSoftwareSources Result
The following output properties are available:
- AvailableSoftware List<GetSource Collections Profile 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.
- ProfileId string
- CompartmentId string
- The OCID of the compartment that contains the software source.
- DisplayName stringContains 
- DisplayNames List<string>
- User-friendly name for the software source.
- Filters
List<GetProfile Available Software Sources Filter> 
- AvailableSoftware []GetSource Collections Profile 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.
- ProfileId string
- CompartmentId string
- The OCID of the compartment that contains the software source.
- DisplayName stringContains 
- DisplayNames []string
- User-friendly name for the software source.
- Filters
[]GetProfile Available Software Sources Filter 
- availableSoftware List<GetSource Collections Profile 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.
- profileId String
- compartmentId String
- The OCID of the compartment that contains the software source.
- displayName StringContains 
- displayNames List<String>
- User-friendly name for the software source.
- filters
List<GetProfile Available Software Sources Filter> 
- availableSoftware GetSource Collections Profile 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.
- profileId string
- compartmentId string
- The OCID of the compartment that contains the software source.
- displayName stringContains 
- displayNames string[]
- User-friendly name for the software source.
- filters
GetProfile Available Software Sources Filter[] 
- available_software_ Sequence[Getsource_ collections Profile 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.
- profile_id str
- 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[GetProfile Available Software Sources Filter] 
- availableSoftware List<Property Map>Source Collections 
- The list of available_software_source_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- profileId String
- compartmentId String
- The OCID of the compartment that contains the software source.
- displayName StringContains 
- displayNames List<String>
- User-friendly name for the software source.
- filters List<Property Map>
Supporting Types
GetProfileAvailableSoftwareSourcesAvailableSoftwareSourceCollection        
- Items
List<GetProfile Available Software Sources Available Software Source Collection Item> 
- List of available software sources.
- Items
[]GetProfile Available Software Sources Available Software Source Collection Item 
- List of available software sources.
- items
List<GetProfile Available Software Sources Available Software Source Collection Item> 
- List of available software sources.
- items
GetProfile Available Software Sources Available Software Source Collection Item[] 
- List of available software sources.
- items
Sequence[GetProfile Available Software Sources Available Software Source Collection Item] 
- List of available software sources.
- items List<Property Map>
- List of available software sources.
GetProfileAvailableSoftwareSourcesAvailableSoftwareSourceCollectionItem         
- CompartmentId string
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- DisplayName string
- A filter to return resources that match the given display names.
- Id string
- The OCID of the software source.
- CompartmentId string
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- DisplayName string
- A filter to return resources that match the given display names.
- Id string
- The OCID of the software source.
- compartmentId String
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- displayName String
- A filter to return resources that match the given display names.
- id String
- The OCID of the software source.
- compartmentId string
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- displayName 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.
- compartmentId String
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- displayName String
- A filter to return resources that match the given display names.
- id String
- The OCID of the software source.
GetProfileAvailableSoftwareSourcesFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.