Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DatabaseMigration.getConnections
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Connections in Oracle Cloud Infrastructure Database Migration service.
List all Database Connections.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnections = oci.DatabaseMigration.getConnections({
compartmentId: compartmentId,
displayName: connectionDisplayName,
state: connectionState,
});
import pulumi
import pulumi_oci as oci
test_connections = oci.DatabaseMigration.get_connections(compartment_id=compartment_id,
display_name=connection_display_name,
state=connection_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseMigration"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseMigration.GetConnections(ctx, &databasemigration.GetConnectionsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(connectionDisplayName),
State: pulumi.StringRef(connectionState),
}, 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 testConnections = Oci.DatabaseMigration.GetConnections.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = connectionDisplayName,
State = connectionState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseMigration.DatabaseMigrationFunctions;
import com.pulumi.oci.DatabaseMigration.inputs.GetConnectionsArgs;
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 testConnections = DatabaseMigrationFunctions.getConnections(GetConnectionsArgs.builder()
.compartmentId(compartmentId)
.displayName(connectionDisplayName)
.state(connectionState)
.build());
}
}
variables:
testConnections:
fn::invoke:
Function: oci:DatabaseMigration:getConnections
Arguments:
compartmentId: ${compartmentId}
displayName: ${connectionDisplayName}
state: ${connectionState}
Using getConnections
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 getConnections(args: GetConnectionsArgs, opts?: InvokeOptions): Promise<GetConnectionsResult>
function getConnectionsOutput(args: GetConnectionsOutputArgs, opts?: InvokeOptions): Output<GetConnectionsResult>
def get_connections(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_databasemigration.GetConnectionsFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectionsResult
def get_connections_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemigration.GetConnectionsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConnectionsResult]
func GetConnections(ctx *Context, args *GetConnectionsArgs, opts ...InvokeOption) (*GetConnectionsResult, error)
func GetConnectionsOutput(ctx *Context, args *GetConnectionsOutputArgs, opts ...InvokeOption) GetConnectionsResultOutput
> Note: This function is named GetConnections
in the Go SDK.
public static class GetConnections
{
public static Task<GetConnectionsResult> InvokeAsync(GetConnectionsArgs args, InvokeOptions? opts = null)
public static Output<GetConnectionsResult> Invoke(GetConnectionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConnectionsResult> getConnections(GetConnectionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseMigration/getConnections:getConnections
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Connections Filter> - State string
- The current state of the Database Migration Deployment.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Connections Filter - State string
- The current state of the Database Migration Deployment.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Connections Filter> - state String
- The current state of the Database Migration Deployment.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Connections Filter[] - state string
- The current state of the Database Migration Deployment.
- compartment_
id str - The ID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[databasemigration.
Get Connections Filter] - state str
- The current state of the Database Migration Deployment.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- state String
- The current state of the Database Migration Deployment.
getConnections Result
The following output properties are available:
- Compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- Connection
Collections List<GetConnections Connection Collection> - The list of connection_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - Database Connection display name identifier.
- Filters
List<Get
Connections Filter> - State string
- The current state of the Connection resource.
- Compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- Connection
Collections []GetConnections Connection Collection - The list of connection_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - Database Connection display name identifier.
- Filters
[]Get
Connections Filter - State string
- The current state of the Connection resource.
- compartment
Id String - OCID of the compartment where the secret containing the credentials will be created.
- connection
Collections List<GetConnections Connection Collection> - The list of connection_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - Database Connection display name identifier.
- filters
List<Get
Connections Filter> - state String
- The current state of the Connection resource.
- compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- connection
Collections GetConnections Connection Collection[] - The list of connection_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - Database Connection display name identifier.
- filters
Get
Connections Filter[] - state string
- The current state of the Connection resource.
- compartment_
id str - OCID of the compartment where the secret containing the credentials will be created.
- connection_
collections Sequence[databasemigration.Get Connections Connection Collection] - The list of connection_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- display_
name str - Database Connection display name identifier.
- filters
Sequence[databasemigration.
Get Connections Filter] - state str
- The current state of the Connection resource.
- compartment
Id String - OCID of the compartment where the secret containing the credentials will be created.
- connection
Collections List<Property Map> - The list of connection_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - Database Connection display name identifier.
- filters List<Property Map>
- state String
- The current state of the Connection resource.
Supporting Types
GetConnectionsConnectionCollection
GetConnectionsConnectionCollectionItem
- Admin
Credentials List<GetConnections Connection Collection Item Admin Credential> - Database Administrator Credentials details.
- Certificate
Tdn string - This name is the distinguished name used while creating the certificate on target database.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Connect
Descriptors List<GetConnections Connection Collection Item Connect Descriptor> - Connect Descriptor details.
- Credentials
Secret stringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- Database
Id string - The OCID of the cloud database.
- Database
Type string - Database connection type.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A filter to return only resources that match the entire display name given.
- Dictionary<string, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- OCID of a previously created Private Endpoint.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Manual
Database stringSub Type - Database manual connection subtype. This value can only be specified for manual connections.
- Nsg
Ids List<string> - An array of Network Security Group OCIDs used to define network access for Connections.
- Private
Endpoints List<GetConnections Connection Collection Item Private Endpoint> - Oracle Cloud Infrastructure Private Endpoint configuration details.
- Replication
Credentials List<GetConnections Connection Collection Item Replication Credential> - Database Administrator Credentials details.
- Ssh
Details List<GetConnections Connection Collection Item Ssh Detail> - Details of the SSH key that will be used.
- State string
- The current state of the Database Migration Deployment.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the Connection resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- Tls
Keystore string - Tls
Wallet string - Vault
Details List<GetConnections Connection Collection Item Vault Detail> - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- Admin
Credentials []GetConnections Connection Collection Item Admin Credential - Database Administrator Credentials details.
- Certificate
Tdn string - This name is the distinguished name used while creating the certificate on target database.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Connect
Descriptors []GetConnections Connection Collection Item Connect Descriptor - Connect Descriptor details.
- Credentials
Secret stringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- Database
Id string - The OCID of the cloud database.
- Database
Type string - Database connection type.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A filter to return only resources that match the entire display name given.
- map[string]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- OCID of a previously created Private Endpoint.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Manual
Database stringSub Type - Database manual connection subtype. This value can only be specified for manual connections.
- Nsg
Ids []string - An array of Network Security Group OCIDs used to define network access for Connections.
- Private
Endpoints []GetConnections Connection Collection Item Private Endpoint - Oracle Cloud Infrastructure Private Endpoint configuration details.
- Replication
Credentials []GetConnections Connection Collection Item Replication Credential - Database Administrator Credentials details.
- Ssh
Details []GetConnections Connection Collection Item Ssh Detail - Details of the SSH key that will be used.
- State string
- The current state of the Database Migration Deployment.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the Connection resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- Tls
Keystore string - Tls
Wallet string - Vault
Details []GetConnections Connection Collection Item Vault Detail - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- admin
Credentials List<GetConnections Connection Collection Item Admin Credential> - Database Administrator Credentials details.
- certificate
Tdn String - This name is the distinguished name used while creating the certificate on target database.
- compartment
Id String - The ID of the compartment in which to list resources.
- connect
Descriptors List<GetConnections Connection Collection Item Connect Descriptor> - Connect Descriptor details.
- credentials
Secret StringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- database
Id String - The OCID of the cloud database.
- database
Type String - Database connection type.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A filter to return only resources that match the entire display name given.
- Map<String,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- OCID of a previously created Private Endpoint.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- manual
Database StringSub Type - Database manual connection subtype. This value can only be specified for manual connections.
- nsg
Ids List<String> - An array of Network Security Group OCIDs used to define network access for Connections.
- private
Endpoints List<GetConnections Connection Collection Item Private Endpoint> - Oracle Cloud Infrastructure Private Endpoint configuration details.
- replication
Credentials List<GetConnections Connection Collection Item Replication Credential> - Database Administrator Credentials details.
- ssh
Details List<GetConnections Connection Collection Item Ssh Detail> - Details of the SSH key that will be used.
- state String
- The current state of the Database Migration Deployment.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the Connection resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- tls
Keystore String - tls
Wallet String - vault
Details List<GetConnections Connection Collection Item Vault Detail> - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- admin
Credentials GetConnections Connection Collection Item Admin Credential[] - Database Administrator Credentials details.
- certificate
Tdn string - This name is the distinguished name used while creating the certificate on target database.
- compartment
Id string - The ID of the compartment in which to list resources.
- connect
Descriptors GetConnections Connection Collection Item Connect Descriptor[] - Connect Descriptor details.
- credentials
Secret stringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- database
Id string - The OCID of the cloud database.
- database
Type string - Database connection type.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - A filter to return only resources that match the entire display name given.
- {[key: string]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- OCID of a previously created Private Endpoint.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- manual
Database stringSub Type - Database manual connection subtype. This value can only be specified for manual connections.
- nsg
Ids string[] - An array of Network Security Group OCIDs used to define network access for Connections.
- private
Endpoints GetConnections Connection Collection Item Private Endpoint[] - Oracle Cloud Infrastructure Private Endpoint configuration details.
- replication
Credentials GetConnections Connection Collection Item Replication Credential[] - Database Administrator Credentials details.
- ssh
Details GetConnections Connection Collection Item Ssh Detail[] - Details of the SSH key that will be used.
- state string
- The current state of the Database Migration Deployment.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the Connection resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- tls
Keystore string - tls
Wallet string - vault
Details GetConnections Connection Collection Item Vault Detail[] - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- admin_
credentials Sequence[databasemigration.Get Connections Connection Collection Item Admin Credential] - Database Administrator Credentials details.
- certificate_
tdn str - This name is the distinguished name used while creating the certificate on target database.
- compartment_
id str - The ID of the compartment in which to list resources.
- connect_
descriptors Sequence[databasemigration.Get Connections Connection Collection Item Connect Descriptor] - Connect Descriptor details.
- credentials_
secret_ strid - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- database_
id str - The OCID of the cloud database.
- database_
type str - Database connection type.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str - A filter to return only resources that match the entire display name given.
- Mapping[str, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- OCID of a previously created Private Endpoint.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- manual_
database_ strsub_ type - Database manual connection subtype. This value can only be specified for manual connections.
- nsg_
ids Sequence[str] - An array of Network Security Group OCIDs used to define network access for Connections.
- private_
endpoints Sequence[databasemigration.Get Connections Connection Collection Item Private Endpoint] - Oracle Cloud Infrastructure Private Endpoint configuration details.
- replication_
credentials Sequence[databasemigration.Get Connections Connection Collection Item Replication Credential] - Database Administrator Credentials details.
- ssh_
details Sequence[databasemigration.Get Connections Connection Collection Item Ssh Detail] - Details of the SSH key that will be used.
- state str
- The current state of the Database Migration Deployment.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time the Connection resource was created. An RFC3339 formatted datetime string.
- time_
updated str - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- tls_
keystore str - tls_
wallet str - vault_
details Sequence[databasemigration.Get Connections Connection Collection Item Vault Detail] - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- admin
Credentials List<Property Map> - Database Administrator Credentials details.
- certificate
Tdn String - This name is the distinguished name used while creating the certificate on target database.
- compartment
Id String - The ID of the compartment in which to list resources.
- connect
Descriptors List<Property Map> - Connect Descriptor details.
- credentials
Secret StringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- database
Id String - The OCID of the cloud database.
- database
Type String - Database connection type.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A filter to return only resources that match the entire display name given.
- Map<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- OCID of a previously created Private Endpoint.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- manual
Database StringSub Type - Database manual connection subtype. This value can only be specified for manual connections.
- nsg
Ids List<String> - An array of Network Security Group OCIDs used to define network access for Connections.
- private
Endpoints List<Property Map> - Oracle Cloud Infrastructure Private Endpoint configuration details.
- replication
Credentials List<Property Map> - Database Administrator Credentials details.
- ssh
Details List<Property Map> - Details of the SSH key that will be used.
- state String
- The current state of the Database Migration Deployment.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the Connection resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- tls
Keystore String - tls
Wallet String - vault
Details List<Property Map> - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
GetConnectionsConnectionCollectionItemAdminCredential
GetConnectionsConnectionCollectionItemConnectDescriptor
- Connect
String string - Connect string.
- Database
Service stringName - Database service name.
- Host string
- Name of the host the SSH key is valid for.
- Port int
- Port of the connect descriptor.
- Connect
String string - Connect string.
- Database
Service stringName - Database service name.
- Host string
- Name of the host the SSH key is valid for.
- Port int
- Port of the connect descriptor.
- connect
String String - Connect string.
- database
Service StringName - Database service name.
- host String
- Name of the host the SSH key is valid for.
- port Integer
- Port of the connect descriptor.
- connect
String string - Connect string.
- database
Service stringName - Database service name.
- host string
- Name of the host the SSH key is valid for.
- port number
- Port of the connect descriptor.
- connect_
string str - Connect string.
- database_
service_ strname - Database service name.
- host str
- Name of the host the SSH key is valid for.
- port int
- Port of the connect descriptor.
- connect
String String - Connect string.
- database
Service StringName - Database service name.
- host String
- Name of the host the SSH key is valid for.
- port Number
- Port of the connect descriptor.
GetConnectionsConnectionCollectionItemPrivateEndpoint
GetConnectionsConnectionCollectionItemReplicationCredential
GetConnectionsConnectionCollectionItemSshDetail
- Host string
- Name of the host the SSH key is valid for.
- Sshkey string
- Sudo
Location string - Sudo location
- User string
- SSH user
- Host string
- Name of the host the SSH key is valid for.
- Sshkey string
- Sudo
Location string - Sudo location
- User string
- SSH user
- host String
- Name of the host the SSH key is valid for.
- sshkey String
- sudo
Location String - Sudo location
- user String
- SSH user
- host string
- Name of the host the SSH key is valid for.
- sshkey string
- sudo
Location string - Sudo location
- user string
- SSH user
- host str
- Name of the host the SSH key is valid for.
- sshkey str
- sudo_
location str - Sudo location
- user str
- SSH user
- host String
- Name of the host the SSH key is valid for.
- sshkey String
- sudo
Location String - Sudo location
- user String
- SSH user
GetConnectionsConnectionCollectionItemVaultDetail
- Compartment
Id string - The ID of the compartment in which to list resources.
- Key
Id string - OCID of the vault encryption key
- Vault
Id string - OCID of the vault
- Compartment
Id string - The ID of the compartment in which to list resources.
- Key
Id string - OCID of the vault encryption key
- Vault
Id string - OCID of the vault
- compartment
Id String - The ID of the compartment in which to list resources.
- key
Id String - OCID of the vault encryption key
- vault
Id String - OCID of the vault
- compartment
Id string - The ID of the compartment in which to list resources.
- key
Id string - OCID of the vault encryption key
- vault
Id string - OCID of the vault
- compartment_
id str - The ID of the compartment in which to list resources.
- key_
id str - OCID of the vault encryption key
- vault_
id str - OCID of the vault
- compartment
Id String - The ID of the compartment in which to list resources.
- key
Id String - OCID of the vault encryption key
- vault
Id String - OCID of the vault
GetConnectionsFilter
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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi