Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.GoldenGate.getTrailFile
Explore with Pulumi AI
This data source provides details about a specific Trail File resource in Oracle Cloud Infrastructure Golden Gate service.
Lists the TrailFiles for a deployment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTrailFile = oci.GoldenGate.getTrailFile({
    deploymentId: testDeployment.id,
    trailFileId: testTrailFileOciGoldenGateTrailFile.id,
    displayName: trailFileDisplayName,
});
import pulumi
import pulumi_oci as oci
test_trail_file = oci.GoldenGate.get_trail_file(deployment_id=test_deployment["id"],
    trail_file_id=test_trail_file_oci_golden_gate_trail_file["id"],
    display_name=trail_file_display_name)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/goldengate"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := goldengate.GetTrailFile(ctx, &goldengate.GetTrailFileArgs{
			DeploymentId: testDeployment.Id,
			TrailFileId:  testTrailFileOciGoldenGateTrailFile.Id,
			DisplayName:  pulumi.StringRef(trailFileDisplayName),
		}, 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 testTrailFile = Oci.GoldenGate.GetTrailFile.Invoke(new()
    {
        DeploymentId = testDeployment.Id,
        TrailFileId = testTrailFileOciGoldenGateTrailFile.Id,
        DisplayName = trailFileDisplayName,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.GoldenGate.GoldenGateFunctions;
import com.pulumi.oci.GoldenGate.inputs.GetTrailFileArgs;
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 testTrailFile = GoldenGateFunctions.getTrailFile(GetTrailFileArgs.builder()
            .deploymentId(testDeployment.id())
            .trailFileId(testTrailFileOciGoldenGateTrailFile.id())
            .displayName(trailFileDisplayName)
            .build());
    }
}
variables:
  testTrailFile:
    fn::invoke:
      function: oci:GoldenGate:getTrailFile
      arguments:
        deploymentId: ${testDeployment.id}
        trailFileId: ${testTrailFileOciGoldenGateTrailFile.id}
        displayName: ${trailFileDisplayName}
Using getTrailFile
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 getTrailFile(args: GetTrailFileArgs, opts?: InvokeOptions): Promise<GetTrailFileResult>
function getTrailFileOutput(args: GetTrailFileOutputArgs, opts?: InvokeOptions): Output<GetTrailFileResult>def get_trail_file(deployment_id: Optional[str] = None,
                   display_name: Optional[str] = None,
                   trail_file_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetTrailFileResult
def get_trail_file_output(deployment_id: Optional[pulumi.Input[str]] = None,
                   display_name: Optional[pulumi.Input[str]] = None,
                   trail_file_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetTrailFileResult]func GetTrailFile(ctx *Context, args *GetTrailFileArgs, opts ...InvokeOption) (*GetTrailFileResult, error)
func GetTrailFileOutput(ctx *Context, args *GetTrailFileOutputArgs, opts ...InvokeOption) GetTrailFileResultOutput> Note: This function is named GetTrailFile in the Go SDK.
public static class GetTrailFile 
{
    public static Task<GetTrailFileResult> InvokeAsync(GetTrailFileArgs args, InvokeOptions? opts = null)
    public static Output<GetTrailFileResult> Invoke(GetTrailFileInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTrailFileResult> getTrailFile(GetTrailFileArgs args, InvokeOptions options)
public static Output<GetTrailFileResult> getTrailFile(GetTrailFileArgs args, InvokeOptions options)
fn::invoke:
  function: oci:GoldenGate/getTrailFile:getTrailFile
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DeploymentId string
- A unique Deployment identifier.
- TrailFile stringId 
- A Trail File identifier
- DisplayName string
- A filter to return only the resources that match the entire 'displayName' given.
- DeploymentId string
- A unique Deployment identifier.
- TrailFile stringId 
- A Trail File identifier
- DisplayName string
- A filter to return only the resources that match the entire 'displayName' given.
- deploymentId String
- A unique Deployment identifier.
- trailFile StringId 
- A Trail File identifier
- displayName String
- A filter to return only the resources that match the entire 'displayName' given.
- deploymentId string
- A unique Deployment identifier.
- trailFile stringId 
- A Trail File identifier
- displayName string
- A filter to return only the resources that match the entire 'displayName' given.
- deployment_id str
- A unique Deployment identifier.
- trail_file_ strid 
- A Trail File identifier
- display_name str
- A filter to return only the resources that match the entire 'displayName' given.
- deploymentId String
- A unique Deployment identifier.
- trailFile StringId 
- A Trail File identifier
- displayName String
- A filter to return only the resources that match the entire 'displayName' given.
getTrailFile Result
The following output properties are available:
- DeploymentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetTrail File Item> 
- An array of TrailFiles.
- TimeLast stringFetched 
- The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TrailFile stringId 
- The TrailFile Id.
- DisplayName string
- An object's Display Name.
- DeploymentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetTrail File Item 
- An array of TrailFiles.
- TimeLast stringFetched 
- The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TrailFile stringId 
- The TrailFile Id.
- DisplayName string
- An object's Display Name.
- deploymentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetTrail File Item> 
- An array of TrailFiles.
- timeLast StringFetched 
- The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- trailFile StringId 
- The TrailFile Id.
- displayName String
- An object's Display Name.
- deploymentId string
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetTrail File Item[] 
- An array of TrailFiles.
- timeLast stringFetched 
- The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- trailFile stringId 
- The TrailFile Id.
- displayName string
- An object's Display Name.
- deployment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetTrail File Item] 
- An array of TrailFiles.
- time_last_ strfetched 
- The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- trail_file_ strid 
- The TrailFile Id.
- display_name str
- An object's Display Name.
- deploymentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- An array of TrailFiles.
- timeLast StringFetched 
- The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- trailFile StringId 
- The TrailFile Id.
- displayName String
- An object's Display Name.
Supporting Types
GetTrailFileItem   
- Consumers List<string>
- array of consumer process names
- DisplayName string
- A filter to return only the resources that match the entire 'displayName' given.
- MaxSequence stringNumber 
- Maximum sequence number
- MinSequence stringNumber 
- Minimum sequence number
- NumberOf intSequences 
- Number of sequences for a specific trail file
- Producer string
- Producer Process Name if any.
- SizeIn doubleBytes 
- The size of the backup stored in object storage (in bytes)
- TimeLast stringUpdated 
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TrailFile stringId 
- A Trail File identifier
- Consumers []string
- array of consumer process names
- DisplayName string
- A filter to return only the resources that match the entire 'displayName' given.
- MaxSequence stringNumber 
- Maximum sequence number
- MinSequence stringNumber 
- Minimum sequence number
- NumberOf intSequences 
- Number of sequences for a specific trail file
- Producer string
- Producer Process Name if any.
- SizeIn float64Bytes 
- The size of the backup stored in object storage (in bytes)
- TimeLast stringUpdated 
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TrailFile stringId 
- A Trail File identifier
- consumers List<String>
- array of consumer process names
- displayName String
- A filter to return only the resources that match the entire 'displayName' given.
- maxSequence StringNumber 
- Maximum sequence number
- minSequence StringNumber 
- Minimum sequence number
- numberOf IntegerSequences 
- Number of sequences for a specific trail file
- producer String
- Producer Process Name if any.
- sizeIn DoubleBytes 
- The size of the backup stored in object storage (in bytes)
- timeLast StringUpdated 
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- trailFile StringId 
- A Trail File identifier
- consumers string[]
- array of consumer process names
- displayName string
- A filter to return only the resources that match the entire 'displayName' given.
- maxSequence stringNumber 
- Maximum sequence number
- minSequence stringNumber 
- Minimum sequence number
- numberOf numberSequences 
- Number of sequences for a specific trail file
- producer string
- Producer Process Name if any.
- sizeIn numberBytes 
- The size of the backup stored in object storage (in bytes)
- timeLast stringUpdated 
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- trailFile stringId 
- A Trail File identifier
- consumers Sequence[str]
- array of consumer process names
- display_name str
- A filter to return only the resources that match the entire 'displayName' given.
- max_sequence_ strnumber 
- Maximum sequence number
- min_sequence_ strnumber 
- Minimum sequence number
- number_of_ intsequences 
- Number of sequences for a specific trail file
- producer str
- Producer Process Name if any.
- size_in_ floatbytes 
- The size of the backup stored in object storage (in bytes)
- time_last_ strupdated 
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- trail_file_ strid 
- A Trail File identifier
- consumers List<String>
- array of consumer process names
- displayName String
- A filter to return only the resources that match the entire 'displayName' given.
- maxSequence StringNumber 
- Maximum sequence number
- minSequence StringNumber 
- Minimum sequence number
- numberOf NumberSequences 
- Number of sequences for a specific trail file
- producer String
- Producer Process Name if any.
- sizeIn NumberBytes 
- The size of the backup stored in object storage (in bytes)
- timeLast StringUpdated 
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- trailFile StringId 
- A Trail File identifier
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.