1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GoldenGate
  5. getConnectionAssignments
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.GoldenGate.getConnectionAssignments

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides the list of Connection Assignments in Oracle Cloud Infrastructure Golden Gate service.

Lists the Connection Assignments in the compartment.

Example Usage

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

const testConnectionAssignments = oci.GoldenGate.getConnectionAssignments({
    compartmentId: compartmentId,
    connectionId: testConnection.id,
    deploymentId: testDeployment.id,
    name: connectionAssignmentName,
    state: connectionAssignmentState,
});
Copy
import pulumi
import pulumi_oci as oci

test_connection_assignments = oci.GoldenGate.get_connection_assignments(compartment_id=compartment_id,
    connection_id=test_connection["id"],
    deployment_id=test_deployment["id"],
    name=connection_assignment_name,
    state=connection_assignment_state)
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.GetConnectionAssignments(ctx, &goldengate.GetConnectionAssignmentsArgs{
			CompartmentId: compartmentId,
			ConnectionId:  pulumi.StringRef(testConnection.Id),
			DeploymentId:  pulumi.StringRef(testDeployment.Id),
			Name:          pulumi.StringRef(connectionAssignmentName),
			State:         pulumi.StringRef(connectionAssignmentState),
		}, 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 testConnectionAssignments = Oci.GoldenGate.GetConnectionAssignments.Invoke(new()
    {
        CompartmentId = compartmentId,
        ConnectionId = testConnection.Id,
        DeploymentId = testDeployment.Id,
        Name = connectionAssignmentName,
        State = connectionAssignmentState,
    });

});
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.GetConnectionAssignmentsArgs;
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 testConnectionAssignments = GoldenGateFunctions.getConnectionAssignments(GetConnectionAssignmentsArgs.builder()
            .compartmentId(compartmentId)
            .connectionId(testConnection.id())
            .deploymentId(testDeployment.id())
            .name(connectionAssignmentName)
            .state(connectionAssignmentState)
            .build());

    }
}
Copy
variables:
  testConnectionAssignments:
    fn::invoke:
      function: oci:GoldenGate:getConnectionAssignments
      arguments:
        compartmentId: ${compartmentId}
        connectionId: ${testConnection.id}
        deploymentId: ${testDeployment.id}
        name: ${connectionAssignmentName}
        state: ${connectionAssignmentState}
Copy

