Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.GoldenGate.getConnectionAssignment
Explore with Pulumi AI
This data source provides details about a specific Connection Assignment resource in Oracle Cloud Infrastructure Golden Gate service.
Retrieves a Connection Assignment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnectionAssignment = oci.GoldenGate.getConnectionAssignment({
    connectionAssignmentId: testConnectionAssignmentOciGoldenGateConnectionAssignment.id,
});
import pulumi
import pulumi_oci as oci
test_connection_assignment = oci.GoldenGate.get_connection_assignment(connection_assignment_id=test_connection_assignment_oci_golden_gate_connection_assignment["id"])
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.GetConnectionAssignment(ctx, &goldengate.GetConnectionAssignmentArgs{
			ConnectionAssignmentId: testConnectionAssignmentOciGoldenGateConnectionAssignment.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 testConnectionAssignment = Oci.GoldenGate.GetConnectionAssignment.Invoke(new()
    {
        ConnectionAssignmentId = testConnectionAssignmentOciGoldenGateConnectionAssignment.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.GetConnectionAssignmentArgs;
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 testConnectionAssignment = GoldenGateFunctions.getConnectionAssignment(GetConnectionAssignmentArgs.builder()
            .connectionAssignmentId(testConnectionAssignmentOciGoldenGateConnectionAssignment.id())
            .build());
    }
}
variables:
  testConnectionAssignment:
    fn::invoke:
      function: oci:GoldenGate:getConnectionAssignment
      arguments:
        connectionAssignmentId: ${testConnectionAssignmentOciGoldenGateConnectionAssignment.id}
Using getConnectionAssignment
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 getConnectionAssignment(args: GetConnectionAssignmentArgs, opts?: InvokeOptions): Promise<GetConnectionAssignmentResult>
function getConnectionAssignmentOutput(args: GetConnectionAssignmentOutputArgs, opts?: InvokeOptions): Output<GetConnectionAssignmentResult>def get_connection_assignment(connection_assignment_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetConnectionAssignmentResult
def get_connection_assignment_output(connection_assignment_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetConnectionAssignmentResult]func LookupConnectionAssignment(ctx *Context, args *LookupConnectionAssignmentArgs, opts ...InvokeOption) (*LookupConnectionAssignmentResult, error)
func LookupConnectionAssignmentOutput(ctx *Context, args *LookupConnectionAssignmentOutputArgs, opts ...InvokeOption) LookupConnectionAssignmentResultOutput> Note: This function is named LookupConnectionAssignment in the Go SDK.
public static class GetConnectionAssignment 
{
    public static Task<GetConnectionAssignmentResult> InvokeAsync(GetConnectionAssignmentArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectionAssignmentResult> Invoke(GetConnectionAssignmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConnectionAssignmentResult> getConnectionAssignment(GetConnectionAssignmentArgs args, InvokeOptions options)
public static Output<GetConnectionAssignmentResult> getConnectionAssignment(GetConnectionAssignmentArgs args, InvokeOptions options)
fn::invoke:
  function: oci:GoldenGate/getConnectionAssignment:getConnectionAssignment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ConnectionAssignment stringId 
- The OCID of the Connection Assignment.
- ConnectionAssignment stringId 
- The OCID of the Connection Assignment.
- connectionAssignment StringId 
- The OCID of the Connection Assignment.
- connectionAssignment stringId 
- The OCID of the Connection Assignment.
- connection_assignment_ strid 
- The OCID of the Connection Assignment.
- connectionAssignment StringId 
- The OCID of the Connection Assignment.
getConnectionAssignment Result
The following output properties are available:
- AliasName string
- Credential store alias.
- CompartmentId string
- The OCID of the compartment being referenced.
- ConnectionAssignment stringId 
- ConnectionId string
- The OCID of the connection being referenced.
- DeploymentId string
- The OCID of the deployment being referenced.
- Id string
- The OCID of the connection assignment being referenced.
- IsLock boolOverride 
- State string
- Possible lifecycle states for connection assignments.
- TimeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- AliasName string
- Credential store alias.
- CompartmentId string
- The OCID of the compartment being referenced.
- ConnectionAssignment stringId 
- ConnectionId string
- The OCID of the connection being referenced.
- DeploymentId string
- The OCID of the deployment being referenced.
- Id string
- The OCID of the connection assignment being referenced.
- IsLock boolOverride 
- State string
- Possible lifecycle states for connection assignments.
- TimeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- aliasName String
- Credential store alias.
- compartmentId String
- The OCID of the compartment being referenced.
- connectionAssignment StringId 
- connectionId String
- The OCID of the connection being referenced.
- deploymentId String
- The OCID of the deployment being referenced.
- id String
- The OCID of the connection assignment being referenced.
- isLock BooleanOverride 
- state String
- Possible lifecycle states for connection assignments.
- timeCreated String
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated String
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- aliasName string
- Credential store alias.
- compartmentId string
- The OCID of the compartment being referenced.
- connectionAssignment stringId 
- connectionId string
- The OCID of the connection being referenced.
- deploymentId string
- The OCID of the deployment being referenced.
- id string
- The OCID of the connection assignment being referenced.
- isLock booleanOverride 
- state string
- Possible lifecycle states for connection assignments.
- timeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- alias_name str
- Credential store alias.
- compartment_id str
- The OCID of the compartment being referenced.
- connection_assignment_ strid 
- connection_id str
- The OCID of the connection being referenced.
- deployment_id str
- The OCID of the deployment being referenced.
- id str
- The OCID of the connection assignment being referenced.
- is_lock_ booloverride 
- state str
- Possible lifecycle states for connection assignments.
- time_created str
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- time_updated str
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- aliasName String
- Credential store alias.
- compartmentId String
- The OCID of the compartment being referenced.
- connectionAssignment StringId 
- connectionId String
- The OCID of the connection being referenced.
- deploymentId String
- The OCID of the deployment being referenced.
- id String
- The OCID of the connection assignment being referenced.
- isLock BooleanOverride 
- state String
- Possible lifecycle states for connection assignments.
- timeCreated String
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated 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 ociTerraform Provider.