oci.OsManagementHub.getSoftwareSourcePackageGroups
Explore with Pulumi AI
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/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
})
}
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:
- Software
Source stringId - The OCID of the software source.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Filters
List<Get
Software Source Package Groups Filter> - Group
Types List<string> - A filter to return only package groups of the specified type.
- Name string
- The name of the entity to be queried.
- Name
Contains string - A filter to return resources that may partially match the name given.
- Software
Source stringId - The OCID of the software source.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Filters
[]Get
Software Source Package Groups Filter - Group
Types []string - A filter to return only package groups of the specified type.
- Name string
- The name of the entity to be queried.
- Name
Contains string - A filter to return resources that may partially match the name given.
- software
Source StringId - The OCID of the software source.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
List<Get
Software Source Package Groups Filter> - group
Types List<String> - A filter to return only package groups of the specified type.
- name String
- The name of the entity to be queried.
- name
Contains String - A filter to return resources that may partially match the name given.
- software
Source stringId - The OCID of the software source.
- compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
Get
Software Source Package Groups Filter[] - group
Types string[] - A filter to return only package groups of the specified type.
- name string
- The name of the entity to be queried.
- name
Contains string - A filter to return resources that may partially match the name given.
- software_
source_ strid - 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.
Get Software Source Package Groups Filter] - 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.
- software
Source StringId - The OCID of the software source.
- compartment
Id 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>
- group
Types List<String> - A filter to return only package groups of the specified type.
- name String
- The name of the entity to be queried.
- name
Contains 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.
- Package
Group List<GetCollections Software Source Package Groups Package Group Collection> - The list of package_group_collection.
- Software
Source stringId - Compartment
Id string - Filters
List<Get
Software Source Package Groups Filter> - Group
Types List<string> - Indicates if this is a group, category, or environment.
- Name string
- Package group name.
- Name
Contains string
- Id string
- The provider-assigned unique ID for this managed resource.
- Package
Group []GetCollections Software Source Package Groups Package Group Collection - The list of package_group_collection.
- Software
Source stringId - Compartment
Id string - Filters
[]Get
Software Source Package Groups Filter - Group
Types []string - Indicates if this is a group, category, or environment.
- Name string
- Package group name.
- Name
Contains string
- id String
- The provider-assigned unique ID for this managed resource.
- package
Group List<GetCollections Software Source Package Groups Package Group Collection> - The list of package_group_collection.
- software
Source StringId - compartment
Id String - filters
List<Get
Software Source Package Groups Filter> - group
Types List<String> - Indicates if this is a group, category, or environment.
- name String
- Package group name.
- name
Contains String
- id string
- The provider-assigned unique ID for this managed resource.
- package
Group GetCollections Software Source Package Groups Package Group Collection[] - The list of package_group_collection.
- software
Source stringId - compartment
Id string - filters
Get
Software Source Package Groups Filter[] - group
Types string[] - Indicates if this is a group, category, or environment.
- name string
- Package group name.
- name
Contains string
- id str
- The provider-assigned unique ID for this managed resource.
- package_
group_ Sequence[osmanagementhub.collections Get Software Source Package Groups Package Group Collection] - The list of package_group_collection.
- software_
source_ strid - compartment_
id str - filters
Sequence[osmanagementhub.
Get Software Source Package Groups Filter] - 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.
- package
Group List<Property Map>Collections - The list of package_group_collection.
- software
Source StringId - compartment
Id String - filters List<Property Map>
- group
Types List<String> - Indicates if this is a group, category, or environment.
- name String
- Package group name.
- name
Contains String
Supporting Types
GetSoftwareSourcePackageGroupsFilter
GetSoftwareSourcePackageGroupsPackageGroupCollection
GetSoftwareSourcePackageGroupsPackageGroupCollectionItem
- Description string
- Description of the package group.
- Display
Order int - Indicates the order to display category or environment.
- Group
Type string - A filter to return only package groups of the specified type.
- Id string
- Package group identifier.
- Is
Default bool - Indicates if this package group is the default.
- Is
User boolVisible - 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.
- Display
Order int - Indicates the order to display category or environment.
- Group
Type string - A filter to return only package groups of the specified type.
- Id string
- Package group identifier.
- Is
Default bool - Indicates if this package group is the default.
- Is
User boolVisible - 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.
- display
Order Integer - Indicates the order to display category or environment.
- group
Type String - A filter to return only package groups of the specified type.
- id String
- Package group identifier.
- is
Default Boolean - Indicates if this package group is the default.
- is
User BooleanVisible - 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.
- display
Order number - Indicates the order to display category or environment.
- group
Type string - A filter to return only package groups of the specified type.
- id string
- Package group identifier.
- is
Default boolean - Indicates if this package group is the default.
- is
User booleanVisible - 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_ boolvisible - 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.
- display
Order Number - Indicates the order to display category or environment.
- group
Type String - A filter to return only package groups of the specified type.
- id String
- Package group identifier.
- is
Default Boolean - Indicates if this package group is the default.
- is
User BooleanVisible - 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.