1. Packages
  2. Logfire
  3. API Docs
  4. Organization
Viewing docs for Logfire v0.1.9
published on Wednesday, Apr 8, 2026 by Pydantic
logfire logo
Viewing docs for Logfire v0.1.9
published on Wednesday, Apr 8, 2026 by Pydantic

    Manages a Logfire organization. This resource is only available for self-hosted deployments and requires an API key with a special organization scope.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as logfire from "@pydantic/pulumi-logfire";
    
    const example = new logfire.Organization("example", {
        deletionProtection: false,
        displayName: "Terraform Example Org",
    });
    
    import pulumi
    import pulumi_logfire as logfire
    
    example = logfire.Organization("example",
        deletion_protection=False,
        display_name="Terraform Example Org")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pydantic/pulumi-logfire/sdk/go/logfire"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := logfire.NewOrganization(ctx, "example", &logfire.OrganizationArgs{
    			DeletionProtection: pulumi.Bool(false),
    			DisplayName:        pulumi.String("Terraform Example Org"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Logfire = Pulumi.Logfire;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Logfire.Organization("example", new()
        {
            DeletionProtection = false,
            DisplayName = "Terraform Example Org",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.logfire.Organization;
    import com.pulumi.logfire.OrganizationArgs;
    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) {
            var example = new Organization("example", OrganizationArgs.builder()
                .deletionProtection(false)
                .displayName("Terraform Example Org")
                .build());
    
        }
    }
    
    resources:
      example:
        type: logfire:Organization
        properties:
          # This defaults to true. Set false to allow destroy.
          deletionProtection: false
          displayName: Terraform Example Org
    

    Create Organization Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Organization(name: string, args?: OrganizationArgs, opts?: CustomResourceOptions);
    @overload
    def Organization(resource_name: str,
                     args: Optional[OrganizationArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Organization(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     avatar: Optional[str] = None,
                     billing_email: Optional[str] = None,
                     deletion_protection: Optional[bool] = None,
                     description: Optional[str] = None,
                     display_name: Optional[str] = None,
                     github_handle: Optional[str] = None,
                     location: Optional[str] = None,
                     name: Optional[str] = None)
    func NewOrganization(ctx *Context, name string, args *OrganizationArgs, opts ...ResourceOption) (*Organization, error)
    public Organization(string name, OrganizationArgs? args = null, CustomResourceOptions? opts = null)
    public Organization(String name, OrganizationArgs args)
    public Organization(String name, OrganizationArgs args, CustomResourceOptions options)
    
    type: logfire:Organization
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var organizationResource = new Logfire.Index.Organization("organizationResource", new()
    {
        Avatar = "string",
        BillingEmail = "string",
        DeletionProtection = false,
        Description = "string",
        DisplayName = "string",
        GithubHandle = "string",
        Location = "string",
        Name = "string",
    });
    
    example, err := logfire.NewOrganization(ctx, "organizationResource", &logfire.OrganizationArgs{
    	Avatar:             pulumi.String("string"),
    	BillingEmail:       pulumi.String("string"),
    	DeletionProtection: pulumi.Bool(false),
    	Description:        pulumi.String("string"),
    	DisplayName:        pulumi.String("string"),
    	GithubHandle:       pulumi.String("string"),
    	Location:           pulumi.String("string"),
    	Name:               pulumi.String("string"),
    })
    
    var organizationResource = new Organization("organizationResource", OrganizationArgs.builder()
        .avatar("string")
        .billingEmail("string")
        .deletionProtection(false)
        .description("string")
        .displayName("string")
        .githubHandle("string")
        .location("string")
        .name("string")
        .build());
    
    organization_resource = logfire.Organization("organizationResource",
        avatar="string",
        billing_email="string",
        deletion_protection=False,
        description="string",
        display_name="string",
        github_handle="string",
        location="string",
        name="string")
    
    const organizationResource = new logfire.Organization("organizationResource", {
        avatar: "string",
        billingEmail: "string",
        deletionProtection: false,
        description: "string",
        displayName: "string",
        githubHandle: "string",
        location: "string",
        name: "string",
    });
    
    type: logfire:Organization
    properties:
        avatar: string
        billingEmail: string
        deletionProtection: false
        description: string
        displayName: string
        githubHandle: string
        location: string
        name: string
    

    Organization Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Organization resource accepts the following input properties:

    Avatar string
    Avatar URL.
    BillingEmail string
    Billing contact email.
    DeletionProtection bool
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    Description string
    Organization description.
    DisplayName string
    Display name shown in the UI.
    GithubHandle string
    Organization GitHub handle.
    Location string
    Organization location.
    Name string
    Organization name/slug.
    Avatar string
    Avatar URL.
    BillingEmail string
    Billing contact email.
    DeletionProtection bool
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    Description string
    Organization description.
    DisplayName string
    Display name shown in the UI.
    GithubHandle string
    Organization GitHub handle.
    Location string
    Organization location.
    Name string
    Organization name/slug.
    avatar String
    Avatar URL.
    billingEmail String
    Billing contact email.
    deletionProtection Boolean
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    description String
    Organization description.
    displayName String
    Display name shown in the UI.
    githubHandle String
    Organization GitHub handle.
    location String
    Organization location.
    name String
    Organization name/slug.
    avatar string
    Avatar URL.
    billingEmail string
    Billing contact email.
    deletionProtection boolean
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    description string
    Organization description.
    displayName string
    Display name shown in the UI.
    githubHandle string
    Organization GitHub handle.
    location string
    Organization location.
    name string
    Organization name/slug.
    avatar str
    Avatar URL.
    billing_email str
    Billing contact email.
    deletion_protection bool
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    description str
    Organization description.
    display_name str
    Display name shown in the UI.
    github_handle str
    Organization GitHub handle.
    location str
    Organization location.
    name str
    Organization name/slug.
    avatar String
    Avatar URL.
    billingEmail String
    Billing contact email.
    deletionProtection Boolean
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    description String
    Organization description.
    displayName String
    Display name shown in the UI.
    githubHandle String
    Organization GitHub handle.
    location String
    Organization location.
    name String
    Organization name/slug.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Organization resource produces the following output properties:

    AiEnabled bool
    Whether AI features are enabled.
    CreatedAt string
    Timestamp when the organization was created.
    GatewayEnabled bool
    Whether gateway features are enabled.
    HasAdminPanel bool
    Whether the organization has access to the admin panel.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Timestamp when the organization was last updated.
    AiEnabled bool
    Whether AI features are enabled.
    CreatedAt string
    Timestamp when the organization was created.
    GatewayEnabled bool
    Whether gateway features are enabled.
    HasAdminPanel bool
    Whether the organization has access to the admin panel.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Timestamp when the organization was last updated.
    aiEnabled Boolean
    Whether AI features are enabled.
    createdAt String
    Timestamp when the organization was created.
    gatewayEnabled Boolean
    Whether gateway features are enabled.
    hasAdminPanel Boolean
    Whether the organization has access to the admin panel.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Timestamp when the organization was last updated.
    aiEnabled boolean
    Whether AI features are enabled.
    createdAt string
    Timestamp when the organization was created.
    gatewayEnabled boolean
    Whether gateway features are enabled.
    hasAdminPanel boolean
    Whether the organization has access to the admin panel.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    Timestamp when the organization was last updated.
    ai_enabled bool
    Whether AI features are enabled.
    created_at str
    Timestamp when the organization was created.
    gateway_enabled bool
    Whether gateway features are enabled.
    has_admin_panel bool
    Whether the organization has access to the admin panel.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    Timestamp when the organization was last updated.
    aiEnabled Boolean
    Whether AI features are enabled.
    createdAt String
    Timestamp when the organization was created.
    gatewayEnabled Boolean
    Whether gateway features are enabled.
    hasAdminPanel Boolean
    Whether the organization has access to the admin panel.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Timestamp when the organization was last updated.

    Look up Existing Organization Resource

    Get an existing Organization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OrganizationState, opts?: CustomResourceOptions): Organization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ai_enabled: Optional[bool] = None,
            avatar: Optional[str] = None,
            billing_email: Optional[str] = None,
            created_at: Optional[str] = None,
            deletion_protection: Optional[bool] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            gateway_enabled: Optional[bool] = None,
            github_handle: Optional[str] = None,
            has_admin_panel: Optional[bool] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            updated_at: Optional[str] = None) -> Organization
    func GetOrganization(ctx *Context, name string, id IDInput, state *OrganizationState, opts ...ResourceOption) (*Organization, error)
    public static Organization Get(string name, Input<string> id, OrganizationState? state, CustomResourceOptions? opts = null)
    public static Organization get(String name, Output<String> id, OrganizationState state, CustomResourceOptions options)
    resources:  _:    type: logfire:Organization    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AiEnabled bool
    Whether AI features are enabled.
    Avatar string
    Avatar URL.
    BillingEmail string
    Billing contact email.
    CreatedAt string
    Timestamp when the organization was created.
    DeletionProtection bool
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    Description string
    Organization description.
    DisplayName string
    Display name shown in the UI.
    GatewayEnabled bool
    Whether gateway features are enabled.
    GithubHandle string
    Organization GitHub handle.
    HasAdminPanel bool
    Whether the organization has access to the admin panel.
    Location string
    Organization location.
    Name string
    Organization name/slug.
    UpdatedAt string
    Timestamp when the organization was last updated.
    AiEnabled bool
    Whether AI features are enabled.
    Avatar string
    Avatar URL.
    BillingEmail string
    Billing contact email.
    CreatedAt string
    Timestamp when the organization was created.
    DeletionProtection bool
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    Description string
    Organization description.
    DisplayName string
    Display name shown in the UI.
    GatewayEnabled bool
    Whether gateway features are enabled.
    GithubHandle string
    Organization GitHub handle.
    HasAdminPanel bool
    Whether the organization has access to the admin panel.
    Location string
    Organization location.
    Name string
    Organization name/slug.
    UpdatedAt string
    Timestamp when the organization was last updated.
    aiEnabled Boolean
    Whether AI features are enabled.
    avatar String
    Avatar URL.
    billingEmail String
    Billing contact email.
    createdAt String
    Timestamp when the organization was created.
    deletionProtection Boolean
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    description String
    Organization description.
    displayName String
    Display name shown in the UI.
    gatewayEnabled Boolean
    Whether gateway features are enabled.
    githubHandle String
    Organization GitHub handle.
    hasAdminPanel Boolean
    Whether the organization has access to the admin panel.
    location String
    Organization location.
    name String
    Organization name/slug.
    updatedAt String
    Timestamp when the organization was last updated.
    aiEnabled boolean
    Whether AI features are enabled.
    avatar string
    Avatar URL.
    billingEmail string
    Billing contact email.
    createdAt string
    Timestamp when the organization was created.
    deletionProtection boolean
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    description string
    Organization description.
    displayName string
    Display name shown in the UI.
    gatewayEnabled boolean
    Whether gateway features are enabled.
    githubHandle string
    Organization GitHub handle.
    hasAdminPanel boolean
    Whether the organization has access to the admin panel.
    location string
    Organization location.
    name string
    Organization name/slug.
    updatedAt string
    Timestamp when the organization was last updated.
    ai_enabled bool
    Whether AI features are enabled.
    avatar str
    Avatar URL.
    billing_email str
    Billing contact email.
    created_at str
    Timestamp when the organization was created.
    deletion_protection bool
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    description str
    Organization description.
    display_name str
    Display name shown in the UI.
    gateway_enabled bool
    Whether gateway features are enabled.
    github_handle str
    Organization GitHub handle.
    has_admin_panel bool
    Whether the organization has access to the admin panel.
    location str
    Organization location.
    name str
    Organization name/slug.
    updated_at str
    Timestamp when the organization was last updated.
    aiEnabled Boolean
    Whether AI features are enabled.
    avatar String
    Avatar URL.
    billingEmail String
    Billing contact email.
    createdAt String
    Timestamp when the organization was created.
    deletionProtection Boolean
    Prevents accidental destroy when true (defaults to true). Set to false and apply before deleting this resource.
    description String
    Organization description.
    displayName String
    Display name shown in the UI.
    gatewayEnabled Boolean
    Whether gateway features are enabled.
    githubHandle String
    Organization GitHub handle.
    hasAdminPanel Boolean
    Whether the organization has access to the admin panel.
    location String
    Organization location.
    name String
    Organization name/slug.
    updatedAt String
    Timestamp when the organization was last updated.

    Package Details

    Repository
    logfire pydantic/pulumi-logfire
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the logfire Terraform Provider.
    logfire logo
    Viewing docs for Logfire v0.1.9
    published on Wednesday, Apr 8, 2026 by Pydantic
      Try Pulumi Cloud free. Your team will thank you.