1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GoldenGate
  5. getConnectionAssignment
Oracle Cloud Infrastructure v1.23.0 published on Thursday, Feb 15, 2024 by Pulumi

oci.GoldenGate.getConnectionAssignment

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.23.0 published on Thursday, Feb 15, 2024 by Pulumi

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

    Retrieves a Connection Assignment.

    Example Usage

    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 = oci_golden_gate_connection_assignment.Test_connection_assignment.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.GetConnectionAssignment(ctx, &goldengate.GetConnectionAssignmentArgs{
    			ConnectionAssignmentId: oci_golden_gate_connection_assignment.Test_connection_assignment.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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(oci_golden_gate_connection_assignment.test_connection_assignment().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_connection_assignment = oci.GoldenGate.get_connection_assignment(connection_assignment_id=oci_golden_gate_connection_assignment["test_connection_assignment"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testConnectionAssignment = oci.GoldenGate.getConnectionAssignment({
        connectionAssignmentId: oci_golden_gate_connection_assignment.test_connection_assignment.id,
    });
    
    variables:
      testConnectionAssignment:
        fn::invoke:
          Function: oci:GoldenGate:getConnectionAssignment
          Arguments:
            connectionAssignmentId: ${oci_golden_gate_connection_assignment.test_connection_assignment.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 GetConnectionAssignment(ctx *Context, args *GetConnectionAssignmentArgs, opts ...InvokeOption) (*GetConnectionAssignmentResult, error)
    func GetConnectionAssignmentOutput(ctx *Context, args *GetConnectionAssignmentOutputArgs, opts ...InvokeOption) GetConnectionAssignmentResultOutput

    > Note: This function is named GetConnectionAssignment 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:GoldenGate/getConnectionAssignment:getConnectionAssignment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConnectionAssignmentId string
    The OCID of the Connection Assignment.
    ConnectionAssignmentId string
    The OCID of the Connection Assignment.
    connectionAssignmentId String
    The OCID of the Connection Assignment.
    connectionAssignmentId string
    The OCID of the Connection Assignment.
    connection_assignment_id str
    The OCID of the Connection Assignment.
    connectionAssignmentId String
    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.
    ConnectionAssignmentId string
    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.
    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.
    ConnectionAssignmentId string
    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.
    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.
    connectionAssignmentId String
    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.
    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.
    connectionAssignmentId string
    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.
    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_id str
    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.
    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.
    connectionAssignmentId String
    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.
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.23.0 published on Thursday, Feb 15, 2024 by Pulumi