1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GoldenGate
  5. getTrailSequences
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.GoldenGate.getTrailSequences

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

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

    Lists the Trail Sequences for a TrailFile in a given 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 testTrailSequences = oci.GoldenGate.getTrailSequences({
        deploymentId: testDeployment.id,
        trailFileId: testTrailFile.id,
        displayName: trailSequenceDisplayName,
        trailSequenceId: testTrailSequence.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_trail_sequences = oci.GoldenGate.get_trail_sequences(deployment_id=test_deployment["id"],
        trail_file_id=test_trail_file["id"],
        display_name=trail_sequence_display_name,
        trail_sequence_id=test_trail_sequence["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/GoldenGate"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := GoldenGate.GetTrailSequences(ctx, &goldengate.GetTrailSequencesArgs{
    			DeploymentId:    testDeployment.Id,
    			TrailFileId:     testTrailFile.Id,
    			DisplayName:     trailSequenceDisplayName,
    			TrailSequenceId: testTrailSequence.Id,
    		}, 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 testTrailSequences = Oci.GoldenGate.GetTrailSequences.Invoke(new()
        {
            DeploymentId = testDeployment.Id,
            TrailFileId = testTrailFile.Id,
            DisplayName = trailSequenceDisplayName,
            TrailSequenceId = testTrailSequence.Id,
        });
    
    });
    
    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.GetTrailSequencesArgs;
    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 testTrailSequences = GoldenGateFunctions.getTrailSequences(GetTrailSequencesArgs.builder()
                .deploymentId(testDeployment.id())
                .trailFileId(testTrailFile.id())
                .displayName(trailSequenceDisplayName)
                .trailSequenceId(testTrailSequence.id())
                .build());
    
        }
    }
    
    variables:
      testTrailSequences:
        fn::invoke:
          Function: oci:GoldenGate:getTrailSequences
          Arguments:
            deploymentId: ${testDeployment.id}
            trailFileId: ${testTrailFile.id}
            displayName: ${trailSequenceDisplayName}
            trailSequenceId: ${testTrailSequence.id}
    

    Using getTrailSequences

    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 getTrailSequences(args: GetTrailSequencesArgs, opts?: InvokeOptions): Promise<GetTrailSequencesResult>
    function getTrailSequencesOutput(args: GetTrailSequencesOutputArgs, opts?: InvokeOptions): Output<GetTrailSequencesResult>
    def get_trail_sequences(deployment_id: Optional[str] = None,
                            display_name: Optional[str] = None,
                            filters: Optional[Sequence[_goldengate.GetTrailSequencesFilter]] = None,
                            trail_file_id: Optional[str] = None,
                            trail_sequence_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetTrailSequencesResult
    def get_trail_sequences_output(deployment_id: Optional[pulumi.Input[str]] = None,
                            display_name: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_goldengate.GetTrailSequencesFilterArgs]]]] = None,
                            trail_file_id: Optional[pulumi.Input[str]] = None,
                            trail_sequence_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetTrailSequencesResult]
    func GetTrailSequences(ctx *Context, args *GetTrailSequencesArgs, opts ...InvokeOption) (*GetTrailSequencesResult, error)
    func GetTrailSequencesOutput(ctx *Context, args *GetTrailSequencesOutputArgs, opts ...InvokeOption) GetTrailSequencesResultOutput

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

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

    The following arguments are supported:

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

    getTrailSequences Result

    The following output properties are available:

    DeploymentId string
    DisplayName string
    An object's Display Name.
    Id string
    The provider-assigned unique ID for this managed resource.
    TrailFileId string
    TrailSequenceCollections List<GetTrailSequencesTrailSequenceCollection>
    The list of trail_sequence_collection.
    TrailSequenceId string
    Filters List<GetTrailSequencesFilter>
    DeploymentId string
    DisplayName string
    An object's Display Name.
    Id string
    The provider-assigned unique ID for this managed resource.
    TrailFileId string
    TrailSequenceCollections []GetTrailSequencesTrailSequenceCollection
    The list of trail_sequence_collection.
    TrailSequenceId string
    Filters []GetTrailSequencesFilter
    deploymentId String
    displayName String
    An object's Display Name.
    id String
    The provider-assigned unique ID for this managed resource.
    trailFileId String
    trailSequenceCollections List<GetTrailSequencesTrailSequenceCollection>
    The list of trail_sequence_collection.
    trailSequenceId String
    filters List<GetTrailSequencesFilter>
    deploymentId string
    displayName string
    An object's Display Name.
    id string
    The provider-assigned unique ID for this managed resource.
    trailFileId string
    trailSequenceCollections GetTrailSequencesTrailSequenceCollection[]
    The list of trail_sequence_collection.
    trailSequenceId string
    filters GetTrailSequencesFilter[]
    deployment_id str
    display_name str
    An object's Display Name.
    id str
    The provider-assigned unique ID for this managed resource.
    trail_file_id str
    trail_sequence_collections Sequence[goldengate.GetTrailSequencesTrailSequenceCollection]
    The list of trail_sequence_collection.
    trail_sequence_id str
    filters Sequence[goldengate.GetTrailSequencesFilter]
    deploymentId String
    displayName String
    An object's Display Name.
    id String
    The provider-assigned unique ID for this managed resource.
    trailFileId String
    trailSequenceCollections List<Property Map>
    The list of trail_sequence_collection.
    trailSequenceId String
    filters List<Property Map>

    Supporting Types

    GetTrailSequencesFilter

    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

    GetTrailSequencesTrailSequenceCollection

    Items List<GetTrailSequencesTrailSequenceCollectionItem>
    An array of TrailSequences.
    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 []GetTrailSequencesTrailSequenceCollectionItem
    An array of TrailSequences.
    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<GetTrailSequencesTrailSequenceCollectionItem>
    An array of TrailSequences.
    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 GetTrailSequencesTrailSequenceCollectionItem[]
    An array of TrailSequences.
    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.GetTrailSequencesTrailSequenceCollectionItem]
    An array of TrailSequences.
    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 TrailSequences.
    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.

    GetTrailSequencesTrailSequenceCollectionItem

    DisplayName string
    A filter to return only the resources that match the entire 'displayName' given.
    SequenceId string
    Sequence Id
    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.
    DisplayName string
    A filter to return only the resources that match the entire 'displayName' given.
    SequenceId string
    Sequence Id
    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.
    displayName String
    A filter to return only the resources that match the entire 'displayName' given.
    sequenceId String
    Sequence Id
    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.
    displayName string
    A filter to return only the resources that match the entire 'displayName' given.
    sequenceId string
    Sequence Id
    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.
    display_name str
    A filter to return only the resources that match the entire 'displayName' given.
    sequence_id str
    Sequence Id
    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.
    displayName String
    A filter to return only the resources that match the entire 'displayName' given.
    sequenceId String
    Sequence Id
    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.

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi