1. Packages
  2. Prefect Provider
  3. API Docs
  4. getAccount
prefect 2.24.0 published on Wednesday, Apr 2, 2025 by prefecthq

prefect.getAccount

Explore with Pulumi AI

prefect 2.24.0 published on Wednesday, Apr 2, 2025 by prefecthq

Get information about an existing Account.
Use this data source to obtain account-level attributes

This feature is available in the following product plan(s): Prefect Cloud (Free), Prefect Cloud (Pro), Prefect Cloud (Enterprise).

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as prefect from "@pulumi/prefect";

const myOrganization = prefect.getAccount({});
Copy
import pulumi
import pulumi_prefect as prefect

my_organization = prefect.get_account()
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prefect/v2/prefect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := prefect.LookupAccount(ctx, &prefect.LookupAccountArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prefect = Pulumi.Prefect;

return await Deployment.RunAsync(() => 
{
    var myOrganization = Prefect.GetAccount.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prefect.PrefectFunctions;
import com.pulumi.prefect.inputs.GetAccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var myOrganization = PrefectFunctions.getAccount();

    }
}
Copy
variables:
  myOrganization:
    fn::invoke:
      function: prefect:getAccount
      arguments: {}
Copy

Using getAccount

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 getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
function getAccountOutput(args: GetAccountOutputArgs, opts?: InvokeOptions): Output<GetAccountResult>
Copy
def get_account(id: Optional[str] = None,
                settings: Optional[GetAccountSettings] = None,
                opts: Optional[InvokeOptions] = None) -> GetAccountResult
def get_account_output(id: Optional[pulumi.Input[str]] = None,
                settings: Optional[pulumi.Input[GetAccountSettingsArgs]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetAccountResult]
Copy
func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)
func LookupAccountOutput(ctx *Context, args *LookupAccountOutputArgs, opts ...InvokeOption) LookupAccountResultOutput
Copy

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

public static class GetAccount 
{
    public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountResult> Invoke(GetAccountInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
public static Output<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: prefect:index/getAccount:getAccount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
Account ID (UUID)
Settings GetAccountSettings
Group of settings related to accounts
Id string
Account ID (UUID)
Settings GetAccountSettings
Group of settings related to accounts
id String
Account ID (UUID)
settings GetAccountSettings
Group of settings related to accounts
id string
Account ID (UUID)
settings GetAccountSettings
Group of settings related to accounts
id str
Account ID (UUID)
settings GetAccountSettings
Group of settings related to accounts
id String
Account ID (UUID)
settings Property Map
Group of settings related to accounts

getAccount Result

The following output properties are available:

BillingEmail string
Billing email to apply to the account's Stripe customer
Created string
Timestamp of when the resource was created (RFC3339)
DomainNames List<string>
The list of domain names for enabling SSO in Prefect Cloud.
Handle string
Unique handle of the account
Link string
An optional for an external url associated with the account, e.g. https://prefect.io/
Location string
An optional physical location for the account, e.g. Washington, D.C.
Name string
Name of the account
Updated string
Timestamp of when the resource was updated (RFC3339)
Id string
Account ID (UUID)
Settings GetAccountSettings
Group of settings related to accounts
BillingEmail string
Billing email to apply to the account's Stripe customer
Created string
Timestamp of when the resource was created (RFC3339)
DomainNames []string
The list of domain names for enabling SSO in Prefect Cloud.
Handle string
Unique handle of the account
Link string
An optional for an external url associated with the account, e.g. https://prefect.io/
Location string
An optional physical location for the account, e.g. Washington, D.C.
Name string
Name of the account
Updated string
Timestamp of when the resource was updated (RFC3339)
Id string
Account ID (UUID)
Settings GetAccountSettings
Group of settings related to accounts
billingEmail String
Billing email to apply to the account's Stripe customer
created String
Timestamp of when the resource was created (RFC3339)
domainNames List<String>
The list of domain names for enabling SSO in Prefect Cloud.
handle String
Unique handle of the account
link String
An optional for an external url associated with the account, e.g. https://prefect.io/
location String
An optional physical location for the account, e.g. Washington, D.C.
name String
Name of the account
updated String
Timestamp of when the resource was updated (RFC3339)
id String
Account ID (UUID)
settings GetAccountSettings
Group of settings related to accounts
billingEmail string
Billing email to apply to the account's Stripe customer
created string
Timestamp of when the resource was created (RFC3339)
domainNames string[]
The list of domain names for enabling SSO in Prefect Cloud.
handle string
Unique handle of the account
link string
An optional for an external url associated with the account, e.g. https://prefect.io/
location string
An optional physical location for the account, e.g. Washington, D.C.
name string
Name of the account
updated string
Timestamp of when the resource was updated (RFC3339)
id string
Account ID (UUID)
settings GetAccountSettings
Group of settings related to accounts
billing_email str
Billing email to apply to the account's Stripe customer
created str
Timestamp of when the resource was created (RFC3339)
domain_names Sequence[str]
The list of domain names for enabling SSO in Prefect Cloud.
handle str
Unique handle of the account
link str
An optional for an external url associated with the account, e.g. https://prefect.io/
location str
An optional physical location for the account, e.g. Washington, D.C.
name str
Name of the account
updated str
Timestamp of when the resource was updated (RFC3339)
id str
Account ID (UUID)
settings GetAccountSettings
Group of settings related to accounts
billingEmail String
Billing email to apply to the account's Stripe customer
created String
Timestamp of when the resource was created (RFC3339)
domainNames List<String>
The list of domain names for enabling SSO in Prefect Cloud.
handle String
Unique handle of the account
link String
An optional for an external url associated with the account, e.g. https://prefect.io/
location String
An optional physical location for the account, e.g. Washington, D.C.
name String
Name of the account
updated String
Timestamp of when the resource was updated (RFC3339)
id String
Account ID (UUID)
settings Property Map
Group of settings related to accounts

Supporting Types

GetAccountSettings

AiLogSummaries This property is required. bool
Whether to use AI to generate log summaries.
AllowPublicWorkspaces This property is required. bool
Whether or not this account allows public workspaces
ManagedExecution This property is required. bool
Whether to enable the use of managed work pools
AiLogSummaries This property is required. bool
Whether to use AI to generate log summaries.
AllowPublicWorkspaces This property is required. bool
Whether or not this account allows public workspaces
ManagedExecution This property is required. bool
Whether to enable the use of managed work pools
aiLogSummaries This property is required. Boolean
Whether to use AI to generate log summaries.
allowPublicWorkspaces This property is required. Boolean
Whether or not this account allows public workspaces
managedExecution This property is required. Boolean
Whether to enable the use of managed work pools
aiLogSummaries This property is required. boolean
Whether to use AI to generate log summaries.
allowPublicWorkspaces This property is required. boolean
Whether or not this account allows public workspaces
managedExecution This property is required. boolean
Whether to enable the use of managed work pools
ai_log_summaries This property is required. bool
Whether to use AI to generate log summaries.
allow_public_workspaces This property is required. bool
Whether or not this account allows public workspaces
managed_execution This property is required. bool
Whether to enable the use of managed work pools
aiLogSummaries This property is required. Boolean
Whether to use AI to generate log summaries.
allowPublicWorkspaces This property is required. Boolean
Whether or not this account allows public workspaces
managedExecution This property is required. Boolean
Whether to enable the use of managed work pools

Package Details

Repository
prefect prefecthq/terraform-provider-prefect
License
Notes
This Pulumi package is based on the prefect Terraform Provider.
prefect 2.24.0 published on Wednesday, Apr 2, 2025 by prefecthq