oci.OsManagement.getSoftwareSourceStreamProfile
Explore with Pulumi AI
This data source provides the list of Software Source Stream Profiles in Oracle Cloud Infrastructure OS Management service.
Retrieve a list of module stream profiles from a software source. Filters may be applied to select a subset of module stream profiles based on the filter criteria.
The “moduleName”, “streamName”, and “profileName” attributes combine to form a set of filters on the list of module stream profiles. If a “moduleName” is provided, only profiles that belong to that module are returned. If both a “moduleName” and “streamName” are given, only profiles belonging to that module stream are returned. Finally, if all three are given then only the particular profile indicated by the triple is returned. It is not valid to supply a “streamName” without a “moduleName”. It is also not valid to supply a “profileName” without a “streamName”.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSoftwareSourceStreamProfiles = oci.OsManagement.getSoftwareSourceStreamProfile({
softwareSourceId: softwareSource.id,
compartmentId: compartmentId,
moduleName: softwareSourceModuleName,
profileName: softwareSourceModuleStreamProfileName,
streamName: softwareSourceModuleStreamName,
});
import pulumi
import pulumi_oci as oci
test_software_source_stream_profiles = oci.OsManagement.get_software_source_stream_profile(software_source_id=software_source["id"],
compartment_id=compartment_id,
module_name=software_source_module_name,
profile_name=software_source_module_stream_profile_name,
stream_name=software_source_module_stream_name)
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.GetSoftwareSourceStreamProfile(ctx, &osmanagement.GetSoftwareSourceStreamProfileArgs{
SoftwareSourceId: softwareSource.Id,
CompartmentId: pulumi.StringRef(compartmentId),
ModuleName: pulumi.StringRef(softwareSourceModuleName),
ProfileName: pulumi.StringRef(softwareSourceModuleStreamProfileName),
StreamName: 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 testSoftwareSourceStreamProfiles = Oci.OsManagement.GetSoftwareSourceStreamProfile.Invoke(new()
{
SoftwareSourceId = softwareSource.Id,
CompartmentId = compartmentId,
ModuleName = softwareSourceModuleName,
ProfileName = softwareSourceModuleStreamProfileName,
StreamName = softwareSourceModuleStreamName,
});
});
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.GetSoftwareSourceStreamProfileArgs;
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 testSoftwareSourceStreamProfiles = OsManagementFunctions.getSoftwareSourceStreamProfile(GetSoftwareSourceStreamProfileArgs.builder()
.softwareSourceId(softwareSource.id())
.compartmentId(compartmentId)
.moduleName(softwareSourceModuleName)
.profileName(softwareSourceModuleStreamProfileName)
.streamName(softwareSourceModuleStreamName)
.build());
}
}
variables:
testSoftwareSourceStreamProfiles:
fn::invoke:
Function: oci:OsManagement:getSoftwareSourceStreamProfile
Arguments:
softwareSourceId: ${softwareSource.id}
compartmentId: ${compartmentId}
moduleName: ${softwareSourceModuleName}
profileName: ${softwareSourceModuleStreamProfileName}
streamName: ${softwareSourceModuleStreamName}
Using getSoftwareSourceStreamProfile
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 getSoftwareSourceStreamProfile(args: GetSoftwareSourceStreamProfileArgs, opts?: InvokeOptions): Promise<GetSoftwareSourceStreamProfileResult>
function getSoftwareSourceStreamProfileOutput(args: GetSoftwareSourceStreamProfileOutputArgs, opts?: InvokeOptions): Output<GetSoftwareSourceStreamProfileResult>
def get_software_source_stream_profile(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_osmanagement.GetSoftwareSourceStreamProfileFilter]] = None,
module_name: Optional[str] = None,
profile_name: Optional[str] = None,
software_source_id: Optional[str] = None,
stream_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSoftwareSourceStreamProfileResult
def get_software_source_stream_profile_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagement.GetSoftwareSourceStreamProfileFilterArgs]]]] = None,
module_name: Optional[pulumi.Input[str]] = None,
profile_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[GetSoftwareSourceStreamProfileResult]
func GetSoftwareSourceStreamProfile(ctx *Context, args *GetSoftwareSourceStreamProfileArgs, opts ...InvokeOption) (*GetSoftwareSourceStreamProfileResult, error)
func GetSoftwareSourceStreamProfileOutput(ctx *Context, args *GetSoftwareSourceStreamProfileOutputArgs, opts ...InvokeOption) GetSoftwareSourceStreamProfileResultOutput
> Note: This function is named GetSoftwareSourceStreamProfile
in the Go SDK.
public static class GetSoftwareSourceStreamProfile
{
public static Task<GetSoftwareSourceStreamProfileResult> InvokeAsync(GetSoftwareSourceStreamProfileArgs args, InvokeOptions? opts = null)
public static Output<GetSoftwareSourceStreamProfileResult> Invoke(GetSoftwareSourceStreamProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSoftwareSourceStreamProfileResult> getSoftwareSourceStreamProfile(GetSoftwareSourceStreamProfileArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsManagement/getSoftwareSourceStreamProfile:getSoftwareSourceStreamProfile
arguments:
# arguments dictionary
The following arguments are supported:
- Software
Source stringId - The OCID of the software source.
- Compartment
Id string - The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
- Filters
List<Get
Software Source Stream Profile Filter> - Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Profile
Name string - The name of the profile of the containing module stream
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- Software
Source stringId - The OCID of the software source.
- Compartment
Id string - The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
- Filters
[]Get
Software Source Stream Profile Filter - Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Profile
Name string - The name of the profile of the containing module stream
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- software
Source StringId - The OCID of the software source.
- compartment
Id String - The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
- filters
List<Get
Software Source Stream Profile Filter> - module
Name String - The name of a module. This parameter is required if a streamName is specified.
- profile
Name String - The name of the profile of the containing module stream
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- software
Source stringId - The OCID of the software source.
- compartment
Id string - The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
- filters
Get
Software Source Stream Profile Filter[] - module
Name string - The name of a module. This parameter is required if a streamName is specified.
- profile
Name string - The name of the profile of the containing module stream
- stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- software_
source_ strid - The OCID of the software source.
- compartment_
id str - The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
- filters
Sequence[osmanagement.
Get Software Source Stream Profile Filter] - module_
name str - The name of a module. This parameter is required if a streamName is specified.
- profile_
name str - The name of the profile of the containing module stream
- stream_
name str - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- software
Source StringId - The OCID of the software source.
- compartment
Id String - The ID of the compartment in which to list resources. This parameter is optional and in some cases may have no effect.
- filters List<Property Map>
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- profile
Name String - The name of the profile of the containing module stream
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
getSoftwareSourceStreamProfile Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Module
Stream List<GetProfiles Software Source Stream Profile Module Stream Profile> - The list of module_stream_profiles.
- Software
Source stringId - Compartment
Id string - Filters
List<Get
Software Source Stream Profile Filter> - Module
Name string - The name of the module that contains the stream profile
- Profile
Name string - The name of the profile
- Stream
Name string - The name of the stream that contains the profile
- Id string
- The provider-assigned unique ID for this managed resource.
- Module
Stream []GetProfiles Software Source Stream Profile Module Stream Profile - The list of module_stream_profiles.
- Software
Source stringId - Compartment
Id string - Filters
[]Get
Software Source Stream Profile Filter - Module
Name string - The name of the module that contains the stream profile
- Profile
Name string - The name of the profile
- Stream
Name string - The name of the stream that contains the profile
- id String
- The provider-assigned unique ID for this managed resource.
- module
Stream List<GetProfiles Software Source Stream Profile Module Stream Profile> - The list of module_stream_profiles.
- software
Source StringId - compartment
Id String - filters
List<Get
Software Source Stream Profile Filter> - module
Name String - The name of the module that contains the stream profile
- profile
Name String - The name of the profile
- stream
Name String - The name of the stream that contains the profile
- id string
- The provider-assigned unique ID for this managed resource.
- module
Stream GetProfiles Software Source Stream Profile Module Stream Profile[] - The list of module_stream_profiles.
- software
Source stringId - compartment
Id string - filters
Get
Software Source Stream Profile Filter[] - module
Name string - The name of the module that contains the stream profile
- profile
Name string - The name of the profile
- stream
Name string - The name of the stream that contains the profile
- id str
- The provider-assigned unique ID for this managed resource.
- module_
stream_ Sequence[osmanagement.profiles Get Software Source Stream Profile Module Stream Profile] - The list of module_stream_profiles.
- software_
source_ strid - compartment_
id str - filters
Sequence[osmanagement.
Get Software Source Stream Profile Filter] - module_
name str - The name of the module that contains the stream profile
- profile_
name str - The name of the profile
- stream_
name str - The name of the stream that contains the profile
- id String
- The provider-assigned unique ID for this managed resource.
- module
Stream List<Property Map>Profiles - The list of module_stream_profiles.
- software
Source StringId - compartment
Id String - filters List<Property Map>
- module
Name String - The name of the module that contains the stream profile
- profile
Name String - The name of the profile
- stream
Name String - The name of the stream that contains the profile
Supporting Types
GetSoftwareSourceStreamProfileFilter
GetSoftwareSourceStreamProfileModuleStreamProfile
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Profile
Name string - The name of the profile of the containing module stream
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- Module
Name string - The name of a module. This parameter is required if a streamName is specified.
- Profile
Name string - The name of the profile of the containing module stream
- Stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- profile
Name String - The name of the profile of the containing module stream
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- module
Name string - The name of a module. This parameter is required if a streamName is specified.
- profile
Name string - The name of the profile of the containing module stream
- stream
Name string - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- module_
name str - The name of a module. This parameter is required if a streamName is specified.
- profile_
name str - The name of the profile of the containing module stream
- stream_
name str - The name of the stream of the containing module. This parameter is required if a profileName is specified.
- module
Name String - The name of a module. This parameter is required if a streamName is specified.
- profile
Name String - The name of the profile of the containing module stream
- stream
Name String - The name of the stream of the containing module. This parameter is required if a profileName is specified.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.