1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getTargetComponents
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi

    This data source provides the list of Target Components in Oracle Cloud Infrastructure Fleet Apps Management service.

    Gets a list of target component for the specified target.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTargetComponents = oci.FleetAppsManagement.getTargetComponents({
        compartmentId: compartmentId,
        targetId: fleetTargetId,
        targetName: fleetTargetName,
        name: targetComponentName,
        severity: targetComponentSeverity,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_target_components = oci.FleetAppsManagement.get_target_components(compartment_id=compartment_id,
        target_id=fleet_target_id,
        target_name=fleet_target_name,
        name=target_component_name,
        severity=target_component_severity)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/fleetappsmanagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fleetappsmanagement.GetTargetComponents(ctx, &fleetappsmanagement.GetTargetComponentsArgs{
    			CompartmentId: compartmentId,
    			TargetId:      pulumi.StringRef(fleetTargetId),
    			TargetName:    pulumi.StringRef(fleetTargetName),
    			Name:          pulumi.StringRef(targetComponentName),
    			Severity:      pulumi.StringRef(targetComponentSeverity),
    		}, 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 testTargetComponents = Oci.FleetAppsManagement.GetTargetComponents.Invoke(new()
        {
            CompartmentId = compartmentId,
            TargetId = fleetTargetId,
            TargetName = fleetTargetName,
            Name = targetComponentName,
            Severity = targetComponentSeverity,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
    import com.pulumi.oci.FleetAppsManagement.inputs.GetTargetComponentsArgs;
    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 testTargetComponents = FleetAppsManagementFunctions.getTargetComponents(GetTargetComponentsArgs.builder()
                .compartmentId(compartmentId)
                .targetId(fleetTargetId)
                .targetName(fleetTargetName)
                .name(targetComponentName)
                .severity(targetComponentSeverity)
                .build());
    
        }
    }
    
    variables:
      testTargetComponents:
        fn::invoke:
          function: oci:FleetAppsManagement:getTargetComponents
          arguments:
            compartmentId: ${compartmentId}
            targetId: ${fleetTargetId}
            targetName: ${fleetTargetName}
            name: ${targetComponentName}
            severity: ${targetComponentSeverity}
    

    Using getTargetComponents

    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 getTargetComponents(args: GetTargetComponentsArgs, opts?: InvokeOptions): Promise<GetTargetComponentsResult>
    function getTargetComponentsOutput(args: GetTargetComponentsOutputArgs, opts?: InvokeOptions): Output<GetTargetComponentsResult>
    def get_target_components(compartment_id: Optional[str] = None,
                              filters: Optional[Sequence[GetTargetComponentsFilter]] = None,
                              name: Optional[str] = None,
                              severity: Optional[str] = None,
                              target_id: Optional[str] = None,
                              target_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetTargetComponentsResult
    def get_target_components_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTargetComponentsFilterArgs]]]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              severity: Optional[pulumi.Input[str]] = None,
                              target_id: Optional[pulumi.Input[str]] = None,
                              target_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetTargetComponentsResult]
    func GetTargetComponents(ctx *Context, args *GetTargetComponentsArgs, opts ...InvokeOption) (*GetTargetComponentsResult, error)
    func GetTargetComponentsOutput(ctx *Context, args *GetTargetComponentsOutputArgs, opts ...InvokeOption) GetTargetComponentsResultOutput

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

    public static class GetTargetComponents 
    {
        public static Task<GetTargetComponentsResult> InvokeAsync(GetTargetComponentsArgs args, InvokeOptions? opts = null)
        public static Output<GetTargetComponentsResult> Invoke(GetTargetComponentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTargetComponentsResult> getTargetComponents(GetTargetComponentsArgs args, InvokeOptions options)
    public static Output<GetTargetComponentsResult> getTargetComponents(GetTargetComponentsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:FleetAppsManagement/getTargetComponents:getTargetComponents
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters List<GetTargetComponentsFilter>
    Name string
    Target Component Name.
    Severity string
    Patch severity.
    TargetId string
    Target identifier.
    TargetName string
    Target name.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters []GetTargetComponentsFilter
    Name string
    Target Component Name.
    Severity string
    Patch severity.
    TargetId string
    Target identifier.
    TargetName string
    Target name.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<GetTargetComponentsFilter>
    name String
    Target Component Name.
    severity String
    Patch severity.
    targetId String
    Target identifier.
    targetName String
    Target name.
    compartmentId string
    The OCID of the compartment in which to list resources.
    filters GetTargetComponentsFilter[]
    name string
    Target Component Name.
    severity string
    Patch severity.
    targetId string
    Target identifier.
    targetName string
    Target name.
    compartment_id str
    The OCID of the compartment in which to list resources.
    filters Sequence[GetTargetComponentsFilter]
    name str
    Target Component Name.
    severity str
    Patch severity.
    target_id str
    Target identifier.
    target_name str
    Target name.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<Property Map>
    name String
    Target Component Name.
    severity String
    Patch severity.
    targetId String
    Target identifier.
    targetName String
    Target name.

    getTargetComponents Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetComponentCollections List<GetTargetComponentsTargetComponentCollection>
    The list of target_component_collection.
    Filters List<GetTargetComponentsFilter>
    Name string
    Name of the property.
    Severity string
    TargetId string
    TargetName string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetComponentCollections []GetTargetComponentsTargetComponentCollection
    The list of target_component_collection.
    Filters []GetTargetComponentsFilter
    Name string
    Name of the property.
    Severity string
    TargetId string
    TargetName string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    targetComponentCollections List<GetTargetComponentsTargetComponentCollection>
    The list of target_component_collection.
    filters List<GetTargetComponentsFilter>
    name String
    Name of the property.
    severity String
    targetId String
    targetName String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    targetComponentCollections GetTargetComponentsTargetComponentCollection[]
    The list of target_component_collection.
    filters GetTargetComponentsFilter[]
    name string
    Name of the property.
    severity string
    targetId string
    targetName string
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    target_component_collections Sequence[GetTargetComponentsTargetComponentCollection]
    The list of target_component_collection.
    filters Sequence[GetTargetComponentsFilter]
    name str
    Name of the property.
    severity str
    target_id str
    target_name str
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    targetComponentCollections List<Property Map>
    The list of target_component_collection.
    filters List<Property Map>
    name String
    Name of the property.
    severity String
    targetId String
    targetName String

    Supporting Types

    GetTargetComponentsFilter

    Name string
    Target Component Name.
    Values List<string>
    Regex bool
    Name string
    Target Component Name.
    Values []string
    Regex bool
    name String
    Target Component Name.
    values List<String>
    regex Boolean
    name string
    Target Component Name.
    values string[]
    regex boolean
    name str
    Target Component Name.
    values Sequence[str]
    regex bool
    name String
    Target Component Name.
    values List<String>
    regex Boolean

    GetTargetComponentsTargetComponentCollection

    items List<Property Map>
    List of target components.

    GetTargetComponentsTargetComponentCollectionItem

    Name string
    Target Component Name.
    Path string
    Path of the component.
    Properties List<GetTargetComponentsTargetComponentCollectionItemProperty>
    List of properties.
    Version string
    Version of the component.
    Name string
    Target Component Name.
    Path string
    Path of the component.
    Properties []GetTargetComponentsTargetComponentCollectionItemProperty
    List of properties.
    Version string
    Version of the component.
    name String
    Target Component Name.
    path String
    Path of the component.
    properties List<GetTargetComponentsTargetComponentCollectionItemProperty>
    List of properties.
    version String
    Version of the component.
    name string
    Target Component Name.
    path string
    Path of the component.
    properties GetTargetComponentsTargetComponentCollectionItemProperty[]
    List of properties.
    version string
    Version of the component.
    name str
    Target Component Name.
    path str
    Path of the component.
    properties Sequence[GetTargetComponentsTargetComponentCollectionItemProperty]
    List of properties.
    version str
    Version of the component.
    name String
    Target Component Name.
    path String
    Path of the component.
    properties List<Property Map>
    List of properties.
    version String
    Version of the component.

    GetTargetComponentsTargetComponentCollectionItemProperty

    Name string
    Target Component Name.
    Value string
    Value of the property.
    Name string
    Target Component Name.
    Value string
    Value of the property.
    name String
    Target Component Name.
    value String
    Value of the property.
    name string
    Target Component Name.
    value string
    Value of the property.
    name str
    Target Component Name.
    value str
    Value of the property.
    name String
    Target Component Name.
    value String
    Value of the property.

    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 v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate