1. Packages
  2. dbt Cloud Provider
  3. API Docs
  4. getPostgresCredential
dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi

dbtcloud.getPostgresCredential

Explore with Pulumi AI

dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi

Using getPostgresCredential

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 getPostgresCredential(args: GetPostgresCredentialArgs, opts?: InvokeOptions): Promise<GetPostgresCredentialResult>
function getPostgresCredentialOutput(args: GetPostgresCredentialOutputArgs, opts?: InvokeOptions): Output<GetPostgresCredentialResult>
Copy
def get_postgres_credential(credential_id: Optional[int] = None,
                            project_id: Optional[int] = None,
                            opts: Optional[InvokeOptions] = None) -> GetPostgresCredentialResult
def get_postgres_credential_output(credential_id: Optional[pulumi.Input[int]] = None,
                            project_id: Optional[pulumi.Input[int]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetPostgresCredentialResult]
Copy
func LookupPostgresCredential(ctx *Context, args *LookupPostgresCredentialArgs, opts ...InvokeOption) (*LookupPostgresCredentialResult, error)
func LookupPostgresCredentialOutput(ctx *Context, args *LookupPostgresCredentialOutputArgs, opts ...InvokeOption) LookupPostgresCredentialResultOutput
Copy

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

public static class GetPostgresCredential 
{
    public static Task<GetPostgresCredentialResult> InvokeAsync(GetPostgresCredentialArgs args, InvokeOptions? opts = null)
    public static Output<GetPostgresCredentialResult> Invoke(GetPostgresCredentialInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPostgresCredentialResult> getPostgresCredential(GetPostgresCredentialArgs args, InvokeOptions options)
public static Output<GetPostgresCredentialResult> getPostgresCredential(GetPostgresCredentialArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: dbtcloud:index/getPostgresCredential:getPostgresCredential
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CredentialId This property is required. int
Credential ID
ProjectId This property is required. int
Project ID
CredentialId This property is required. int
Credential ID
ProjectId This property is required. int
Project ID
credentialId This property is required. Integer
Credential ID
projectId This property is required. Integer
Project ID
credentialId This property is required. number
Credential ID
projectId This property is required. number
Project ID
credential_id This property is required. int
Credential ID
project_id This property is required. int
Project ID
credentialId This property is required. Number
Credential ID
projectId This property is required. Number
Project ID

getPostgresCredential Result

The following output properties are available:

CredentialId int
Credential ID
DefaultSchema string
Default schema name
Id string
The provider-assigned unique ID for this managed resource.
IsActive bool
Whether the Postgres credential is active
NumThreads int
Number of threads to use
ProjectId int
Project ID
Username string
Username for Postgres
CredentialId int
Credential ID
DefaultSchema string
Default schema name
Id string
The provider-assigned unique ID for this managed resource.
IsActive bool
Whether the Postgres credential is active
NumThreads int
Number of threads to use
ProjectId int
Project ID
Username string
Username for Postgres
credentialId Integer
Credential ID
defaultSchema String
Default schema name
id String
The provider-assigned unique ID for this managed resource.
isActive Boolean
Whether the Postgres credential is active
numThreads Integer
Number of threads to use
projectId Integer
Project ID
username String
Username for Postgres
credentialId number
Credential ID
defaultSchema string
Default schema name
id string
The provider-assigned unique ID for this managed resource.
isActive boolean
Whether the Postgres credential is active
numThreads number
Number of threads to use
projectId number
Project ID
username string
Username for Postgres
credential_id int
Credential ID
default_schema str
Default schema name
id str
The provider-assigned unique ID for this managed resource.
is_active bool
Whether the Postgres credential is active
num_threads int
Number of threads to use
project_id int
Project ID
username str
Username for Postgres
credentialId Number
Credential ID
defaultSchema String
Default schema name
id String
The provider-assigned unique ID for this managed resource.
isActive Boolean
Whether the Postgres credential is active
numThreads Number
Number of threads to use
projectId Number
Project ID
username String
Username for Postgres

Package Details

Repository
dbtcloud pulumi/pulumi-dbtcloud
License
Apache-2.0
Notes
This Pulumi package is based on the dbtcloud Terraform Provider.
dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi