1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getSoftwareSourceModuleStream
Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 by Pulumi

oci.OsManagementHub.getSoftwareSourceModuleStream

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 by Pulumi

    This data source provides details about a specific Software Source Module Stream resource in Oracle Cloud Infrastructure Os Management Hub service.

    Returns information about the specified module stream in a software source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSoftwareSourceModuleStream = oci.OsManagementHub.getSoftwareSourceModuleStream({
        moduleName: softwareSourceModuleStreamModuleName,
        softwareSourceId: testSoftwareSource.id,
        streamName: testStream.name,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_software_source_module_stream = oci.OsManagementHub.get_software_source_module_stream(module_name=software_source_module_stream_module_name,
        software_source_id=test_software_source["id"],
        stream_name=test_stream["name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsManagementHub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OsManagementHub.GetSoftwareSourceModuleStream(ctx, &osmanagementhub.GetSoftwareSourceModuleStreamArgs{
    			ModuleName:       softwareSourceModuleStreamModuleName,
    			SoftwareSourceId: testSoftwareSource.Id,
    			StreamName:       testStream.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 testSoftwareSourceModuleStream = Oci.OsManagementHub.GetSoftwareSourceModuleStream.Invoke(new()
        {
            ModuleName = softwareSourceModuleStreamModuleName,
            SoftwareSourceId = testSoftwareSource.Id,
            StreamName = testStream.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.GetSoftwareSourceModuleStreamArgs;
    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 testSoftwareSourceModuleStream = OsManagementHubFunctions.getSoftwareSourceModuleStream(GetSoftwareSourceModuleStreamArgs.builder()
                .moduleName(softwareSourceModuleStreamModuleName)
                .softwareSourceId(testSoftwareSource.id())
                .streamName(testStream.name())
                .build());
    
        }
    }
    
    variables:
      testSoftwareSourceModuleStream:
        fn::invoke:
          Function: oci:OsManagementHub:getSoftwareSourceModuleStream
          Arguments:
            moduleName: ${softwareSourceModuleStreamModuleName}
            softwareSourceId: ${testSoftwareSource.id}
            streamName: ${testStream.name}
    

    Using getSoftwareSourceModuleStream

    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 getSoftwareSourceModuleStream(args: GetSoftwareSourceModuleStreamArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceModuleStreamResult>
    function getSoftwareSourceModuleStreamOutput(args: GetSoftwareSourceModuleStreamOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceModuleStreamResult>
    def get_software_source_module_stream(module_name: Optional[str] = None,
                                          software_source_id: Optional[str] = None,
                                          stream_name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetSoftwareSourceModuleStreamResult
    def get_software_source_module_stream_output(module_name: Optional[pulumi.Input[str]] = None,
                                          software_source_id: Optional[pulumi.Input[str]] = None,
                                          stream_name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetSoftwareSourceModuleStreamResult]
    func GetSoftwareSourceModuleStream(ctx *Context, args *GetSoftwareSourceModuleStreamArgs, opts ...InvokeOption) (*GetSoftwareSourceModuleStreamResult, error)
    func GetSoftwareSourceModuleStreamOutput(ctx *Context, args *GetSoftwareSourceModuleStreamOutputArgs, opts ...InvokeOption) GetSoftwareSourceModuleStreamResultOutput

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

    public static class GetSoftwareSourceModuleStream 
    {
        public static Task<GetSoftwareSourceModuleStreamResult> InvokeAsync(GetSoftwareSourceModuleStreamArgs args, InvokeOptions? opts = null)
        public static Output<GetSoftwareSourceModuleStreamResult> Invoke(GetSoftwareSourceModuleStreamInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSoftwareSourceModuleStreamResult> getSoftwareSourceModuleStream(GetSoftwareSourceModuleStreamArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getSoftwareSourceModuleStream:getSoftwareSourceModuleStream
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ModuleName string
    The name of the module.
    SoftwareSourceId string
    The OCID of the software source.
    StreamName string
    The name of the stream of the containing module.
    ModuleName string
    The name of the module.
    SoftwareSourceId string
    The OCID of the software source.
    StreamName string
    The name of the stream of the containing module.
    moduleName String
    The name of the module.
    softwareSourceId String
    The OCID of the software source.
    streamName String
    The name of the stream of the containing module.
    moduleName string
    The name of the module.
    softwareSourceId string
    The OCID of the software source.
    streamName string
    The name of the stream of the containing module.
    module_name str
    The name of the module.
    software_source_id str
    The OCID of the software source.
    stream_name str
    The name of the stream of the containing module.
    moduleName String
    The name of the module.
    softwareSourceId String
    The OCID of the software source.
    streamName String
    The name of the stream of the containing module.

    getSoftwareSourceModuleStream Result

    The following output properties are available:

    ArchType string
    The architecture for which the packages in this module stream were built.
    Description string
    A description of the contents of the module stream.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Indicates if this stream is the default for its module.
    IsLatest bool
    Indicates whether this module stream is the latest.
    ModuleName string
    The name of the module that contains the stream.
    Name string
    The name of the stream.
    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.
    SoftwareSourceId string
    The OCID of the software source that provides this module stream.
    StreamName string
    ArchType string
    The architecture for which the packages in this module stream were built.
    Description string
    A description of the contents of the module stream.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Indicates if this stream is the default for its module.
    IsLatest bool
    Indicates whether this module stream is the latest.
    ModuleName string
    The name of the module that contains the stream.
    Name string
    The name of the stream.
    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.
    SoftwareSourceId string
    The OCID of the software source that provides this module stream.
    StreamName string
    archType String
    The architecture for which the packages in this module stream were built.
    description String
    A description of the contents of the module stream.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Indicates if this stream is the default for its module.
    isLatest Boolean
    Indicates whether this module stream is the latest.
    moduleName String
    The name of the module that contains the stream.
    name String
    The name of the stream.
    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.
    softwareSourceId String
    The OCID of the software source that provides this module stream.
    streamName String
    archType string
    The architecture for which the packages in this module stream were built.
    description string
    A description of the contents of the module stream.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    Indicates if this stream is the default for its module.
    isLatest boolean
    Indicates whether this module stream is the latest.
    moduleName string
    The name of the module that contains the stream.
    name string
    The name of the stream.
    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.
    softwareSourceId string
    The OCID of the software source that provides this module stream.
    streamName string
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Indicates if this stream is the default for its module.
    is_latest bool
    Indicates whether this module stream is the latest.
    module_name str
    The name of the module that contains the stream.
    name str
    The name of the stream.
    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_id str
    The OCID of the software source that provides this module stream.
    stream_name str
    archType String
    The architecture for which the packages in this module stream were built.
    description String
    A description of the contents of the module stream.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Indicates if this stream is the default for its module.
    isLatest Boolean
    Indicates whether this module stream is the latest.
    moduleName String
    The name of the module that contains the stream.
    name String
    The name of the stream.
    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.
    softwareSourceId String
    The OCID of the software source that provides this module stream.
    streamName String

    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 v1.36.0 published on Thursday, May 16, 2024 by Pulumi