1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. ApmConfig
  6. getDataFiles
Viewing docs for Oracle Cloud Infrastructure v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi

    This data source provides the list of Data Files in Oracle Cloud Infrastructure Apm Config service.

    Fetches a list of Data files using some parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDataFiles = oci.apmconfig.getDataFiles({
        apmDomainId: testApmDomain.id,
        apmType: dataFileApmType,
        metadata: dataFileMetadata,
        name: dataFileName,
        timeLastModifiedAfter: dataFileTimeLastModifiedAfter,
        timeLastModifiedBefore: dataFileTimeLastModifiedBefore,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_data_files = oci.apmconfig.get_data_files(apm_domain_id=test_apm_domain["id"],
        apm_type=data_file_apm_type,
        metadata=data_file_metadata,
        name=data_file_name,
        time_last_modified_after=data_file_time_last_modified_after,
        time_last_modified_before=data_file_time_last_modified_before)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/apmconfig"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := apmconfig.GetDataFiles(ctx, &apmconfig.GetDataFilesArgs{
    			ApmDomainId:            testApmDomain.Id,
    			ApmType:                pulumi.StringRef(dataFileApmType),
    			Metadata:               pulumi.ToMap(dataFileMetadata),
    			Name:                   pulumi.StringRef(dataFileName),
    			TimeLastModifiedAfter:  pulumi.StringRef(dataFileTimeLastModifiedAfter),
    			TimeLastModifiedBefore: pulumi.StringRef(dataFileTimeLastModifiedBefore),
    		}, 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 testDataFiles = Oci.ApmConfig.GetDataFiles.Invoke(new()
        {
            ApmDomainId = testApmDomain.Id,
            ApmType = dataFileApmType,
            Metadata = dataFileMetadata,
            Name = dataFileName,
            TimeLastModifiedAfter = dataFileTimeLastModifiedAfter,
            TimeLastModifiedBefore = dataFileTimeLastModifiedBefore,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ApmConfig.ApmConfigFunctions;
    import com.pulumi.oci.ApmConfig.inputs.GetDataFilesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testDataFiles = ApmConfigFunctions.getDataFiles(GetDataFilesArgs.builder()
                .apmDomainId(testApmDomain.id())
                .apmType(dataFileApmType)
                .metadata(dataFileMetadata)
                .name(dataFileName)
                .timeLastModifiedAfter(dataFileTimeLastModifiedAfter)
                .timeLastModifiedBefore(dataFileTimeLastModifiedBefore)
                .build());
    
        }
    }
    
    variables:
      testDataFiles:
        fn::invoke:
          function: oci:ApmConfig:getDataFiles
          arguments:
            apmDomainId: ${testApmDomain.id}
            apmType: ${dataFileApmType}
            metadata: ${dataFileMetadata}
            name: ${dataFileName}
            timeLastModifiedAfter: ${dataFileTimeLastModifiedAfter}
            timeLastModifiedBefore: ${dataFileTimeLastModifiedBefore}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_apmconfig_getdatafiles" "testDataFiles" {
      apm_domain_id             = testApmDomain.id
      apm_type                  = dataFileApmType
      metadata                  = dataFileMetadata
      name                      = dataFileName
      time_last_modified_after  = dataFileTimeLastModifiedAfter
      time_last_modified_before = dataFileTimeLastModifiedBefore
    }
    

    Using getDataFiles

    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 getDataFiles(args: GetDataFilesArgs, opts?: InvokeOptions): Promise<GetDataFilesResult>
    function getDataFilesOutput(args: GetDataFilesOutputArgs, opts?: InvokeOptions): Output<GetDataFilesResult>
    def get_data_files(apm_domain_id: Optional[str] = None,
                       apm_type: Optional[str] = None,
                       filters: Optional[Sequence[GetDataFilesFilter]] = None,
                       metadata: Optional[Mapping[str, str]] = None,
                       name: Optional[str] = None,
                       time_last_modified_after: Optional[str] = None,
                       time_last_modified_before: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDataFilesResult
    def get_data_files_output(apm_domain_id: pulumi.Input[Optional[str]] = None,
                       apm_type: pulumi.Input[Optional[str]] = None,
                       filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDataFilesFilterArgs]]]] = None,
                       metadata: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                       name: pulumi.Input[Optional[str]] = None,
                       time_last_modified_after: pulumi.Input[Optional[str]] = None,
                       time_last_modified_before: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDataFilesResult]
    func GetDataFiles(ctx *Context, args *GetDataFilesArgs, opts ...InvokeOption) (*GetDataFilesResult, error)
    func GetDataFilesOutput(ctx *Context, args *GetDataFilesOutputArgs, opts ...InvokeOption) GetDataFilesResultOutput

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

    public static class GetDataFiles 
    {
        public static Task<GetDataFilesResult> InvokeAsync(GetDataFilesArgs args, InvokeOptions? opts = null)
        public static Output<GetDataFilesResult> Invoke(GetDataFilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataFilesResult> getDataFiles(GetDataFilesArgs args, InvokeOptions options)
    public static Output<GetDataFilesResult> getDataFiles(GetDataFilesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:ApmConfig/getDataFiles:getDataFiles
      arguments:
        # arguments dictionary
    data "oci_apmconfig_getdatafiles" "name" {
        # arguments
    }

    The following arguments are supported:

    ApmDomainId string
    The APM Domain ID the request is intended for.
    ApmType string
    The type of the data file.
    Filters List<GetDataFilesFilter>
    Metadata Dictionary<string, string>
    Optional user-defined metadata key and value to search by.
    Name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    TimeLastModifiedAfter string
    Return data files with the 'timeLastModified' after the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    TimeLastModifiedBefore string
    Return data files with time 'timeLastModified' before the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    ApmDomainId string
    The APM Domain ID the request is intended for.
    ApmType string
    The type of the data file.
    Filters []GetDataFilesFilter
    Metadata map[string]string
    Optional user-defined metadata key and value to search by.
    Name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    TimeLastModifiedAfter string
    Return data files with the 'timeLastModified' after the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    TimeLastModifiedBefore string
    Return data files with time 'timeLastModified' before the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    apm_domain_id string
    The APM Domain ID the request is intended for.
    apm_type string
    The type of the data file.
    filters list(object)
    metadata map(string)
    Optional user-defined metadata key and value to search by.
    name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    time_last_modified_after string
    Return data files with the 'timeLastModified' after the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    time_last_modified_before string
    Return data files with time 'timeLastModified' before the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    apmDomainId String
    The APM Domain ID the request is intended for.
    apmType String
    The type of the data file.
    filters List<GetDataFilesFilter>
    metadata Map<String,String>
    Optional user-defined metadata key and value to search by.
    name String
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    timeLastModifiedAfter String
    Return data files with the 'timeLastModified' after the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    timeLastModifiedBefore String
    Return data files with time 'timeLastModified' before the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    apmDomainId string
    The APM Domain ID the request is intended for.
    apmType string
    The type of the data file.
    filters GetDataFilesFilter[]
    metadata {[key: string]: string}
    Optional user-defined metadata key and value to search by.
    name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    timeLastModifiedAfter string
    Return data files with the 'timeLastModified' after the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    timeLastModifiedBefore string
    Return data files with time 'timeLastModified' before the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    apm_domain_id str
    The APM Domain ID the request is intended for.
    apm_type str
    The type of the data file.
    filters Sequence[GetDataFilesFilter]
    metadata Mapping[str, str]
    Optional user-defined metadata key and value to search by.
    name str
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    time_last_modified_after str
    Return data files with the 'timeLastModified' after the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    time_last_modified_before str
    Return data files with time 'timeLastModified' before the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    apmDomainId String
    The APM Domain ID the request is intended for.
    apmType String
    The type of the data file.
    filters List<Property Map>
    metadata Map<String>
    Optional user-defined metadata key and value to search by.
    name String
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    timeLastModifiedAfter String
    Return data files with the 'timeLastModified' after the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z
    timeLastModifiedBefore String
    Return data files with time 'timeLastModified' before the specified time, expressed in RFC 3339 timestamp format. Example: 2020-02-19T22:47:12.613Z

    getDataFiles Result

    The following output properties are available:

    ApmDomainId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetDataFilesItem>
    ApmType string
    Filters List<GetDataFilesFilter>
    Metadata Dictionary<string, string>
    Name string
    TimeLastModifiedAfter string
    TimeLastModifiedBefore string
    ApmDomainId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetDataFilesItem
    ApmType string
    Filters []GetDataFilesFilter
    Metadata map[string]string
    Name string
    TimeLastModifiedAfter string
    TimeLastModifiedBefore string
    apm_domain_id string
    id string
    The provider-assigned unique ID for this managed resource.
    items list(object)
    apm_type string
    filters list(object)
    metadata map(string)
    name string
    time_last_modified_after string
    time_last_modified_before string
    apmDomainId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetDataFilesItem>
    apmType String
    filters List<GetDataFilesFilter>
    metadata Map<String,String>
    name String
    timeLastModifiedAfter String
    timeLastModifiedBefore String
    apmDomainId string
    id string
    The provider-assigned unique ID for this managed resource.
    items GetDataFilesItem[]
    apmType string
    filters GetDataFilesFilter[]
    metadata {[key: string]: string}
    name string
    timeLastModifiedAfter string
    timeLastModifiedBefore string
    apm_domain_id str
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetDataFilesItem]
    apm_type str
    filters Sequence[GetDataFilesFilter]
    metadata Mapping[str, str]
    name str
    time_last_modified_after str
    time_last_modified_before str
    apmDomainId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    apmType String
    filters List<Property Map>
    metadata Map<String>
    name String
    timeLastModifiedAfter String
    timeLastModifiedBefore String

    Supporting Types

    GetDataFilesFilter

    Name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    Values List<string>
    Regex bool
    Name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    Values []string
    Regex bool
    name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    values list(string)
    regex bool
    name String
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    values List<String>
    regex Boolean
    name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    values string[]
    regex boolean
    name str
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    values Sequence[str]
    regex bool
    name String
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    values List<String>
    regex Boolean

    GetDataFilesItem

    ApmType string
    The type of the data file.
    Md5 string
    Metadata Dictionary<string, string>
    Optional user-defined metadata key and value to search by.
    Name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    SizeInBytes string
    TimeLastModified string
    ApmType string
    The type of the data file.
    Md5 string
    Metadata map[string]string
    Optional user-defined metadata key and value to search by.
    Name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    SizeInBytes string
    TimeLastModified string
    apm_type string
    The type of the data file.
    md5 string
    metadata map(string)
    Optional user-defined metadata key and value to search by.
    name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    size_in_bytes string
    time_last_modified string
    apmType String
    The type of the data file.
    md5 String
    metadata Map<String,String>
    Optional user-defined metadata key and value to search by.
    name String
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    sizeInBytes String
    timeLastModified String
    apmType string
    The type of the data file.
    md5 string
    metadata {[key: string]: string}
    Optional user-defined metadata key and value to search by.
    name string
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    sizeInBytes string
    timeLastModified string
    apm_type str
    The type of the data file.
    md5 str
    metadata Mapping[str, str]
    Optional user-defined metadata key and value to search by.
    name str
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    size_in_bytes str
    time_last_modified str
    apmType String
    The type of the data file.
    md5 String
    metadata Map<String>
    Optional user-defined metadata key and value to search by.
    name String
    A filter to return resources that match the specified name. Supports regular expressions to filter data files.
    sizeInBytes String
    timeLastModified String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.17.0
    published on Thursday, Jun 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial