Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.OsManagement.getSoftwareSources
Explore with Pulumi AI
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:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Filters
List<Get
Software Sources Filter> - State string
- The current lifecycle state for the object.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Filters
[]Get
Software Sources Filter - State string
- The current lifecycle state for the object.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- filters
List<Get
Software Sources Filter> - state String
- The current lifecycle state for the object.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- filters
Get
Software Sources Filter[] - 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.
Get Software Sources Filter] - state str
- The current lifecycle state for the object.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name 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:
- Compartment
Id string - OCID for the Compartment
- Id string
- The provider-assigned unique ID for this managed resource.
- Software
Sources List<GetSoftware Sources Software Source> - The list of software_sources.
- Display
Name string - User friendly name for the software source
- Filters
List<Get
Software Sources Filter> - State string
- The current state of the Software Source.
- Compartment
Id string - OCID for the Compartment
- Id string
- The provider-assigned unique ID for this managed resource.
- Software
Sources []GetSoftware Sources Software Source - The list of software_sources.
- Display
Name string - User friendly name for the software source
- Filters
[]Get
Software Sources Filter - State string
- The current state of the Software Source.
- compartment
Id String - OCID for the Compartment
- id String
- The provider-assigned unique ID for this managed resource.
- software
Sources List<GetSoftware Sources Software Source> - The list of software_sources.
- display
Name String - User friendly name for the software source
- filters
List<Get
Software Sources Filter> - state String
- The current state of the Software Source.
- compartment
Id string - OCID for the Compartment
- id string
- The provider-assigned unique ID for this managed resource.
- software
Sources GetSoftware Sources Software Source[] - The list of software_sources.
- display
Name string - User friendly name for the software source
- filters
Get
Software Sources Filter[] - 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.Get Software Sources Software Source] - The list of software_sources.
- display_
name str - User friendly name for the software source
- filters
Sequence[osmanagement.
Get Software Sources Filter] - state str
- The current state of the Software Source.
- compartment
Id String - OCID for the Compartment
- id String
- The provider-assigned unique ID for this managed resource.
- software
Sources List<Property Map> - The list of software_sources.
- display
Name String - User friendly name for the software source
- filters List<Property Map>
- state String
- The current state of the Software Source.
Supporting Types
GetSoftwareSourcesFilter
GetSoftwareSourcesSoftwareSource
- Arch
Type string - The architecture type supported by the Software Source
- Associated
Managed List<GetInstances Software Sources Software Source Associated Managed Instance> - list of the Managed Instances associated with this Software Sources
- Checksum
Type string - The yum repository checksum type used by this software source
- Compartment
Id string - The ID of the compartment in which to list resources.
- 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
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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"}
- Gpg
Key stringFingerprint - Fingerprint of the GPG key for this software source
- Gpg
Key stringId - ID of the GPG key for this software source
- Gpg
Key stringUrl - URL of the GPG key for this software source
- Id string
- OCID for the Software Source
- Maintainer
Email string - Email address of the person maintaining this software source
- Maintainer
Name string - Name of the person maintaining this software source
- Maintainer
Phone string - Phone number of the person maintaining this software source
- Packages int
- Number of packages
- Parent
Id string - OCID for the parent software source, if there is one
- Parent
Name string - Display name the parent software source, if there is one
- Repo
Type 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 string - The architecture type supported by the Software Source
- Associated
Managed []GetInstances Software Sources Software Source Associated Managed Instance - list of the Managed Instances associated with this Software Sources
- Checksum
Type string - The yum repository checksum type used by this software source
- Compartment
Id string - The ID of the compartment in which to list resources.
- 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
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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"}
- Gpg
Key stringFingerprint - Fingerprint of the GPG key for this software source
- Gpg
Key stringId - ID of the GPG key for this software source
- Gpg
Key stringUrl - URL of the GPG key for this software source
- Id string
- OCID for the Software Source
- Maintainer
Email string - Email address of the person maintaining this software source
- Maintainer
Name string - Name of the person maintaining this software source
- Maintainer
Phone string - Phone number of the person maintaining this software source
- Packages int
- Number of packages
- Parent
Id string - OCID for the parent software source, if there is one
- Parent
Name string - Display name the parent software source, if there is one
- Repo
Type 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 String - The architecture type supported by the Software Source
- associated
Managed List<GetInstances Software Sources Software Source Associated Managed Instance> - list of the Managed Instances associated with this Software Sources
- checksum
Type String - The yum repository checksum type used by this software source
- compartment
Id String - The ID of the compartment in which to list resources.
- 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
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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"}
- gpg
Key StringFingerprint - Fingerprint of the GPG key for this software source
- gpg
Key StringId - ID of the GPG key for this software source
- gpg
Key StringUrl - URL of the GPG key for this software source
- id String
- OCID for the Software Source
- maintainer
Email String - Email address of the person maintaining this software source
- maintainer
Name String - Name of the person maintaining this software source
- maintainer
Phone String - Phone number of the person maintaining this software source
- packages Integer
- Number of packages
- parent
Id String - OCID for the parent software source, if there is one
- parent
Name String - Display name the parent software source, if there is one
- repo
Type 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 string - The architecture type supported by the Software Source
- associated
Managed GetInstances Software Sources Software Source Associated Managed Instance[] - list of the Managed Instances associated with this Software Sources
- checksum
Type string - The yum repository checksum type used by this software source
- compartment
Id string - The ID of the compartment in which to list resources.
- {[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
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- {[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"}
- gpg
Key stringFingerprint - Fingerprint of the GPG key for this software source
- gpg
Key stringId - ID of the GPG key for this software source
- gpg
Key stringUrl - URL of the GPG key for this software source
- id string
- OCID for the Software Source
- maintainer
Email string - Email address of the person maintaining this software source
- maintainer
Name string - Name of the person maintaining this software source
- maintainer
Phone string - Phone number of the person maintaining this software source
- packages number
- Number of packages
- parent
Id string - OCID for the parent software source, if there is one
- parent
Name string - Display name the parent software source, if there is one
- repo
Type 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_ Sequence[osmanagement.instances Get Software Sources Software Source Associated Managed Instance] - 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.
- 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
- 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_ strfingerprint - Fingerprint of the GPG key for this software source
- gpg_
key_ strid - ID of the GPG key for this software source
- gpg_
key_ strurl - 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
- arch
Type String - The architecture type supported by the Software Source
- associated
Managed List<Property Map>Instances - list of the Managed Instances associated with this Software Sources
- checksum
Type String - The yum repository checksum type used by this software source
- compartment
Id String - The ID of the compartment in which to list resources.
- 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
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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"}
- gpg
Key StringFingerprint - Fingerprint of the GPG key for this software source
- gpg
Key StringId - ID of the GPG key for this software source
- gpg
Key StringUrl - URL of the GPG key for this software source
- id String
- OCID for the Software Source
- maintainer
Email String - Email address of the person maintaining this software source
- maintainer
Name String - Name of the person maintaining this software source
- maintainer
Phone String - Phone number of the person maintaining this software source
- packages Number
- Number of packages
- parent
Id String - OCID for the parent software source, if there is one
- parent
Name String - Display name the parent software source, if there is one
- repo
Type 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
- Display
Name 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 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 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 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
- display
Name 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.