Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi
oci.OsManagementHub.getSoftwareSourceModuleStreams
Explore with Pulumi AI
This data source provides the list of Software Source Module Streams in Oracle Cloud Infrastructure Os Management Hub service.
Lists module streams from the specified software source OCID. Filter the list against a variety of criteria including but not limited to its module name and (stream) name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSoftwareSourceModuleStreams = oci.OsManagementHub.getSoftwareSourceModuleStreams({
softwareSourceId: testSoftwareSource.id,
isLatest: softwareSourceModuleStreamIsLatest,
moduleName: softwareSourceModuleStreamModuleName,
moduleNameContains: softwareSourceModuleStreamModuleNameContains,
name: softwareSourceModuleStreamName,
});
import pulumi
import pulumi_oci as oci
test_software_source_module_streams = oci.OsManagementHub.get_software_source_module_streams(software_source_id=test_software_source["id"],
is_latest=software_source_module_stream_is_latest,
module_name=software_source_module_stream_module_name,
module_name_contains=software_source_module_stream_module_name_contains,
name=software_source_module_stream_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.GetSoftwareSourceModuleStreams(ctx, &osmanagementhub.GetSoftwareSourceModuleStreamsArgs{
SoftwareSourceId: testSoftwareSource.Id,
IsLatest: pulumi.BoolRef(softwareSourceModuleStreamIsLatest),
ModuleName: pulumi.StringRef(softwareSourceModuleStreamModuleName),
ModuleNameContains: pulumi.StringRef(softwareSourceModuleStreamModuleNameContains),
Name: pulumi.StringRef(softwareSourceModuleStreamName),
}, 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 testSoftwareSourceModuleStreams = Oci.OsManagementHub.GetSoftwareSourceModuleStreams.Invoke(new()
{
SoftwareSourceId = testSoftwareSource.Id,
IsLatest = softwareSourceModuleStreamIsLatest,
ModuleName = softwareSourceModuleStreamModuleName,
ModuleNameContains = softwareSourceModuleStreamModuleNameContains,
Name = softwareSourceModuleStreamName,
});
});
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.GetSoftwareSourceModuleStreamsArgs;
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 testSoftwareSourceModuleStreams = OsManagementHubFunctions.getSoftwareSourceModuleStreams(GetSoftwareSourceModuleStreamsArgs.builder()
.softwareSourceId(testSoftwareSource.id())
.isLatest(softwareSourceModuleStreamIsLatest)
.moduleName(softwareSourceModuleStreamModuleName)
.moduleNameContains(softwareSourceModuleStreamModuleNameContains)
.name(softwareSourceModuleStreamName)
.build());
}
}
variables:
testSoftwareSourceModuleStreams:
fn::invoke:
Function: oci:OsManagementHub:getSoftwareSourceModuleStreams
Arguments:
softwareSourceId: ${testSoftwareSource.id}
isLatest: ${softwareSourceModuleStreamIsLatest}
moduleName: ${softwareSourceModuleStreamModuleName}
moduleNameContains: ${softwareSourceModuleStreamModuleNameContains}
name: ${softwareSourceModuleStreamName}
Using getSoftwareSourceModuleStreams
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 getSoftwareSourceModuleStreams(args: GetSoftwareSourceModuleStreamsArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceModuleStreamsResult>
function getSoftwareSourceModuleStreamsOutput(args: GetSoftwareSourceModuleStreamsOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceModuleStreamsResult>
def get_software_source_module_streams(filters: Optional[Sequence[_osmanagementhub.GetSoftwareSourceModuleStreamsFilter]] = None,
is_latest: Optional[bool] = None,
module_name: Optional[str] = None,
module_name_contains: Optional[str] = None,
name: Optional[str] = None,
software_source_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSoftwareSourceModuleStreamsResult
def get_software_source_module_streams_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetSoftwareSourceModuleStreamsFilterArgs]]]] = None,
is_latest: Optional[pulumi.Input[bool]] = None,
module_name: Optional[pulumi.Input[str]] = None,
module_name_contains: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
software_source_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourceModuleStreamsResult]
func GetSoftwareSourceModuleStreams(ctx *Context, args *GetSoftwareSourceModuleStreamsArgs, opts ...InvokeOption) (*GetSoftwareSourceModuleStreamsResult, error)
func GetSoftwareSourceModuleStreamsOutput(ctx *Context, args *GetSoftwareSourceModuleStreamsOutputArgs, opts ...InvokeOption) GetSoftwareSourceModuleStreamsResultOutput
> Note: This function is named GetSoftwareSourceModuleStreams
in the Go SDK.
public static class GetSoftwareSourceModuleStreams
{
public static Task<GetSoftwareSourceModuleStreamsResult> InvokeAsync(GetSoftwareSourceModuleStreamsArgs args, InvokeOptions? opts = null)
public static Output<GetSoftwareSourceModuleStreamsResult> Invoke(GetSoftwareSourceModuleStreamsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSoftwareSourceModuleStreamsResult> getSoftwareSourceModuleStreams(GetSoftwareSourceModuleStreamsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsManagementHub/getSoftwareSourceModuleStreams:getSoftwareSourceModuleStreams
arguments:
# arguments dictionary
The following arguments are supported:
- Software
Source stringId - The OCID of the software source.
- Filters
List<Get
Software Source Module Streams Filter> - Is
Latest bool - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Module
Name stringContains - A filter to return resources that may partially match the module name given.
- Name string
- The name of the entity to be queried.
- Software
Source stringId - The OCID of the software source.
- Filters
[]Get
Software Source Module Streams Filter - Is
Latest bool - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Module
Name stringContains - A filter to return resources that may partially match the module name given.
- Name string
- The name of the entity to be queried.
- software
Source StringId - The OCID of the software source.
- filters
List<Get
Software Source Module Streams Filter> - is
Latest Boolean - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- module
Name StringContains - A filter to return resources that may partially match the module name given.
- name String
- The name of the entity to be queried.
- software
Source stringId - The OCID of the software source.
- filters
Get
Software Source Module Streams Filter[] - is
Latest boolean - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- module
Name string - The name of a module. This parameter is required if a streamName is specified.
- module
Name stringContains - A filter to return resources that may partially match the module name given.
- name string
- The name of the entity to be queried.
- software_
source_ strid - The OCID of the software source.
- filters
Sequence[osmanagementhub.
Get Software Source Module Streams Filter] - is_
latest bool - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- module_
name str - The name of a module. This parameter is required if a streamName is specified.
- module_
name_ strcontains - A filter to return resources that may partially match the module name given.
- name str
- The name of the entity to be queried.
- software
Source StringId - The OCID of the software source.
- filters List<Property Map>
- is
Latest Boolean - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- module
Name StringContains - A filter to return resources that may partially match the module name given.
- name String
- The name of the entity to be queried.
getSoftwareSourceModuleStreams Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Module
Stream List<GetCollections Software Source Module Streams Module Stream Collection> - The list of module_stream_collection.
- Software
Source stringId - The OCID of the software source that provides this module stream.
- Filters
List<Get
Software Source Module Streams Filter> - Is
Latest bool - Indicates whether this module stream is the latest.
- Module
Name string - The name of the module that contains the stream.
- Module
Name stringContains - Name string
- The name of the stream.
- Id string
- The provider-assigned unique ID for this managed resource.
- Module
Stream []GetCollections Software Source Module Streams Module Stream Collection - The list of module_stream_collection.
- Software
Source stringId - The OCID of the software source that provides this module stream.
- Filters
[]Get
Software Source Module Streams Filter - Is
Latest bool - Indicates whether this module stream is the latest.
- Module
Name string - The name of the module that contains the stream.
- Module
Name stringContains - Name string
- The name of the stream.
- id String
- The provider-assigned unique ID for this managed resource.
- module
Stream List<GetCollections Software Source Module Streams Module Stream Collection> - The list of module_stream_collection.
- software
Source StringId - The OCID of the software source that provides this module stream.
- filters
List<Get
Software Source Module Streams Filter> - is
Latest Boolean - Indicates whether this module stream is the latest.
- module
Name String - The name of the module that contains the stream.
- module
Name StringContains - name String
- The name of the stream.
- id string
- The provider-assigned unique ID for this managed resource.
- module
Stream GetCollections Software Source Module Streams Module Stream Collection[] - The list of module_stream_collection.
- software
Source stringId - The OCID of the software source that provides this module stream.
- filters
Get
Software Source Module Streams Filter[] - is
Latest boolean - Indicates whether this module stream is the latest.
- module
Name string - The name of the module that contains the stream.
- module
Name stringContains - name string
- The name of the stream.
- id str
- The provider-assigned unique ID for this managed resource.
- module_
stream_ Sequence[osmanagementhub.collections Get Software Source Module Streams Module Stream Collection] - The list of module_stream_collection.
- software_
source_ strid - The OCID of the software source that provides this module stream.
- filters
Sequence[osmanagementhub.
Get Software Source Module Streams Filter] - is_
latest bool - Indicates whether this module stream is the latest.
- module_
name str - The name of the module that contains the stream.
- module_
name_ strcontains - name str
- The name of the stream.
- id String
- The provider-assigned unique ID for this managed resource.
- module
Stream List<Property Map>Collections - The list of module_stream_collection.
- software
Source StringId - The OCID of the software source that provides this module stream.
- filters List<Property Map>
- is
Latest Boolean - Indicates whether this module stream is the latest.
- module
Name String - The name of the module that contains the stream.
- module
Name StringContains - name String
- The name of the stream.
Supporting Types
GetSoftwareSourceModuleStreamsFilter
GetSoftwareSourceModuleStreamsModuleStreamCollection
GetSoftwareSourceModuleStreamsModuleStreamCollectionItem
- Arch
Type string - The architecture for which the packages in this module stream were built.
- Description string
- A description of the contents of the module stream.
- Is
Default bool - Indicates if this stream is the default for its module.
- Is
Latest bool - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Name string
- The name of the entity to be queried.
- Packages List<string>
- A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
- Profiles List<string>
- A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
- Software
Source stringId - The OCID of the software source.
- Arch
Type string - The architecture for which the packages in this module stream were built.
- Description string
- A description of the contents of the module stream.
- Is
Default bool - Indicates if this stream is the default for its module.
- Is
Latest bool - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Name string
- The name of the entity to be queried.
- Packages []string
- A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
- Profiles []string
- A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
- Software
Source stringId - The OCID of the software source.
- arch
Type String - The architecture for which the packages in this module stream were built.
- description String
- A description of the contents of the module stream.
- is
Default Boolean - Indicates if this stream is the default for its module.
- is
Latest Boolean - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- name String
- The name of the entity to be queried.
- packages List<String>
- A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
- profiles List<String>
- A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
- software
Source StringId - The OCID of the software source.
- arch
Type string - The architecture for which the packages in this module stream were built.
- description string
- A description of the contents of the module stream.
- is
Default boolean - Indicates if this stream is the default for its module.
- is
Latest boolean - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- module
Name string - The name of a module. This parameter is required if a streamName is specified.
- name string
- The name of the entity to be queried.
- packages string[]
- A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
- profiles string[]
- A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
- software
Source stringId - The OCID of the software source.
- arch_
type str - The architecture for which the packages in this module stream were built.
- description str
- A description of the contents of the module stream.
- is_
default bool - Indicates if this stream is the default for its module.
- is_
latest bool - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- module_
name str - The name of a module. This parameter is required if a streamName is specified.
- name str
- The name of the entity to be queried.
- packages Sequence[str]
- A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
- profiles Sequence[str]
- A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
- software_
source_ strid - The OCID of the software source.
- arch
Type String - The architecture for which the packages in this module stream were built.
- description String
- A description of the contents of the module stream.
- is
Default Boolean - Indicates if this stream is the default for its module.
- is
Latest Boolean - Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- name String
- The name of the entity to be queried.
- packages List<String>
- A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.
- profiles List<String>
- A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.
- software
Source StringId - The OCID 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.