1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GoldenGate
  5. getTrailSequence
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.GoldenGate.getTrailSequence

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides details about a specific Trail Sequence resource in Oracle Cloud Infrastructure Golden Gate service.

Lists the Trail Sequences for a TrailFile in a given deployment.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testTrailSequence = oci.GoldenGate.getTrailSequence({
    deploymentId: testDeployment.id,
    trailFileId: testTrailFile.id,
    displayName: trailSequenceDisplayName,
    trailSequenceId: testTrailSequenceOciGoldenGateTrailSequence.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_trail_sequence = oci.GoldenGate.get_trail_sequence(deployment_id=test_deployment["id"],
    trail_file_id=test_trail_file["id"],
    display_name=trail_sequence_display_name,
    trail_sequence_id=test_trail_sequence_oci_golden_gate_trail_sequence["id"])
Copy
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.GetTrailSequence(ctx, &goldengate.GetTrailSequenceArgs{
			DeploymentId:    testDeployment.Id,
			TrailFileId:     testTrailFile.Id,
			DisplayName:     trailSequenceDisplayName,
			TrailSequenceId: testTrailSequenceOciGoldenGateTrailSequence.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testTrailSequence = Oci.GoldenGate.GetTrailSequence.Invoke(new()
    {
        DeploymentId = testDeployment.Id,
        TrailFileId = testTrailFile.Id,
        DisplayName = trailSequenceDisplayName,
        TrailSequenceId = testTrailSequenceOciGoldenGateTrailSequence.Id,
    });

});
Copy
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.GetTrailSequenceArgs;
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 testTrailSequence = GoldenGateFunctions.getTrailSequence(GetTrailSequenceArgs.builder()
            .deploymentId(testDeployment.id())
            .trailFileId(testTrailFile.id())
            .displayName(trailSequenceDisplayName)
            .trailSequenceId(testTrailSequenceOciGoldenGateTrailSequence.id())
            .build());

    }
}
Copy
variables:
  testTrailSequence:
    fn::invoke:
      function: oci:GoldenGate:getTrailSequence
      arguments:
        deploymentId: ${testDeployment.id}
        trailFileId: ${testTrailFile.id}
        displayName: ${trailSequenceDisplayName}
        trailSequenceId: ${testTrailSequenceOciGoldenGateTrailSequence.id}
Copy

