1. Packages
  2. Snowflake Provider
  3. API Docs
  4. getAccounts
Snowflake v1.1.2 published on Thursday, Feb 6, 2025 by Pulumi

snowflake.getAccounts

Explore with Pulumi AI

snowflake logo
Snowflake v1.1.2 published on Thursday, Feb 6, 2025 by Pulumi

    Data source used to get details of filtered accounts. Filtering is aligned with the current possibilities for SHOW ACCOUNTS query. The results of SHOW are encapsulated in one output collection accounts.

    Using getAccounts

    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 getAccounts(args: GetAccountsArgs, opts?: InvokeOptions): Promise<GetAccountsResult>
    function getAccountsOutput(args: GetAccountsOutputArgs, opts?: InvokeOptions): Output<GetAccountsResult>
    def get_accounts(like: Optional[str] = None,
                     with_history: Optional[bool] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAccountsResult
    def get_accounts_output(like: Optional[pulumi.Input[str]] = None,
                     with_history: Optional[pulumi.Input[bool]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAccountsResult]
    func GetAccounts(ctx *Context, args *GetAccountsArgs, opts ...InvokeOption) (*GetAccountsResult, error)
    func GetAccountsOutput(ctx *Context, args *GetAccountsOutputArgs, opts ...InvokeOption) GetAccountsResultOutput

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

    public static class GetAccounts 
    {
        public static Task<GetAccountsResult> InvokeAsync(GetAccountsArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountsResult> Invoke(GetAccountsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountsResult> getAccounts(GetAccountsArgs args, InvokeOptions options)
    public static Output<GetAccountsResult> getAccounts(GetAccountsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: snowflake:index/getAccounts:getAccounts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    WithHistory bool
    Includes dropped accounts that have not yet been deleted.
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    WithHistory bool
    Includes dropped accounts that have not yet been deleted.
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withHistory Boolean
    Includes dropped accounts that have not yet been deleted.
    like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withHistory boolean
    Includes dropped accounts that have not yet been deleted.
    like str
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    with_history bool
    Includes dropped accounts that have not yet been deleted.
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withHistory Boolean
    Includes dropped accounts that have not yet been deleted.

    getAccounts Result

    The following output properties are available:

    Accounts List<GetAccountsAccount>
    Holds the aggregated output of all accounts details queries.
    Id string
    The provider-assigned unique ID for this managed resource.
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    WithHistory bool
    Includes dropped accounts that have not yet been deleted.
    Accounts []GetAccountsAccount
    Holds the aggregated output of all accounts details queries.
    Id string
    The provider-assigned unique ID for this managed resource.
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    WithHistory bool
    Includes dropped accounts that have not yet been deleted.
    accounts List<GetAccountsAccount>
    Holds the aggregated output of all accounts details queries.
    id String
    The provider-assigned unique ID for this managed resource.
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withHistory Boolean
    Includes dropped accounts that have not yet been deleted.
    accounts GetAccountsAccount[]
    Holds the aggregated output of all accounts details queries.
    id string
    The provider-assigned unique ID for this managed resource.
    like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withHistory boolean
    Includes dropped accounts that have not yet been deleted.
    accounts Sequence[GetAccountsAccount]
    Holds the aggregated output of all accounts details queries.
    id str
    The provider-assigned unique ID for this managed resource.
    like str
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    with_history bool
    Includes dropped accounts that have not yet been deleted.
    accounts List<Property Map>
    Holds the aggregated output of all accounts details queries.
    id String
    The provider-assigned unique ID for this managed resource.
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withHistory Boolean
    Includes dropped accounts that have not yet been deleted.

    Supporting Types

    GetAccountsAccount

    ShowOutputs List<GetAccountsAccountShowOutput>
    Holds the output of SHOW ACCOUNTS.
    ShowOutputs []GetAccountsAccountShowOutput
    Holds the output of SHOW ACCOUNTS.
    showOutputs List<GetAccountsAccountShowOutput>
    Holds the output of SHOW ACCOUNTS.
    showOutputs GetAccountsAccountShowOutput[]
    Holds the output of SHOW ACCOUNTS.
    show_outputs Sequence[GetAccountsAccountShowOutput]
    Holds the output of SHOW ACCOUNTS.
    showOutputs List<Property Map>
    Holds the output of SHOW ACCOUNTS.

    GetAccountsAccountShowOutput

    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 v1.1.2 published on Thursday, Feb 6, 2025 by Pulumi