1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getSoftwareSourcePackageGroup
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.OsManagementHub.getSoftwareSourcePackageGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getSoftwareSourcePackageGroup:getSoftwareSourcePackageGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PackageGroupId string
    The unique package group identifier.
    SoftwareSourceId string
    The OCID of the software source.
    PackageGroupId string
    The unique package group identifier.
    SoftwareSourceId string
    The OCID of the software source.
    packageGroupId String
    The unique package group identifier.
    softwareSourceId String
    The OCID of the software source.
    packageGroupId string
    The unique package group identifier.
    softwareSourceId string
    The OCID of the software source.
    package_group_id str
    The unique package group identifier.
    software_source_id str
    The OCID of the software source.
    packageGroupId String
    The unique package group identifier.
    softwareSourceId String
    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.
    IsUserVisible bool
    Indicates if this package group is visible to users.
    Name string
    Package group name.
    PackageGroupId string
    Packages List<string>
    The list of packages in the package group.
    Repositories List<string>
    The repository IDs of the package group's repositories.
    SoftwareSourceId string
    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.
    IsUserVisible bool
    Indicates if this package group is visible to users.
    Name string
    Package group name.
    PackageGroupId string
    Packages []string
    The list of packages in the package group.
    Repositories []string
    The repository IDs of the package group's repositories.
    SoftwareSourceId string
    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.
    isUserVisible Boolean
    Indicates if this package group is visible to users.
    name String
    Package group name.
    packageGroupId String
    packages List<String>
    The list of packages in the package group.
    repositories List<String>
    The repository IDs of the package group's repositories.
    softwareSourceId String
    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.
    isUserVisible boolean
    Indicates if this package group is visible to users.
    name string
    Package group name.
    packageGroupId string
    packages string[]
    The list of packages in the package group.
    repositories string[]
    The repository IDs of the package group's repositories.
    softwareSourceId string
    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_visible bool
    Indicates if this package group is visible to users.
    name str
    Package group name.
    package_group_id str
    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_id str
    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.
    isUserVisible Boolean
    Indicates if this package group is visible to users.
    name String
    Package group name.
    packageGroupId String
    packages List<String>
    The list of packages in the package group.
    repositories List<String>
    The repository IDs of the package group's repositories.
    softwareSourceId String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi