1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagement
  5. getSoftwareSource
Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi

oci.OsManagement.getSoftwareSource

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi

    This data source provides details about a specific Software Source resource in Oracle Cloud Infrastructure OS Management service.

    Returns a specific Software Source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSoftwareSource = oci.OsManagement.getSoftwareSource({
        softwareSourceId: testSoftwareSourceOciOsmanagementSoftwareSource.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_software_source = oci.OsManagement.get_software_source(software_source_id=test_software_source_oci_osmanagement_software_source["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/OsManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OsManagement.GetSoftwareSource(ctx, &osmanagement.GetSoftwareSourceArgs{
    			SoftwareSourceId: testSoftwareSourceOciOsmanagementSoftwareSource.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 testSoftwareSource = Oci.OsManagement.GetSoftwareSource.Invoke(new()
        {
            SoftwareSourceId = testSoftwareSourceOciOsmanagementSoftwareSource.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagement.OsManagementFunctions;
    import com.pulumi.oci.OsManagement.inputs.GetSoftwareSourceArgs;
    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 testSoftwareSource = OsManagementFunctions.getSoftwareSource(GetSoftwareSourceArgs.builder()
                .softwareSourceId(testSoftwareSourceOciOsmanagementSoftwareSource.id())
                .build());
    
        }
    }
    
    variables:
      testSoftwareSource:
        fn::invoke:
          Function: oci:OsManagement:getSoftwareSource
          Arguments:
            softwareSourceId: ${testSoftwareSourceOciOsmanagementSoftwareSource.id}
    

    Using getSoftwareSource

    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 getSoftwareSource(args: GetSoftwareSourceArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceResult>
    function getSoftwareSourceOutput(args: GetSoftwareSourceOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceResult>
    def get_software_source(software_source_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetSoftwareSourceResult
    def get_software_source_output(software_source_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourceResult]
    func GetSoftwareSource(ctx *Context, args *GetSoftwareSourceArgs, opts ...InvokeOption) (*GetSoftwareSourceResult, error)
    func GetSoftwareSourceOutput(ctx *Context, args *GetSoftwareSourceOutputArgs, opts ...InvokeOption) GetSoftwareSourceResultOutput

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

    public static class GetSoftwareSource 
    {
        public static Task<GetSoftwareSourceResult> InvokeAsync(GetSoftwareSourceArgs args, InvokeOptions? opts = null)
        public static Output<GetSoftwareSourceResult> Invoke(GetSoftwareSourceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSoftwareSourceResult> getSoftwareSource(GetSoftwareSourceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagement/getSoftwareSource:getSoftwareSource
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SoftwareSourceId string
    The OCID of the software source.
    SoftwareSourceId string
    The OCID of the software source.
    softwareSourceId String
    The OCID of the software source.
    softwareSourceId string
    The OCID of the software source.
    software_source_id str
    The OCID of the software source.
    softwareSourceId String
    The OCID of the software source.

    getSoftwareSource Result

    The following output properties are available:

    ArchType string
    The architecture type supported by the Software Source
    AssociatedManagedInstances List<GetSoftwareSourceAssociatedManagedInstance>
    list of the Managed Instances associated with this Software Sources
    ChecksumType string
    The yum repository checksum type used by this software source
    CompartmentId string
    OCID for the Compartment
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Information specified by the user about the software source
    DisplayName string
    User friendly name for the software source
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    GpgKeyFingerprint string
    Fingerprint of the GPG key for this software source
    GpgKeyId string
    ID of the GPG key for this software source
    GpgKeyUrl string
    URL of the GPG key for this software source
    Id string
    OCID for the Software Source
    MaintainerEmail string
    Email address of the person maintaining this software source
    MaintainerName string
    Name of the person maintaining this software source
    MaintainerPhone string
    Phone number of the person maintaining this software source
    Packages int
    Number of packages
    ParentId string
    OCID for the parent software source, if there is one
    ParentName string
    Display name the parent software source, if there is one
    RepoType string
    Type of the Software Source
    SoftwareSourceId string
    State string
    The current state of the Software Source.
    Status string
    status of the software source.
    Url string
    URL for the repostiory
    ArchType string
    The architecture type supported by the Software Source
    AssociatedManagedInstances []GetSoftwareSourceAssociatedManagedInstance
    list of the Managed Instances associated with this Software Sources
    ChecksumType string
    The yum repository checksum type used by this software source
    CompartmentId string
    OCID for the Compartment
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Information specified by the user about the software source
    DisplayName string
    User friendly name for the software source
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    GpgKeyFingerprint string
    Fingerprint of the GPG key for this software source
    GpgKeyId string
    ID of the GPG key for this software source
    GpgKeyUrl string
    URL of the GPG key for this software source
    Id string
    OCID for the Software Source
    MaintainerEmail string
    Email address of the person maintaining this software source
    MaintainerName string
    Name of the person maintaining this software source
    MaintainerPhone string
    Phone number of the person maintaining this software source
    Packages int
    Number of packages
    ParentId string
    OCID for the parent software source, if there is one
    ParentName string
    Display name the parent software source, if there is one
    RepoType string
    Type of the Software Source
    SoftwareSourceId string
    State string
    The current state of the Software Source.
    Status string
    status of the software source.
    Url string
    URL for the repostiory
    archType String
    The architecture type supported by the Software Source
    associatedManagedInstances List<GetSoftwareSourceAssociatedManagedInstance>
    list of the Managed Instances associated with this Software Sources
    checksumType String
    The yum repository checksum type used by this software source
    compartmentId String
    OCID for the Compartment
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Information specified by the user about the software source
    displayName String
    User friendly name for the software source
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    gpgKeyFingerprint String
    Fingerprint of the GPG key for this software source
    gpgKeyId String
    ID of the GPG key for this software source
    gpgKeyUrl String
    URL of the GPG key for this software source
    id String
    OCID for the Software Source
    maintainerEmail String
    Email address of the person maintaining this software source
    maintainerName String
    Name of the person maintaining this software source
    maintainerPhone String
    Phone number of the person maintaining this software source
    packages Integer
    Number of packages
    parentId String
    OCID for the parent software source, if there is one
    parentName String
    Display name the parent software source, if there is one
    repoType String
    Type of the Software Source
    softwareSourceId String
    state String
    The current state of the Software Source.
    status String
    status of the software source.
    url String
    URL for the repostiory
    archType string
    The architecture type supported by the Software Source
    associatedManagedInstances GetSoftwareSourceAssociatedManagedInstance[]
    list of the Managed Instances associated with this Software Sources
    checksumType string
    The yum repository checksum type used by this software source
    compartmentId string
    OCID for the Compartment
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    Information specified by the user about the software source
    displayName string
    User friendly name for the software source
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    gpgKeyFingerprint string
    Fingerprint of the GPG key for this software source
    gpgKeyId string
    ID of the GPG key for this software source
    gpgKeyUrl string
    URL of the GPG key for this software source
    id string
    OCID for the Software Source
    maintainerEmail string
    Email address of the person maintaining this software source
    maintainerName string
    Name of the person maintaining this software source
    maintainerPhone string
    Phone number of the person maintaining this software source
    packages number
    Number of packages
    parentId string
    OCID for the parent software source, if there is one
    parentName string
    Display name the parent software source, if there is one
    repoType string
    Type of the Software Source
    softwareSourceId string
    state string
    The current state of the Software Source.
    status string
    status of the software source.
    url string
    URL for the repostiory
    arch_type str
    The architecture type supported by the Software Source
    associated_managed_instances Sequence[osmanagement.GetSoftwareSourceAssociatedManagedInstance]
    list of the Managed Instances associated with this Software Sources
    checksum_type str
    The yum repository checksum type used by this software source
    compartment_id str
    OCID for the Compartment
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    Information specified by the user about the software source
    display_name str
    User friendly name for the software source
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    gpg_key_fingerprint str
    Fingerprint of the GPG key for this software source
    gpg_key_id str
    ID of the GPG key for this software source
    gpg_key_url str
    URL of the GPG key for this software source
    id str
    OCID for the Software Source
    maintainer_email str
    Email address of the person maintaining this software source
    maintainer_name str
    Name of the person maintaining this software source
    maintainer_phone str
    Phone number of the person maintaining this software source
    packages int
    Number of packages
    parent_id str
    OCID for the parent software source, if there is one
    parent_name str
    Display name the parent software source, if there is one
    repo_type str
    Type of the Software Source
    software_source_id str
    state str
    The current state of the Software Source.
    status str
    status of the software source.
    url str
    URL for the repostiory
    archType String
    The architecture type supported by the Software Source
    associatedManagedInstances List<Property Map>
    list of the Managed Instances associated with this Software Sources
    checksumType String
    The yum repository checksum type used by this software source
    compartmentId String
    OCID for the Compartment
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Information specified by the user about the software source
    displayName String
    User friendly name for the software source
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    gpgKeyFingerprint String
    Fingerprint of the GPG key for this software source
    gpgKeyId String
    ID of the GPG key for this software source
    gpgKeyUrl String
    URL of the GPG key for this software source
    id String
    OCID for the Software Source
    maintainerEmail String
    Email address of the person maintaining this software source
    maintainerName String
    Name of the person maintaining this software source
    maintainerPhone String
    Phone number of the person maintaining this software source
    packages Number
    Number of packages
    parentId String
    OCID for the parent software source, if there is one
    parentName String
    Display name the parent software source, if there is one
    repoType String
    Type of the Software Source
    softwareSourceId String
    state String
    The current state of the Software Source.
    status String
    status of the software source.
    url String
    URL for the repostiory

    Supporting Types

    GetSoftwareSourceAssociatedManagedInstance

    DisplayName string
    User friendly name for the software source
    Id string
    OCID for the Software Source
    DisplayName string
    User friendly name for the software source
    Id string
    OCID for the Software Source
    displayName String
    User friendly name for the software source
    id String
    OCID for the Software Source
    displayName string
    User friendly name for the software source
    id string
    OCID for the Software Source
    display_name str
    User friendly name for the software source
    id str
    OCID for the Software Source
    displayName String
    User friendly name for the software source
    id String
    OCID for 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.12.0 published on Friday, Oct 11, 2024 by Pulumi