Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getSoftwareSourcePackageGroup
Explore with Pulumi AI
This data source provides details about a specific Software Source Package Group resource in Oracle Cloud Infrastructure Os Management Hub service.
Returns information about the specified package group from a software source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSoftwareSourcePackageGroup = oci.OsManagementHub.getSoftwareSourcePackageGroup({
    packageGroupId: testGroup.id,
    softwareSourceId: testSoftwareSource.id,
});
import pulumi
import pulumi_oci as oci
test_software_source_package_group = oci.OsManagementHub.get_software_source_package_group(package_group_id=test_group["id"],
    software_source_id=test_software_source["id"])
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.GetSoftwareSourcePackageGroup(ctx, &osmanagementhub.GetSoftwareSourcePackageGroupArgs{
			PackageGroupId:   testGroup.Id,
			SoftwareSourceId: testSoftwareSource.Id,
		}, 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 testSoftwareSourcePackageGroup = Oci.OsManagementHub.GetSoftwareSourcePackageGroup.Invoke(new()
    {
        PackageGroupId = testGroup.Id,
        SoftwareSourceId = testSoftwareSource.Id,
    });
});
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.GetSoftwareSourcePackageGroupArgs;
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 testSoftwareSourcePackageGroup = OsManagementHubFunctions.getSoftwareSourcePackageGroup(GetSoftwareSourcePackageGroupArgs.builder()
            .packageGroupId(testGroup.id())
            .softwareSourceId(testSoftwareSource.id())
            .build());
    }
}
variables:
  testSoftwareSourcePackageGroup:
    fn::invoke:
      function: oci:OsManagementHub:getSoftwareSourcePackageGroup
      arguments:
        packageGroupId: ${testGroup.id}
        softwareSourceId: ${testSoftwareSource.id}
Using getSoftwareSourcePackageGroup
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 getSoftwareSourcePackageGroup(args: GetSoftwareSourcePackageGroupArgs, opts?: InvokeOptions): Promise<GetSoftwareSourcePackageGroupResult>
function getSoftwareSourcePackageGroupOutput(args: GetSoftwareSourcePackageGroupOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourcePackageGroupResult>def get_software_source_package_group(package_group_id: Optional[str] = None,
                                      software_source_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetSoftwareSourcePackageGroupResult
def get_software_source_package_group_output(package_group_id: Optional[pulumi.Input[str]] = None,
                                      software_source_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourcePackageGroupResult]func GetSoftwareSourcePackageGroup(ctx *Context, args *GetSoftwareSourcePackageGroupArgs, opts ...InvokeOption) (*GetSoftwareSourcePackageGroupResult, error)
func GetSoftwareSourcePackageGroupOutput(ctx *Context, args *GetSoftwareSourcePackageGroupOutputArgs, opts ...InvokeOption) GetSoftwareSourcePackageGroupResultOutput> Note: This function is named GetSoftwareSourcePackageGroup in the Go SDK.
public static class GetSoftwareSourcePackageGroup 
{
    public static Task<GetSoftwareSourcePackageGroupResult> InvokeAsync(GetSoftwareSourcePackageGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetSoftwareSourcePackageGroupResult> Invoke(GetSoftwareSourcePackageGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSoftwareSourcePackageGroupResult> getSoftwareSourcePackageGroup(GetSoftwareSourcePackageGroupArgs args, InvokeOptions options)
public static Output<GetSoftwareSourcePackageGroupResult> getSoftwareSourcePackageGroup(GetSoftwareSourcePackageGroupArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getSoftwareSourcePackageGroup:getSoftwareSourcePackageGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PackageGroup stringId 
- The unique package group identifier.
- SoftwareSource stringId 
- The OCID of the software source.
- PackageGroup stringId 
- The unique package group identifier.
- SoftwareSource stringId 
- The OCID of the software source.
- packageGroup StringId 
- The unique package group identifier.
- softwareSource StringId 
- The OCID of the software source.
- packageGroup stringId 
- The unique package group identifier.
- softwareSource stringId 
- The OCID of the software source.
- package_group_ strid 
- The unique package group identifier.
- software_source_ strid 
- The OCID of the software source.
- packageGroup StringId 
- The unique package group identifier.
- softwareSource StringId 
- The OCID of the software source.
getSoftwareSourcePackageGroup Result
The following output properties are available:
- Description string
- Description of the package group.
- DisplayOrder int
- Indicates the order to display category or environment.
- GroupType string
- Indicates if this is a group, category, or environment.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsDefault bool
- Indicates if this package group is the default.
- IsUser boolVisible 
- Indicates if this package group is visible to users.
- Name string
- Package group name.
- PackageGroup stringId 
- Packages List<string>
- The list of packages in the package group.
- Repositories List<string>
- The repository IDs of the package group's repositories.
- SoftwareSource stringId 
- Description string
- Description of the package group.
- DisplayOrder int
- Indicates the order to display category or environment.
- GroupType string
- Indicates if this is a group, category, or environment.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsDefault bool
- Indicates if this package group is the default.
- IsUser boolVisible 
- Indicates if this package group is visible to users.
- Name string
- Package group name.
- PackageGroup stringId 
- Packages []string
- The list of packages in the package group.
- Repositories []string
- The repository IDs of the package group's repositories.
- SoftwareSource stringId 
- description String
- Description of the package group.
- displayOrder Integer
- Indicates the order to display category or environment.
- groupType String
- Indicates if this is a group, category, or environment.
- id String
- The provider-assigned unique ID for this managed resource.
- isDefault Boolean
- Indicates if this package group is the default.
- isUser BooleanVisible 
- Indicates if this package group is visible to users.
- name String
- Package group name.
- packageGroup StringId 
- packages List<String>
- The list of packages in the package group.
- repositories List<String>
- The repository IDs of the package group's repositories.
- softwareSource StringId 
- description string
- Description of the package group.
- displayOrder number
- Indicates the order to display category or environment.
- groupType string
- Indicates if this is a group, category, or environment.
- id string
- The provider-assigned unique ID for this managed resource.
- isDefault boolean
- Indicates if this package group is the default.
- isUser booleanVisible 
- Indicates if this package group is visible to users.
- name string
- Package group name.
- packageGroup stringId 
- packages string[]
- The list of packages in the package group.
- repositories string[]
- The repository IDs of the package group's repositories.
- softwareSource stringId 
- description str
- Description of the package group.
- display_order int
- Indicates the order to display category or environment.
- group_type str
- Indicates if this is a group, category, or environment.
- id str
- The provider-assigned unique ID for this managed resource.
- is_default bool
- Indicates if this package group is the default.
- is_user_ boolvisible 
- Indicates if this package group is visible to users.
- name str
- Package group name.
- package_group_ strid 
- packages Sequence[str]
- The list of packages in the package group.
- repositories Sequence[str]
- The repository IDs of the package group's repositories.
- software_source_ strid 
- description String
- Description of the package group.
- displayOrder Number
- Indicates the order to display category or environment.
- groupType String
- Indicates if this is a group, category, or environment.
- id String
- The provider-assigned unique ID for this managed resource.
- isDefault Boolean
- Indicates if this package group is the default.
- isUser BooleanVisible 
- Indicates if this package group is visible to users.
- name String
- Package group name.
- packageGroup StringId 
- packages List<String>
- The list of packages in the package group.
- repositories List<String>
- The repository IDs of the package group's repositories.
- softwareSource StringId 
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.