Viewing docs for Oracle Cloud Infrastructure v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi
published on Thursday, Jun 25, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi
published on Thursday, Jun 25, 2026 by Pulumi
This data source provides details about a specific Data File resource in Oracle Cloud Infrastructure Apm Config service.
Retrieves the Data file with the specified name and type.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataFile = oci.apmconfig.getDataFile({
apmDomainId: testApmDomain.id,
apmType: dataFileApmType,
dataFileName: testDataFileOciApmConfigDataFile.name,
});
import pulumi
import pulumi_oci as oci
test_data_file = oci.apmconfig.get_data_file(apm_domain_id=test_apm_domain["id"],
apm_type=data_file_apm_type,
data_file_name=test_data_file_oci_apm_config_data_file["name"])
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.GetDataFile(ctx, &apmconfig.GetDataFileArgs{
ApmDomainId: testApmDomain.Id,
ApmType: dataFileApmType,
DataFileName: testDataFileOciApmConfigDataFile.Name,
}, 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 testDataFile = Oci.ApmConfig.GetDataFile.Invoke(new()
{
ApmDomainId = testApmDomain.Id,
ApmType = dataFileApmType,
DataFileName = testDataFileOciApmConfigDataFile.Name,
});
});
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.GetDataFileArgs;
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 testDataFile = ApmConfigFunctions.getDataFile(GetDataFileArgs.builder()
.apmDomainId(testApmDomain.id())
.apmType(dataFileApmType)
.dataFileName(testDataFileOciApmConfigDataFile.name())
.build());
}
}
variables:
testDataFile:
fn::invoke:
function: oci:ApmConfig:getDataFile
arguments:
apmDomainId: ${testApmDomain.id}
apmType: ${dataFileApmType}
dataFileName: ${testDataFileOciApmConfigDataFile.name}
pulumi {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
data "oci_apmconfig_getdatafile" "testDataFile" {
apm_domain_id = testApmDomain.id
apm_type = dataFileApmType
data_file_name = testDataFileOciApmConfigDataFile.name
}
Using getDataFile
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 getDataFile(args: GetDataFileArgs, opts?: InvokeOptions): Promise<GetDataFileResult>
function getDataFileOutput(args: GetDataFileOutputArgs, opts?: InvokeOptions): Output<GetDataFileResult>def get_data_file(apm_domain_id: Optional[str] = None,
apm_type: Optional[str] = None,
base64_encode_content: Optional[bool] = None,
data_file_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDataFileResult
def get_data_file_output(apm_domain_id: pulumi.Input[Optional[str]] = None,
apm_type: pulumi.Input[Optional[str]] = None,
base64_encode_content: pulumi.Input[Optional[bool]] = None,
data_file_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataFileResult]func LookupDataFile(ctx *Context, args *LookupDataFileArgs, opts ...InvokeOption) (*LookupDataFileResult, error)
func LookupDataFileOutput(ctx *Context, args *LookupDataFileOutputArgs, opts ...InvokeOption) LookupDataFileResultOutput> Note: This function is named LookupDataFile in the Go SDK.
public static class GetDataFile
{
public static Task<GetDataFileResult> InvokeAsync(GetDataFileArgs args, InvokeOptions? opts = null)
public static Output<GetDataFileResult> Invoke(GetDataFileInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataFileResult> getDataFile(GetDataFileArgs args, InvokeOptions options)
public static Output<GetDataFileResult> getDataFile(GetDataFileArgs args, InvokeOptions options)
fn::invoke:
function: oci:ApmConfig/getDataFile:getDataFile
arguments:
# arguments dictionarydata "oci_apmconfig_getdatafile" "name" {
# arguments
}The following arguments are supported:
- Apm
Domain stringId - The APM Domain ID the request is intended for.
- Apm
Type string - The type of the data file.
- Data
File stringName - The name of the data file.
- Base64Encode
Content bool - Encodes the downloaded content in base64.
- Apm
Domain stringId - The APM Domain ID the request is intended for.
- Apm
Type string - The type of the data file.
- Data
File stringName - The name of the data file.
- Base64Encode
Content bool - Encodes the downloaded content in base64.
- apm_
domain_ stringid - The APM Domain ID the request is intended for.
- apm_
type string - The type of the data file.
- data_
file_ stringname - The name of the data file.
- base64_
encode_ boolcontent - Encodes the downloaded content in base64.
- apm
Domain StringId - The APM Domain ID the request is intended for.
- apm
Type String - The type of the data file.
- data
File StringName - The name of the data file.
- base64Encode
Content Boolean - Encodes the downloaded content in base64.
- apm
Domain stringId - The APM Domain ID the request is intended for.
- apm
Type string - The type of the data file.
- data
File stringName - The name of the data file.
- base64Encode
Content boolean - Encodes the downloaded content in base64.
- apm_
domain_ strid - The APM Domain ID the request is intended for.
- apm_
type str - The type of the data file.
- data_
file_ strname - The name of the data file.
- base64_
encode_ boolcontent - Encodes the downloaded content in base64.
- apm
Domain StringId - The APM Domain ID the request is intended for.
- apm
Type String - The type of the data file.
- data
File StringName - The name of the data file.
- base64Encode
Content Boolean - Encodes the downloaded content in base64.
getDataFile Result
The following output properties are available:
- Apm
Domain stringId - Apm
Type string - Content string
- Content
Disposition string - Content
Encoding string - Content
Language string - Content
Length int - Content
Md5 string - Content
Type string - Data
File stringName - Id string
- Metadata Dictionary<string, string>
- Source string
- Time
Last stringModified - Base64Encode
Content bool
- Apm
Domain stringId - Apm
Type string - Content string
- Content
Disposition string - Content
Encoding string - Content
Language string - Content
Length int - Content
Md5 string - Content
Type string - Data
File stringName - Id string
- Metadata map[string]string
- Source string
- Time
Last stringModified - Base64Encode
Content bool
- apm_
domain_ stringid - apm_
type string - content string
- content_
disposition string - content_
encoding string - content_
language string - content_
length number - content_
md5 string - content_
type string - data_
file_ stringname - id string
- metadata map(string)
- source string
- time_
last_ stringmodified - base64_
encode_ boolcontent
- apm
Domain StringId - apm
Type String - content String
- content
Disposition String - content
Encoding String - content
Language String - content
Length Integer - content
Md5 String - content
Type String - data
File StringName - id String
- metadata Map<String,String>
- source String
- time
Last StringModified - base64Encode
Content Boolean
- apm
Domain stringId - apm
Type string - content string
- content
Disposition string - content
Encoding string - content
Language string - content
Length number - content
Md5 string - content
Type string - data
File stringName - id string
- metadata {[key: string]: string}
- source string
- time
Last stringModified - base64Encode
Content boolean
- apm_
domain_ strid - apm_
type str - content str
- content_
disposition str - content_
encoding str - content_
language str - content_
length int - content_
md5 str - content_
type str - data_
file_ strname - id str
- metadata Mapping[str, str]
- source str
- time_
last_ strmodified - base64_
encode_ boolcontent
- apm
Domain StringId - apm
Type String - content String
- content
Disposition String - content
Encoding String - content
Language String - content
Length Number - content
Md5 String - content
Type String - data
File StringName - id String
- metadata Map<String>
- source String
- time
Last StringModified - base64Encode
Content Boolean
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi
published on Thursday, Jun 25, 2026 by Pulumi