1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getTargetProperties
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 Properties in Oracle Cloud Infrastructure Fleet Apps Management service.

    Gets a list of target properties for the specified target.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTargetProperties = oci.FleetAppsManagement.getTargetProperties({
        compartmentId: compartmentId,
        targetId: fleetTargetId,
        targetName: fleetTargetName,
        severity: targetPropertySeverity,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_target_properties = oci.FleetAppsManagement.get_target_properties(compartment_id=compartment_id,
        target_id=fleet_target_id,
        target_name=fleet_target_name,
        severity=target_property_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.GetTargetProperties(ctx, &fleetappsmanagement.GetTargetPropertiesArgs{
    			CompartmentId: compartmentId,
    			TargetId:      pulumi.StringRef(fleetTargetId),
    			TargetName:    pulumi.StringRef(fleetTargetName),
    			Severity:      pulumi.StringRef(targetPropertySeverity),
    		}, 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 testTargetProperties = Oci.FleetAppsManagement.GetTargetProperties.Invoke(new()
        {
            CompartmentId = compartmentId,
            TargetId = fleetTargetId,
            TargetName = fleetTargetName,
            Severity = targetPropertySeverity,
        });
    
    });
    
    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.GetTargetPropertiesArgs;
    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 testTargetProperties = FleetAppsManagementFunctions.getTargetProperties(GetTargetPropertiesArgs.builder()
                .compartmentId(compartmentId)
                .targetId(fleetTargetId)
                .targetName(fleetTargetName)
                .severity(targetPropertySeverity)
                .build());
    
        }
    }
    
    variables:
      testTargetProperties:
        fn::invoke:
          function: oci:FleetAppsManagement:getTargetProperties
          arguments:
            compartmentId: ${compartmentId}
            targetId: ${fleetTargetId}
            targetName: ${fleetTargetName}
            severity: ${targetPropertySeverity}
    

    Using getTargetProperties

    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 getTargetProperties(args: GetTargetPropertiesArgs, opts?: InvokeOptions): Promise<GetTargetPropertiesResult>
    function getTargetPropertiesOutput(args: GetTargetPropertiesOutputArgs, opts?: InvokeOptions): Output<GetTargetPropertiesResult>
    def get_target_properties(compartment_id: Optional[str] = None,
                              filters: Optional[Sequence[GetTargetPropertiesFilter]] = None,
                              severity: Optional[str] = None,
                              target_id: Optional[str] = None,
                              target_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetTargetPropertiesResult
    def get_target_properties_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTargetPropertiesFilterArgs]]]] = 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[GetTargetPropertiesResult]
    func GetTargetProperties(ctx *Context, args *GetTargetPropertiesArgs, opts ...InvokeOption) (*GetTargetPropertiesResult, error)
    func GetTargetPropertiesOutput(ctx *Context, args *GetTargetPropertiesOutputArgs, opts ...InvokeOption) GetTargetPropertiesResultOutput

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

    public static class GetTargetProperties 
    {
        public static Task<GetTargetPropertiesResult> InvokeAsync(GetTargetPropertiesArgs args, InvokeOptions? opts = null)
        public static Output<GetTargetPropertiesResult> Invoke(GetTargetPropertiesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTargetPropertiesResult> getTargetProperties(GetTargetPropertiesArgs args, InvokeOptions options)
    public static Output<GetTargetPropertiesResult> getTargetProperties(GetTargetPropertiesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:FleetAppsManagement/getTargetProperties:getTargetProperties
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters List<GetTargetPropertiesFilter>
    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 []GetTargetPropertiesFilter
    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<GetTargetPropertiesFilter>
    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 GetTargetPropertiesFilter[]
    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[GetTargetPropertiesFilter]
    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>
    severity String
    Patch severity.
    targetId String
    Target identifier.
    targetName String
    Target name.

    getTargetProperties Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetPropertyCollections List<GetTargetPropertiesTargetPropertyCollection>
    The list of target_property_collection.
    Filters List<GetTargetPropertiesFilter>
    Severity string
    TargetId string
    TargetName string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetPropertyCollections []GetTargetPropertiesTargetPropertyCollection
    The list of target_property_collection.
    Filters []GetTargetPropertiesFilter
    Severity string
    TargetId string
    TargetName string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    targetPropertyCollections List<GetTargetPropertiesTargetPropertyCollection>
    The list of target_property_collection.
    filters List<GetTargetPropertiesFilter>
    severity String
    targetId String
    targetName String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    targetPropertyCollections GetTargetPropertiesTargetPropertyCollection[]
    The list of target_property_collection.
    filters GetTargetPropertiesFilter[]
    severity string
    targetId string
    targetName string
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    target_property_collections Sequence[GetTargetPropertiesTargetPropertyCollection]
    The list of target_property_collection.
    filters Sequence[GetTargetPropertiesFilter]
    severity str
    target_id str
    target_name str
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    targetPropertyCollections List<Property Map>
    The list of target_property_collection.
    filters List<Property Map>
    severity String
    targetId String
    targetName String

    Supporting Types

    GetTargetPropertiesFilter

    Name string
    Name of the property.
    Values List<string>
    Regex bool
    Name string
    Name of the property.
    Values []string
    Regex bool
    name String
    Name of the property.
    values List<String>
    regex Boolean
    name string
    Name of the property.
    values string[]
    regex boolean
    name str
    Name of the property.
    values Sequence[str]
    regex bool
    name String
    Name of the property.
    values List<String>
    regex Boolean

    GetTargetPropertiesTargetPropertyCollection

    items List<Property Map>
    List of target properties.

    GetTargetPropertiesTargetPropertyCollectionItem

    Name string
    Name of the property.
    Value string
    Value of the property.
    Name string
    Name of the property.
    Value string
    Value of the property.
    name String
    Name of the property.
    value String
    Value of the property.
    name string
    Name of the property.
    value string
    Value of the property.
    name str
    Name of the property.
    value str
    Value of the property.
    name String
    Name of the property.
    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