Using getConnectionAssignments

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 getConnectionAssignments(args: GetConnectionAssignmentsArgs, opts?: InvokeOptions): Promise<GetConnectionAssignmentsResult>
function getConnectionAssignmentsOutput(args: GetConnectionAssignmentsOutputArgs, opts?: InvokeOptions): Output<GetConnectionAssignmentsResult>
Copy
def get_connection_assignments(compartment_id: Optional[str] = None,
                               connection_id: Optional[str] = None,
                               deployment_id: Optional[str] = None,
                               filters: Optional[Sequence[_goldengate.GetConnectionAssignmentsFilter]] = None,
                               name: Optional[str] = None,
                               state: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetConnectionAssignmentsResult
def get_connection_assignments_output(compartment_id: Optional[pulumi.Input[str]] = None,
                               connection_id: Optional[pulumi.Input[str]] = None,
                               deployment_id: Optional[pulumi.Input[str]] = None,
                               filters: Optional[pulumi.Input[Sequence[pulumi.Input[_goldengate.GetConnectionAssignmentsFilterArgs]]]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               state: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetConnectionAssignmentsResult]
Copy
func GetConnectionAssignments(ctx *Context, args *GetConnectionAssignmentsArgs, opts ...InvokeOption) (*GetConnectionAssignmentsResult, error)
func GetConnectionAssignmentsOutput(ctx *Context, args *GetConnectionAssignmentsOutputArgs, opts ...InvokeOption) GetConnectionAssignmentsResultOutput
Copy

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

public static class GetConnectionAssignments 
{
    public static Task<GetConnectionAssignmentsResult> InvokeAsync(GetConnectionAssignmentsArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectionAssignmentsResult> Invoke(GetConnectionAssignmentsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetConnectionAssignmentsResult> getConnectionAssignments(GetConnectionAssignmentsArgs args, InvokeOptions options)
public static Output<GetConnectionAssignmentsResult> getConnectionAssignments(GetConnectionAssignmentsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:GoldenGate/getConnectionAssignments:getConnectionAssignments
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
ConnectionId string
The OCID of the connection.
DeploymentId string
The OCID of the deployment in which to list resources.
Filters Changes to this property will trigger replacement. List<GetConnectionAssignmentsFilter>
Name string
The name of the connection in the assignment (aliasName).
State string
A filter to return only connection assignments having the 'lifecycleState' given.
CompartmentId This property is required. string
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
ConnectionId string
The OCID of the connection.
DeploymentId string
The OCID of the deployment in which to list resources.
Filters Changes to this property will trigger replacement. []GetConnectionAssignmentsFilter
Name string
The name of the connection in the assignment (aliasName).
State string
A filter to return only connection assignments having the 'lifecycleState' given.
compartmentId This property is required. String
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
connectionId String
The OCID of the connection.
deploymentId String
The OCID of the deployment in which to list resources.
filters Changes to this property will trigger replacement. List<GetConnectionAssignmentsFilter>
name String
The name of the connection in the assignment (aliasName).
state String
A filter to return only connection assignments having the 'lifecycleState' given.
compartmentId This property is required. string
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
connectionId string
The OCID of the connection.
deploymentId string
The OCID of the deployment in which to list resources.
filters Changes to this property will trigger replacement. GetConnectionAssignmentsFilter[]
name string
The name of the connection in the assignment (aliasName).
state string
A filter to return only connection assignments having the 'lifecycleState' given.
compartment_id This property is required. str
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
connection_id str
The OCID of the connection.
deployment_id str
The OCID of the deployment in which to list resources.
filters Changes to this property will trigger replacement. Sequence[goldengate.GetConnectionAssignmentsFilter]
name str
The name of the connection in the assignment (aliasName).
state str
A filter to return only connection assignments having the 'lifecycleState' given.
compartmentId This property is required. String
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
connectionId String
The OCID of the connection.
deploymentId String
The OCID of the deployment in which to list resources.
filters Changes to this property will trigger replacement. List<Property Map>
name String
The name of the connection in the assignment (aliasName).
state String
A filter to return only connection assignments having the 'lifecycleState' given.

getConnectionAssignments Result

The following output properties are available:

CompartmentId string
The OCID of the compartment being referenced.
ConnectionAssignmentCollections List<GetConnectionAssignmentsConnectionAssignmentCollection>
The list of connection_assignment_collection.
Id string
The provider-assigned unique ID for this managed resource.
ConnectionId string
The OCID of the connection being referenced.
DeploymentId string
The OCID of the deployment being referenced.
Filters List<GetConnectionAssignmentsFilter>
Name string
State string
Possible lifecycle states for connection assignments.
CompartmentId string
The OCID of the compartment being referenced.
ConnectionAssignmentCollections []GetConnectionAssignmentsConnectionAssignmentCollection
The list of connection_assignment_collection.
Id string
The provider-assigned unique ID for this managed resource.
ConnectionId string
The OCID of the connection being referenced.
DeploymentId string
The OCID of the deployment being referenced.
Filters []GetConnectionAssignmentsFilter
Name string
State string
Possible lifecycle states for connection assignments.
compartmentId String
The OCID of the compartment being referenced.
connectionAssignmentCollections List<GetConnectionAssignmentsConnectionAssignmentCollection>
The list of connection_assignment_collection.
id String
The provider-assigned unique ID for this managed resource.
connectionId String
The OCID of the connection being referenced.
deploymentId String
The OCID of the deployment being referenced.
filters List<GetConnectionAssignmentsFilter>
name String
state String
Possible lifecycle states for connection assignments.
compartmentId string
The OCID of the compartment being referenced.
connectionAssignmentCollections GetConnectionAssignmentsConnectionAssignmentCollection[]
The list of connection_assignment_collection.
id string
The provider-assigned unique ID for this managed resource.
connectionId string
The OCID of the connection being referenced.
deploymentId string
The OCID of the deployment being referenced.
filters GetConnectionAssignmentsFilter[]
name string
state string
Possible lifecycle states for connection assignments.
compartment_id str
The OCID of the compartment being referenced.
connection_assignment_collections Sequence[goldengate.GetConnectionAssignmentsConnectionAssignmentCollection]
The list of connection_assignment_collection.
id str
The provider-assigned unique ID for this managed resource.
connection_id str
The OCID of the connection being referenced.
deployment_id str
The OCID of the deployment being referenced.
filters Sequence[goldengate.GetConnectionAssignmentsFilter]
name str
state str
Possible lifecycle states for connection assignments.
compartmentId String
The OCID of the compartment being referenced.
connectionAssignmentCollections List<Property Map>
The list of connection_assignment_collection.
id String
The provider-assigned unique ID for this managed resource.
connectionId String
The OCID of the connection being referenced.
deploymentId String
The OCID of the deployment being referenced.
filters List<Property Map>
name String
state String
Possible lifecycle states for connection assignments.

Supporting Types

GetConnectionAssignmentsConnectionAssignmentCollection

items This property is required. List<Property Map>

GetConnectionAssignmentsConnectionAssignmentCollectionItem

AliasName This property is required. string
Credential store alias.
CompartmentId This property is required. string
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
ConnectionId This property is required. string
The OCID of the connection.
DeploymentId This property is required. string
The OCID of the deployment in which to list resources.
Id This property is required. string
The OCID of the connection assignment being referenced.
IsLockOverride This property is required. bool
State This property is required. string
A filter to return only connection assignments having the 'lifecycleState' given.
TimeCreated This property is required. string
The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
TimeUpdated 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.
AliasName This property is required. string
Credential store alias.
CompartmentId This property is required. string
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
ConnectionId This property is required. string
The OCID of the connection.
DeploymentId This property is required. string
The OCID of the deployment in which to list resources.
Id This property is required. string
The OCID of the connection assignment being referenced.
IsLockOverride This property is required. bool
State This property is required. string
A filter to return only connection assignments having the 'lifecycleState' given.
TimeCreated This property is required. string
The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
TimeUpdated 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.
aliasName This property is required. String
Credential store alias.
compartmentId This property is required. String
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
connectionId This property is required. String
The OCID of the connection.
deploymentId This property is required. String
The OCID of the deployment in which to list resources.
id This property is required. String
The OCID of the connection assignment being referenced.
isLockOverride This property is required. Boolean
state This property is required. String
A filter to return only connection assignments having the 'lifecycleState' given.
timeCreated This property is required. String
The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
timeUpdated 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.
aliasName This property is required. string
Credential store alias.
compartmentId This property is required. string
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
connectionId This property is required. string
The OCID of the connection.
deploymentId This property is required. string
The OCID of the deployment in which to list resources.
id This property is required. string
The OCID of the connection assignment being referenced.
isLockOverride This property is required. boolean
state This property is required. string
A filter to return only connection assignments having the 'lifecycleState' given.
timeCreated This property is required. string
The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
timeUpdated 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.
alias_name This property is required. str
Credential store alias.
compartment_id This property is required. str
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
connection_id This property is required. str
The OCID of the connection.
deployment_id This property is required. str
The OCID of the deployment in which to list resources.
id This property is required. str
The OCID of the connection assignment being referenced.
is_lock_override This property is required. bool
state This property is required. str
A filter to return only connection assignments having the 'lifecycleState' given.
time_created This property is required. str
The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
time_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.
aliasName This property is required. String
Credential store alias.
compartmentId This property is required. String
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
connectionId This property is required. String
The OCID of the connection.
deploymentId This property is required. String
The OCID of the deployment in which to list resources.
id This property is required. String
The OCID of the connection assignment being referenced.
isLockOverride This property is required. Boolean
state This property is required. String
A filter to return only connection assignments having the 'lifecycleState' given.
timeCreated This property is required. String
The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
timeUpdated 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.

GetConnectionAssignmentsFilter

Name This property is required. string
The name of the connection in the assignment (aliasName).
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of the connection in the assignment (aliasName).
Values This property is required. []string
Regex bool
name This property is required. String
The name of the connection in the assignment (aliasName).
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of the connection in the assignment (aliasName).
values This property is required. string[]
regex boolean
name This property is required. str
The name of the connection in the assignment (aliasName).
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of the connection in the assignment (aliasName).
values This property is required. List<String>
regex Boolean

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.29.0 published on Wednesday, Apr 9, 2025 by Pulumi