1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getSoftwareSourcePackageGroups
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.OsManagementHub.getSoftwareSourcePackageGroups

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides the list of Software Source Package Groups in Oracle Cloud Infrastructure Os Management Hub service.

Lists package groups that are associated with the specified software source OCID. Filter the list against a variety of criteria including but not limited to its name, and package group type.

Example Usage

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

const testSoftwareSourcePackageGroups = oci.OsManagementHub.getSoftwareSourcePackageGroups({
    softwareSourceId: testSoftwareSource.id,
    compartmentId: compartmentId,
    groupTypes: softwareSourcePackageGroupGroupType,
    name: softwareSourcePackageGroupName,
    nameContains: softwareSourcePackageGroupNameContains,
});
Copy
import pulumi
import pulumi_oci as oci

test_software_source_package_groups = oci.OsManagementHub.get_software_source_package_groups(software_source_id=test_software_source["id"],
    compartment_id=compartment_id,
    group_types=software_source_package_group_group_type,
    name=software_source_package_group_name,
    name_contains=software_source_package_group_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.GetSoftwareSourcePackageGroups(ctx, &osmanagementhub.GetSoftwareSourcePackageGroupsArgs{
			SoftwareSourceId: testSoftwareSource.Id,
			CompartmentId:    pulumi.StringRef(compartmentId),
			GroupTypes:       softwareSourcePackageGroupGroupType,
			Name:             pulumi.StringRef(softwareSourcePackageGroupName),
			NameContains:     pulumi.StringRef(softwareSourcePackageGroupNameContains),
		}, 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 testSoftwareSourcePackageGroups = Oci.OsManagementHub.GetSoftwareSourcePackageGroups.Invoke(new()
    {
        SoftwareSourceId = testSoftwareSource.Id,
        CompartmentId = compartmentId,
        GroupTypes = softwareSourcePackageGroupGroupType,
        Name = softwareSourcePackageGroupName,
        NameContains = softwareSourcePackageGroupNameContains,
    });

});
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.GetSoftwareSourcePackageGroupsArgs;
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 testSoftwareSourcePackageGroups = OsManagementHubFunctions.getSoftwareSourcePackageGroups(GetSoftwareSourcePackageGroupsArgs.builder()
            .softwareSourceId(testSoftwareSource.id())
            .compartmentId(compartmentId)
            .groupTypes(softwareSourcePackageGroupGroupType)
            .name(softwareSourcePackageGroupName)
            .nameContains(softwareSourcePackageGroupNameContains)
            .build());

    }
}
Copy
variables:
  testSoftwareSourcePackageGroups:
    fn::invoke:
      function: oci:OsManagementHub:getSoftwareSourcePackageGroups
      arguments:
        softwareSourceId: ${testSoftwareSource.id}
        compartmentId: ${compartmentId}
        groupTypes: ${softwareSourcePackageGroupGroupType}
        name: ${softwareSourcePackageGroupName}
        nameContains: ${softwareSourcePackageGroupNameContains}
Copy

Using getSoftwareSourcePackageGroups

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 getSoftwareSourcePackageGroups(args: GetSoftwareSourcePackageGroupsArgs, opts?: InvokeOptions): Promise<GetSoftwareSourcePackageGroupsResult>
function getSoftwareSourcePackageGroupsOutput(args: GetSoftwareSourcePackageGroupsOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourcePackageGroupsResult>
Copy
def get_software_source_package_groups(compartment_id: Optional[str] = None,
                                       filters: Optional[Sequence[_osmanagementhub.GetSoftwareSourcePackageGroupsFilter]] = None,
                                       group_types: Optional[Sequence[str]] = None,
                                       name: Optional[str] = None,
                                       name_contains: Optional[str] = None,
                                       software_source_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetSoftwareSourcePackageGroupsResult
def get_software_source_package_groups_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetSoftwareSourcePackageGroupsFilterArgs]]]] = None,
                                       group_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       name_contains: Optional[pulumi.Input[str]] = None,
                                       software_source_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourcePackageGroupsResult]
Copy
func GetSoftwareSourcePackageGroups(ctx *Context, args *GetSoftwareSourcePackageGroupsArgs, opts ...InvokeOption) (*GetSoftwareSourcePackageGroupsResult, error)
func GetSoftwareSourcePackageGroupsOutput(ctx *Context, args *GetSoftwareSourcePackageGroupsOutputArgs, opts ...InvokeOption) GetSoftwareSourcePackageGroupsResultOutput
Copy

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

