oci.GoldenGate.getConnectionAssignments
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
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testConnectionAssignments = Oci.GoldenGate.GetConnectionAssignments.Invoke(new()
{
CompartmentId = @var.Compartment_id,
ConnectionId = oci_golden_gate_connection.Test_connection.Id,
DeploymentId = oci_golden_gate_deployment.Test_deployment.Id,
Name = @var.Connection_assignment_name,
State = @var.Connection_assignment_state,
});
});
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.GetConnectionAssignments(ctx, &goldengate.GetConnectionAssignmentsArgs{
CompartmentId: _var.Compartment_id,
ConnectionId: pulumi.StringRef(oci_golden_gate_connection.Test_connection.Id),
DeploymentId: pulumi.StringRef(oci_golden_gate_deployment.Test_deployment.Id),
Name: pulumi.StringRef(_var.Connection_assignment_name),
State: pulumi.StringRef(_var.Connection_assignment_state),
}, 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.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(var_.compartment_id())
.connectionId(oci_golden_gate_connection.test_connection().id())
.deploymentId(oci_golden_gate_deployment.test_deployment().id())
.name(var_.connection_assignment_name())
.state(var_.connection_assignment_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_connection_assignments = oci.GoldenGate.get_connection_assignments(compartment_id=var["compartment_id"],
connection_id=oci_golden_gate_connection["test_connection"]["id"],
deployment_id=oci_golden_gate_deployment["test_deployment"]["id"],
name=var["connection_assignment_name"],
state=var["connection_assignment_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnectionAssignments = oci.GoldenGate.getConnectionAssignments({
compartmentId: _var.compartment_id,
connectionId: oci_golden_gate_connection.test_connection.id,
deploymentId: oci_golden_gate_deployment.test_deployment.id,
name: _var.connection_assignment_name,
state: _var.connection_assignment_state,
});
variables:
testConnectionAssignments:
fn::invoke:
Function: oci:GoldenGate:getConnectionAssignments
Arguments:
compartmentId: ${var.compartment_id}
connectionId: ${oci_golden_gate_connection.test_connection.id}
deploymentId: ${oci_golden_gate_deployment.test_deployment.id}
name: ${var.connection_assignment_name}
state: ${var.connection_assignment_state}
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>
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]
func GetConnectionAssignments(ctx *Context, args *GetConnectionAssignmentsArgs, opts ...InvokeOption) (*GetConnectionAssignmentsResult, error)
func GetConnectionAssignmentsOutput(ctx *Context, args *GetConnectionAssignmentsOutputArgs, opts ...InvokeOption) GetConnectionAssignmentsResultOutput
> 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)
}
public static CompletableFuture<GetConnectionAssignmentsResult> getConnectionAssignments(GetConnectionAssignmentsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:GoldenGate/getConnectionAssignments:getConnectionAssignments
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The OCID of the compartment in which to list resources.
- Connection
Id string The OCID of the connection.
- Deployment
Id string The OCID of the deployment in which to list resources.
- Filters
List<Get
Connection Assignments Filter> - 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 string The OCID of the compartment in which to list resources.
- Connection
Id string The OCID of the connection.
- Deployment
Id string The OCID of the deployment in which to list resources.
- Filters
[]Get
Connection Assignments Filter - 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 String The OCID of the compartment in which to list resources.
- connection
Id String The OCID of the connection.
- deployment
Id String The OCID of the deployment in which to list resources.
- filters
List<Get
Connection Assignments Filter> - 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 string The OCID of the compartment in which to list resources.
- connection
Id string The OCID of the connection.
- deployment
Id string The OCID of the deployment in which to list resources.
- filters
Get
Connection Assignments Filter[] - 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 str The OCID of the compartment in which to list resources.
- connection_
id str The OCID of the connection.
- deployment_
id str The OCID of the deployment in which to list resources.
- filters
Get
Connection Assignments Filter] - name str
The name of the connection in the assignment (aliasName).
- state str
A filter to return only connection assignments having the 'lifecycleState' given.
- compartment
Id String The OCID of the compartment in which to list resources.
- connection
Id String The OCID of the connection.
- deployment
Id String The OCID of the deployment in which to list resources.
- filters 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:
- Compartment
Id string The OCID of the compartment being referenced.
- Connection
Assignment List<GetCollections Connection Assignments Connection Assignment Collection> The list of connection_assignment_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Connection
Id string The OCID of the connection being referenced.
- Deployment
Id string The OCID of the deployment being referenced.
- Filters
List<Get
Connection Assignments Filter> - Name string
- State string
Possible lifecycle states for connection assignments.
- Compartment
Id string The OCID of the compartment being referenced.
- Connection
Assignment []GetCollections Connection Assignments Connection Assignment Collection The list of connection_assignment_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Connection
Id string The OCID of the connection being referenced.
- Deployment
Id string The OCID of the deployment being referenced.
- Filters
[]Get
Connection Assignments Filter - Name string
- State string
Possible lifecycle states for connection assignments.
- compartment
Id String The OCID of the compartment being referenced.
- connection
Assignment List<GetCollections Connection Assignments Connection Assignment Collection> The list of connection_assignment_collection.
- id String
The provider-assigned unique ID for this managed resource.
- connection
Id String The OCID of the connection being referenced.
- deployment
Id String The OCID of the deployment being referenced.
- filters
List<Get
Connection Assignments Filter> - name String
- state String
Possible lifecycle states for connection assignments.
- compartment
Id string The OCID of the compartment being referenced.
- connection
Assignment GetCollections Connection Assignments Connection Assignment Collection[] The list of connection_assignment_collection.
- id string
The provider-assigned unique ID for this managed resource.
- connection
Id string The OCID of the connection being referenced.
- deployment
Id string The OCID of the deployment being referenced.
- filters
Get
Connection Assignments Filter[] - name string
- state string
Possible lifecycle states for connection assignments.
- compartment_
id str The OCID of the compartment being referenced.
- connection_
assignment_ Getcollections Connection Assignments Connection Assignment Collection] 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
Get
Connection Assignments Filter] - name str
- state str
Possible lifecycle states for connection assignments.
- compartment
Id String The OCID of the compartment being referenced.
- connection
Assignment List<Property Map>Collections The list of connection_assignment_collection.
- id String
The provider-assigned unique ID for this managed resource.
- connection
Id String The OCID of the connection being referenced.
- deployment
Id 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
GetConnectionAssignmentsConnectionAssignmentCollectionItem
- Alias
Name string Credential store alias.
- Compartment
Id string The OCID of the compartment in which to list resources.
- Connection
Id string The OCID of the connection.
- Deployment
Id string The OCID of the deployment in which to list resources.
- Id string
The OCID of the connection assignment being referenced.
- State string
A filter to return only connection assignments having the 'lifecycleState' given.
- Time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Updated string The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- Alias
Name string Credential store alias.
- Compartment
Id string The OCID of the compartment in which to list resources.
- Connection
Id string The OCID of the connection.
- Deployment
Id string The OCID of the deployment in which to list resources.
- Id string
The OCID of the connection assignment being referenced.
- State string
A filter to return only connection assignments having the 'lifecycleState' given.
- Time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Updated string The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- alias
Name String Credential store alias.
- compartment
Id String The OCID of the compartment in which to list resources.
- connection
Id String The OCID of the connection.
- deployment
Id String The OCID of the deployment in which to list resources.
- id String
The OCID of the connection assignment being referenced.
- state String
A filter to return only connection assignments having the 'lifecycleState' given.
- time
Created String The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated String The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- alias
Name string Credential store alias.
- compartment
Id string The OCID of the compartment in which to list resources.
- connection
Id string The OCID of the connection.
- deployment
Id string The OCID of the deployment in which to list resources.
- id string
The OCID of the connection assignment being referenced.
- state string
A filter to return only connection assignments having the 'lifecycleState' given.
- time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated 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 in which to list resources.
- connection_
id str The OCID of the connection.
- deployment_
id str The OCID of the deployment in which to list resources.
- id str
The OCID of the connection assignment being referenced.
- state str
A filter to return only connection assignments having the 'lifecycleState' given.
- 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
.
- alias
Name String Credential store alias.
- compartment
Id String The OCID of the compartment in which to list resources.
- connection
Id String The OCID of the connection.
- deployment
Id String The OCID of the deployment in which to list resources.
- id String
The OCID of the connection assignment being referenced.
- state String
A filter to return only connection assignments having the 'lifecycleState' given.
- time
Created String The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated String The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
GetConnectionAssignmentsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.