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

dbtcloud.getProjects

Explore with Pulumi AI

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

Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name.

Using getProjects

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 getProjects(args: GetProjectsArgs, opts?: InvokeOptions): Promise<GetProjectsResult>
function getProjectsOutput(args: GetProjectsOutputArgs, opts?: InvokeOptions): Output<GetProjectsResult>
Copy
def get_projects(name_contains: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetProjectsResult
def get_projects_output(name_contains: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetProjectsResult]
Copy
func GetProjects(ctx *Context, args *GetProjectsArgs, opts ...InvokeOption) (*GetProjectsResult, error)
func GetProjectsOutput(ctx *Context, args *GetProjectsOutputArgs, opts ...InvokeOption) GetProjectsResultOutput
Copy

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

public static class GetProjects 
{
    public static Task<GetProjectsResult> InvokeAsync(GetProjectsArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectsResult> Invoke(GetProjectsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
public static Output<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: dbtcloud:index/getProjects:getProjects
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

NameContains string
Used to filter projects by name, Optional
NameContains string
Used to filter projects by name, Optional
nameContains String
Used to filter projects by name, Optional
nameContains string
Used to filter projects by name, Optional
name_contains str
Used to filter projects by name, Optional
nameContains String
Used to filter projects by name, Optional

getProjects Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
NameContains string
Used to filter projects by name, Optional
Projects List<Pulumi.DbtCloud.Outputs.GetProjectsProject>
Set of projects with their details
Id string
The provider-assigned unique ID for this managed resource.
NameContains string
Used to filter projects by name, Optional
Projects []GetProjectsProject
Set of projects with their details
id String
The provider-assigned unique ID for this managed resource.
nameContains String
Used to filter projects by name, Optional
projects List<GetProjectsProject>
Set of projects with their details
id string
The provider-assigned unique ID for this managed resource.
nameContains string
Used to filter projects by name, Optional
projects GetProjectsProject[]
Set of projects with their details
id str
The provider-assigned unique ID for this managed resource.
name_contains str
Used to filter projects by name, Optional
projects Sequence[GetProjectsProject]
Set of projects with their details
id String
The provider-assigned unique ID for this managed resource.
nameContains String
Used to filter projects by name, Optional
projects List<Property Map>
Set of projects with their details

Supporting Types

GetProjectsProject

Connection This property is required. Pulumi.DbtCloud.Inputs.GetProjectsProjectConnection
Details for the connection linked to the project
CreatedAt This property is required. string
When the project was created
DbtProjectSubdirectory This property is required. string
Subdirectory for the dbt project inside the git repo
Description This property is required. string
Project description
Id This property is required. int
Project ID
Name This property is required. string
Project name
Repository This property is required. Pulumi.DbtCloud.Inputs.GetProjectsProjectRepository
Details for the repository linked to the project
SemanticLayerConfigId This property is required. int
Semantic layer config ID
UpdatedAt This property is required. string
When the project was last updated
Connection This property is required. GetProjectsProjectConnection
Details for the connection linked to the project
CreatedAt This property is required. string
When the project was created
DbtProjectSubdirectory This property is required. string
Subdirectory for the dbt project inside the git repo
Description This property is required. string
Project description
Id This property is required. int
Project ID
Name This property is required. string
Project name
Repository This property is required. GetProjectsProjectRepository
Details for the repository linked to the project
SemanticLayerConfigId This property is required. int
Semantic layer config ID
UpdatedAt This property is required. string
When the project was last updated
connection This property is required. GetProjectsProjectConnection
Details for the connection linked to the project
createdAt This property is required. String
When the project was created
dbtProjectSubdirectory This property is required. String
Subdirectory for the dbt project inside the git repo
description This property is required. String
Project description
id This property is required. Integer
Project ID
name This property is required. String
Project name
repository This property is required. GetProjectsProjectRepository
Details for the repository linked to the project
semanticLayerConfigId This property is required. Integer
Semantic layer config ID
updatedAt This property is required. String
When the project was last updated
connection This property is required. GetProjectsProjectConnection
Details for the connection linked to the project
createdAt This property is required. string
When the project was created
dbtProjectSubdirectory This property is required. string
Subdirectory for the dbt project inside the git repo
description This property is required. string
Project description
id This property is required. number
Project ID
name This property is required. string
Project name
repository This property is required. GetProjectsProjectRepository
Details for the repository linked to the project
semanticLayerConfigId This property is required. number
Semantic layer config ID
updatedAt This property is required. string
When the project was last updated
connection This property is required. GetProjectsProjectConnection
Details for the connection linked to the project
created_at This property is required. str
When the project was created
dbt_project_subdirectory This property is required. str
Subdirectory for the dbt project inside the git repo
description This property is required. str
Project description
id This property is required. int
Project ID
name This property is required. str
Project name
repository This property is required. GetProjectsProjectRepository
Details for the repository linked to the project
semantic_layer_config_id This property is required. int
Semantic layer config ID
updated_at This property is required. str
When the project was last updated
connection This property is required. Property Map
Details for the connection linked to the project
createdAt This property is required. String
When the project was created
dbtProjectSubdirectory This property is required. String
Subdirectory for the dbt project inside the git repo
description This property is required. String
Project description
id This property is required. Number
Project ID
name This property is required. String
Project name
repository This property is required. Property Map
Details for the repository linked to the project
semanticLayerConfigId This property is required. Number
Semantic layer config ID
updatedAt This property is required. String
When the project was last updated

GetProjectsProjectConnection

AdapterVersion This property is required. string
Version of the adapter for the connection. Will tell what connection type it is
Id This property is required. int
Connection ID
Name This property is required. string
Connection name
AdapterVersion This property is required. string
Version of the adapter for the connection. Will tell what connection type it is
Id This property is required. int
Connection ID
Name This property is required. string
Connection name
adapterVersion This property is required. String
Version of the adapter for the connection. Will tell what connection type it is
id This property is required. Integer
Connection ID
name This property is required. String
Connection name
adapterVersion This property is required. string
Version of the adapter for the connection. Will tell what connection type it is
id This property is required. number
Connection ID
name This property is required. string
Connection name
adapter_version This property is required. str
Version of the adapter for the connection. Will tell what connection type it is
id This property is required. int
Connection ID
name This property is required. str
Connection name
adapterVersion This property is required. String
Version of the adapter for the connection. Will tell what connection type it is
id This property is required. Number
Connection ID
name This property is required. String
Connection name

GetProjectsProjectRepository

Id This property is required. int
Repository ID
PullRequestUrlTemplate This property is required. string
URL template for PRs
RemoteUrl This property is required. string
URL of the git repo remote
Id This property is required. int
Repository ID
PullRequestUrlTemplate This property is required. string
URL template for PRs
RemoteUrl This property is required. string
URL of the git repo remote
id This property is required. Integer
Repository ID
pullRequestUrlTemplate This property is required. String
URL template for PRs
remoteUrl This property is required. String
URL of the git repo remote
id This property is required. number
Repository ID
pullRequestUrlTemplate This property is required. string
URL template for PRs
remoteUrl This property is required. string
URL of the git repo remote
id This property is required. int
Repository ID
pull_request_url_template This property is required. str
URL template for PRs
remote_url This property is required. str
URL of the git repo remote
id This property is required. Number
Repository ID
pullRequestUrlTemplate This property is required. String
URL template for PRs
remoteUrl This property is required. String
URL of the git repo remote

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