prefect 2.22.4 published on Wednesday, Mar 26, 2025 by prefecthq
prefect.getAccount
Explore with Pulumi AI
prefect 2.22.4 published on Wednesday, Mar 26, 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({});
import pulumi
import pulumi_prefect as prefect
my_organization = prefect.get_account()
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prefect = Pulumi.Prefect;
return await Deployment.RunAsync(() =>
{
var myOrganization = Prefect.GetAccount.Invoke();
});
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();
}
}
variables:
myOrganization:
fn::invoke:
function: prefect:getAccount
arguments: {}
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>
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]
func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)
func LookupAccountOutput(ctx *Context, args *LookupAccountOutputArgs, opts ...InvokeOption) LookupAccountResultOutput
> 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)
}
public static CompletableFuture<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
public static Output<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
fn::invoke:
function: prefect:index/getAccount:getAccount
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Account ID (UUID)
- Settings
Get
Account Settings - Group of settings related to accounts
- Id string
- Account ID (UUID)
- Settings
Get
Account Settings - Group of settings related to accounts
- id String
- Account ID (UUID)
- settings
Get
Account Settings - Group of settings related to accounts
- id string
- Account ID (UUID)
- settings
Get
Account Settings - Group of settings related to accounts
- id str
- Account ID (UUID)
- settings
Get
Account Settings - 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:
- Billing
Email string - Billing email to apply to the account's Stripe customer
- Created string
- Timestamp of when the resource was created (RFC3339)
- Domain
Names 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
Get
Account Settings - Group of settings related to accounts
- Billing
Email string - Billing email to apply to the account's Stripe customer
- Created string
- Timestamp of when the resource was created (RFC3339)
- Domain
Names []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
Get
Account Settings - Group of settings related to accounts
- billing
Email String - Billing email to apply to the account's Stripe customer
- created String
- Timestamp of when the resource was created (RFC3339)
- domain
Names 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
Get
Account Settings - Group of settings related to accounts
- billing
Email string - Billing email to apply to the account's Stripe customer
- created string
- Timestamp of when the resource was created (RFC3339)
- domain
Names 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
Get
Account Settings - 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
Get
Account Settings - Group of settings related to accounts
- billing
Email String - Billing email to apply to the account's Stripe customer
- created String
- Timestamp of when the resource was created (RFC3339)
- domain
Names 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
- Ai
Log boolSummaries - Whether to use AI to generate log summaries.
- Allow
Public boolWorkspaces - Whether or not this account allows public workspaces
- Managed
Execution bool - Whether to enable the use of managed work pools
- Ai
Log boolSummaries - Whether to use AI to generate log summaries.
- Allow
Public boolWorkspaces - Whether or not this account allows public workspaces
- Managed
Execution bool - Whether to enable the use of managed work pools
- ai
Log BooleanSummaries - Whether to use AI to generate log summaries.
- allow
Public BooleanWorkspaces - Whether or not this account allows public workspaces
- managed
Execution Boolean - Whether to enable the use of managed work pools
- ai
Log booleanSummaries - Whether to use AI to generate log summaries.
- allow
Public booleanWorkspaces - Whether or not this account allows public workspaces
- managed
Execution boolean - Whether to enable the use of managed work pools
- ai_
log_ boolsummaries - Whether to use AI to generate log summaries.
- allow_
public_ boolworkspaces - Whether or not this account allows public workspaces
- managed_
execution bool - Whether to enable the use of managed work pools
- ai
Log BooleanSummaries - Whether to use AI to generate log summaries.
- allow
Public BooleanWorkspaces - Whether or not this account allows public workspaces
- managed
Execution 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.22.4 published on Wednesday, Mar 26, 2025 by prefecthq