public static class GetSoftwareSourcePackageGroups 
{
    public static Task<GetSoftwareSourcePackageGroupsResult> InvokeAsync(GetSoftwareSourcePackageGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetSoftwareSourcePackageGroupsResult> Invoke(GetSoftwareSourcePackageGroupsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSoftwareSourcePackageGroupsResult> getSoftwareSourcePackageGroups(GetSoftwareSourcePackageGroupsArgs args, InvokeOptions options)
public static Output<GetSoftwareSourcePackageGroupsResult> getSoftwareSourcePackageGroups(GetSoftwareSourcePackageGroupsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OsManagementHub/getSoftwareSourcePackageGroups:getSoftwareSourcePackageGroups
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SoftwareSourceId This property is required. 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.
Filters Changes to this property will trigger replacement. List<GetSoftwareSourcePackageGroupsFilter>
GroupTypes List<string>
A filter to return only package groups of the specified type.
Name string
The name of the entity to be queried.
NameContains string
A filter to return resources that may partially match the name given.
SoftwareSourceId This property is required. 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.
Filters Changes to this property will trigger replacement. []GetSoftwareSourcePackageGroupsFilter
GroupTypes []string
A filter to return only package groups of the specified type.
Name string
The name of the entity to be queried.
NameContains string
A filter to return resources that may partially match the name given.
softwareSourceId This property is required. 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.
filters Changes to this property will trigger replacement. List<GetSoftwareSourcePackageGroupsFilter>
groupTypes List<String>
A filter to return only package groups of the specified type.
name String
The name of the entity to be queried.
nameContains String
A filter to return resources that may partially match the name given.
softwareSourceId This property is required. 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.
filters Changes to this property will trigger replacement. GetSoftwareSourcePackageGroupsFilter[]
groupTypes string[]
A filter to return only package groups of the specified type.
name string
The name of the entity to be queried.
nameContains string
A filter to return resources that may partially match the name given.
software_source_id This property is required. str
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.
filters Changes to this property will trigger replacement. Sequence[osmanagementhub.GetSoftwareSourcePackageGroupsFilter]
group_types Sequence[str]
A filter to return only package groups of the specified type.
name str
The name of the entity to be queried.
name_contains str
A filter to return resources that may partially match the name given.
softwareSourceId This property is required. 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.
filters Changes to this property will trigger replacement. List<Property Map>
groupTypes List<String>
A filter to return only package groups of the specified type.
name String
The name of the entity to be queried.
nameContains String
A filter to return resources that may partially match the name given.

getSoftwareSourcePackageGroups Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
PackageGroupCollections List<GetSoftwareSourcePackageGroupsPackageGroupCollection>
The list of package_group_collection.
SoftwareSourceId string
CompartmentId string
Filters List<GetSoftwareSourcePackageGroupsFilter>
GroupTypes List<string>
Indicates if this is a group, category, or environment.
Name string
Package group name.
NameContains string
Id string
The provider-assigned unique ID for this managed resource.
PackageGroupCollections []GetSoftwareSourcePackageGroupsPackageGroupCollection
The list of package_group_collection.
SoftwareSourceId string
CompartmentId string
Filters []GetSoftwareSourcePackageGroupsFilter
GroupTypes []string
Indicates if this is a group, category, or environment.
Name string
Package group name.
NameContains string
id String
The provider-assigned unique ID for this managed resource.
packageGroupCollections List<GetSoftwareSourcePackageGroupsPackageGroupCollection>
The list of package_group_collection.
softwareSourceId String
compartmentId String
filters List<GetSoftwareSourcePackageGroupsFilter>
groupTypes List<String>
Indicates if this is a group, category, or environment.
name String
Package group name.
nameContains String
id string
The provider-assigned unique ID for this managed resource.
packageGroupCollections GetSoftwareSourcePackageGroupsPackageGroupCollection[]
The list of package_group_collection.
softwareSourceId string
compartmentId string
filters GetSoftwareSourcePackageGroupsFilter[]
groupTypes string[]
Indicates if this is a group, category, or environment.
name string
Package group name.
nameContains string
id str
The provider-assigned unique ID for this managed resource.
package_group_collections Sequence[osmanagementhub.GetSoftwareSourcePackageGroupsPackageGroupCollection]
The list of package_group_collection.
software_source_id str
compartment_id str
filters Sequence[osmanagementhub.GetSoftwareSourcePackageGroupsFilter]
group_types Sequence[str]
Indicates if this is a group, category, or environment.
name str
Package group name.
name_contains str
id String
The provider-assigned unique ID for this managed resource.
packageGroupCollections List<Property Map>
The list of package_group_collection.
softwareSourceId String
compartmentId String
filters List<Property Map>
groupTypes List<String>
Indicates if this is a group, category, or environment.
name String
Package group name.
nameContains String

Supporting Types

GetSoftwareSourcePackageGroupsFilter

Name This property is required. string
The name of the entity to be queried.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of the entity to be queried.
Values This property is required. []string
Regex bool
name This property is required. String
The name of the entity to be queried.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of the entity to be queried.
values This property is required. string[]
regex boolean
name This property is required. str
The name of the entity to be queried.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of the entity to be queried.
values This property is required. List<String>
regex Boolean

GetSoftwareSourcePackageGroupsPackageGroupCollection

items This property is required. List<Property Map>

GetSoftwareSourcePackageGroupsPackageGroupCollectionItem

Description This property is required. string
Description of the package group.
DisplayOrder This property is required. int
Indicates the order to display category or environment.
GroupType This property is required. string
A filter to return only package groups of the specified type.
Id This property is required. string
Package group identifier.
IsDefault This property is required. bool
Indicates if this package group is the default.
IsUserVisible This property is required. bool
Indicates if this package group is visible to users.
Name This property is required. string
The name of the entity to be queried.
Packages This property is required. List<string>
The list of packages in the package group.
Repositories This property is required. List<string>
The repository IDs of the package group's repositories.
Description This property is required. string
Description of the package group.
DisplayOrder This property is required. int
Indicates the order to display category or environment.
GroupType This property is required. string
A filter to return only package groups of the specified type.
Id This property is required. string
Package group identifier.
IsDefault This property is required. bool
Indicates if this package group is the default.
IsUserVisible This property is required. bool
Indicates if this package group is visible to users.
Name This property is required. string
The name of the entity to be queried.
Packages This property is required. []string
The list of packages in the package group.
Repositories This property is required. []string
The repository IDs of the package group's repositories.
description This property is required. String
Description of the package group.
displayOrder This property is required. Integer
Indicates the order to display category or environment.
groupType This property is required. String
A filter to return only package groups of the specified type.
id This property is required. String
Package group identifier.
isDefault This property is required. Boolean
Indicates if this package group is the default.
isUserVisible This property is required. Boolean
Indicates if this package group is visible to users.
name This property is required. String
The name of the entity to be queried.
packages This property is required. List<String>
The list of packages in the package group.
repositories This property is required. List<String>
The repository IDs of the package group's repositories.
description This property is required. string
Description of the package group.
displayOrder This property is required. number
Indicates the order to display category or environment.
groupType This property is required. string
A filter to return only package groups of the specified type.
id This property is required. string
Package group identifier.
isDefault This property is required. boolean
Indicates if this package group is the default.
isUserVisible This property is required. boolean
Indicates if this package group is visible to users.
name This property is required. string
The name of the entity to be queried.
packages This property is required. string[]
The list of packages in the package group.
repositories This property is required. string[]
The repository IDs of the package group's repositories.
description This property is required. str
Description of the package group.
display_order This property is required. int
Indicates the order to display category or environment.
group_type This property is required. str
A filter to return only package groups of the specified type.
id This property is required. str
Package group identifier.
is_default This property is required. bool
Indicates if this package group is the default.
is_user_visible This property is required. bool
Indicates if this package group is visible to users.
name This property is required. str
The name of the entity to be queried.
packages This property is required. Sequence[str]
The list of packages in the package group.
repositories This property is required. Sequence[str]
The repository IDs of the package group's repositories.
description This property is required. String
Description of the package group.
displayOrder This property is required. Number
Indicates the order to display category or environment.
groupType This property is required. String
A filter to return only package groups of the specified type.
id This property is required. String
Package group identifier.
isDefault This property is required. Boolean
Indicates if this package group is the default.
isUserVisible This property is required. Boolean
Indicates if this package group is visible to users.
name This property is required. String
The name of the entity to be queried.
packages This property is required. List<String>
The list of packages in the package group.
repositories This property is required. List<String>
The repository IDs of the package group's repositories.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi