1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getSoftwareSourceSoftwarePackages
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.OsManagementHub.getSoftwareSourceSoftwarePackages

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

    This data source provides the list of Software Source Software Packages in Oracle Cloud Infrastructure Os Management Hub service.

    Lists software packages in the specified software source. 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 testSoftwareSourceSoftwarePackages = oci.OsManagementHub.getSoftwareSourceSoftwarePackages({
        softwareSourceId: testSoftwareSource.id,
        displayName: softwareSourceSoftwarePackageDisplayName,
        displayNameContains: softwareSourceSoftwarePackageDisplayNameContains,
        isLatest: softwareSourceSoftwarePackageIsLatest,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_software_source_software_packages = oci.OsManagementHub.get_software_source_software_packages(software_source_id=test_software_source["id"],
        display_name=software_source_software_package_display_name,
        display_name_contains=software_source_software_package_display_name_contains,
        is_latest=software_source_software_package_is_latest)
    
    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.GetSoftwareSourceSoftwarePackages(ctx, &osmanagementhub.GetSoftwareSourceSoftwarePackagesArgs{
    			SoftwareSourceId:    testSoftwareSource.Id,
    			DisplayName:         pulumi.StringRef(softwareSourceSoftwarePackageDisplayName),
    			DisplayNameContains: pulumi.StringRef(softwareSourceSoftwarePackageDisplayNameContains),
    			IsLatest:            pulumi.BoolRef(softwareSourceSoftwarePackageIsLatest),
    		}, 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 testSoftwareSourceSoftwarePackages = Oci.OsManagementHub.GetSoftwareSourceSoftwarePackages.Invoke(new()
        {
            SoftwareSourceId = testSoftwareSource.Id,
            DisplayName = softwareSourceSoftwarePackageDisplayName,
            DisplayNameContains = softwareSourceSoftwarePackageDisplayNameContains,
            IsLatest = softwareSourceSoftwarePackageIsLatest,
        });
    
    });
    
    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.GetSoftwareSourceSoftwarePackagesArgs;
    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 testSoftwareSourceSoftwarePackages = OsManagementHubFunctions.getSoftwareSourceSoftwarePackages(GetSoftwareSourceSoftwarePackagesArgs.builder()
                .softwareSourceId(testSoftwareSource.id())
                .displayName(softwareSourceSoftwarePackageDisplayName)
                .displayNameContains(softwareSourceSoftwarePackageDisplayNameContains)
                .isLatest(softwareSourceSoftwarePackageIsLatest)
                .build());
    
        }
    }
    
    variables:
      testSoftwareSourceSoftwarePackages:
        fn::invoke:
          Function: oci:OsManagementHub:getSoftwareSourceSoftwarePackages
          Arguments:
            softwareSourceId: ${testSoftwareSource.id}
            displayName: ${softwareSourceSoftwarePackageDisplayName}
            displayNameContains: ${softwareSourceSoftwarePackageDisplayNameContains}
            isLatest: ${softwareSourceSoftwarePackageIsLatest}
    

    Using getSoftwareSourceSoftwarePackages

    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 getSoftwareSourceSoftwarePackages(args: GetSoftwareSourceSoftwarePackagesArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceSoftwarePackagesResult>
    function getSoftwareSourceSoftwarePackagesOutput(args: GetSoftwareSourceSoftwarePackagesOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceSoftwarePackagesResult>
    def get_software_source_software_packages(display_name: Optional[str] = None,
                                              display_name_contains: Optional[str] = None,
                                              filters: Optional[Sequence[_osmanagementhub.GetSoftwareSourceSoftwarePackagesFilter]] = None,
                                              is_latest: Optional[bool] = None,
                                              software_source_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetSoftwareSourceSoftwarePackagesResult
    def get_software_source_software_packages_output(display_name: Optional[pulumi.Input[str]] = None,
                                              display_name_contains: Optional[pulumi.Input[str]] = None,
                                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetSoftwareSourceSoftwarePackagesFilterArgs]]]] = None,
                                              is_latest: Optional[pulumi.Input[bool]] = None,
                                              software_source_id: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourceSoftwarePackagesResult]
    func GetSoftwareSourceSoftwarePackages(ctx *Context, args *GetSoftwareSourceSoftwarePackagesArgs, opts ...InvokeOption) (*GetSoftwareSourceSoftwarePackagesResult, error)
    func GetSoftwareSourceSoftwarePackagesOutput(ctx *Context, args *GetSoftwareSourceSoftwarePackagesOutputArgs, opts ...InvokeOption) GetSoftwareSourceSoftwarePackagesResultOutput

    > Note: This function is named GetSoftwareSourceSoftwarePackages in the Go SDK.

    public static class GetSoftwareSourceSoftwarePackages 
    {
        public static Task<GetSoftwareSourceSoftwarePackagesResult> InvokeAsync(GetSoftwareSourceSoftwarePackagesArgs args, InvokeOptions? opts = null)
        public static Output<GetSoftwareSourceSoftwarePackagesResult> Invoke(GetSoftwareSourceSoftwarePackagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSoftwareSourceSoftwarePackagesResult> getSoftwareSourceSoftwarePackages(GetSoftwareSourceSoftwarePackagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getSoftwareSourceSoftwarePackages:getSoftwareSourceSoftwarePackages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SoftwareSourceId string
    The OCID of the software source.
    DisplayName string
    A filter to return resources that match the given user-friendly name.
    DisplayNameContains string
    A filter to return resources that may partially match the given display name.
    Filters List<GetSoftwareSourceSoftwarePackagesFilter>
    IsLatest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    SoftwareSourceId string
    The OCID of the software source.
    DisplayName string
    A filter to return resources that match the given user-friendly name.
    DisplayNameContains string
    A filter to return resources that may partially match the given display name.
    Filters []GetSoftwareSourceSoftwarePackagesFilter
    IsLatest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    softwareSourceId String
    The OCID of the software source.
    displayName String
    A filter to return resources that match the given user-friendly name.
    displayNameContains String
    A filter to return resources that may partially match the given display name.
    filters List<GetSoftwareSourceSoftwarePackagesFilter>
    isLatest Boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    softwareSourceId string
    The OCID of the software source.
    displayName string
    A filter to return resources that match the given user-friendly name.
    displayNameContains string
    A filter to return resources that may partially match the given display name.
    filters GetSoftwareSourceSoftwarePackagesFilter[]
    isLatest boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    software_source_id str
    The OCID of the software source.
    display_name str
    A filter to return resources that match the given user-friendly name.
    display_name_contains str
    A filter to return resources that may partially match the given display name.
    filters Sequence[osmanagementhub.GetSoftwareSourceSoftwarePackagesFilter]
    is_latest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    softwareSourceId String
    The OCID of the software source.
    displayName String
    A filter to return resources that match the given user-friendly name.
    displayNameContains String
    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.

    getSoftwareSourceSoftwarePackages Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    SoftwarePackageCollections List<GetSoftwareSourceSoftwarePackagesSoftwarePackageCollection>
    The list of software_package_collection.
    SoftwareSourceId string
    DisplayName string
    Software source name.
    DisplayNameContains string
    Filters List<GetSoftwareSourceSoftwarePackagesFilter>
    IsLatest bool
    Indicates whether this package is the latest version.
    Id string
    The provider-assigned unique ID for this managed resource.
    SoftwarePackageCollections []GetSoftwareSourceSoftwarePackagesSoftwarePackageCollection
    The list of software_package_collection.
    SoftwareSourceId string
    DisplayName string
    Software source name.
    DisplayNameContains string
    Filters []GetSoftwareSourceSoftwarePackagesFilter
    IsLatest bool
    Indicates whether this package is the latest version.
    id String
    The provider-assigned unique ID for this managed resource.
    softwarePackageCollections List<GetSoftwareSourceSoftwarePackagesSoftwarePackageCollection>
    The list of software_package_collection.
    softwareSourceId String
    displayName String
    Software source name.
    displayNameContains String
    filters List<GetSoftwareSourceSoftwarePackagesFilter>
    isLatest Boolean
    Indicates whether this package is the latest version.
    id string
    The provider-assigned unique ID for this managed resource.
    softwarePackageCollections GetSoftwareSourceSoftwarePackagesSoftwarePackageCollection[]
    The list of software_package_collection.
    softwareSourceId string
    displayName string
    Software source name.
    displayNameContains string
    filters GetSoftwareSourceSoftwarePackagesFilter[]
    isLatest boolean
    Indicates whether this package is the latest version.
    id str
    The provider-assigned unique ID for this managed resource.
    software_package_collections Sequence[osmanagementhub.GetSoftwareSourceSoftwarePackagesSoftwarePackageCollection]
    The list of software_package_collection.
    software_source_id str
    display_name str
    Software source name.
    display_name_contains str
    filters Sequence[osmanagementhub.GetSoftwareSourceSoftwarePackagesFilter]
    is_latest bool
    Indicates whether this package is the latest version.
    id String
    The provider-assigned unique ID for this managed resource.
    softwarePackageCollections List<Property Map>
    The list of software_package_collection.
    softwareSourceId String
    displayName String
    Software source name.
    displayNameContains String
    filters List<Property Map>
    isLatest Boolean
    Indicates whether this package is the latest version.

    Supporting Types

    GetSoftwareSourceSoftwarePackagesFilter

    Name string
    Unique identifier for the package. Note that this is not an OCID.
    Values List<string>
    Regex bool
    Name string
    Unique identifier for the package. Note that this is not an OCID.
    Values []string
    Regex bool
    name String
    Unique identifier for the package. Note that this is not an OCID.
    values List<String>
    regex Boolean
    name string
    Unique identifier for the package. Note that this is not an OCID.
    values string[]
    regex boolean
    name str
    Unique identifier for the package. Note that this is not an OCID.
    values Sequence[str]
    regex bool
    name String
    Unique identifier for the package. Note that this is not an OCID.
    values List<String>
    regex Boolean

    GetSoftwareSourceSoftwarePackagesSoftwarePackageCollection

    GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItem

    Architecture string
    The architecture for which this software was built
    Checksum string
    Checksum of the file.
    ChecksumType string
    Type of the checksum.
    Dependencies List<GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemDependency>
    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<GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemFile>
    List of files for the software package.
    IsLatest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    LastModifiedDate string
    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.
    SizeInBytes string
    Size of the package in bytes.
    SoftwareSources List<GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemSoftwareSource>
    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
    Version of the package.
    Architecture string
    The architecture for which this software was built
    Checksum string
    Checksum of the file.
    ChecksumType string
    Type of the checksum.
    Dependencies []GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemDependency
    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 []GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemFile
    List of files for the software package.
    IsLatest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    LastModifiedDate string
    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.
    SizeInBytes string
    Size of the package in bytes.
    SoftwareSources []GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemSoftwareSource
    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
    Version of the package.
    architecture String
    The architecture for which this software was built
    checksum String
    Checksum of the file.
    checksumType String
    Type of the checksum.
    dependencies List<GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemDependency>
    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<GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemFile>
    List of files for the software package.
    isLatest Boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    lastModifiedDate String
    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.
    sizeInBytes String
    Size of the package in bytes.
    softwareSources List<GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemSoftwareSource>
    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
    Version of the package.
    architecture string
    The architecture for which this software was built
    checksum string
    Checksum of the file.
    checksumType string
    Type of the checksum.
    dependencies GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemDependency[]
    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 GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemFile[]
    List of files for the software package.
    isLatest boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    lastModifiedDate string
    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.
    sizeInBytes string
    Size of the package in bytes.
    softwareSources GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemSoftwareSource[]
    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
    Version of the package.
    architecture str
    The architecture for which this software was built
    checksum str
    Checksum of the file.
    checksum_type str
    Type of the checksum.
    dependencies Sequence[osmanagementhub.GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemDependency]
    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[osmanagementhub.GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemFile]
    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_date str
    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_bytes str
    Size of the package in bytes.
    software_sources Sequence[osmanagementhub.GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemSoftwareSource]
    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
    Version of the package.
    architecture String
    The architecture for which this software was built
    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.
    lastModifiedDate String
    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.
    sizeInBytes String
    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
    Version of the package.

    GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemDependency

    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.

    GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemFile

    Checksum string
    Checksum of the file.
    ChecksumType string
    Type of the checksum.
    Path string
    File path.
    SizeInBytes string
    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.
    SizeInBytes string
    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.
    sizeInBytes String
    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.
    sizeInBytes string
    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_bytes str
    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.
    sizeInBytes String
    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.

    GetSoftwareSourceSoftwarePackagesSoftwarePackageCollectionItemSoftwareSource

    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.
    IsMandatoryForAutonomousLinux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    SoftwareSourceType string
    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.
    IsMandatoryForAutonomousLinux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    SoftwareSourceType string
    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.
    isMandatoryForAutonomousLinux Boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType String
    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.
    isMandatoryForAutonomousLinux boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType string
    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_for_autonomous_linux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    software_source_type str
    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.
    isMandatoryForAutonomousLinux Boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType String
    Type of the software source.

    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 v2.18.0 published on Friday, Nov 22, 2024 by Pulumi