snowflake.getGitRepositories
Explore with Pulumi AI
!> 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
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - 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
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - 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
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - with
Describe 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
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - with
Describe 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_
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - 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 withstarts_with
orlike
. - with
Describe 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:
- Git
Repositories List<GetGit Repositories Git Repository> - Holds the aggregated output of all git repositories details queries.
- Id string
- The provider-assigned unique ID for this managed resource.
- In
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - 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.
- Git
Repositories []GetGit Repositories Git Repository - Holds the aggregated output of all git repositories details queries.
- Id string
- The provider-assigned unique ID for this managed resource.
- In
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - 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.
- git
Repositories List<GetGit Repositories Git Repository> - Holds the aggregated output of all git repositories details queries.
- id String
- The provider-assigned unique ID for this managed resource.
- in
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - with
Describe 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 GetGit Repositories Git Repository[] - Holds the aggregated output of all git repositories details queries.
- id string
- The provider-assigned unique ID for this managed resource.
- in
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - with
Describe 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[GetGit Repositories Git Repository] - Holds the aggregated output of all git repositories details queries.
- id str
- The provider-assigned unique ID for this managed resource.
- in_
Get
Git Repositories In - 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
Get
Git Repositories Limit - 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 withstarts_with
orlike
. - 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.
- git
Repositories 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 withstarts_with
orlike
. - with
Describe 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
- Describe
Outputs List<GetGit Repositories Git Repository Describe Output> - Holds the output of DESCRIBE GIT REPOSITORY.
- Show
Outputs List<GetGit Repositories Git Repository Show Output> - Holds the output of SHOW GIT REPOSITORIES.
- Describe
Outputs []GetGit Repositories Git Repository Describe Output - Holds the output of DESCRIBE GIT REPOSITORY.
- Show
Outputs []GetGit Repositories Git Repository Show Output - Holds the output of SHOW GIT REPOSITORIES.
- describe
Outputs List<GetGit Repositories Git Repository Describe Output> - Holds the output of DESCRIBE GIT REPOSITORY.
- show
Outputs List<GetGit Repositories Git Repository Show Output> - Holds the output of SHOW GIT REPOSITORIES.
- describe
Outputs GetGit Repositories Git Repository Describe Output[] - Holds the output of DESCRIBE GIT REPOSITORY.
- show
Outputs GetGit Repositories Git Repository Show Output[] - Holds the output of SHOW GIT REPOSITORIES.
- describe_
outputs Sequence[GetGit Repositories Git Repository Describe Output] - Holds the output of DESCRIBE GIT REPOSITORY.
- show_
outputs Sequence[GetGit Repositories Git Repository Show Output] - Holds the output of SHOW GIT REPOSITORIES.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE GIT REPOSITORY.
- show
Outputs List<Property Map> - Holds the output of SHOW GIT REPOSITORIES.
GetGitRepositoriesGitRepositoryDescribeOutput
- Api
Integration string - Comment string
- Created
On string - Database
Name string - Git
Credentials string - Last
Fetched stringAt - Name string
- Origin string
- Owner string
- Owner
Role stringType - Schema
Name string
- Api
Integration string - Comment string
- Created
On string - Database
Name string - Git
Credentials string - Last
Fetched stringAt - Name string
- Origin string
- Owner string
- Owner
Role stringType - Schema
Name string
- api
Integration String - comment String
- created
On String - database
Name String - git
Credentials String - last
Fetched StringAt - name String
- origin String
- owner String
- owner
Role StringType - schema
Name String
- api
Integration string - comment string
- created
On string - database
Name string - git
Credentials string - last
Fetched stringAt - name string
- origin string
- owner string
- owner
Role stringType - schema
Name string
- api_
integration str - comment str
- created_
on str - database_
name str - git_
credentials str - last_
fetched_ strat - name str
- origin str
- owner str
- owner_
role_ strtype - schema_
name str
- api
Integration String - comment String
- created
On String - database
Name String - git
Credentials String - last
Fetched StringAt - name String
- origin String
- owner String
- owner
Role StringType - schema
Name String
GetGitRepositoriesGitRepositoryShowOutput
- Api
Integration string - Comment string
- Created
On string - Database
Name string - Git
Credentials string - Last
Fetched stringAt - Name string
- Origin string
- Owner string
- Owner
Role stringType - Schema
Name string
- Api
Integration string - Comment string
- Created
On string - Database
Name string - Git
Credentials string - Last
Fetched stringAt - Name string
- Origin string
- Owner string
- Owner
Role stringType - Schema
Name string
- api
Integration String - comment String
- created
On String - database
Name String - git
Credentials String - last
Fetched StringAt - name String
- origin String
- owner String
- owner
Role StringType - schema
Name String
- api
Integration string - comment string
- created
On string - database
Name string - git
Credentials string - last
Fetched stringAt - name string
- origin string
- owner string
- owner
Role stringType - schema
Name string
- api_
integration str - comment str
- created_
on str - database_
name str - git_
credentials str - last_
fetched_ strat - name str
- origin str
- owner str
- owner_
role_ strtype - schema_
name str
- api
Integration String - comment String
- created
On String - database
Name String - git
Credentials String - last
Fetched StringAt - name String
- origin String
- owner String
- owner
Role StringType - schema
Name String
GetGitRepositoriesIn
GetGitRepositoriesLimit
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.