1. Packages
  2. Aiven Provider
  3. API Docs
  4. getOrganization
Aiven v6.39.0 published on Tuesday, Jun 3, 2025 by Pulumi

aiven.getOrganization

Explore with Pulumi AI

aiven logo
Aiven v6.39.0 published on Tuesday, Jun 3, 2025 by Pulumi

    Gets information about an organization.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const main = aiven.getOrganization({
        name: "Example organization",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    main = aiven.get_organization(name="Example organization")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.LookupOrganization(ctx, &aiven.LookupOrganizationArgs{
    			Name: pulumi.StringRef("Example organization"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var main = Aiven.GetOrganization.Invoke(new()
        {
            Name = "Example organization",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AivenFunctions;
    import com.pulumi.aiven.inputs.GetOrganizationArgs;
    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 main = AivenFunctions.getOrganization(GetOrganizationArgs.builder()
                .name("Example organization")
                .build());
    
        }
    }
    
    variables:
      main:
        fn::invoke:
          function: aiven:getOrganization
          arguments:
            name: Example organization
    

    Using getOrganization

    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 getOrganization(args: GetOrganizationArgs, opts?: InvokeOptions): Promise<GetOrganizationResult>
    function getOrganizationOutput(args: GetOrganizationOutputArgs, opts?: InvokeOptions): Output<GetOrganizationResult>
    def get_organization(id: Optional[str] = None,
                         name: Optional[str] = None,
                         timeouts: Optional[GetOrganizationTimeouts] = None,
                         opts: Optional[InvokeOptions] = None) -> GetOrganizationResult
    def get_organization_output(id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         timeouts: Optional[pulumi.Input[GetOrganizationTimeoutsArgs]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationResult]
    func LookupOrganization(ctx *Context, args *LookupOrganizationArgs, opts ...InvokeOption) (*LookupOrganizationResult, error)
    func LookupOrganizationOutput(ctx *Context, args *LookupOrganizationOutputArgs, opts ...InvokeOption) LookupOrganizationResultOutput

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

    public static class GetOrganization 
    {
        public static Task<GetOrganizationResult> InvokeAsync(GetOrganizationArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationResult> Invoke(GetOrganizationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
    public static Output<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aiven:index/getOrganization:getOrganization
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the organization.
    Name string
    Name of the organization.
    Timeouts GetOrganizationTimeouts
    Id string
    ID of the organization.
    Name string
    Name of the organization.
    Timeouts GetOrganizationTimeouts
    id String
    ID of the organization.
    name String
    Name of the organization.
    timeouts GetOrganizationTimeouts
    id string
    ID of the organization.
    name string
    Name of the organization.
    timeouts GetOrganizationTimeouts
    id str
    ID of the organization.
    name str
    Name of the organization.
    timeouts GetOrganizationTimeouts
    id String
    ID of the organization.
    name String
    Name of the organization.
    timeouts Property Map

    getOrganization Result

    The following output properties are available:

    CreateTime string
    Timestamp in ISO 8601 format, always in UTC.
    TenantId string
    Tenant identifier.

    Deprecated: This field is deprecated and will be removed in the next major release.

    UpdateTime string
    Timestamp in ISO 8601 format, always in UTC.
    Id string
    ID of the organization.
    Name string
    Name of the organization.
    Timeouts GetOrganizationTimeouts
    CreateTime string
    Timestamp in ISO 8601 format, always in UTC.
    TenantId string
    Tenant identifier.

    Deprecated: This field is deprecated and will be removed in the next major release.

    UpdateTime string
    Timestamp in ISO 8601 format, always in UTC.
    Id string
    ID of the organization.
    Name string
    Name of the organization.
    Timeouts GetOrganizationTimeouts
    createTime String
    Timestamp in ISO 8601 format, always in UTC.
    tenantId String
    Tenant identifier.

    Deprecated: This field is deprecated and will be removed in the next major release.

    updateTime String
    Timestamp in ISO 8601 format, always in UTC.
    id String
    ID of the organization.
    name String
    Name of the organization.
    timeouts GetOrganizationTimeouts
    createTime string
    Timestamp in ISO 8601 format, always in UTC.
    tenantId string
    Tenant identifier.

    Deprecated: This field is deprecated and will be removed in the next major release.

    updateTime string
    Timestamp in ISO 8601 format, always in UTC.
    id string
    ID of the organization.
    name string
    Name of the organization.
    timeouts GetOrganizationTimeouts
    create_time str
    Timestamp in ISO 8601 format, always in UTC.
    tenant_id str
    Tenant identifier.

    Deprecated: This field is deprecated and will be removed in the next major release.

    update_time str
    Timestamp in ISO 8601 format, always in UTC.
    id str
    ID of the organization.
    name str
    Name of the organization.
    timeouts GetOrganizationTimeouts
    createTime String
    Timestamp in ISO 8601 format, always in UTC.
    tenantId String
    Tenant identifier.

    Deprecated: This field is deprecated and will be removed in the next major release.

    updateTime String
    Timestamp in ISO 8601 format, always in UTC.
    id String
    ID of the organization.
    name String
    Name of the organization.
    timeouts Property Map

    Supporting Types

    GetOrganizationTimeouts

    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.39.0 published on Tuesday, Jun 3, 2025 by Pulumi