1. Packages
  2. dbt Cloud Provider
  3. API Docs
  4. getRepository
dbt Cloud v1.0.0 published on Wednesday, Jun 11, 2025 by Pulumi

dbtcloud.getRepository

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v1.0.0 published on Wednesday, Jun 11, 2025 by Pulumi

    Retrieve data for a single repository

    Using getRepository

    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 getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
    function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRepositoryResult>
    def get_repository(fetch_deploy_key: Optional[bool] = None,
                       project_id: Optional[int] = None,
                       repository_id: Optional[int] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
    def get_repository_output(fetch_deploy_key: Optional[pulumi.Input[bool]] = None,
                       project_id: Optional[pulumi.Input[int]] = None,
                       repository_id: Optional[pulumi.Input[int]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryResult]
    func LookupRepository(ctx *Context, args *LookupRepositoryArgs, opts ...InvokeOption) (*LookupRepositoryResult, error)
    func LookupRepositoryOutput(ctx *Context, args *LookupRepositoryOutputArgs, opts ...InvokeOption) LookupRepositoryResultOutput

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

    public static class GetRepository 
    {
        public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
    public static Output<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: dbtcloud:index/getRepository:getRepository
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId int
    Project ID to create the repository in
    RepositoryId int
    ID for the repository
    FetchDeployKey bool
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    ProjectId int
    Project ID to create the repository in
    RepositoryId int
    ID for the repository
    FetchDeployKey bool
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    projectId Integer
    Project ID to create the repository in
    repositoryId Integer
    ID for the repository
    fetchDeployKey Boolean
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    projectId number
    Project ID to create the repository in
    repositoryId number
    ID for the repository
    fetchDeployKey boolean
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    project_id int
    Project ID to create the repository in
    repository_id int
    ID for the repository
    fetch_deploy_key bool
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    projectId Number
    Project ID to create the repository in
    repositoryId Number
    ID for the repository
    fetchDeployKey Boolean
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    getRepository Result

    The following output properties are available:

    AzureActiveDirectoryProjectId string
    The Azure Dev Ops project ID
    AzureActiveDirectoryRepositoryId string
    The Azure Dev Ops repository ID
    AzureBypassWebhookRegistrationFailure bool
    If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks
    DeployKey string
    Public key generated by dbt when using deploy_key clone strategy
    FetchDeployKey bool
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    GitCloneStrategy string
    Git clone strategy for the repository
    GithubInstallationId int
    Identifier for the GitHub installation
    GitlabProjectId int
    Identifier for the Gitlab project
    Id string
    The ID of this resource
    IsActive bool
    Whether the repository is active
    ProjectId int
    Project ID to create the repository in
    PullRequestUrlTemplate string
    The pull request URL template to be used when opening a pull request from within dbt Cloud's IDE
    RemoteUrl string
    Git URL for the repository or / for Gitlab
    RepositoryCredentialsId int
    Credentials ID for the repository (From the repository side not the dbt Cloud ID)
    RepositoryId int
    ID for the repository
    AzureActiveDirectoryProjectId string
    The Azure Dev Ops project ID
    AzureActiveDirectoryRepositoryId string
    The Azure Dev Ops repository ID
    AzureBypassWebhookRegistrationFailure bool
    If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks
    DeployKey string
    Public key generated by dbt when using deploy_key clone strategy
    FetchDeployKey bool
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    GitCloneStrategy string
    Git clone strategy for the repository
    GithubInstallationId int
    Identifier for the GitHub installation
    GitlabProjectId int
    Identifier for the Gitlab project
    Id string
    The ID of this resource
    IsActive bool
    Whether the repository is active
    ProjectId int
    Project ID to create the repository in
    PullRequestUrlTemplate string
    The pull request URL template to be used when opening a pull request from within dbt Cloud's IDE
    RemoteUrl string
    Git URL for the repository or / for Gitlab
    RepositoryCredentialsId int
    Credentials ID for the repository (From the repository side not the dbt Cloud ID)
    RepositoryId int
    ID for the repository
    azureActiveDirectoryProjectId String
    The Azure Dev Ops project ID
    azureActiveDirectoryRepositoryId String
    The Azure Dev Ops repository ID
    azureBypassWebhookRegistrationFailure Boolean
    If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks
    deployKey String
    Public key generated by dbt when using deploy_key clone strategy
    fetchDeployKey Boolean
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    gitCloneStrategy String
    Git clone strategy for the repository
    githubInstallationId Integer
    Identifier for the GitHub installation
    gitlabProjectId Integer
    Identifier for the Gitlab project
    id String
    The ID of this resource
    isActive Boolean
    Whether the repository is active
    projectId Integer
    Project ID to create the repository in
    pullRequestUrlTemplate String
    The pull request URL template to be used when opening a pull request from within dbt Cloud's IDE
    remoteUrl String
    Git URL for the repository or / for Gitlab
    repositoryCredentialsId Integer
    Credentials ID for the repository (From the repository side not the dbt Cloud ID)
    repositoryId Integer
    ID for the repository
    azureActiveDirectoryProjectId string
    The Azure Dev Ops project ID
    azureActiveDirectoryRepositoryId string
    The Azure Dev Ops repository ID
    azureBypassWebhookRegistrationFailure boolean
    If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks
    deployKey string
    Public key generated by dbt when using deploy_key clone strategy
    fetchDeployKey boolean
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    gitCloneStrategy string
    Git clone strategy for the repository
    githubInstallationId number
    Identifier for the GitHub installation
    gitlabProjectId number
    Identifier for the Gitlab project
    id string
    The ID of this resource
    isActive boolean
    Whether the repository is active
    projectId number
    Project ID to create the repository in
    pullRequestUrlTemplate string
    The pull request URL template to be used when opening a pull request from within dbt Cloud's IDE
    remoteUrl string
    Git URL for the repository or / for Gitlab
    repositoryCredentialsId number
    Credentials ID for the repository (From the repository side not the dbt Cloud ID)
    repositoryId number
    ID for the repository
    azure_active_directory_project_id str
    The Azure Dev Ops project ID
    azure_active_directory_repository_id str
    The Azure Dev Ops repository ID
    azure_bypass_webhook_registration_failure bool
    If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks
    deploy_key str
    Public key generated by dbt when using deploy_key clone strategy
    fetch_deploy_key bool
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    git_clone_strategy str
    Git clone strategy for the repository
    github_installation_id int
    Identifier for the GitHub installation
    gitlab_project_id int
    Identifier for the Gitlab project
    id str
    The ID of this resource
    is_active bool
    Whether the repository is active
    project_id int
    Project ID to create the repository in
    pull_request_url_template str
    The pull request URL template to be used when opening a pull request from within dbt Cloud's IDE
    remote_url str
    Git URL for the repository or / for Gitlab
    repository_credentials_id int
    Credentials ID for the repository (From the repository side not the dbt Cloud ID)
    repository_id int
    ID for the repository
    azureActiveDirectoryProjectId String
    The Azure Dev Ops project ID
    azureActiveDirectoryRepositoryId String
    The Azure Dev Ops repository ID
    azureBypassWebhookRegistrationFailure Boolean
    If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks
    deployKey String
    Public key generated by dbt when using deploy_key clone strategy
    fetchDeployKey Boolean
    Whether we should return the public deploy key

    Deprecated: This field is deprecated and will be removed in a future version of the provider. The key is always fetched when the clone strategy is deploy_key

    gitCloneStrategy String
    Git clone strategy for the repository
    githubInstallationId Number
    Identifier for the GitHub installation
    gitlabProjectId Number
    Identifier for the Gitlab project
    id String
    The ID of this resource
    isActive Boolean
    Whether the repository is active
    projectId Number
    Project ID to create the repository in
    pullRequestUrlTemplate String
    The pull request URL template to be used when opening a pull request from within dbt Cloud's IDE
    remoteUrl String
    Git URL for the repository or / for Gitlab
    repositoryCredentialsId Number
    Credentials ID for the repository (From the repository side not the dbt Cloud ID)
    repositoryId Number
    ID for the repository

    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.0.0 published on Wednesday, Jun 11, 2025 by Pulumi