1. Packages
  2. dbt Cloud Provider
  3. API Docs
  4. getProfiles
dbt Cloud v1.6.0 published on Friday, Feb 20, 2026 by Pulumi
dbtcloud logo
dbt Cloud v1.6.0 published on Friday, Feb 20, 2026 by Pulumi

    Retrieve data for multiple profiles

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dbtcloud from "@pulumi/dbtcloud";
    
    const all = dbtcloud.getProfiles({
        projectId: 6789,
    });
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    all = dbtcloud.get_profiles(project_id=6789)
    
    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.GetProfiles(ctx, &dbtcloud.GetProfilesArgs{
    			ProjectId: 6789,
    		}, 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 all = DbtCloud.GetProfiles.Invoke(new()
        {
            ProjectId = 6789,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dbtcloud.DbtcloudFunctions;
    import com.pulumi.dbtcloud.inputs.GetProfilesArgs;
    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 all = DbtcloudFunctions.getProfiles(GetProfilesArgs.builder()
                .projectId(6789)
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: dbtcloud:getProfiles
          arguments:
            projectId: 6789
    

    Using getProfiles

    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 getProfiles(args: GetProfilesArgs, opts?: InvokeOptions): Promise<GetProfilesResult>
    function getProfilesOutput(args: GetProfilesOutputArgs, opts?: InvokeOptions): Output<GetProfilesResult>
    def get_profiles(project_id: Optional[int] = None,
                     opts: Optional[InvokeOptions] = None) -> GetProfilesResult
    def get_profiles_output(project_id: Optional[pulumi.Input[int]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetProfilesResult]
    func GetProfiles(ctx *Context, args *GetProfilesArgs, opts ...InvokeOption) (*GetProfilesResult, error)
    func GetProfilesOutput(ctx *Context, args *GetProfilesOutputArgs, opts ...InvokeOption) GetProfilesResultOutput

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

    public static class GetProfiles 
    {
        public static Task<GetProfilesResult> InvokeAsync(GetProfilesArgs args, InvokeOptions? opts = null)
        public static Output<GetProfilesResult> Invoke(GetProfilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProfilesResult> getProfiles(GetProfilesArgs args, InvokeOptions options)
    public static Output<GetProfilesResult> getProfiles(GetProfilesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: dbtcloud:index/getProfiles:getProfiles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId int
    The project ID to filter profiles for
    ProjectId int
    The project ID to filter profiles for
    projectId Integer
    The project ID to filter profiles for
    projectId number
    The project ID to filter profiles for
    project_id int
    The project ID to filter profiles for
    projectId Number
    The project ID to filter profiles for

    getProfiles Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Profiles List<Pulumi.DbtCloud.Outputs.GetProfilesProfile>
    The list of profiles
    ProjectId int
    The project ID to filter profiles for
    Id string
    The provider-assigned unique ID for this managed resource.
    Profiles []GetProfilesProfile
    The list of profiles
    ProjectId int
    The project ID to filter profiles for
    id String
    The provider-assigned unique ID for this managed resource.
    profiles List<GetProfilesProfile>
    The list of profiles
    projectId Integer
    The project ID to filter profiles for
    id string
    The provider-assigned unique ID for this managed resource.
    profiles GetProfilesProfile[]
    The list of profiles
    projectId number
    The project ID to filter profiles for
    id str
    The provider-assigned unique ID for this managed resource.
    profiles Sequence[GetProfilesProfile]
    The list of profiles
    project_id int
    The project ID to filter profiles for
    id String
    The provider-assigned unique ID for this managed resource.
    profiles List<Property Map>
    The list of profiles
    projectId Number
    The project ID to filter profiles for

    Supporting Types

    GetProfilesProfile

    ConnectionId int
    The ID of the connection used by this profile
    CredentialsId int
    The ID of the credentials used by this profile
    ExtendedAttributesId int
    The ID of the extended attributes for this profile
    Id string
    The ID of this resource. Contains the project ID and the profile ID.
    Key string
    Unique identifier for the profile
    ProfileId int
    The ID of the profile
    ProjectId int
    The project ID to which the profile belongs
    ConnectionId int
    The ID of the connection used by this profile
    CredentialsId int
    The ID of the credentials used by this profile
    ExtendedAttributesId int
    The ID of the extended attributes for this profile
    Id string
    The ID of this resource. Contains the project ID and the profile ID.
    Key string
    Unique identifier for the profile
    ProfileId int
    The ID of the profile
    ProjectId int
    The project ID to which the profile belongs
    connectionId Integer
    The ID of the connection used by this profile
    credentialsId Integer
    The ID of the credentials used by this profile
    extendedAttributesId Integer
    The ID of the extended attributes for this profile
    id String
    The ID of this resource. Contains the project ID and the profile ID.
    key String
    Unique identifier for the profile
    profileId Integer
    The ID of the profile
    projectId Integer
    The project ID to which the profile belongs
    connectionId number
    The ID of the connection used by this profile
    credentialsId number
    The ID of the credentials used by this profile
    extendedAttributesId number
    The ID of the extended attributes for this profile
    id string
    The ID of this resource. Contains the project ID and the profile ID.
    key string
    Unique identifier for the profile
    profileId number
    The ID of the profile
    projectId number
    The project ID to which the profile belongs
    connection_id int
    The ID of the connection used by this profile
    credentials_id int
    The ID of the credentials used by this profile
    extended_attributes_id int
    The ID of the extended attributes for this profile
    id str
    The ID of this resource. Contains the project ID and the profile ID.
    key str
    Unique identifier for the profile
    profile_id int
    The ID of the profile
    project_id int
    The project ID to which the profile belongs
    connectionId Number
    The ID of the connection used by this profile
    credentialsId Number
    The ID of the credentials used by this profile
    extendedAttributesId Number
    The ID of the extended attributes for this profile
    id String
    The ID of this resource. Contains the project ID and the profile ID.
    key String
    Unique identifier for the profile
    profileId Number
    The ID of the profile
    projectId Number
    The project ID to which the profile belongs

    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 v1.6.0 published on Friday, Feb 20, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate