Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsManagementHub/getSoftwareSourcePackageGroup:getSoftwareSourcePackageGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Package
Group stringId - The unique package group identifier.
- Software
Source stringId - The OCID of the software source.
- Package
Group stringId - The unique package group identifier.
- Software
Source stringId - The OCID of the software source.
- package
Group StringId - The unique package group identifier.
- software
Source StringId - The OCID of the software source.
- package
Group stringId - The unique package group identifier.
- software
Source stringId - The OCID of the software source.
- package_
group_ strid - The unique package group identifier.
- software_
source_ strid - The OCID of the software source.
- package
Group StringId - The unique package group identifier.
- software
Source StringId - The OCID of the software source.
getSoftwareSourcePackageGroup Result
The following output properties are available:
- Description string
- Description of the package group.
- Display
Order int - Indicates the order to display category or environment.
- Group
Type string - Indicates if this is a group, category, or environment.
- Id string
- 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 string
- Package group name.
- Package
Group stringId - Packages List<string>
- The list of packages in the package group.
- Repositories List<string>
- The repository IDs of the package group's repositories.
- Software
Source stringId
- Description string
- Description of the package group.
- Display
Order int - Indicates the order to display category or environment.
- Group
Type string - Indicates if this is a group, category, or environment.
- Id string
- 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 string
- Package group name.
- Package
Group stringId - Packages []string
- The list of packages in the package group.
- Repositories []string
- The repository IDs of the package group's repositories.
- Software
Source stringId
- description String
- Description of the package group.
- display
Order Integer - Indicates the order to display category or environment.
- group
Type String - Indicates if this is a group, category, or environment.
- id String
- The provider-assigned unique ID for this managed resource.
- 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
- Package group name.
- package
Group StringId - packages List<String>
- The list of packages in the package group.
- repositories List<String>
- The repository IDs of the package group's repositories.
- software
Source StringId
- description string
- Description of the package group.
- display
Order number - Indicates the order to display category or environment.
- group
Type string - Indicates if this is a group, category, or environment.
- id string
- The provider-assigned unique ID for this managed resource.
- 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
- Package group name.
- package
Group stringId - packages string[]
- The list of packages in the package group.
- repositories string[]
- The repository IDs of the package group's repositories.
- software
Source 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.
- display
Order Number - Indicates the order to display category or environment.
- group
Type String - Indicates if this is a group, category, or environment.
- id String
- The provider-assigned unique ID for this managed resource.
- 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
- Package group name.
- package
Group StringId - packages List<String>
- The list of packages in the package group.
- repositories List<String>
- The repository IDs of the package group's repositories.
- software
Source StringId
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.