1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getSoftwareSourcePackageGroups
Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 by Pulumi

oci.OsManagementHub.getSoftwareSourcePackageGroups

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 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,
    });
    
    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)
    
    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.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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      testSoftwareSourcePackageGroups:
        fn::invoke:
          Function: oci:OsManagementHub:getSoftwareSourcePackageGroups
          Arguments:
            softwareSourceId: ${testSoftwareSource.id}
            compartmentId: ${compartmentId}
            groupTypes: ${softwareSourcePackageGroupGroupType}
            name: ${softwareSourcePackageGroupName}
            nameContains: ${softwareSourcePackageGroupNameContains}
    

    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>
    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]
    func GetSoftwareSourcePackageGroups(ctx *Context, args *GetSoftwareSourcePackageGroupsArgs, opts ...InvokeOption) (*GetSoftwareSourcePackageGroupsResult, error)
    func GetSoftwareSourcePackageGroupsOutput(ctx *Context, args *GetSoftwareSourcePackageGroupsOutputArgs, opts ...InvokeOption) GetSoftwareSourcePackageGroupsResultOutput

    > 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)
    }
    public static CompletableFuture<GetSoftwareSourcePackageGroupsResult> getSoftwareSourcePackageGroups(GetSoftwareSourcePackageGroupsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getSoftwareSourcePackageGroups:getSoftwareSourcePackageGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SoftwareSourceId 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 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 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 []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 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 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 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 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 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 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 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 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 string
    The name of the entity to be queried.
    Values List<string>
    Regex bool
    Name string
    The name of the entity to be queried.
    Values []string
    Regex bool
    name String
    The name of the entity to be queried.
    values List<String>
    regex Boolean
    name string
    The name of the entity to be queried.
    values string[]
    regex boolean
    name str
    The name of the entity to be queried.
    values Sequence[str]
    regex bool
    name String
    The name of the entity to be queried.
    values List<String>
    regex Boolean

    GetSoftwareSourcePackageGroupsPackageGroupCollection

    GetSoftwareSourcePackageGroupsPackageGroupCollectionItem

    Description string
    Description of the package group.
    DisplayOrder int
    Indicates the order to display category or environment.
    GroupType string
    A filter to return only package groups of the specified type.
    Id string
    Package group identifier.
    IsDefault bool
    Indicates if this package group is the default.
    IsUserVisible bool
    Indicates if this package group is visible to users.
    Name string
    The name of the entity to be queried.
    Packages List<string>
    The list of packages in the package group.
    Repositories List<string>
    The repository IDs of the package group's repositories.
    Description string
    Description of the package group.
    DisplayOrder int
    Indicates the order to display category or environment.
    GroupType string
    A filter to return only package groups of the specified type.
    Id string
    Package group identifier.
    IsDefault bool
    Indicates if this package group is the default.
    IsUserVisible bool
    Indicates if this package group is visible to users.
    Name string
    The name of the entity to be queried.
    Packages []string
    The list of packages in the package group.
    Repositories []string
    The repository IDs of the package group's repositories.
    description String
    Description of the package group.
    displayOrder Integer
    Indicates the order to display category or environment.
    groupType String
    A filter to return only package groups of the specified type.
    id String
    Package group identifier.
    isDefault Boolean
    Indicates if this package group is the default.
    isUserVisible Boolean
    Indicates if this package group is visible to users.
    name String
    The name of the entity to be queried.
    packages List<String>
    The list of packages in the package group.
    repositories List<String>
    The repository IDs of the package group's repositories.
    description string
    Description of the package group.
    displayOrder number
    Indicates the order to display category or environment.
    groupType string
    A filter to return only package groups of the specified type.
    id string
    Package group identifier.
    isDefault boolean
    Indicates if this package group is the default.
    isUserVisible boolean
    Indicates if this package group is visible to users.
    name string
    The name of the entity to be queried.
    packages string[]
    The list of packages in the package group.
    repositories string[]
    The repository IDs of the package group's repositories.
    description str
    Description of the package group.
    display_order int
    Indicates the order to display category or environment.
    group_type str
    A filter to return only package groups of the specified type.
    id str
    Package group identifier.
    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
    The name of the entity to be queried.
    packages Sequence[str]
    The list of packages in the package group.
    repositories Sequence[str]
    The repository IDs of the package group's repositories.
    description String
    Description of the package group.
    displayOrder Number
    Indicates the order to display category or environment.
    groupType String
    A filter to return only package groups of the specified type.
    id String
    Package group identifier.
    isDefault Boolean
    Indicates if this package group is the default.
    isUserVisible Boolean
    Indicates if this package group is visible to users.
    name String
    The name of the entity to be queried.
    packages List<String>
    The list of packages in the package group.
    repositories 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.
    oci logo
    Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 by Pulumi