Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi
oci.Psql.getDbSystemConnectionDetail
Explore with Pulumi AI
This data source provides details about a specific Db System Connection Detail resource in Oracle Cloud Infrastructure Psql service.
Gets the database system connection details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbSystemConnectionDetail = oci.Psql.getDbSystemConnectionDetail({
dbSystemId: testDbSystem.id,
});
import pulumi
import pulumi_oci as oci
test_db_system_connection_detail = oci.Psql.get_db_system_connection_detail(db_system_id=test_db_system["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Psql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Psql.GetDbSystemConnectionDetail(ctx, &psql.GetDbSystemConnectionDetailArgs{
DbSystemId: testDbSystem.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 testDbSystemConnectionDetail = Oci.Psql.GetDbSystemConnectionDetail.Invoke(new()
{
DbSystemId = testDbSystem.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Psql.PsqlFunctions;
import com.pulumi.oci.Psql.inputs.GetDbSystemConnectionDetailArgs;
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 testDbSystemConnectionDetail = PsqlFunctions.getDbSystemConnectionDetail(GetDbSystemConnectionDetailArgs.builder()
.dbSystemId(testDbSystem.id())
.build());
}
}
variables:
testDbSystemConnectionDetail:
fn::invoke:
Function: oci:Psql:getDbSystemConnectionDetail
Arguments:
dbSystemId: ${testDbSystem.id}
Using getDbSystemConnectionDetail
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 getDbSystemConnectionDetail(args: GetDbSystemConnectionDetailArgs, opts?: InvokeOptions): Promise<GetDbSystemConnectionDetailResult>
function getDbSystemConnectionDetailOutput(args: GetDbSystemConnectionDetailOutputArgs, opts?: InvokeOptions): Output<GetDbSystemConnectionDetailResult>
def get_db_system_connection_detail(db_system_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbSystemConnectionDetailResult
def get_db_system_connection_detail_output(db_system_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbSystemConnectionDetailResult]
func GetDbSystemConnectionDetail(ctx *Context, args *GetDbSystemConnectionDetailArgs, opts ...InvokeOption) (*GetDbSystemConnectionDetailResult, error)
func GetDbSystemConnectionDetailOutput(ctx *Context, args *GetDbSystemConnectionDetailOutputArgs, opts ...InvokeOption) GetDbSystemConnectionDetailResultOutput
> Note: This function is named GetDbSystemConnectionDetail
in the Go SDK.
public static class GetDbSystemConnectionDetail
{
public static Task<GetDbSystemConnectionDetailResult> InvokeAsync(GetDbSystemConnectionDetailArgs args, InvokeOptions? opts = null)
public static Output<GetDbSystemConnectionDetailResult> Invoke(GetDbSystemConnectionDetailInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbSystemConnectionDetailResult> getDbSystemConnectionDetail(GetDbSystemConnectionDetailArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Psql/getDbSystemConnectionDetail:getDbSystemConnectionDetail
arguments:
# arguments dictionary
The following arguments are supported:
- Db
System stringId - A unique identifier for the database system.
- Db
System stringId - A unique identifier for the database system.
- db
System StringId - A unique identifier for the database system.
- db
System stringId - A unique identifier for the database system.
- db_
system_ strid - A unique identifier for the database system.
- db
System StringId - A unique identifier for the database system.
getDbSystemConnectionDetail Result
The following output properties are available:
- Ca
Certificate string - The CA certificate to be used by the PosgreSQL client to connect to the database. The CA certificate is used to authenticate the server identity. It is issued by PostgreSQL Service Private CA.
- Db
System stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Endpoints List<GetDb System Connection Detail Instance Endpoint> - The list of database instance node endpoints in the database system.
- Primary
Db List<GetEndpoints Db System Connection Detail Primary Db Endpoint> - Information about the database instance node endpoint.
- Ca
Certificate string - The CA certificate to be used by the PosgreSQL client to connect to the database. The CA certificate is used to authenticate the server identity. It is issued by PostgreSQL Service Private CA.
- Db
System stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Endpoints []GetDb System Connection Detail Instance Endpoint - The list of database instance node endpoints in the database system.
- Primary
Db []GetEndpoints Db System Connection Detail Primary Db Endpoint - Information about the database instance node endpoint.
- ca
Certificate String - The CA certificate to be used by the PosgreSQL client to connect to the database. The CA certificate is used to authenticate the server identity. It is issued by PostgreSQL Service Private CA.
- db
System StringId - id String
- The provider-assigned unique ID for this managed resource.
- instance
Endpoints List<GetDb System Connection Detail Instance Endpoint> - The list of database instance node endpoints in the database system.
- primary
Db List<GetEndpoints Db System Connection Detail Primary Db Endpoint> - Information about the database instance node endpoint.
- ca
Certificate string - The CA certificate to be used by the PosgreSQL client to connect to the database. The CA certificate is used to authenticate the server identity. It is issued by PostgreSQL Service Private CA.
- db
System stringId - id string
- The provider-assigned unique ID for this managed resource.
- instance
Endpoints GetDb System Connection Detail Instance Endpoint[] - The list of database instance node endpoints in the database system.
- primary
Db GetEndpoints Db System Connection Detail Primary Db Endpoint[] - Information about the database instance node endpoint.
- ca_
certificate str - The CA certificate to be used by the PosgreSQL client to connect to the database. The CA certificate is used to authenticate the server identity. It is issued by PostgreSQL Service Private CA.
- db_
system_ strid - id str
- The provider-assigned unique ID for this managed resource.
- instance_
endpoints Sequence[psql.Get Db System Connection Detail Instance Endpoint] - The list of database instance node endpoints in the database system.
- primary_
db_ Sequence[psql.endpoints Get Db System Connection Detail Primary Db Endpoint] - Information about the database instance node endpoint.
- ca
Certificate String - The CA certificate to be used by the PosgreSQL client to connect to the database. The CA certificate is used to authenticate the server identity. It is issued by PostgreSQL Service Private CA.
- db
System StringId - id String
- The provider-assigned unique ID for this managed resource.
- instance
Endpoints List<Property Map> - The list of database instance node endpoints in the database system.
- primary
Db List<Property Map>Endpoints - Information about the database instance node endpoint.
Supporting Types
GetDbSystemConnectionDetailInstanceEndpoint
- Db
Instance stringId - Unique identifier of the database instance node.
- Endpoints
List<Get
Db System Connection Detail Instance Endpoint Endpoint> - Information about the database instance node endpoint.
- Db
Instance stringId - Unique identifier of the database instance node.
- Endpoints
[]Get
Db System Connection Detail Instance Endpoint Endpoint - Information about the database instance node endpoint.
- db
Instance StringId - Unique identifier of the database instance node.
- endpoints
List<Get
Db System Connection Detail Instance Endpoint Endpoint> - Information about the database instance node endpoint.
- db
Instance stringId - Unique identifier of the database instance node.
- endpoints
Get
Db System Connection Detail Instance Endpoint Endpoint[] - Information about the database instance node endpoint.
- db_
instance_ strid - Unique identifier of the database instance node.
- endpoints
Sequence[psql.
Get Db System Connection Detail Instance Endpoint Endpoint] - Information about the database instance node endpoint.
- db
Instance StringId - Unique identifier of the database instance node.
- endpoints List<Property Map>
- Information about the database instance node endpoint.
GetDbSystemConnectionDetailInstanceEndpointEndpoint
- fqdn str
- The FQDN of the endpoint.
- ip_
address str - The IP address of the endpoint.
- port int
- The port address of the endpoint.
GetDbSystemConnectionDetailPrimaryDbEndpoint
- fqdn str
- The FQDN of the endpoint.
- ip_
address str - The IP address of the endpoint.
- port int
- The port address of the endpoint.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.