1. Packages
  2. Dbtcloud Provider
  3. API Docs
  4. getGlobalConnections
dbt Cloud v0.1.20 published on Friday, Sep 27, 2024 by Pulumi

dbtcloud.getGlobalConnections

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.20 published on Friday, Sep 27, 2024 by Pulumi

    All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dbtcloud from "@pulumi/dbtcloud";
    
    const myConnections = dbtcloud.getGlobalConnections({});
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    my_connections = dbtcloud.get_global_connections()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dbtcloud.GetGlobalConnections(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DbtCloud = Pulumi.DbtCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var myConnections = DbtCloud.GetGlobalConnections.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dbtcloud.DbtcloudFunctions;
    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 myConnections = DbtcloudFunctions.getGlobalConnections();
    
        }
    }
    
    variables:
      myConnections:
        fn::invoke:
          Function: dbtcloud:getGlobalConnections
          Arguments: {}
    

    Using getGlobalConnections

    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 getGlobalConnections(opts?: InvokeOptions): Promise<GetGlobalConnectionsResult>
    function getGlobalConnectionsOutput(opts?: InvokeOptions): Output<GetGlobalConnectionsResult>
    def get_global_connections(opts: Optional[InvokeOptions] = None) -> GetGlobalConnectionsResult
    def get_global_connections_output(opts: Optional[InvokeOptions] = None) -> Output[GetGlobalConnectionsResult]
    func GetGlobalConnections(ctx *Context, opts ...InvokeOption) (*GetGlobalConnectionsResult, error)
    func GetGlobalConnectionsOutput(ctx *Context, opts ...InvokeOption) GetGlobalConnectionsResultOutput

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

    public static class GetGlobalConnections 
    {
        public static Task<GetGlobalConnectionsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetGlobalConnectionsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGlobalConnectionsResult> getGlobalConnections(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: dbtcloud:index/getGlobalConnections:getGlobalConnections
      arguments:
        # arguments dictionary

    getGlobalConnections Result

    The following output properties are available:

    Connections List<Pulumi.DbtCloud.Outputs.GetGlobalConnectionsConnection>
    A set of all the connections
    Id string
    The provider-assigned unique ID for this managed resource.
    Connections []GetGlobalConnectionsConnection
    A set of all the connections
    Id string
    The provider-assigned unique ID for this managed resource.
    connections List<GetGlobalConnectionsConnection>
    A set of all the connections
    id String
    The provider-assigned unique ID for this managed resource.
    connections GetGlobalConnectionsConnection[]
    A set of all the connections
    id string
    The provider-assigned unique ID for this managed resource.
    connections Sequence[GetGlobalConnectionsConnection]
    A set of all the connections
    id str
    The provider-assigned unique ID for this managed resource.
    connections List<Property Map>
    A set of all the connections
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetGlobalConnectionsConnection

    AdapterVersion string
    Type of adapter used for the connection
    CreatedAt string
    When the connection was created
    EnvironmentCount int
    Number of environments using this connection
    Id int
    Connection Identifier
    IsSshTunnelEnabled bool
    Name string
    Connection name
    OauthConfigurationId int
    PrivateLinkEndpointId int
    Private Link Endpoint ID.
    UpdatedAt string
    When the connection was updated
    AdapterVersion string
    Type of adapter used for the connection
    CreatedAt string
    When the connection was created
    EnvironmentCount int
    Number of environments using this connection
    Id int
    Connection Identifier
    IsSshTunnelEnabled bool
    Name string
    Connection name
    OauthConfigurationId int
    PrivateLinkEndpointId int
    Private Link Endpoint ID.
    UpdatedAt string
    When the connection was updated
    adapterVersion String
    Type of adapter used for the connection
    createdAt String
    When the connection was created
    environmentCount Integer
    Number of environments using this connection
    id Integer
    Connection Identifier
    isSshTunnelEnabled Boolean
    name String
    Connection name
    oauthConfigurationId Integer
    privateLinkEndpointId Integer
    Private Link Endpoint ID.
    updatedAt String
    When the connection was updated
    adapterVersion string
    Type of adapter used for the connection
    createdAt string
    When the connection was created
    environmentCount number
    Number of environments using this connection
    id number
    Connection Identifier
    isSshTunnelEnabled boolean
    name string
    Connection name
    oauthConfigurationId number
    privateLinkEndpointId number
    Private Link Endpoint ID.
    updatedAt string
    When the connection was updated
    adapter_version str
    Type of adapter used for the connection
    created_at str
    When the connection was created
    environment_count int
    Number of environments using this connection
    id int
    Connection Identifier
    is_ssh_tunnel_enabled bool
    name str
    Connection name
    oauth_configuration_id int
    private_link_endpoint_id int
    Private Link Endpoint ID.
    updated_at str
    When the connection was updated
    adapterVersion String
    Type of adapter used for the connection
    createdAt String
    When the connection was created
    environmentCount Number
    Number of environments using this connection
    id Number
    Connection Identifier
    isSshTunnelEnabled Boolean
    name String
    Connection name
    oauthConfigurationId Number
    privateLinkEndpointId Number
    Private Link Endpoint ID.
    updatedAt String
    When the connection was updated

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    dbt Cloud v0.1.20 published on Friday, Sep 27, 2024 by Pulumi