Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
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 dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Filters
List<Get
Target Components Filter> - Name string
- Target Component Name.
- Severity string
- Patch severity.
- Target
Id string - Target identifier.
- Target
Name string - Target name.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Filters
[]Get
Target Components Filter - Name string
- Target Component Name.
- Severity string
- Patch severity.
- Target
Id string - Target identifier.
- Target
Name string - Target name.
- compartment
Id String - The OCID of the compartment in which to list resources.
- filters
List<Get
Target Components Filter> - name String
- Target Component Name.
- severity String
- Patch severity.
- target
Id String - Target identifier.
- target
Name String - Target name.
- compartment
Id string - The OCID of the compartment in which to list resources.
- filters
Get
Target Components Filter[] - name string
- Target Component Name.
- severity string
- Patch severity.
- target
Id string - Target identifier.
- target
Name string - Target name.
- compartment_
id str - The OCID of the compartment in which to list resources.
- filters
Sequence[Get
Target Components Filter] - name str
- Target Component Name.
- severity str
- Patch severity.
- target_
id str - Target identifier.
- target_
name str - Target name.
- compartment
Id String - The OCID of the compartment in which to list resources.
- filters List<Property Map>
- name String
- Target Component Name.
- severity String
- Patch severity.
- target
Id String - Target identifier.
- target
Name String - Target name.
getTargetComponents Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Target
Component List<GetCollections Target Components Target Component Collection> - The list of target_component_collection.
- Filters
List<Get
Target Components Filter> - Name string
- Name of the property.
- Severity string
- Target
Id string - Target
Name string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Target
Component []GetCollections Target Components Target Component Collection - The list of target_component_collection.
- Filters
[]Get
Target Components Filter - Name string
- Name of the property.
- Severity string
- Target
Id string - Target
Name string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- target
Component List<GetCollections Target Components Target Component Collection> - The list of target_component_collection.
- filters
List<Get
Target Components Filter> - name String
- Name of the property.
- severity String
- target
Id String - target
Name String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- target
Component GetCollections Target Components Target Component Collection[] - The list of target_component_collection.
- filters
Get
Target Components Filter[] - name string
- Name of the property.
- severity string
- target
Id string - target
Name string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- target_
component_ Sequence[Getcollections Target Components Target Component Collection] - The list of target_component_collection.
- filters
Sequence[Get
Target Components Filter] - name str
- Name of the property.
- severity str
- target_
id str - target_
name str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- target
Component List<Property Map>Collections - The list of target_component_collection.
- filters List<Property Map>
- name String
- Name of the property.
- severity String
- target
Id String - target
Name String
Supporting Types
GetTargetComponentsFilter
GetTargetComponentsTargetComponentCollection
- Items
List<Get
Target Components Target Component Collection Item> - List of target components.
- Items
[]Get
Target Components Target Component Collection Item - List of target components.
- items
List<Get
Target Components Target Component Collection Item> - List of target components.
- items
Get
Target Components Target Component Collection Item[] - List of target components.
- items
Sequence[Get
Target Components Target Component Collection Item] - List of target components.
- items List<Property Map>
- List of target components.
GetTargetComponentsTargetComponentCollectionItem
- Name string
- Target Component Name.
- Path string
- Path of the component.
- Properties
List<Get
Target Components Target Component Collection Item Property> - List of properties.
- Version string
- Version of the component.
- Name string
- Target Component Name.
- Path string
- Path of the component.
- Properties
[]Get
Target Components Target Component Collection Item Property - List of properties.
- Version string
- Version of the component.
- name String
- Target Component Name.
- path String
- Path of the component.
- properties
List<Get
Target Components Target Component Collection Item Property> - List of properties.
- version String
- Version of the component.
- name string
- Target Component Name.
- path string
- Path of the component.
- properties
Get
Target Components Target Component Collection Item Property[] - List of properties.
- version string
- Version of the component.
- name str
- Target Component Name.
- path str
- Path of the component.
- properties
Sequence[Get
Target Components Target Component Collection Item Property] - 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
