Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getSoftwarePackages
Explore with Pulumi AI
This data source provides the list of Software Packages in Oracle Cloud Infrastructure Os Management Hub service.
Lists software packages available through the OS Management Hub service. Filter the list against a variety of criteria including but not limited to its name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSoftwarePackages = oci.OsManagementHub.getSoftwarePackages({
    architecture: softwarePackageArchitecture,
    displayName: softwarePackageDisplayName,
    displayNameContains: softwarePackageDisplayNameContains,
    isLatest: softwarePackageIsLatest,
    osFamily: softwarePackageOsFamily,
    version: softwarePackageVersion,
});
import pulumi
import pulumi_oci as oci
test_software_packages = oci.OsManagementHub.get_software_packages(architecture=software_package_architecture,
    display_name=software_package_display_name,
    display_name_contains=software_package_display_name_contains,
    is_latest=software_package_is_latest,
    os_family=software_package_os_family,
    version=software_package_version)
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.GetSoftwarePackages(ctx, &osmanagementhub.GetSoftwarePackagesArgs{
			Architecture:        pulumi.StringRef(softwarePackageArchitecture),
			DisplayName:         pulumi.StringRef(softwarePackageDisplayName),
			DisplayNameContains: pulumi.StringRef(softwarePackageDisplayNameContains),
			IsLatest:            pulumi.BoolRef(softwarePackageIsLatest),
			OsFamily:            pulumi.StringRef(softwarePackageOsFamily),
			Version:             pulumi.StringRef(softwarePackageVersion),
		}, 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 testSoftwarePackages = Oci.OsManagementHub.GetSoftwarePackages.Invoke(new()
    {
        Architecture = softwarePackageArchitecture,
        DisplayName = softwarePackageDisplayName,
        DisplayNameContains = softwarePackageDisplayNameContains,
        IsLatest = softwarePackageIsLatest,
        OsFamily = softwarePackageOsFamily,
        Version = softwarePackageVersion,
    });
});
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.GetSoftwarePackagesArgs;
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 testSoftwarePackages = OsManagementHubFunctions.getSoftwarePackages(GetSoftwarePackagesArgs.builder()
            .architecture(softwarePackageArchitecture)
            .displayName(softwarePackageDisplayName)
            .displayNameContains(softwarePackageDisplayNameContains)
            .isLatest(softwarePackageIsLatest)
            .osFamily(softwarePackageOsFamily)
            .version(softwarePackageVersion)
            .build());
    }
}
variables:
  testSoftwarePackages:
    fn::invoke:
      function: oci:OsManagementHub:getSoftwarePackages
      arguments:
        architecture: ${softwarePackageArchitecture}
        displayName: ${softwarePackageDisplayName}
        displayNameContains: ${softwarePackageDisplayNameContains}
        isLatest: ${softwarePackageIsLatest}
        osFamily: ${softwarePackageOsFamily}
        version: ${softwarePackageVersion}
Using getSoftwarePackages
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 getSoftwarePackages(args: GetSoftwarePackagesArgs, opts?: InvokeOptions): Promise<GetSoftwarePackagesResult>
function getSoftwarePackagesOutput(args: GetSoftwarePackagesOutputArgs, opts?: InvokeOptions): Output<GetSoftwarePackagesResult>def get_software_packages(architecture: Optional[str] = None,
                          display_name: Optional[str] = None,
                          display_name_contains: Optional[str] = None,
                          filters: Optional[Sequence[GetSoftwarePackagesFilter]] = None,
                          is_latest: Optional[bool] = None,
                          os_family: Optional[str] = None,
                          version: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSoftwarePackagesResult
def get_software_packages_output(architecture: Optional[pulumi.Input[str]] = None,
                          display_name: Optional[pulumi.Input[str]] = None,
                          display_name_contains: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSoftwarePackagesFilterArgs]]]] = None,
                          is_latest: Optional[pulumi.Input[bool]] = None,
                          os_family: Optional[pulumi.Input[str]] = None,
                          version: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSoftwarePackagesResult]func GetSoftwarePackages(ctx *Context, args *GetSoftwarePackagesArgs, opts ...InvokeOption) (*GetSoftwarePackagesResult, error)
func GetSoftwarePackagesOutput(ctx *Context, args *GetSoftwarePackagesOutputArgs, opts ...InvokeOption) GetSoftwarePackagesResultOutput> Note: This function is named GetSoftwarePackages in the Go SDK.
public static class GetSoftwarePackages 
{
    public static Task<GetSoftwarePackagesResult> InvokeAsync(GetSoftwarePackagesArgs args, InvokeOptions? opts = null)
    public static Output<GetSoftwarePackagesResult> Invoke(GetSoftwarePackagesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSoftwarePackagesResult> getSoftwarePackages(GetSoftwarePackagesArgs args, InvokeOptions options)
public static Output<GetSoftwarePackagesResult> getSoftwarePackages(GetSoftwarePackagesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getSoftwarePackages:getSoftwarePackages
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Architecture string
- A filter to return software packages that match the given architecture.
- DisplayName string
- A filter to return resources that match the given user-friendly name.
- DisplayName stringContains 
- A filter to return resources that may partially match the given display name.
- Filters
List<GetSoftware Packages Filter> 
- IsLatest bool
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- OsFamily string
- A filter to return only resources that match the given operating system family.
- Version string
- A filter to return software packages that match the given version.
- Architecture string
- A filter to return software packages that match the given architecture.
- DisplayName string
- A filter to return resources that match the given user-friendly name.
- DisplayName stringContains 
- A filter to return resources that may partially match the given display name.
- Filters
[]GetSoftware Packages Filter 
- IsLatest bool
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- OsFamily string
- A filter to return only resources that match the given operating system family.
- Version string
- A filter to return software packages that match the given version.
- architecture String
- A filter to return software packages that match the given architecture.
- displayName String
- A filter to return resources that match the given user-friendly name.
- displayName StringContains 
- A filter to return resources that may partially match the given display name.
- filters
List<GetSoftware Packages Filter> 
- isLatest Boolean
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- osFamily String
- A filter to return only resources that match the given operating system family.
- version String
- A filter to return software packages that match the given version.
- architecture string
- A filter to return software packages that match the given architecture.
- displayName string
- A filter to return resources that match the given user-friendly name.
- displayName stringContains 
- A filter to return resources that may partially match the given display name.
- filters
GetSoftware Packages Filter[] 
- isLatest boolean
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- osFamily string
- A filter to return only resources that match the given operating system family.
- version string
- A filter to return software packages that match the given version.
- architecture str
- A filter to return software packages that match the given architecture.
- display_name str
- A filter to return resources that match the given user-friendly name.
- display_name_ strcontains 
- A filter to return resources that may partially match the given display name.
- filters
Sequence[GetSoftware Packages Filter] 
- is_latest bool
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- os_family str
- A filter to return only resources that match the given operating system family.
- version str
- A filter to return software packages that match the given version.
- architecture String
- A filter to return software packages that match the given architecture.
- displayName String
- A filter to return resources that match the given user-friendly name.
- displayName StringContains 
- A filter to return resources that may partially match the given display name.
- filters List<Property Map>
- isLatest Boolean
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- osFamily String
- A filter to return only resources that match the given operating system family.
- version String
- A filter to return software packages that match the given version.
getSoftwarePackages Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- SoftwarePackage List<GetCollections Software Packages Software Package Collection> 
- The list of software_package_collection.
- Architecture string
- The architecture for which this software was built
- DisplayName string
- Software source name.
- DisplayName stringContains 
- Filters
List<GetSoftware Packages Filter> 
- IsLatest bool
- Indicates whether this package is the latest version.
- OsFamily string
- Version string
- Version of the package.
- Id string
- The provider-assigned unique ID for this managed resource.
- SoftwarePackage []GetCollections Software Packages Software Package Collection 
- The list of software_package_collection.
- Architecture string
- The architecture for which this software was built
- DisplayName string
- Software source name.
- DisplayName stringContains 
- Filters
[]GetSoftware Packages Filter 
- IsLatest bool
- Indicates whether this package is the latest version.
- OsFamily string
- Version string
- Version of the package.
- id String
- The provider-assigned unique ID for this managed resource.
- softwarePackage List<GetCollections Software Packages Software Package Collection> 
- The list of software_package_collection.
- architecture String
- The architecture for which this software was built
- displayName String
- Software source name.
- displayName StringContains 
- filters
List<GetSoftware Packages Filter> 
- isLatest Boolean
- Indicates whether this package is the latest version.
- osFamily String
- version String
- Version of the package.
- id string
- The provider-assigned unique ID for this managed resource.
- softwarePackage GetCollections Software Packages Software Package Collection[] 
- The list of software_package_collection.
- architecture string
- The architecture for which this software was built
- displayName string
- Software source name.
- displayName stringContains 
- filters
GetSoftware Packages Filter[] 
- isLatest boolean
- Indicates whether this package is the latest version.
- osFamily string
- version string
- Version of the package.
- id str
- The provider-assigned unique ID for this managed resource.
- software_package_ Sequence[Getcollections Software Packages Software Package Collection] 
- The list of software_package_collection.
- architecture str
- The architecture for which this software was built
- display_name str
- Software source name.
- display_name_ strcontains 
- filters
Sequence[GetSoftware Packages Filter] 
- is_latest bool
- Indicates whether this package is the latest version.
- os_family str
- version str
- Version of the package.
- id String
- The provider-assigned unique ID for this managed resource.
- softwarePackage List<Property Map>Collections 
- The list of software_package_collection.
- architecture String
- The architecture for which this software was built
- displayName String
- Software source name.
- displayName StringContains 
- filters List<Property Map>
- isLatest Boolean
- Indicates whether this package is the latest version.
- osFamily String
- version String
- Version of the package.
Supporting Types
GetSoftwarePackagesFilter   
GetSoftwarePackagesSoftwarePackageCollection     
GetSoftwarePackagesSoftwarePackageCollectionItem      
- Architecture string
- A filter to return software packages that match the given architecture.
- Checksum string
- Checksum of the file.
- ChecksumType string
- Type of the checksum.
- Dependencies
List<GetSoftware Packages Software Package Collection Item Dependency> 
- List of dependencies for the software package.
- Description string
- Software source description.
- DisplayName string
- A filter to return resources that match the given user-friendly name.
- Files
List<GetSoftware Packages Software Package Collection Item File> 
- List of files for the software package.
- IsLatest bool
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- LastModified stringDate 
- The date and time the package was last modified (in RFC 3339 format).
- Name string
- Unique identifier for the package. Note that this is not an OCID.
- OsFamilies List<string>
- The OS families the package belongs to.
- SizeIn stringBytes 
- Size of the package in bytes.
- SoftwareSources List<GetSoftware Packages Software Package Collection Item Software Source> 
- List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
- Type string
- Type of the package.
- Version string
- A filter to return software packages that match the given version.
- Architecture string
- A filter to return software packages that match the given architecture.
- Checksum string
- Checksum of the file.
- ChecksumType string
- Type of the checksum.
- Dependencies
[]GetSoftware Packages Software Package Collection Item Dependency 
- List of dependencies for the software package.
- Description string
- Software source description.
- DisplayName string
- A filter to return resources that match the given user-friendly name.
- Files
[]GetSoftware Packages Software Package Collection Item File 
- List of files for the software package.
- IsLatest bool
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- LastModified stringDate 
- The date and time the package was last modified (in RFC 3339 format).
- Name string
- Unique identifier for the package. Note that this is not an OCID.
- OsFamilies []string
- The OS families the package belongs to.
- SizeIn stringBytes 
- Size of the package in bytes.
- SoftwareSources []GetSoftware Packages Software Package Collection Item Software Source 
- List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
- Type string
- Type of the package.
- Version string
- A filter to return software packages that match the given version.
- architecture String
- A filter to return software packages that match the given architecture.
- checksum String
- Checksum of the file.
- checksumType String
- Type of the checksum.
- dependencies
List<GetSoftware Packages Software Package Collection Item Dependency> 
- List of dependencies for the software package.
- description String
- Software source description.
- displayName String
- A filter to return resources that match the given user-friendly name.
- files
List<GetSoftware Packages Software Package Collection Item File> 
- List of files for the software package.
- isLatest Boolean
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- lastModified StringDate 
- The date and time the package was last modified (in RFC 3339 format).
- name String
- Unique identifier for the package. Note that this is not an OCID.
- osFamilies List<String>
- The OS families the package belongs to.
- sizeIn StringBytes 
- Size of the package in bytes.
- softwareSources List<GetSoftware Packages Software Package Collection Item Software Source> 
- List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
- type String
- Type of the package.
- version String
- A filter to return software packages that match the given version.
- architecture string
- A filter to return software packages that match the given architecture.
- checksum string
- Checksum of the file.
- checksumType string
- Type of the checksum.
- dependencies
GetSoftware Packages Software Package Collection Item Dependency[] 
- List of dependencies for the software package.
- description string
- Software source description.
- displayName string
- A filter to return resources that match the given user-friendly name.
- files
GetSoftware Packages Software Package Collection Item File[] 
- List of files for the software package.
- isLatest boolean
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- lastModified stringDate 
- The date and time the package was last modified (in RFC 3339 format).
- name string
- Unique identifier for the package. Note that this is not an OCID.
- osFamilies string[]
- The OS families the package belongs to.
- sizeIn stringBytes 
- Size of the package in bytes.
- softwareSources GetSoftware Packages Software Package Collection Item Software Source[] 
- List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
- type string
- Type of the package.
- version string
- A filter to return software packages that match the given version.
- architecture str
- A filter to return software packages that match the given architecture.
- checksum str
- Checksum of the file.
- checksum_type str
- Type of the checksum.
- dependencies
Sequence[GetSoftware Packages Software Package Collection Item Dependency] 
- List of dependencies for the software package.
- description str
- Software source description.
- display_name str
- A filter to return resources that match the given user-friendly name.
- files
Sequence[GetSoftware Packages Software Package Collection Item File] 
- List of files for the software package.
- is_latest bool
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- last_modified_ strdate 
- The date and time the package was last modified (in RFC 3339 format).
- name str
- Unique identifier for the package. Note that this is not an OCID.
- os_families Sequence[str]
- The OS families the package belongs to.
- size_in_ strbytes 
- Size of the package in bytes.
- software_sources Sequence[GetSoftware Packages Software Package Collection Item Software Source] 
- List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
- type str
- Type of the package.
- version str
- A filter to return software packages that match the given version.
- architecture String
- A filter to return software packages that match the given architecture.
- checksum String
- Checksum of the file.
- checksumType String
- Type of the checksum.
- dependencies List<Property Map>
- List of dependencies for the software package.
- description String
- Software source description.
- displayName String
- A filter to return resources that match the given user-friendly name.
- files List<Property Map>
- List of files for the software package.
- isLatest Boolean
- Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- lastModified StringDate 
- The date and time the package was last modified (in RFC 3339 format).
- name String
- Unique identifier for the package. Note that this is not an OCID.
- osFamilies List<String>
- The OS families the package belongs to.
- sizeIn StringBytes 
- Size of the package in bytes.
- softwareSources List<Property Map>
- List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
- type String
- Type of the package.
- version String
- A filter to return software packages that match the given version.
GetSoftwarePackagesSoftwarePackageCollectionItemDependency       
- Dependency string
- The software package's dependency.
- DependencyModifier string
- The modifier for the dependency.
- DependencyType string
- The type of the dependency.
- Dependency string
- The software package's dependency.
- DependencyModifier string
- The modifier for the dependency.
- DependencyType string
- The type of the dependency.
- dependency String
- The software package's dependency.
- dependencyModifier String
- The modifier for the dependency.
- dependencyType String
- The type of the dependency.
- dependency string
- The software package's dependency.
- dependencyModifier string
- The modifier for the dependency.
- dependencyType string
- The type of the dependency.
- dependency str
- The software package's dependency.
- dependency_modifier str
- The modifier for the dependency.
- dependency_type str
- The type of the dependency.
- dependency String
- The software package's dependency.
- dependencyModifier String
- The modifier for the dependency.
- dependencyType String
- The type of the dependency.
GetSoftwarePackagesSoftwarePackageCollectionItemFile       
- Checksum string
- Checksum of the file.
- ChecksumType string
- Type of the checksum.
- Path string
- File path.
- SizeIn stringBytes 
- Size of the package in bytes.
- TimeModified string
- The date and time the file was last modified (in RFC 3339 format).
- Type string
- Type of the package.
- Checksum string
- Checksum of the file.
- ChecksumType string
- Type of the checksum.
- Path string
- File path.
- SizeIn stringBytes 
- Size of the package in bytes.
- TimeModified string
- The date and time the file was last modified (in RFC 3339 format).
- Type string
- Type of the package.
- checksum String
- Checksum of the file.
- checksumType String
- Type of the checksum.
- path String
- File path.
- sizeIn StringBytes 
- Size of the package in bytes.
- timeModified String
- The date and time the file was last modified (in RFC 3339 format).
- type String
- Type of the package.
- checksum string
- Checksum of the file.
- checksumType string
- Type of the checksum.
- path string
- File path.
- sizeIn stringBytes 
- Size of the package in bytes.
- timeModified string
- The date and time the file was last modified (in RFC 3339 format).
- type string
- Type of the package.
- checksum str
- Checksum of the file.
- checksum_type str
- Type of the checksum.
- path str
- File path.
- size_in_ strbytes 
- Size of the package in bytes.
- time_modified str
- The date and time the file was last modified (in RFC 3339 format).
- type str
- Type of the package.
- checksum String
- Checksum of the file.
- checksumType String
- Type of the checksum.
- path String
- File path.
- sizeIn StringBytes 
- Size of the package in bytes.
- timeModified String
- The date and time the file was last modified (in RFC 3339 format).
- type String
- Type of the package.
GetSoftwarePackagesSoftwarePackageCollectionItemSoftwareSource        
- Description string
- Software source description.
- DisplayName string
- A filter to return resources that match the given user-friendly name.
- Id string
- The OCID of the software source.
- IsMandatory boolFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- SoftwareSource stringType 
- Type of the software source.
- Description string
- Software source description.
- DisplayName string
- A filter to return resources that match the given user-friendly name.
- Id string
- The OCID of the software source.
- IsMandatory boolFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- SoftwareSource stringType 
- Type of the software source.
- description String
- Software source description.
- displayName String
- A filter to return resources that match the given user-friendly name.
- id String
- The OCID of the software source.
- isMandatory BooleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource StringType 
- Type of the software source.
- description string
- Software source description.
- displayName string
- A filter to return resources that match the given user-friendly name.
- id string
- The OCID of the software source.
- isMandatory booleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource stringType 
- Type of the software source.
- description str
- Software source description.
- display_name str
- A filter to return resources that match the given user-friendly name.
- id str
- The OCID of the software source.
- is_mandatory_ boolfor_ autonomous_ linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software_source_ strtype 
- Type of the software source.
- description String
- Software source description.
- displayName String
- A filter to return resources that match the given user-friendly name.
- id String
- The OCID of the software source.
- isMandatory BooleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource StringType 
- Type of the software source.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.