1. Packages
  2. Snowflake Provider
  3. API Docs
  4. getGitRepositories
Snowflake v2.1.0 published on Thursday, Jun 26, 2025 by Pulumi

snowflake.getGitRepositories

Explore with Pulumi AI

snowflake logo
Snowflake v2.1.0 published on Thursday, Jun 26, 2025 by Pulumi

    !> Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to preview_features_enabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.

    Data source used to get details of filtered git repositories. Filtering is aligned with the current possibilities for SHOW GIT REPOSITORIES query. The results of SHOW and DESCRIBE are encapsulated in one output collection git_repositories.

    Using getGitRepositories

    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 getGitRepositories(args: GetGitRepositoriesArgs, opts?: InvokeOptions): Promise<GetGitRepositoriesResult>
    function getGitRepositoriesOutput(args: GetGitRepositoriesOutputArgs, opts?: InvokeOptions): Output<GetGitRepositoriesResult>
    def get_git_repositories(in_: Optional[GetGitRepositoriesIn] = None,
                             like: Optional[str] = None,
                             limit: Optional[GetGitRepositoriesLimit] = None,
                             with_describe: Optional[bool] = None,
                             opts: Optional[InvokeOptions] = None) -> GetGitRepositoriesResult
    def get_git_repositories_output(in_: Optional[pulumi.Input[GetGitRepositoriesInArgs]] = None,
                             like: Optional[pulumi.Input[str]] = None,
                             limit: Optional[pulumi.Input[GetGitRepositoriesLimitArgs]] = None,
                             with_describe: Optional[pulumi.Input[bool]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetGitRepositoriesResult]
    func GetGitRepositories(ctx *Context, args *GetGitRepositoriesArgs, opts ...InvokeOption) (*GetGitRepositoriesResult, error)
    func GetGitRepositoriesOutput(ctx *Context, args *GetGitRepositoriesOutputArgs, opts ...InvokeOption) GetGitRepositoriesResultOutput

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

    public static class GetGitRepositories 
    {
        public static Task<GetGitRepositoriesResult> InvokeAsync(GetGitRepositoriesArgs args, InvokeOptions? opts = null)
        public static Output<GetGitRepositoriesResult> Invoke(GetGitRepositoriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGitRepositoriesResult> getGitRepositories(GetGitRepositoriesArgs args, InvokeOptions options)
    public static Output<GetGitRepositoriesResult> getGitRepositories(GetGitRepositoriesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: snowflake:index/getGitRepositories:getGitRepositories
      arguments:
        # arguments dictionary

    The following arguments are supported:

    In GetGitRepositoriesIn
    IN clause to filter the list of objects
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    Limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    WithDescribe bool
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    In GetGitRepositoriesIn
    IN clause to filter the list of objects
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    Limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    WithDescribe bool
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    in GetGitRepositoriesIn
    IN clause to filter the list of objects
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    withDescribe Boolean
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    in GetGitRepositoriesIn
    IN clause to filter the list of objects
    like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    withDescribe boolean
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    in_ GetGitRepositoriesIn
    IN clause to filter the list of objects
    like str
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    with_describe bool
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    in Property Map
    IN clause to filter the list of objects
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    limit Property Map
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    withDescribe Boolean
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.

    getGitRepositories Result

    The following output properties are available:

    GitRepositories List<GetGitRepositoriesGitRepository>
    Holds the aggregated output of all git repositories details queries.
    Id string
    The provider-assigned unique ID for this managed resource.
    In GetGitRepositoriesIn
    IN clause to filter the list of objects
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    Limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    WithDescribe bool
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    GitRepositories []GetGitRepositoriesGitRepository
    Holds the aggregated output of all git repositories details queries.
    Id string
    The provider-assigned unique ID for this managed resource.
    In GetGitRepositoriesIn
    IN clause to filter the list of objects
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    Limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    WithDescribe bool
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    gitRepositories List<GetGitRepositoriesGitRepository>
    Holds the aggregated output of all git repositories details queries.
    id String
    The provider-assigned unique ID for this managed resource.
    in GetGitRepositoriesIn
    IN clause to filter the list of objects
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    withDescribe Boolean
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    gitRepositories GetGitRepositoriesGitRepository[]
    Holds the aggregated output of all git repositories details queries.
    id string
    The provider-assigned unique ID for this managed resource.
    in GetGitRepositoriesIn
    IN clause to filter the list of objects
    like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    withDescribe boolean
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    git_repositories Sequence[GetGitRepositoriesGitRepository]
    Holds the aggregated output of all git repositories details queries.
    id str
    The provider-assigned unique ID for this managed resource.
    in_ GetGitRepositoriesIn
    IN clause to filter the list of objects
    like str
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    limit GetGitRepositoriesLimit
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    with_describe bool
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.
    gitRepositories List<Property Map>
    Holds the aggregated output of all git repositories details queries.
    id String
    The provider-assigned unique ID for this managed resource.
    in Property Map
    IN clause to filter the list of objects
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    limit Property Map
    Limits the number of rows returned. If the limit.from is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with starts_with or like.
    withDescribe Boolean
    (Default: true) Runs DESC GIT REPOSITORY for each git repository returned by SHOW GIT REPOSITORIES. The output of describe is saved to the description field. By default this value is set to true.

    Supporting Types

    GetGitRepositoriesGitRepository

    DescribeOutputs List<GetGitRepositoriesGitRepositoryDescribeOutput>
    Holds the output of DESCRIBE GIT REPOSITORY.
    ShowOutputs List<GetGitRepositoriesGitRepositoryShowOutput>
    Holds the output of SHOW GIT REPOSITORIES.
    DescribeOutputs []GetGitRepositoriesGitRepositoryDescribeOutput
    Holds the output of DESCRIBE GIT REPOSITORY.
    ShowOutputs []GetGitRepositoriesGitRepositoryShowOutput
    Holds the output of SHOW GIT REPOSITORIES.
    describeOutputs List<GetGitRepositoriesGitRepositoryDescribeOutput>
    Holds the output of DESCRIBE GIT REPOSITORY.
    showOutputs List<GetGitRepositoriesGitRepositoryShowOutput>
    Holds the output of SHOW GIT REPOSITORIES.
    describeOutputs GetGitRepositoriesGitRepositoryDescribeOutput[]
    Holds the output of DESCRIBE GIT REPOSITORY.
    showOutputs GetGitRepositoriesGitRepositoryShowOutput[]
    Holds the output of SHOW GIT REPOSITORIES.
    describeOutputs List<Property Map>
    Holds the output of DESCRIBE GIT REPOSITORY.
    showOutputs List<Property Map>
    Holds the output of SHOW GIT REPOSITORIES.

    GetGitRepositoriesGitRepositoryDescribeOutput

    ApiIntegration string
    Comment string
    CreatedOn string
    DatabaseName string
    GitCredentials string
    LastFetchedAt string
    Name string
    Origin string
    Owner string
    OwnerRoleType string
    SchemaName string
    ApiIntegration string
    Comment string
    CreatedOn string
    DatabaseName string
    GitCredentials string
    LastFetchedAt string
    Name string
    Origin string
    Owner string
    OwnerRoleType string
    SchemaName string
    apiIntegration String
    comment String
    createdOn String
    databaseName String
    gitCredentials String
    lastFetchedAt String
    name String
    origin String
    owner String
    ownerRoleType String
    schemaName String
    apiIntegration string
    comment string
    createdOn string
    databaseName string
    gitCredentials string
    lastFetchedAt string
    name string
    origin string
    owner string
    ownerRoleType string
    schemaName string
    apiIntegration String
    comment String
    createdOn String
    databaseName String
    gitCredentials String
    lastFetchedAt String
    name String
    origin String
    owner String
    ownerRoleType String
    schemaName String

    GetGitRepositoriesGitRepositoryShowOutput

    ApiIntegration string
    Comment string
    CreatedOn string
    DatabaseName string
    GitCredentials string
    LastFetchedAt string
    Name string
    Origin string
    Owner string
    OwnerRoleType string
    SchemaName string
    ApiIntegration string
    Comment string
    CreatedOn string
    DatabaseName string
    GitCredentials string
    LastFetchedAt string
    Name string
    Origin string
    Owner string
    OwnerRoleType string
    SchemaName string
    apiIntegration String
    comment String
    createdOn String
    databaseName String
    gitCredentials String
    lastFetchedAt String
    name String
    origin String
    owner String
    ownerRoleType String
    schemaName String
    apiIntegration string
    comment string
    createdOn string
    databaseName string
    gitCredentials string
    lastFetchedAt string
    name string
    origin string
    owner string
    ownerRoleType string
    schemaName string
    apiIntegration String
    comment String
    createdOn String
    databaseName String
    gitCredentials String
    lastFetchedAt String
    name String
    origin String
    owner String
    ownerRoleType String
    schemaName String

    GetGitRepositoriesIn

    Account bool
    Returns records for the entire account.
    Database string
    Returns records for the current database in use or for a specified database.
    Schema string
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    Account bool
    Returns records for the entire account.
    Database string
    Returns records for the current database in use or for a specified database.
    Schema string
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    account Boolean
    Returns records for the entire account.
    database String
    Returns records for the current database in use or for a specified database.
    schema String
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    account boolean
    Returns records for the entire account.
    database string
    Returns records for the current database in use or for a specified database.
    schema string
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    account bool
    Returns records for the entire account.
    database str
    Returns records for the current database in use or for a specified database.
    schema str
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    account Boolean
    Returns records for the entire account.
    database String
    Returns records for the current database in use or for a specified database.
    schema String
    Returns records for the current schema in use or a specified schema. Use fully qualified name.

    GetGitRepositoriesLimit

    Rows int
    The maximum number of rows to return.
    From string
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    Rows int
    The maximum number of rows to return.
    From string
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows Integer
    The maximum number of rows to return.
    from String
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows number
    The maximum number of rows to return.
    from string
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows int
    The maximum number of rows to return.
    from_ str
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows Number
    The maximum number of rows to return.
    from String
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v2.1.0 published on Thursday, Jun 26, 2025 by Pulumi