Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.OsManagementHub.getManagedInstanceModules
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Managed Instance Modules in Oracle Cloud Infrastructure Os Management Hub service.
Retrieves a list of modules, along with streams of the modules, from a managed instance. Filters may be applied to select a subset of modules based on the filter criteria.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceModules = oci.OsManagementHub.getManagedInstanceModules({
managedInstanceId: testManagedInstance.id,
compartmentId: compartmentId,
name: managedInstanceModuleName,
nameContains: managedInstanceModuleNameContains,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_modules = oci.OsManagementHub.get_managed_instance_modules(managed_instance_id=test_managed_instance["id"],
compartment_id=compartment_id,
name=managed_instance_module_name,
name_contains=managed_instance_module_name_contains)
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.GetManagedInstanceModules(ctx, &osmanagementhub.GetManagedInstanceModulesArgs{
ManagedInstanceId: testManagedInstance.Id,
CompartmentId: pulumi.StringRef(compartmentId),
Name: pulumi.StringRef(managedInstanceModuleName),
NameContains: pulumi.StringRef(managedInstanceModuleNameContains),
}, 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 testManagedInstanceModules = Oci.OsManagementHub.GetManagedInstanceModules.Invoke(new()
{
ManagedInstanceId = testManagedInstance.Id,
CompartmentId = compartmentId,
Name = managedInstanceModuleName,
NameContains = managedInstanceModuleNameContains,
});
});
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.GetManagedInstanceModulesArgs;
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 testManagedInstanceModules = OsManagementHubFunctions.getManagedInstanceModules(GetManagedInstanceModulesArgs.builder()
.managedInstanceId(testManagedInstance.id())
.compartmentId(compartmentId)
.name(managedInstanceModuleName)
.nameContains(managedInstanceModuleNameContains)
.build());
}
}
variables:
testManagedInstanceModules:
fn::invoke:
Function: oci:OsManagementHub:getManagedInstanceModules
Arguments:
managedInstanceId: ${testManagedInstance.id}
compartmentId: ${compartmentId}
name: ${managedInstanceModuleName}
nameContains: ${managedInstanceModuleNameContains}
Using getManagedInstanceModules
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 getManagedInstanceModules(args: GetManagedInstanceModulesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceModulesResult>
function getManagedInstanceModulesOutput(args: GetManagedInstanceModulesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceModulesResult>
def get_managed_instance_modules(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceModulesFilter]] = None,
managed_instance_id: Optional[str] = None,
name: Optional[str] = None,
name_contains: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedInstanceModulesResult
def get_managed_instance_modules_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetManagedInstanceModulesFilterArgs]]]] = None,
managed_instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
name_contains: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceModulesResult]
func GetManagedInstanceModules(ctx *Context, args *GetManagedInstanceModulesArgs, opts ...InvokeOption) (*GetManagedInstanceModulesResult, error)
func GetManagedInstanceModulesOutput(ctx *Context, args *GetManagedInstanceModulesOutputArgs, opts ...InvokeOption) GetManagedInstanceModulesResultOutput
> Note: This function is named GetManagedInstanceModules
in the Go SDK.
public static class GetManagedInstanceModules
{
public static Task<GetManagedInstanceModulesResult> InvokeAsync(GetManagedInstanceModulesArgs args, InvokeOptions? opts = null)
public static Output<GetManagedInstanceModulesResult> Invoke(GetManagedInstanceModulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedInstanceModulesResult> getManagedInstanceModules(GetManagedInstanceModulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsManagementHub/getManagedInstanceModules:getManagedInstanceModules
arguments:
# arguments dictionary
The following arguments are supported:
- Managed
Instance stringId - The OCID of the managed instance.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Filters
List<Get
Managed Instance Modules Filter> - Name string
- The resource name.
- Name
Contains string - A filter to return resources that may partially match the name given.
- Managed
Instance stringId - The OCID of the managed instance.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Filters
[]Get
Managed Instance Modules Filter - Name string
- The resource name.
- Name
Contains string - A filter to return resources that may partially match the name given.
- managed
Instance StringId - The OCID of the managed instance.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
List<Get
Managed Instance Modules Filter> - name String
- The resource name.
- name
Contains String - A filter to return resources that may partially match the name given.
- managed
Instance stringId - The OCID of the managed instance.
- compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
Get
Managed Instance Modules Filter[] - name string
- The resource name.
- name
Contains string - A filter to return resources that may partially match the name given.
- managed_
instance_ strid - The OCID of the managed instance.
- compartment_
id str - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
Sequence[osmanagementhub.
Get Managed Instance Modules Filter] - name str
- The resource name.
- name_
contains str - A filter to return resources that may partially match the name given.
- managed
Instance StringId - The OCID of the managed instance.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters List<Property Map>
- name String
- The resource name.
- name
Contains String - A filter to return resources that may partially match the name given.
getManagedInstanceModules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance stringId - Managed
Instance List<GetModule Collections Managed Instance Modules Managed Instance Module Collection> - The list of managed_instance_module_collection.
- Compartment
Id string - Filters
List<Get
Managed Instance Modules Filter> - Name string
- The module name.
- Name
Contains string
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance stringId - Managed
Instance []GetModule Collections Managed Instance Modules Managed Instance Module Collection - The list of managed_instance_module_collection.
- Compartment
Id string - Filters
[]Get
Managed Instance Modules Filter - Name string
- The module name.
- Name
Contains string
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance StringId - managed
Instance List<GetModule Collections Managed Instance Modules Managed Instance Module Collection> - The list of managed_instance_module_collection.
- compartment
Id String - filters
List<Get
Managed Instance Modules Filter> - name String
- The module name.
- name
Contains String
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Instance stringId - managed
Instance GetModule Collections Managed Instance Modules Managed Instance Module Collection[] - The list of managed_instance_module_collection.
- compartment
Id string - filters
Get
Managed Instance Modules Filter[] - name string
- The module name.
- name
Contains string
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
instance_ strid - managed_
instance_ Sequence[osmanagementhub.module_ collections Get Managed Instance Modules Managed Instance Module Collection] - The list of managed_instance_module_collection.
- compartment_
id str - filters
Sequence[osmanagementhub.
Get Managed Instance Modules Filter] - name str
- The module name.
- name_
contains str
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance StringId - managed
Instance List<Property Map>Module Collections - The list of managed_instance_module_collection.
- compartment
Id String - filters List<Property Map>
- name String
- The module name.
- name
Contains String
Supporting Types
GetManagedInstanceModulesFilter
GetManagedInstanceModulesManagedInstanceModuleCollection
- Items
List<Get
Managed Instance Modules Managed Instance Module Collection Item> - List of module streams.
- Items
[]Get
Managed Instance Modules Managed Instance Module Collection Item - List of module streams.
- items
List<Get
Managed Instance Modules Managed Instance Module Collection Item> - List of module streams.
- items
Get
Managed Instance Modules Managed Instance Module Collection Item[] - List of module streams.
- items
Sequence[osmanagementhub.
Get Managed Instance Modules Managed Instance Module Collection Item] - List of module streams.
- items List<Property Map>
- List of module streams.
GetManagedInstanceModulesManagedInstanceModuleCollectionItem
- Active
Streams List<string> - List of streams that are active in the module.
- Disabled
Streams List<string> - List of streams that are disabled in the module.
- Enabled
Stream string - The stream that is enabled in the module.
- Installed
Profiles List<string> - List of installed profiles in the enabled stream of the module.
- Name string
- The resource name.
- Software
Source stringId - The OCID of the software source that provides this module and the associated streams.
- Active
Streams []string - List of streams that are active in the module.
- Disabled
Streams []string - List of streams that are disabled in the module.
- Enabled
Stream string - The stream that is enabled in the module.
- Installed
Profiles []string - List of installed profiles in the enabled stream of the module.
- Name string
- The resource name.
- Software
Source stringId - The OCID of the software source that provides this module and the associated streams.
- active
Streams List<String> - List of streams that are active in the module.
- disabled
Streams List<String> - List of streams that are disabled in the module.
- enabled
Stream String - The stream that is enabled in the module.
- installed
Profiles List<String> - List of installed profiles in the enabled stream of the module.
- name String
- The resource name.
- software
Source StringId - The OCID of the software source that provides this module and the associated streams.
- active
Streams string[] - List of streams that are active in the module.
- disabled
Streams string[] - List of streams that are disabled in the module.
- enabled
Stream string - The stream that is enabled in the module.
- installed
Profiles string[] - List of installed profiles in the enabled stream of the module.
- name string
- The resource name.
- software
Source stringId - The OCID of the software source that provides this module and the associated streams.
- active_
streams Sequence[str] - List of streams that are active in the module.
- disabled_
streams Sequence[str] - List of streams that are disabled in the module.
- enabled_
stream str - The stream that is enabled in the module.
- installed_
profiles Sequence[str] - List of installed profiles in the enabled stream of the module.
- name str
- The resource name.
- software_
source_ strid - The OCID of the software source that provides this module and the associated streams.
- active
Streams List<String> - List of streams that are active in the module.
- disabled
Streams List<String> - List of streams that are disabled in the module.
- enabled
Stream String - The stream that is enabled in the module.
- installed
Profiles List<String> - List of installed profiles in the enabled stream of the module.
- name String
- The resource name.
- software
Source StringId - The OCID of the software source that provides this module and the associated streams.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi