Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getSoftwareSourceSoftwarePackage
Explore with Pulumi AI
This data source provides details about a specific Software Source Software Package resource in Oracle Cloud Infrastructure Os Management Hub service.
Returns information about the specified software package.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSoftwareSourceSoftwarePackage = oci.OsManagementHub.getSoftwareSourceSoftwarePackage({
    softwarePackageName: testSoftwarePackage.name,
    softwareSourceId: testSoftwareSource.id,
});
import pulumi
import pulumi_oci as oci
test_software_source_software_package = oci.OsManagementHub.get_software_source_software_package(software_package_name=test_software_package["name"],
    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.GetSoftwareSourceSoftwarePackage(ctx, &osmanagementhub.GetSoftwareSourceSoftwarePackageArgs{
			SoftwarePackageName: testSoftwarePackage.Name,
			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 testSoftwareSourceSoftwarePackage = Oci.OsManagementHub.GetSoftwareSourceSoftwarePackage.Invoke(new()
    {
        SoftwarePackageName = testSoftwarePackage.Name,
        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.GetSoftwareSourceSoftwarePackageArgs;
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 testSoftwareSourceSoftwarePackage = OsManagementHubFunctions.getSoftwareSourceSoftwarePackage(GetSoftwareSourceSoftwarePackageArgs.builder()
            .softwarePackageName(testSoftwarePackage.name())
            .softwareSourceId(testSoftwareSource.id())
            .build());
    }
}
variables:
  testSoftwareSourceSoftwarePackage:
    fn::invoke:
      function: oci:OsManagementHub:getSoftwareSourceSoftwarePackage
      arguments:
        softwarePackageName: ${testSoftwarePackage.name}
        softwareSourceId: ${testSoftwareSource.id}
Using getSoftwareSourceSoftwarePackage
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 getSoftwareSourceSoftwarePackage(args: GetSoftwareSourceSoftwarePackageArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceSoftwarePackageResult>
function getSoftwareSourceSoftwarePackageOutput(args: GetSoftwareSourceSoftwarePackageOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceSoftwarePackageResult>def get_software_source_software_package(software_package_name: Optional[str] = None,
                                         software_source_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetSoftwareSourceSoftwarePackageResult
def get_software_source_software_package_output(software_package_name: Optional[pulumi.Input[str]] = None,
                                         software_source_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourceSoftwarePackageResult]func GetSoftwareSourceSoftwarePackage(ctx *Context, args *GetSoftwareSourceSoftwarePackageArgs, opts ...InvokeOption) (*GetSoftwareSourceSoftwarePackageResult, error)
func GetSoftwareSourceSoftwarePackageOutput(ctx *Context, args *GetSoftwareSourceSoftwarePackageOutputArgs, opts ...InvokeOption) GetSoftwareSourceSoftwarePackageResultOutput> Note: This function is named GetSoftwareSourceSoftwarePackage in the Go SDK.
public static class GetSoftwareSourceSoftwarePackage 
{
    public static Task<GetSoftwareSourceSoftwarePackageResult> InvokeAsync(GetSoftwareSourceSoftwarePackageArgs args, InvokeOptions? opts = null)
    public static Output<GetSoftwareSourceSoftwarePackageResult> Invoke(GetSoftwareSourceSoftwarePackageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSoftwareSourceSoftwarePackageResult> getSoftwareSourceSoftwarePackage(GetSoftwareSourceSoftwarePackageArgs args, InvokeOptions options)
public static Output<GetSoftwareSourceSoftwarePackageResult> getSoftwareSourceSoftwarePackage(GetSoftwareSourceSoftwarePackageArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getSoftwareSourceSoftwarePackage:getSoftwareSourceSoftwarePackage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SoftwarePackage stringName 
- The name of the software package.
- SoftwareSource stringId 
- The OCID of the software source.
- SoftwarePackage stringName 
- The name of the software package.
- SoftwareSource stringId 
- The OCID of the software source.
- softwarePackage StringName 
- The name of the software package.
- softwareSource StringId 
- The OCID of the software source.
- softwarePackage stringName 
- The name of the software package.
- softwareSource stringId 
- The OCID of the software source.
- software_package_ strname 
- The name of the software package.
- software_source_ strid 
- The OCID of the software source.
- softwarePackage StringName 
- The name of the software package.
- softwareSource StringId 
- The OCID of the software source.
getSoftwareSourceSoftwarePackage Result
The following output properties are available:
- Architecture string
- The architecture for which this software was built
- Checksum string
- Checksum of the file.
- ChecksumType string
- Type of the checksum.
- Dependencies
List<GetSoftware Source Software Package Dependency> 
- List of dependencies for the software package.
- Description string
- Software source description.
- DisplayName string
- Software source name.
- Files
List<GetSoftware Source Software Package File> 
- List of files for the software package.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsLatest bool
- Indicates whether this package is the latest version.
- 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.
- SoftwarePackage stringName 
- SoftwareSource stringId 
- SoftwareSources List<GetSoftware Source Software Package 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
- 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
[]GetSoftware Source Software Package Dependency 
- List of dependencies for the software package.
- Description string
- Software source description.
- DisplayName string
- Software source name.
- Files
[]GetSoftware Source Software Package File 
- List of files for the software package.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsLatest bool
- Indicates whether this package is the latest version.
- 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.
- SoftwarePackage stringName 
- SoftwareSource stringId 
- SoftwareSources []GetSoftware Source Software Package 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
- 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<GetSoftware Source Software Package Dependency> 
- List of dependencies for the software package.
- description String
- Software source description.
- displayName String
- Software source name.
- files
List<GetSoftware Source Software Package File> 
- List of files for the software package.
- id String
- The provider-assigned unique ID for this managed resource.
- isLatest Boolean
- Indicates whether this package is the latest version.
- 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.
- softwarePackage StringName 
- softwareSource StringId 
- softwareSources List<GetSoftware Source Software Package 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
- 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
GetSoftware Source Software Package Dependency[] 
- List of dependencies for the software package.
- description string
- Software source description.
- displayName string
- Software source name.
- files
GetSoftware Source Software Package File[] 
- List of files for the software package.
- id string
- The provider-assigned unique ID for this managed resource.
- isLatest boolean
- Indicates whether this package is the latest version.
- 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.
- softwarePackage stringName 
- softwareSource stringId 
- softwareSources GetSoftware Source Software Package 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
- 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[GetSoftware Source Software Package Dependency] 
- List of dependencies for the software package.
- description str
- Software source description.
- display_name str
- Software source name.
- files
Sequence[GetSoftware Source Software Package File] 
- List of files for the software package.
- id str
- The provider-assigned unique ID for this managed resource.
- is_latest bool
- Indicates whether this package is the latest version.
- 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_package_ strname 
- software_source_ strid 
- software_sources Sequence[GetSoftware Source Software Package 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
- 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
- Software source name.
- files List<Property Map>
- List of files for the software package.
- id String
- The provider-assigned unique ID for this managed resource.
- isLatest Boolean
- Indicates whether this package is the latest version.
- 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.
- softwarePackage StringName 
- softwareSource StringId 
- 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.
Supporting Types
GetSoftwareSourceSoftwarePackageDependency     
- 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.
GetSoftwareSourceSoftwarePackageFile     
- 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.
GetSoftwareSourceSoftwarePackageSoftwareSource      
- Description string
- Software source description.
- DisplayName string
- Software source 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
- Software source 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
- Software source 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
- Software source 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
- Software source 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
- Software source 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.