1. Packages
  2. Snowflake
  3. API Docs
  4. getAccounts
Snowflake v0.32.0 published on Tuesday, Aug 22, 2023 by Pulumi

snowflake.getAccounts

Explore with Pulumi AI

snowflake logo
Snowflake v0.32.0 published on Tuesday, Aug 22, 2023 by Pulumi

    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(pattern: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAccountsResult
    def get_accounts_output(pattern: Optional[pulumi.Input[str]] = 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: snowflake:index/getAccounts:getAccounts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Pattern string

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    Pattern string

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    pattern String

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    pattern string

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    pattern str

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    pattern String

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    getAccounts Result

    The following output properties are available:

    Accounts List<GetAccountsAccount>

    List of all the accounts available in the organization.

    Id string

    The provider-assigned unique ID for this managed resource.

    Pattern string

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    Accounts []GetAccountsAccount

    List of all the accounts available in the organization.

    Id string

    The provider-assigned unique ID for this managed resource.

    Pattern string

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    accounts List<GetAccountsAccount>

    List of all the accounts available in the organization.

    id String

    The provider-assigned unique ID for this managed resource.

    pattern String

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    accounts GetAccountsAccount[]

    List of all the accounts available in the organization.

    id string

    The provider-assigned unique ID for this managed resource.

    pattern string

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    accounts Sequence[GetAccountsAccount]

    List of all the accounts available in the organization.

    id str

    The provider-assigned unique ID for this managed resource.

    pattern str

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    accounts List<Property Map>

    List of all the accounts available in the organization.

    id String

    The provider-assigned unique ID for this managed resource.

    pattern String

    Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

    Supporting Types

    GetAccountsAccount

    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 v0.32.0 published on Tuesday, Aug 22, 2023 by Pulumi