1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagement
  5. getSoftwareSources
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.OsManagement.getSoftwareSources

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of Software Sources in Oracle Cloud Infrastructure OS Management service.

    Returns a list of all Software Sources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSoftwareSources = oci.OsManagement.getSoftwareSources({
        compartmentId: compartmentId,
        displayName: softwareSourceDisplayName,
        state: softwareSourceState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_software_sources = oci.OsManagement.get_software_sources(compartment_id=compartment_id,
        display_name=software_source_display_name,
        state=software_source_state)
    
    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.GetSoftwareSources(ctx, &osmanagement.GetSoftwareSourcesArgs{
    			CompartmentId: compartmentId,
    			DisplayName:   pulumi.StringRef(softwareSourceDisplayName),
    			State:         pulumi.StringRef(softwareSourceState),
    		}, 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 testSoftwareSources = Oci.OsManagement.GetSoftwareSources.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = softwareSourceDisplayName,
            State = softwareSourceState,
        });
    
    });
    
    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.GetSoftwareSourcesArgs;
    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 testSoftwareSources = OsManagementFunctions.getSoftwareSources(GetSoftwareSourcesArgs.builder()
                .compartmentId(compartmentId)
                .displayName(softwareSourceDisplayName)
                .state(softwareSourceState)
                .build());
    
        }
    }
    
    variables:
      testSoftwareSources:
        fn::invoke:
          Function: oci:OsManagement:getSoftwareSources
          Arguments:
            compartmentId: ${compartmentId}
            displayName: ${softwareSourceDisplayName}
            state: ${softwareSourceState}
    

    Using getSoftwareSources

    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 getSoftwareSources(args: GetSoftwareSourcesArgs, opts?: InvokeOptions): Promise<GetSoftwareSourcesResult>
    function getSoftwareSourcesOutput(args: GetSoftwareSourcesOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourcesResult>
    def get_software_sources(compartment_id: Optional[str] = None,
                             display_name: Optional[str] = None,
                             filters: Optional[Sequence[_osmanagement.GetSoftwareSourcesFilter]] = None,
                             state: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSoftwareSourcesResult
    def get_software_sources_output(compartment_id: Optional[pulumi.Input[str]] = None,
                             display_name: Optional[pulumi.Input[str]] = None,
                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagement.GetSoftwareSourcesFilterArgs]]]] = None,
                             state: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourcesResult]
    func GetSoftwareSources(ctx *Context, args *GetSoftwareSourcesArgs, opts ...InvokeOption) (*GetSoftwareSourcesResult, error)
    func GetSoftwareSourcesOutput(ctx *Context, args *GetSoftwareSourcesOutputArgs, opts ...InvokeOption) GetSoftwareSourcesResultOutput

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

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

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    Filters List<GetSoftwareSourcesFilter>
    State string
    The current lifecycle state for the object.
    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    Filters []GetSoftwareSourcesFilter
    State string
    The current lifecycle state for the object.
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    filters List<GetSoftwareSourcesFilter>
    state String
    The current lifecycle state for the object.
    compartmentId string
    The ID of the compartment in which to list resources.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    filters GetSoftwareSourcesFilter[]
    state string
    The current lifecycle state for the object.
    compartment_id str
    The ID of the compartment in which to list resources.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    filters Sequence[osmanagement.GetSoftwareSourcesFilter]
    state str
    The current lifecycle state for the object.
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    filters List<Property Map>
    state String
    The current lifecycle state for the object.

    getSoftwareSources Result

    The following output properties are available:

    CompartmentId string
    OCID for the Compartment
    Id string
    The provider-assigned unique ID for this managed resource.
    SoftwareSources List<GetSoftwareSourcesSoftwareSource>
    The list of software_sources.
    DisplayName string
    User friendly name for the software source
    Filters List<GetSoftwareSourcesFilter>
    State string
    The current state of the Software Source.
    CompartmentId string
    OCID for the Compartment
    Id string
    The provider-assigned unique ID for this managed resource.
    SoftwareSources []GetSoftwareSourcesSoftwareSource
    The list of software_sources.
    DisplayName string
    User friendly name for the software source
    Filters []GetSoftwareSourcesFilter
    State string
    The current state of the Software Source.
    compartmentId String
    OCID for the Compartment
    id String
    The provider-assigned unique ID for this managed resource.
    softwareSources List<GetSoftwareSourcesSoftwareSource>
    The list of software_sources.
    displayName String
    User friendly name for the software source
    filters List<GetSoftwareSourcesFilter>
    state String
    The current state of the Software Source.
    compartmentId string
    OCID for the Compartment
    id string
    The provider-assigned unique ID for this managed resource.
    softwareSources GetSoftwareSourcesSoftwareSource[]
    The list of software_sources.
    displayName string
    User friendly name for the software source
    filters GetSoftwareSourcesFilter[]
    state string
    The current state of the Software Source.
    compartment_id str
    OCID for the Compartment
    id str
    The provider-assigned unique ID for this managed resource.
    software_sources Sequence[osmanagement.GetSoftwareSourcesSoftwareSource]
    The list of software_sources.
    display_name str
    User friendly name for the software source
    filters Sequence[osmanagement.GetSoftwareSourcesFilter]
    state str
    The current state of the Software Source.
    compartmentId String
    OCID for the Compartment
    id String
    The provider-assigned unique ID for this managed resource.
    softwareSources List<Property Map>
    The list of software_sources.
    displayName String
    User friendly name for the software source
    filters List<Property Map>
    state String
    The current state of the Software Source.

    Supporting Types

    GetSoftwareSourcesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetSoftwareSourcesSoftwareSource

    ArchType string
    The architecture type supported by the Software Source
    AssociatedManagedInstances List<GetSoftwareSourcesSoftwareSourceAssociatedManagedInstance>
    list of the Managed Instances associated with this Software Sources
    ChecksumType string
    The yum repository checksum type used by this software source
    CompartmentId string
    The ID of the compartment in which to list resources.
    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
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    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
    State string
    The current lifecycle state for the object.
    Status string
    status of the software source.
    Url string
    URL for the repostiory
    ArchType string
    The architecture type supported by the Software Source
    AssociatedManagedInstances []GetSoftwareSourcesSoftwareSourceAssociatedManagedInstance
    list of the Managed Instances associated with this Software Sources
    ChecksumType string
    The yum repository checksum type used by this software source
    CompartmentId string
    The ID of the compartment in which to list resources.
    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
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    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
    State string
    The current lifecycle state for the object.
    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<GetSoftwareSourcesSoftwareSourceAssociatedManagedInstance>
    list of the Managed Instances associated with this Software Sources
    checksumType String
    The yum repository checksum type used by this software source
    compartmentId String
    The ID of the compartment in which to list resources.
    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
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    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
    state String
    The current lifecycle state for the object.
    status String
    status of the software source.
    url String
    URL for the repostiory
    archType string
    The architecture type supported by the Software Source
    associatedManagedInstances GetSoftwareSourcesSoftwareSourceAssociatedManagedInstance[]
    list of the Managed Instances associated with this Software Sources
    checksumType string
    The yum repository checksum type used by this software source
    compartmentId string
    The ID of the compartment in which to list resources.
    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
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    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
    state string
    The current lifecycle state for the object.
    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.GetSoftwareSourcesSoftwareSourceAssociatedManagedInstance]
    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
    The ID of the compartment in which to list resources.
    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
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    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
    state str
    The current lifecycle state for the object.
    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
    The ID of the compartment in which to list resources.
    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
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    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
    state String
    The current lifecycle state for the object.
    status String
    status of the software source.
    url String
    URL for the repostiory

    GetSoftwareSourcesSoftwareSourceAssociatedManagedInstance

    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    Id string
    OCID for the Software Source
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    Id string
    OCID for the Software Source
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    id String
    OCID for the Software Source
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    id string
    OCID for the Software Source
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    id str
    OCID for the Software Source
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
    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.17.0 published on Friday, Nov 15, 2024 by Pulumi