Using getTrailSequence

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 getTrailSequence(args: GetTrailSequenceArgs, opts?: InvokeOptions): Promise<GetTrailSequenceResult>
function getTrailSequenceOutput(args: GetTrailSequenceOutputArgs, opts?: InvokeOptions): Output<GetTrailSequenceResult>
Copy
def get_trail_sequence(deployment_id: Optional[str] = None,
                       display_name: Optional[str] = None,
                       trail_file_id: Optional[str] = None,
                       trail_sequence_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetTrailSequenceResult
def get_trail_sequence_output(deployment_id: Optional[pulumi.Input[str]] = None,
                       display_name: Optional[pulumi.Input[str]] = None,
                       trail_file_id: Optional[pulumi.Input[str]] = None,
                       trail_sequence_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetTrailSequenceResult]
Copy
func GetTrailSequence(ctx *Context, args *GetTrailSequenceArgs, opts ...InvokeOption) (*GetTrailSequenceResult, error)
func GetTrailSequenceOutput(ctx *Context, args *GetTrailSequenceOutputArgs, opts ...InvokeOption) GetTrailSequenceResultOutput
Copy

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

public static class GetTrailSequence 
{
    public static Task<GetTrailSequenceResult> InvokeAsync(GetTrailSequenceArgs args, InvokeOptions? opts = null)
    public static Output<GetTrailSequenceResult> Invoke(GetTrailSequenceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTrailSequenceResult> getTrailSequence(GetTrailSequenceArgs args, InvokeOptions options)
public static Output<GetTrailSequenceResult> getTrailSequence(GetTrailSequenceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:GoldenGate/getTrailSequence:getTrailSequence
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DeploymentId This property is required. string
A unique Deployment identifier.
DisplayName This property is required. string
A filter to return only the resources that match the entire 'displayName' given.
TrailFileId This property is required. string
A Trail File identifier
TrailSequenceId This property is required. string
A Trail Sequence identifier
DeploymentId This property is required. string
A unique Deployment identifier.
DisplayName This property is required. string
A filter to return only the resources that match the entire 'displayName' given.
TrailFileId This property is required. string
A Trail File identifier
TrailSequenceId This property is required. string
A Trail Sequence identifier
deploymentId This property is required. String
A unique Deployment identifier.
displayName This property is required. String
A filter to return only the resources that match the entire 'displayName' given.
trailFileId This property is required. String
A Trail File identifier
trailSequenceId This property is required. String
A Trail Sequence identifier
deploymentId This property is required. string
A unique Deployment identifier.
displayName This property is required. string
A filter to return only the resources that match the entire 'displayName' given.
trailFileId This property is required. string
A Trail File identifier
trailSequenceId This property is required. string
A Trail Sequence identifier
deployment_id This property is required. str
A unique Deployment identifier.
display_name This property is required. str
A filter to return only the resources that match the entire 'displayName' given.
trail_file_id This property is required. str
A Trail File identifier
trail_sequence_id This property is required. str
A Trail Sequence identifier
deploymentId This property is required. String
A unique Deployment identifier.
displayName This property is required. String
A filter to return only the resources that match the entire 'displayName' given.
trailFileId This property is required. String
A Trail File identifier
trailSequenceId This property is required. String
A Trail Sequence identifier

getTrailSequence 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.
Items List<GetTrailSequenceItem>
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.
TrailFileId string
TrailSequenceId string
DeploymentId string
DisplayName string
An object's Display Name.
Id string
The provider-assigned unique ID for this managed resource.
Items []GetTrailSequenceItem
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.
TrailFileId string
TrailSequenceId string
deploymentId String
displayName String
An object's Display Name.
id String
The provider-assigned unique ID for this managed resource.
items List<GetTrailSequenceItem>
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.
trailFileId String
trailSequenceId String
deploymentId string
displayName string
An object's Display Name.
id string
The provider-assigned unique ID for this managed resource.
items GetTrailSequenceItem[]
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.
trailFileId string
trailSequenceId string
deployment_id str
display_name str
An object's Display Name.
id str
The provider-assigned unique ID for this managed resource.
items Sequence[goldengate.GetTrailSequenceItem]
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.
trail_file_id str
trail_sequence_id str
deploymentId String
displayName String
An object's Display Name.
id String
The provider-assigned unique ID for this managed resource.
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.
trailFileId String
trailSequenceId String

Supporting Types

GetTrailSequenceItem

DisplayName This property is required. string
A filter to return only the resources that match the entire 'displayName' given.
SequenceId This property is required. string
Sequence Id
SizeInBytes This property is required. double
The size of the backup stored in object storage (in bytes)
TimeLastUpdated This property is required. string
The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
DisplayName This property is required. string
A filter to return only the resources that match the entire 'displayName' given.
SequenceId This property is required. string
Sequence Id
SizeInBytes This property is required. float64
The size of the backup stored in object storage (in bytes)
TimeLastUpdated This property is required. string
The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
displayName This property is required. String
A filter to return only the resources that match the entire 'displayName' given.
sequenceId This property is required. String
Sequence Id
sizeInBytes This property is required. Double
The size of the backup stored in object storage (in bytes)
timeLastUpdated This property is required. String
The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
displayName This property is required. string
A filter to return only the resources that match the entire 'displayName' given.
sequenceId This property is required. string
Sequence Id
sizeInBytes This property is required. number
The size of the backup stored in object storage (in bytes)
timeLastUpdated This property is required. string
The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
display_name This property is required. str
A filter to return only the resources that match the entire 'displayName' given.
sequence_id This property is required. str
Sequence Id
size_in_bytes This property is required. float
The size of the backup stored in object storage (in bytes)
time_last_updated This property is required. str
The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
displayName This property is required. String
A filter to return only the resources that match the entire 'displayName' given.
sequenceId This property is required. String
Sequence Id
sizeInBytes This property is required. Number
The size of the backup stored in object storage (in bytes)
timeLastUpdated This property is required. 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi