1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GoldenGate
  5. getTrailFiles
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.GoldenGate.getTrailFiles

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of Trail Files in Oracle Cloud Infrastructure Golden Gate service.

    Lists the TrailFiles for a deployment. Deprecated: Please access trail file management functions directly on OGG console which are available since version Oracle GoldenGate 23c.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTrailFiles = oci.GoldenGate.getTrailFiles({
        deploymentId: testDeployment.id,
        trailFileId: testTrailFile.id,
        displayName: trailFileDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_trail_files = oci.GoldenGate.get_trail_files(deployment_id=test_deployment["id"],
        trail_file_id=test_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.GetTrailFiles(ctx, &goldengate.GetTrailFilesArgs{
    			DeploymentId: testDeployment.Id,
    			TrailFileId:  testTrailFile.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 testTrailFiles = Oci.GoldenGate.GetTrailFiles.Invoke(new()
        {
            DeploymentId = testDeployment.Id,
            TrailFileId = testTrailFile.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.GetTrailFilesArgs;
    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 testTrailFiles = GoldenGateFunctions.getTrailFiles(GetTrailFilesArgs.builder()
                .deploymentId(testDeployment.id())
                .trailFileId(testTrailFile.id())
                .displayName(trailFileDisplayName)
                .build());
    
        }
    }
    
    variables:
      testTrailFiles:
        fn::invoke:
          Function: oci:GoldenGate:getTrailFiles
          Arguments:
            deploymentId: ${testDeployment.id}
            trailFileId: ${testTrailFile.id}
            displayName: ${trailFileDisplayName}
    

    Using getTrailFiles

    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 getTrailFiles(args: GetTrailFilesArgs, opts?: InvokeOptions): Promise<GetTrailFilesResult>
    function getTrailFilesOutput(args: GetTrailFilesOutputArgs, opts?: InvokeOptions): Output<GetTrailFilesResult>
    def get_trail_files(deployment_id: Optional[str] = None,
                        display_name: Optional[str] = None,
                        filters: Optional[Sequence[_goldengate.GetTrailFilesFilter]] = None,
                        trail_file_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetTrailFilesResult
    def get_trail_files_output(deployment_id: Optional[pulumi.Input[str]] = None,
                        display_name: Optional[pulumi.Input[str]] = None,
                        filters: Optional[pulumi.Input[Sequence[pulumi.Input[_goldengate.GetTrailFilesFilterArgs]]]] = None,
                        trail_file_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetTrailFilesResult]
    func GetTrailFiles(ctx *Context, args *GetTrailFilesArgs, opts ...InvokeOption) (*GetTrailFilesResult, error)
    func GetTrailFilesOutput(ctx *Context, args *GetTrailFilesOutputArgs, opts ...InvokeOption) GetTrailFilesResultOutput

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

    public static class GetTrailFiles 
    {
        public static Task<GetTrailFilesResult> InvokeAsync(GetTrailFilesArgs args, InvokeOptions? opts = null)
        public static Output<GetTrailFilesResult> Invoke(GetTrailFilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTrailFilesResult> getTrailFiles(GetTrailFilesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:GoldenGate/getTrailFiles:getTrailFiles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DeploymentId string
    A unique Deployment identifier.
    TrailFileId string
    A Trail File identifier
    DisplayName string
    A filter to return only the resources that match the entire 'displayName' given.
    Filters List<GetTrailFilesFilter>
    DeploymentId string
    A unique Deployment identifier.
    TrailFileId string
    A Trail File identifier
    DisplayName string
    A filter to return only the resources that match the entire 'displayName' given.
    Filters []GetTrailFilesFilter
    deploymentId String
    A unique Deployment identifier.
    trailFileId String
    A Trail File identifier
    displayName String
    A filter to return only the resources that match the entire 'displayName' given.
    filters List<GetTrailFilesFilter>
    deploymentId string
    A unique Deployment identifier.
    trailFileId string
    A Trail File identifier
    displayName string
    A filter to return only the resources that match the entire 'displayName' given.
    filters GetTrailFilesFilter[]
    deployment_id str
    A unique Deployment identifier.
    trail_file_id str
    A Trail File identifier
    display_name str
    A filter to return only the resources that match the entire 'displayName' given.
    filters Sequence[goldengate.GetTrailFilesFilter]
    deploymentId String
    A unique Deployment identifier.
    trailFileId String
    A Trail File identifier
    displayName String
    A filter to return only the resources that match the entire 'displayName' given.
    filters List<Property Map>

    getTrailFiles Result

    The following output properties are available:

    DeploymentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TrailFileCollections List<GetTrailFilesTrailFileCollection>
    The list of trail_file_collection.
    TrailFileId string
    The TrailFile Id.
    DisplayName string
    An object's Display Name.
    Filters List<GetTrailFilesFilter>
    DeploymentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TrailFileCollections []GetTrailFilesTrailFileCollection
    The list of trail_file_collection.
    TrailFileId string
    The TrailFile Id.
    DisplayName string
    An object's Display Name.
    Filters []GetTrailFilesFilter
    deploymentId String
    id String
    The provider-assigned unique ID for this managed resource.
    trailFileCollections List<GetTrailFilesTrailFileCollection>
    The list of trail_file_collection.
    trailFileId String
    The TrailFile Id.
    displayName String
    An object's Display Name.
    filters List<GetTrailFilesFilter>
    deploymentId string
    id string
    The provider-assigned unique ID for this managed resource.
    trailFileCollections GetTrailFilesTrailFileCollection[]
    The list of trail_file_collection.
    trailFileId string
    The TrailFile Id.
    displayName string
    An object's Display Name.
    filters GetTrailFilesFilter[]
    deployment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    trail_file_collections Sequence[goldengate.GetTrailFilesTrailFileCollection]
    The list of trail_file_collection.
    trail_file_id str
    The TrailFile Id.
    display_name str
    An object's Display Name.
    filters Sequence[goldengate.GetTrailFilesFilter]
    deploymentId String
    id String
    The provider-assigned unique ID for this managed resource.
    trailFileCollections List<Property Map>
    The list of trail_file_collection.
    trailFileId String
    The TrailFile Id.
    displayName String
    An object's Display Name.
    filters List<Property Map>

    Supporting Types

    GetTrailFilesFilter

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

    GetTrailFilesTrailFileCollection

    Items List<GetTrailFilesTrailFileCollectionItem>
    An array of TrailFiles.
    TimeLastFetched string
    The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    Items []GetTrailFilesTrailFileCollectionItem
    An array of TrailFiles.
    TimeLastFetched string
    The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    items List<GetTrailFilesTrailFileCollectionItem>
    An array of TrailFiles.
    timeLastFetched String
    The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    items GetTrailFilesTrailFileCollectionItem[]
    An array of TrailFiles.
    timeLastFetched string
    The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    items Sequence[goldengate.GetTrailFilesTrailFileCollectionItem]
    An array of TrailFiles.
    time_last_fetched str
    The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    items List<Property Map>
    An array of TrailFiles.
    timeLastFetched String
    The time the data was last fetched from the deployment. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

    GetTrailFilesTrailFileCollectionItem

    Consumers List<string>
    array of consumer process names
    DisplayName string
    A filter to return only the resources that match the entire 'displayName' given.
    MaxSequenceNumber string
    Maximum sequence number
    MinSequenceNumber string
    Minimum sequence number
    NumberOfSequences int
    Number of sequences for a specific trail file
    Producer string
    Producer Process Name if any.
    SizeInBytes double
    The size of the backup stored in object storage (in bytes)
    TimeLastUpdated string
    The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    TrailFileId string
    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.
    MaxSequenceNumber string
    Maximum sequence number
    MinSequenceNumber string
    Minimum sequence number
    NumberOfSequences int
    Number of sequences for a specific trail file
    Producer string
    Producer Process Name if any.
    SizeInBytes float64
    The size of the backup stored in object storage (in bytes)
    TimeLastUpdated string
    The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    TrailFileId string
    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.
    maxSequenceNumber String
    Maximum sequence number
    minSequenceNumber String
    Minimum sequence number
    numberOfSequences Integer
    Number of sequences for a specific trail file
    producer String
    Producer Process Name if any.
    sizeInBytes Double
    The size of the backup stored in object storage (in bytes)
    timeLastUpdated String
    The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    trailFileId String
    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.
    maxSequenceNumber string
    Maximum sequence number
    minSequenceNumber string
    Minimum sequence number
    numberOfSequences number
    Number of sequences for a specific trail file
    producer string
    Producer Process Name if any.
    sizeInBytes number
    The size of the backup stored in object storage (in bytes)
    timeLastUpdated string
    The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    trailFileId string
    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_number str
    Maximum sequence number
    min_sequence_number str
    Minimum sequence number
    number_of_sequences int
    Number of sequences for a specific trail file
    producer str
    Producer Process Name if any.
    size_in_bytes float
    The size of the backup stored in object storage (in bytes)
    time_last_updated str
    The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    trail_file_id str
    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.
    maxSequenceNumber String
    Maximum sequence number
    minSequenceNumber String
    Minimum sequence number
    numberOfSequences Number
    Number of sequences for a specific trail file
    producer String
    Producer Process Name if any.
    sizeInBytes Number
    The size of the backup stored in object storage (in bytes)
    timeLastUpdated String
    The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    trailFileId String
    A Trail File identifier

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi