1. Packages
  2. dbt Cloud Provider
  3. API Docs
  4. getProfile
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 a single profile

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dbtcloud from "@pulumi/dbtcloud";
    
    const myProfile = dbtcloud.getProfile({
        profileId: 12345,
        projectId: 6789,
    });
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    my_profile = dbtcloud.get_profile(profile_id=12345,
        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.LookupProfile(ctx, &dbtcloud.LookupProfileArgs{
    			ProfileId: 12345,
    			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 myProfile = DbtCloud.GetProfile.Invoke(new()
        {
            ProfileId = 12345,
            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.GetProfileArgs;
    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 myProfile = DbtcloudFunctions.getProfile(GetProfileArgs.builder()
                .profileId(12345)
                .projectId(6789)
                .build());
    
        }
    }
    
    variables:
      myProfile:
        fn::invoke:
          function: dbtcloud:getProfile
          arguments:
            profileId: 12345
            projectId: 6789
    

    Using getProfile

    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 getProfile(args: GetProfileArgs, opts?: InvokeOptions): Promise<GetProfileResult>
    function getProfileOutput(args: GetProfileOutputArgs, opts?: InvokeOptions): Output<GetProfileResult>
    def get_profile(profile_id: Optional[int] = None,
                    project_id: Optional[int] = None,
                    opts: Optional[InvokeOptions] = None) -> GetProfileResult
    def get_profile_output(profile_id: Optional[pulumi.Input[int]] = None,
                    project_id: Optional[pulumi.Input[int]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetProfileResult]
    func LookupProfile(ctx *Context, args *LookupProfileArgs, opts ...InvokeOption) (*LookupProfileResult, error)
    func LookupProfileOutput(ctx *Context, args *LookupProfileOutputArgs, opts ...InvokeOption) LookupProfileResultOutput

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

    public static class GetProfile 
    {
        public static Task<GetProfileResult> InvokeAsync(GetProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetProfileResult> Invoke(GetProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProfileResult> getProfile(GetProfileArgs args, InvokeOptions options)
    public static Output<GetProfileResult> getProfile(GetProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: dbtcloud:index/getProfile:getProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProfileId int
    The ID of the profile
    ProjectId int
    The project ID to which the profile belongs
    ProfileId int
    The ID of the profile
    ProjectId int
    The project ID to which the profile belongs
    profileId Integer
    The ID of the profile
    projectId Integer
    The project ID to which the profile belongs
    profileId number
    The ID of the profile
    projectId number
    The project ID to which the profile belongs
    profile_id int
    The ID of the profile
    project_id int
    The project ID to which the profile belongs
    profileId Number
    The ID of the profile
    projectId Number
    The project ID to which the profile belongs

    getProfile Result

    The following output properties are available:

    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