Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.OsManagementHub.getSoftwarePackage
Explore with Pulumi AI
This data source provides details about a specific Software Package resource in Oracle Cloud Infrastructure Os Management Hub service.
Returns information about the specified software package based on its fully qualified name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSoftwarePackage = oci.OsManagementHub.getSoftwarePackage({
softwarePackageName: testSoftwarePackageOciOsManagementHubSoftwarePackage.name,
});
import pulumi
import pulumi_oci as oci
test_software_package = oci.OsManagementHub.get_software_package(software_package_name=test_software_package_oci_os_management_hub_software_package["name"])
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.GetSoftwarePackage(ctx, &osmanagementhub.GetSoftwarePackageArgs{
SoftwarePackageName: testSoftwarePackageOciOsManagementHubSoftwarePackage.Name,
}, 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 testSoftwarePackage = Oci.OsManagementHub.GetSoftwarePackage.Invoke(new()
{
SoftwarePackageName = testSoftwarePackageOciOsManagementHubSoftwarePackage.Name,
});
});
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.GetSoftwarePackageArgs;
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 testSoftwarePackage = OsManagementHubFunctions.getSoftwarePackage(GetSoftwarePackageArgs.builder()
.softwarePackageName(testSoftwarePackageOciOsManagementHubSoftwarePackage.name())
.build());
}
}
variables:
testSoftwarePackage:
fn::invoke:
Function: oci:OsManagementHub:getSoftwarePackage
Arguments:
softwarePackageName: ${testSoftwarePackageOciOsManagementHubSoftwarePackage.name}
Using getSoftwarePackage
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 getSoftwarePackage(args: GetSoftwarePackageArgs, opts?: InvokeOptions): Promise<GetSoftwarePackageResult>
function getSoftwarePackageOutput(args: GetSoftwarePackageOutputArgs, opts?: InvokeOptions): Output<GetSoftwarePackageResult>
def get_software_package(software_package_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSoftwarePackageResult
def get_software_package_output(software_package_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSoftwarePackageResult]
func GetSoftwarePackage(ctx *Context, args *GetSoftwarePackageArgs, opts ...InvokeOption) (*GetSoftwarePackageResult, error)
func GetSoftwarePackageOutput(ctx *Context, args *GetSoftwarePackageOutputArgs, opts ...InvokeOption) GetSoftwarePackageResultOutput
> Note: This function is named GetSoftwarePackage
in the Go SDK.
public static class GetSoftwarePackage
{
public static Task<GetSoftwarePackageResult> InvokeAsync(GetSoftwarePackageArgs args, InvokeOptions? opts = null)
public static Output<GetSoftwarePackageResult> Invoke(GetSoftwarePackageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSoftwarePackageResult> getSoftwarePackage(GetSoftwarePackageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsManagementHub/getSoftwarePackage:getSoftwarePackage
arguments:
# arguments dictionary
The following arguments are supported:
- Software
Package stringName - The name of the software package.
- Software
Package stringName - The name of the software package.
- software
Package StringName - The name of the software package.
- software
Package stringName - The name of the software package.
- software_
package_ strname - The name of the software package.
- software
Package StringName - The name of the software package.
getSoftwarePackage Result
The following output properties are available:
- Architecture string
- The architecture for which this software was built
- Checksum string
- Checksum of the file.
- Checksum
Type string - Type of the checksum.
- Dependencies
List<Get
Software Package Dependency> - List of dependencies for the software package.
- Description string
- Software source description.
- Display
Name string - Software source name.
- Files
List<Get
Software Package File> - List of files for the software package.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Latest bool - Indicates whether this package is the latest version.
- Last
Modified 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.
- Os
Families List<string> - The OS families the package belongs to.
- Size
In stringBytes - Size of the package in bytes.
- Software
Package stringName - Software
Sources List<GetSoftware 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.
- Checksum
Type string - Type of the checksum.
- Dependencies
[]Get
Software Package Dependency - List of dependencies for the software package.
- Description string
- Software source description.
- Display
Name string - Software source name.
- Files
[]Get
Software Package File - List of files for the software package.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Latest bool - Indicates whether this package is the latest version.
- Last
Modified 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.
- Os
Families []string - The OS families the package belongs to.
- Size
In stringBytes - Size of the package in bytes.
- Software
Package stringName - Software
Sources []GetSoftware 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.
- checksum
Type String - Type of the checksum.
- dependencies
List<Get
Software Package Dependency> - List of dependencies for the software package.
- description String
- Software source description.
- display
Name String - Software source name.
- files
List<Get
Software Package File> - List of files for the software package.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Latest Boolean - Indicates whether this package is the latest version.
- last
Modified 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.
- os
Families List<String> - The OS families the package belongs to.
- size
In StringBytes - Size of the package in bytes.
- software
Package StringName - software
Sources List<GetSoftware 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.
- checksum
Type string - Type of the checksum.
- dependencies
Get
Software Package Dependency[] - List of dependencies for the software package.
- description string
- Software source description.
- display
Name string - Software source name.
- files
Get
Software Package File[] - List of files for the software package.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Latest boolean - Indicates whether this package is the latest version.
- last
Modified 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.
- os
Families string[] - The OS families the package belongs to.
- size
In stringBytes - Size of the package in bytes.
- software
Package stringName - software
Sources GetSoftware 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[osmanagementhub.
Get Software Package Dependency] - List of dependencies for the software package.
- description str
- Software source description.
- display_
name str - Software source name.
- files
Sequence[osmanagementhub.
Get 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_
sources Sequence[osmanagementhub.Get 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.
- checksum
Type String - Type of the checksum.
- dependencies List<Property Map>
- List of dependencies for the software package.
- description String
- Software source description.
- display
Name 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.
- is
Latest Boolean - Indicates whether this package is the latest version.
- last
Modified 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.
- os
Families List<String> - The OS families the package belongs to.
- size
In StringBytes - Size of the package in bytes.
- software
Package StringName - software
Sources 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
GetSoftwarePackageDependency
- Dependency string
- The software package's dependency.
- Dependency
Modifier string - The modifier for the dependency.
- Dependency
Type string - The type of the dependency.
- Dependency string
- The software package's dependency.
- Dependency
Modifier string - The modifier for the dependency.
- Dependency
Type string - The type of the dependency.
- dependency String
- The software package's dependency.
- dependency
Modifier String - The modifier for the dependency.
- dependency
Type String - The type of the dependency.
- dependency string
- The software package's dependency.
- dependency
Modifier string - The modifier for the dependency.
- dependency
Type 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.
- dependency
Modifier String - The modifier for the dependency.
- dependency
Type String - The type of the dependency.
GetSoftwarePackageFile
- Checksum string
- Checksum of the file.
- Checksum
Type string - Type of the checksum.
- Path string
- File path.
- Size
In stringBytes - Size of the package in bytes.
- Time
Modified 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.
- Checksum
Type string - Type of the checksum.
- Path string
- File path.
- Size
In stringBytes - Size of the package in bytes.
- Time
Modified 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.
- checksum
Type String - Type of the checksum.
- path String
- File path.
- size
In StringBytes - Size of the package in bytes.
- time
Modified 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.
- checksum
Type string - Type of the checksum.
- path string
- File path.
- size
In stringBytes - Size of the package in bytes.
- time
Modified 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.
- checksum
Type String - Type of the checksum.
- path String
- File path.
- size
In StringBytes - Size of the package in bytes.
- time
Modified String - The date and time the file was last modified (in RFC 3339 format).
- type String
- Type of the package.
GetSoftwarePackageSoftwareSource
- Description string
- Software source description.
- Display
Name string - Software source name.
- Id string
- 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 stringType - Type of the software source.
- Description string
- Software source description.
- Display
Name string - Software source name.
- Id string
- 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 stringType - Type of the software source.
- description String
- Software source description.
- display
Name String - Software source name.
- id String
- The OCID of the software source.
- is
Mandatory BooleanFor Autonomous Linux - Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software
Source StringType - Type of the software source.
- description string
- Software source description.
- display
Name string - Software source name.
- id string
- The OCID of the software source.
- is
Mandatory booleanFor Autonomous Linux - Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software
Source 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.
- display
Name String - Software source name.
- id String
- The OCID of the software source.
- is
Mandatory BooleanFor Autonomous Linux - Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software
Source 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
oci
Terraform Provider.